:root {
  color-scheme: light;
  --ink: #11213f;
  --muted: #53627b;
  --primary: #2259e6;
  --primary-dark: #1642b8;
  --teal: #007d88;
  --line: #cbd6ea;
  --surface: #ffffff;
  --soft: #eef4ff;
  --warm: #fff8e7;
  --shadow: 0 18px 52px rgba(33, 72, 148, 0.13);
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(62, 126, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 15%, rgba(0, 164, 175, 0.13), transparent 28rem),
    #f8fbff;
  line-height: 1.7;
}
body[data-language="en"] {
  font-family: Arial, Inter, system-ui, sans-serif;
}
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
button, a { -webkit-tap-highlight-color: transparent; }

[data-lang] { display: none; }
body[data-language="zh"] [data-lang="zh"],
body[data-language="ja"] [data-lang="ja"],
body[data-language="en"] [data-lang="en"] { display: revert; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(187, 201, 226, 0.72);
  background: rgba(248, 251, 255, 0.83);
  backdrop-filter: blur(18px) saturate(145%);
}
.header-inner, .footer-inner, .page, .hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--primary), var(--teal));
  box-shadow: 0 8px 22px rgba(34, 89, 230, 0.28);
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 650; }
.language-switcher {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}
.language-switcher button {
  min-width: 34px;
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}
.language-switcher button[aria-pressed="true"] {
  color: white;
  background: var(--primary);
}

.hero {
  padding: 88px 0 66px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 46px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #e7efff;
  font-size: 0.86rem;
  font-weight: 800;
}
h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.hero-copy { color: var(--muted); font-size: 1.14rem; max-width: 44rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
}
.button.primary {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 11px 28px rgba(34, 89, 230, 0.24);
}
.hero-card {
  padding: 24px;
  border: 1px solid rgba(190, 205, 232, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.77);
  backdrop-filter: blur(17px) saturate(145%);
  box-shadow: var(--shadow);
}
.step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 0;
}
.step + .step { border-top: 1px solid var(--line); }
.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, var(--primary), var(--teal));
  font-weight: 800;
}
.step strong, .step p { display: block; margin: 0; }
.step p { color: var(--muted); font-size: 0.93rem; }

.section { padding: 50px 0; }
.section h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.55rem); }
.section-lead { margin: 0 0 24px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(33, 72, 148, 0.07);
}
.card h3 { margin: 0 0 7px; }
.card p { margin: 0; color: var(--muted); }

.page { padding: 54px 0 76px; max-width: 900px; }
.page h1 { font-size: clamp(2.15rem, 6vw, 3.7rem); }
.page-meta, .legal-note {
  color: var(--muted);
  margin-bottom: 26px;
}
.legal {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}
.legal h2 { margin-top: 32px; line-height: 1.3; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #33445f; }
.legal-note {
  padding: 13px 16px;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: var(--soft);
}
.support-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.support-item:last-child { border-bottom: 0; }
.support-item h2 { margin: 0 0 6px; }
.support-item p { margin: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #eef4ff;
}
.footer-inner { padding: 34px 0; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; }
.footer-brand { font-weight: 850; font-size: 1.15rem; }
.footer-tagline { margin: 3px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 13px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-inner { min-height: 64px; }
  .language-switcher { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .legal { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
