:root {
  --bg: #070b14;
  --bg-elevated: #0f172a;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-soft: rgba(30, 41, 59, 0.45);
  --border: rgba(148, 163, 184, 0.16);
  --border-accent: rgba(96, 165, 250, 0.35);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-body: #cbd5e1;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --indigo: #6366f1;
  --amber: #f59e0b;
  --emerald: #10b981;
  --max-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Pretendard", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-menu a.nav-link:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.lang-switch a {
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.lang-switch a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch a[aria-current="page"] {
  background: var(--accent);
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.34);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.48);
}

.btn-outline {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
}

/* Hero Banner (Image Background + Editorial Scrim, No Video) */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 96px 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.46) contrast(1.06);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.74) 55%, rgba(7, 11, 20, 0.42) 100%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.3) 0%, rgba(7, 11, 20, 0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid var(--border-accent);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  word-break: keep-all;
}

.hero-lead {
  font-size: 1.14rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 30px;
  word-break: keep-all;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--text-body);
  list-style: none;
}

.trust-list li::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 800;
}

/* Shared Section Framing */
.section {
  padding: 84px 0;
}

.section-alt {
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.35), transparent 72%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.24;
  margin-bottom: 14px;
  word-break: keep-all;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
  word-break: keep-all;
}

/* Empathy + 3-Step Strip */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
}

.card-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  color: #93c5fd;
  margin-bottom: 10px;
}

.problem-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  word-break: keep-all;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  word-break: keep-all;
}

/* Split Feature Media Blocks */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split-reverse .split-media {
  order: -1;
}

.split-text h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  word-break: keep-all;
}

.split-text p {
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.78;
  margin-bottom: 16px;
  word-break: keep-all;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-body);
  font-size: 0.96rem;
}

.bullet-dot {
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.media-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Engineering Safeguards Grid */
.safeguard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.safeguard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.sg-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.safeguard-card h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
  word-break: keep-all;
}

.safeguard-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  word-break: keep-all;
}

/* Research Comparison Bars (Pure Localized HTML/CSS, No Mixed Images) */
.research-bars {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.bar-row + .bar-row {
  margin-top: 16px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.bar-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill-low {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: #64748b;
}

.bar-fill-high {
  height: 100%;
  width: 95%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
}

/* Membership Grid */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}

.plan-card.plan-featured {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.88));
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 40px;
  word-break: keep-all;
}

.plan-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.plan-items li::before {
  content: "● ";
  color: var(--emerald);
}

/* Bottom CTA */
.cta-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.16));
  border: 1px solid var(--border-accent);
  border-radius: 26px;
  padding: 52px 32px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  margin-bottom: 14px;
  word-break: keep-all;
}

.cta-banner p {
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  word-break: keep-all;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Responsive */
@media (max-width: 980px) {
  .nav-menu {
    display: none;
  }
  .problem-grid,
  .split,
  .safeguard-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .split-reverse .split-media {
    order: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 520px;
    padding: 64px 0;
  }
  .hero-cta-row {
    flex-direction: column;
  }
  .nav-actions .btn-sm {
    display: none;
  }
  .lang-switch a {
    padding: 4px 7px;
    font-size: 0.72rem;
  }
}
