:root {
  --navy: #092451;
  --navy-soft: #193762;
  --teal: #078f9d;
  --teal-dark: #04727e;
  --sky: #dff3f6;
  --coral: #f36a43;
  --paper: #fffefb;
  --ink: #172b48;
  --muted: #607086;
  --line: #dce7eb;
  --shadow: 0 18px 55px rgba(20, 57, 78, .11);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  color: var(--teal-dark); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--coral); }
.section-title { margin: 0; color: var(--navy); font: 700 clamp(2rem, 4vw, 3.5rem)/1.35 var(--serif); letter-spacing: .02em; }
.section-lead { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: 1.03rem; }

/* Header */
.site-header { position: relative; z-index: 20; height: 88px; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(9,36,81,.06); backdrop-filter: blur(14px); }
.site-header.is-sticky { position: sticky; top: 0; }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 38px; font-weight: 700; font-size: .93rem; }
.nav-links a { position: relative; }
.nav-links a:not(.button)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--teal); transition: width .2s; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 1px solid var(--teal); border-radius: 14px; color: white; background: var(--teal); font-weight: 800; box-shadow: 0 10px 25px rgba(7,143,157,.2); transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--teal-dark); }
.button.secondary { color: var(--teal-dark); background: rgba(255,255,255,.82); box-shadow: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: white; font-size: 1.25rem; cursor: pointer; }
.legal-home { color: var(--teal-dark); font-size: .9rem; font-weight: 800; }
.legal-home:hover { color: var(--navy); }

/* Landing */
.hero { position: relative; min-height: 720px; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 160px; background: linear-gradient(transparent, var(--paper)); }
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 25%; width: 75%; max-width: none; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-content { min-height: 720px; display: flex; align-items: center; }
.hero-copy { width: min(560px, 52%); padding: 68px 0 100px; }
.hero h1 { margin: 26px 0 22px; color: var(--navy); font: 700 clamp(3.3rem, 6.2vw, 6rem)/1.07 var(--serif); letter-spacing: -.045em; }
.hero h1 em { display: block; color: var(--teal-dark); font-style: normal; }
.hero-desc { max-width: 500px; margin: 0; color: var(--navy-soft); font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 2; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; }
.scroll-cue { position: absolute; left: 50%; bottom: 25px; color: var(--muted); font-size: .68rem; letter-spacing: .18em; writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; display: inline-block; height: 46px; margin-top: 10px; border-left: 1px solid var(--teal); }

.concept { padding: 118px 0; }
.concept-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 90px; }
.concept-intro { position: sticky; top: 130px; }
.story-copy { font-family: var(--serif); color: var(--navy-soft); font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.story-copy p { margin: 0 0 27px; }
.story-copy p:first-child { color: var(--navy); font-size: 1.35em; line-height: 1.75; }
.story-copy p:last-child { margin-bottom: 0; color: var(--teal-dark); font-weight: 700; }

.steps { padding: 110px 0; background: linear-gradient(180deg, #f4fbfb 0%, #fffefb 100%); }
.steps-head { text-align: center; }
.steps-head .eyebrow { justify-content: center; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 55px; }
.step-card { position: relative; min-height: 330px; padding: 38px 34px; overflow: hidden; border: 1px solid rgba(9,36,81,.08); border-radius: 26px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.step-number { color: rgba(7,143,157,.13); font: 700 5.8rem/1 var(--serif); }
.step-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: -38px 0 20px auto; border-radius: 50%; color: white; background: var(--teal); font-size: 1.45rem; }
.step-icon svg { display: block; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-card:nth-child(2) .step-icon { background: #72b8c7; }
.step-card:nth-child(3) .step-icon { background: var(--coral); }
.step-card h3 { margin: 0 0 12px; color: var(--navy); font: 700 1.65rem var(--serif); }
.step-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Legal pages */
.legal-hero { position: relative; padding: 75px 0 65px; overflow: hidden; background: linear-gradient(135deg, #f4fbfb, #fff 58%, #fff4ef); }
.legal-hero::after { content: ""; position: absolute; right: 8%; top: -90px; width: 310px; height: 310px; border: 50px solid rgba(7,143,157,.05); border-radius: 50%; }
.breadcrumbs { margin-bottom: 28px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--teal-dark); }
.legal-hero h1 { margin: 0; color: var(--navy); font: 700 clamp(2.4rem, 5vw, 4.5rem)/1.3 var(--serif); }
.legal-hero p { max-width: 720px; margin: 16px 0 0; color: var(--muted); }
.updated { display: inline-block; margin-top: 22px; padding: 5px 13px; border-radius: 999px; color: var(--teal-dark); background: white; border: 1px solid var(--line); font-size: .78rem; font-weight: 700; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: 72px; padding: 75px 0 120px; }
.legal-toc { position: sticky; top: 120px; align-self: start; padding: 22px; border-left: 2px solid var(--sky); }
.legal-toc strong { display: block; margin-bottom: 13px; color: var(--navy); font-size: .84rem; letter-spacing: .12em; }
.legal-toc a { display: block; padding: 5px 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.legal-toc a:hover { color: var(--teal-dark); }
.legal-doc { min-width: 0; }
.legal-doc .intro { margin: 0 0 52px; padding: 25px 28px; border-left: 4px solid var(--teal); background: #f5fbfb; }
.legal-doc section { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.legal-doc section:last-child { border-bottom: 0; }
.legal-doc h2 { margin: 0 0 20px; color: var(--navy); font: 700 1.55rem/1.6 var(--serif); }
.legal-doc p { margin: 0 0 16px; }
.legal-doc ul { margin: 14px 0 0; padding: 0; list-style: none; }
.legal-doc li { position: relative; margin: 8px 0; padding-left: 24px; }
.legal-doc li::before { content: ""; position: absolute; left: 3px; top: .85em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.legal-doc h3 { margin: 25px 0 8px; color: var(--navy-soft); font-size: 1rem; }
.external-link { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.site-footer { padding: 54px 0 24px; color: rgba(255,255,255,.72); background: var(--navy); }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding-bottom: 40px; }
.site-footer .brand { color: white; }
.site-footer .brand-logo { padding: 5px; border-radius: 10px; background: white; }
.footer-note { max-width: 420px; margin: 14px 0 0; font-size: .82rem; }
.footer-links { display: flex; gap: 26px; font-size: .84rem; }
.footer-links a:hover { color: white; }
.copyright { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .75rem; }

@media (max-width: 900px) {
  .container { width: min(100% - 34px, 720px); }
  .site-header { height: 72px; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; display: none; padding: 26px; background: white; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 18px; }
  .nav-links.open { display: flex; }
  .legal-home { font-size: .82rem; }
  .hero, .hero-content { min-height: 760px; }
  .hero-art { inset: 0; width: 100%; height: 58%; top: 310px; object-position: 66% center; opacity: .9; }
  .hero-copy { width: 100%; padding: 72px 0 390px; }
  .hero-desc { max-width: 520px; }
  .concept-grid { grid-template-columns: 1fr; gap: 45px; }
  .concept-intro { position: static; }
  .step-grid { grid-template-columns: 1fr; max-width: 600px; margin-inline: auto; }
  .step-card { min-height: auto; }
  .legal-layout { grid-template-columns: 1fr; gap: 35px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; border-left: 0; border-bottom: 1px solid var(--line); }
  .legal-toc strong { width: 100%; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 500px); }
  .brand { font-size: 1.3rem; }
  .brand-logo { width: 48px; height: 48px; }
  .hero, .hero-content { min-height: 765px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-copy { padding-top: 54px; }
  .hero-art { height: 52%; top: 365px; width: 135%; left: -35%; object-position: 65% center; }
  .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 310px); }
  .button { min-height: 52px; }
  .concept, .steps { padding-block: 80px; }
  .legal-hero { padding: 50px 0; }
  .legal-layout { padding: 50px 0 80px; }
  .legal-toc { display: none; }
  .footer-main { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
