/* LP web design system v2 (Mainline R3, signed 2026-09-02).
 * Shared by every www page. Values are normative from brand/tokens.json
 * v2.0.0 - navy ink + one electric cobalt on white. Hierarchy comes from
 * navy vs cobalt, never gray or opacity. Radius 0, Flat Forever.
 * Motion contract: line-mask reveals, the orb, the route dot, station
 * railfill. Company pages load this but arm NO motion (zero-motion rule). */
  /* LP web design system v2 (Mainline R3, signed 2026-09-02). Values are
     normative from brand/tokens.json v2.0.0 - navy ink + one electric cobalt
     on white. Hierarchy comes from navy vs cobalt, never gray or opacity.
     Motion contract: line-mask reveals, the orb, the route dot, station
     railfill. Nothing else animates. */
  :root {
    --ink: #0E1B36; --ink-2: #2E3A55; --faint: #8792A6;
    --ground: #FFFFFF; --panel: #F5F7FB; --line: #E2E7EF;
    --spark: #2247E0; --spark-hot: #1D3ED1;
    --dusk: #0C1830; --dusk-2: #13233F; --tint: #AFC2E8;
    --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
    --expo: cubic-bezier(0.16, 1, 0.3, 1);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { margin: 0; background: var(--ground); color: var(--ink);
    font-family: var(--sans); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; }
  a { color: inherit; }
  .hidden { display: none; }

  /* Line-mask reveals, content-first (lp-motion rule 4): the REST state is
     fully visible - no pre-applied transform, no opacity-0-at-rest. Adding
     .go (or .loaded on the hero) plays a keyframe FROM the masked state TO
     visible, so a crawler, renderer, or no-JS reader that never triggers the
     class sees every word. A reveal that hides content at rest is a defect. */
  .lm { display: block; overflow: hidden; }
  .lm > span { display: block; }
  @keyframes lm-up { from { transform: translateY(110%); } to { transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  .lm.go > span, .loaded .hero .lm > span {
    animation: lm-up 900ms var(--expo) both; }
  .lm.go.l2 > span, .loaded .hero .lm.l2 > span { animation-delay: 90ms; }
  .lm.go.l3 > span, .loaded .hero .lm.l3 > span { animation-delay: 180ms; }
  .fade.go, .loaded .hero .fade {
    animation: fade-in 900ms var(--expo) 250ms both; }
  @media (prefers-reduced-motion: reduce) {
    .lm.go > span, .loaded .hero .lm > span,
    .fade.go, .loaded .hero .fade { animation: none !important; }
  }

  nav { display: flex; justify-content: space-between; align-items: center;
    padding: 26px clamp(24px, 5vw, 72px); position: absolute; top: 0; left: 0;
    right: 0; z-index: 20; }
  .mark { display: inline-flex; align-items: center; gap: 12px; font-weight: 900;
    font-size: 19px; letter-spacing: -0.03em; }
  nav .links { display: flex; gap: 34px; align-items: center; font-size: 14px;
    font-weight: 700; }
  nav .links a { text-decoration: none; color: var(--ink); }
  nav .links a:hover { color: var(--spark); }
  nav .links a.cta, nav .links a.cta:hover { color: #fff; }
  nav .links a.lang { color: var(--ink-2); font-weight: 500; }
  .cta { background: var(--ink); color: #fff; padding: 14px 26px; font-weight: 700;
    font-size: 14.5px; text-decoration: none; border: 0; cursor: pointer;
    font-family: var(--sans); transition: background 200ms var(--expo);
    display: inline-block; }
  .cta:hover, .cta:focus-visible { background: var(--spark); }
  .cta:focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
  @media (max-width: 700px) { nav .links a:not(.cta) { display: none; } }

  .hero { min-height: 100svh; display: flex; flex-direction: column;
    position: relative; padding: 0 clamp(24px, 5vw, 72px); overflow: hidden; }
  .hero-main { flex: 1; display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(260px, 5fr);
    gap: clamp(20px, 3vw, 48px); align-items: center; padding-top: 120px; }
  .hero-copy { position: relative; z-index: 2; grid-column: 1; grid-row: 1; }
  .hero h1 { font-size: clamp(42px, 6.2vw, 104px); font-weight: 900;
    letter-spacing: -0.045em; line-height: 0.98; margin: 0; color: var(--ink); }
  .hero h1 .hot { color: var(--spark); }
  .hero-sub { margin: 34px 0 0; max-width: 54ch; font-size: 18px;
    font-weight: 500; color: var(--ink-2); }
  .hero-cta { margin: 32px 0 0; display: flex; gap: 16px; align-items: center;
    flex-wrap: wrap; }
  .hero-cta .quiet { font-size: 14.5px; font-weight: 700; color: var(--ink);
    text-decoration: none; border-bottom: 2px solid var(--spark);
    padding-bottom: 2px; }
  .hero-cta .quiet:hover { color: var(--spark); }

  .brainbox { position: relative; z-index: 1; grid-column: 2; grid-row: 1;
    pointer-events: none; }
  .brainbox canvas { display: block; width: min(80vmin, 780px); max-width: none;
    aspect-ratio: 1 / 1; }
  .brainbox .bcap { position: absolute; left: 7%; bottom: 9%; z-index: 2;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
    color: var(--ink-2); }
  @media (max-width: 980px) {
    .hero-main { display: flex; flex-direction: column; justify-content: center; }
    .brainbox { width: 100%; max-width: 420px; margin: 34px auto 0; order: 2; }
    .brainbox canvas { width: 100%; }
    .brainbox .bcap { position: static; display: block; text-align: center;
      margin-top: 10px; } }

  .route { padding: 40px 0 30px; }
  .route svg { display: block; width: 100%; height: 110px; overflow: visible; }
  .route .ends { display: flex; justify-content: space-between;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
    color: var(--ink-2); margin-top: 10px; }
  .route .ends strong { color: var(--spark); font-weight: 500; }
  @media (max-width: 700px) { .route .ends span:nth-child(2) { display: none; } }

  section { position: relative; }
  .shell { max-width: 1360px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 72px); }

  .proof { padding: clamp(90px, 12vh, 150px) 0; }
  .proof .head { display: flex; align-items: baseline;
    justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin-bottom: 40px; }
  .proof h2 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 900;
    letter-spacing: -0.04em; line-height: 1; margin: 0; }
  .proof .when { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
    color: var(--ink-2); }
  .board { border-top: 2px solid var(--ink); }
  .prow { display: grid; grid-template-columns: 190px minmax(0,1fr) 230px 90px;
    gap: 20px; align-items: baseline; padding: 17px 0;
    border-bottom: 1px solid var(--line); }
  .prow .fig { font-weight: 900; font-size: clamp(26px, 2.6vw, 38px);
    letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
  .prow .what { color: var(--ink-2); font-size: 15px; font-weight: 500; }
  .prow .who, .prow .when2 { font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.1em; color: var(--faint); }
  .prow .when2 { text-align: right; }
  @media (max-width: 800px) { .prow { grid-template-columns: 120px 1fr; }
    .prow .who { grid-column: 2; } .prow .when2 { display: none; } }

  .teaser { padding: 0 0 clamp(90px, 12vh, 150px); }
  .teaser .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
    color: var(--spark); }
  .teaser h2 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 900;
    letter-spacing: -0.04em; line-height: 1; margin: 10px 0 40px; }
  .trow { display: grid; grid-template-columns: minmax(0, 1fr) 300px 220px;
    gap: 20px; align-items: baseline; padding: 22px 0;
    border-top: 1px solid var(--line); text-decoration: none;
    transition: color 200ms var(--expo); }
  .trow:last-of-type { border-bottom: 1px solid var(--line); }
  .trow h3 { font-size: clamp(20px, 2.4vw, 30px); font-weight: 900;
    letter-spacing: -0.03em; margin: 0; }
  .trow:hover h3 { color: var(--spark); }
  .trow .sys { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
    color: var(--ink-2); }
  .trow .price { font-family: var(--mono); font-size: 12px;
    letter-spacing: 0.06em; color: var(--ink-2); text-align: right; }
  .trow .price strong { color: var(--spark); font-weight: 500; }
  .teaser .all { margin-top: 30px; }
  @media (max-width: 800px) { .trow { grid-template-columns: 1fr; gap: 8px; }
    .trow .price { text-align: left; } }

  .cao { background: var(--dusk); color: #F2F5FA;
    padding: clamp(100px, 16vh, 190px) 0; }
  .cao h2 { font-size: clamp(40px, 6vw, 88px); font-weight: 900;
    letter-spacing: -0.045em; line-height: 1; margin: 0 0 34px; max-width: 12em; }
  .cao h2 .tint { color: var(--tint); }
  .cao .cols { display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(28px, 5vw, 90px); }
  .cao p { color: #C3CFE3; font-size: 16.5px; max-width: 56ch; margin: 0 0 16px; }
  .cao p strong { color: #FFFFFF; }
  .caolist { border-top: 1px solid rgba(242,245,250,0.2); margin-top: 6px; }
  .caolist .row { display: grid; grid-template-columns: 54px 1fr; gap: 16px;
    padding: 16px 0; border-bottom: 1px solid rgba(242,245,250,0.2);
    align-items: baseline; }
  .caolist .n { font-family: var(--mono); font-size: 11px; color: var(--tint);
    letter-spacing: 0.1em; }
  .caolist .row p { margin: 0; color: #D8E1F0; }
  .cao .cta { background: #FFFFFF; color: var(--dusk); margin-top: 30px; }
  .cao .cta:hover { background: var(--tint); }
  @media (max-width: 860px) { .cao .cols { grid-template-columns: 1fr; } }

  .how { padding: clamp(90px, 13vh, 160px) 0; }
  .how h2 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 900;
    letter-spacing: -0.04em; line-height: 1; margin: 0 0 66px; }
  .strip { position: relative; }
  .strip .rail { position: absolute; left: 0; right: 0; top: 5px; height: 2px;
    background: var(--line); }
  /* Railfill rest state is the FINISHED (filled) rail; .go replays the draw. */
  .strip .railfill { position: absolute; left: 0; top: 5px; height: 2px;
    background: var(--spark); width: 100%; transform-origin: left; }
  @keyframes rail-draw { from { transform: scaleX(0); } to { transform: none; } }
  .strip.go .railfill { animation: rail-draw 1400ms var(--expo) both; }
  @media (prefers-reduced-motion: reduce) { .strip.go .railfill { animation: none !important; } }
  .stations { display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 48px); }
  .station { position: relative; padding-top: 34px; }
  .station::before { content: ''; position: absolute; top: 0; left: 0; width: 12px;
    height: 12px; background: var(--ground); border: 2px solid var(--spark); }
  .station .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
    color: var(--spark); }
  .station h3 { font-size: 21px; font-weight: 900; letter-spacing: -0.02em;
    margin: 8px 0 8px; }
  .station p { color: var(--ink-2); font-size: 15px; font-weight: 500; margin: 0; }
  @media (max-width: 760px) { .stations { grid-template-columns: 1fr; }
    .strip .rail, .strip .railfill { display: none; }
    .station { padding-top: 0; padding-left: 26px; }
    .station::before { top: 6px; } }

  .notes { padding: 0 0 clamp(90px, 13vh, 160px); }
  .notes h2 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 900;
    letter-spacing: -0.04em; line-height: 1; margin: 0 0 40px; }
  .nrow { display: grid; grid-template-columns: 92px 170px minmax(0, 1fr);
    gap: 22px; padding: 22px 0; border-top: 1px solid var(--line);
    align-items: baseline; }
  .nrow:last-child { border-bottom: 1px solid var(--line); }
  .nrow .id { font-family: var(--mono); font-size: 11px; color: var(--faint);
    letter-spacing: 0.1em; }
  .nrow .tag { font-family: var(--mono); font-size: 11px; color: var(--spark);
    letter-spacing: 0.12em; }
  .nrow p { margin: 0; color: var(--ink-2); font-size: 15.5px; font-weight: 500;
    max-width: 74ch; }
  @media (max-width: 760px) { .nrow { grid-template-columns: 1fr; gap: 6px; } }

  .about { padding: clamp(90px, 13vh, 160px) 0; border-top: 1px solid var(--line); }
  .about .grid { display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(240px, 3fr);
    gap: clamp(28px, 5vw, 90px); align-items: start; }
  .about .big { font-size: clamp(26px, 3.2vw, 44px); font-weight: 900;
    letter-spacing: -0.03em; line-height: 1.18; margin: 0 0 30px; max-width: 22em;
    color: var(--ink); }
  .about .big .hot { color: var(--spark); }
  .about p { color: var(--ink-2); font-weight: 500; max-width: 58ch; margin: 0 0 14px; }
  .aboutcard img { width: 100%; height: auto; display: block; }
  .aboutcard .who { margin-top: 14px; }
  .aboutcard .who .nm { font-weight: 900; letter-spacing: -0.02em; }
  .aboutcard .who .rl { font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.14em; color: var(--spark); margin-top: 3px; }
  @media (max-width: 820px) { .about .grid { grid-template-columns: 1fr; }
    .aboutcard { max-width: 300px; } }

  .contact { background: var(--panel); border-top: 1px solid var(--line);
    padding: clamp(90px, 13vh, 160px) 0; }
  .contact .grid { display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(28px, 5vw, 90px); }
  .contact h2 { font-size: clamp(40px, 5.4vw, 76px); font-weight: 900;
    letter-spacing: -0.045em; line-height: 0.99; margin: 0 0 22px; }
  .contact .grid > div:first-child p { color: var(--ink-2); font-weight: 500;
    max-width: 44ch; }
  form { display: flex; flex-direction: column; gap: 16px; }
  label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ink-2); }
  input { font-family: var(--sans); font-size: 15.5px; padding: 14px 15px;
    border: 1px solid var(--line); background: var(--ground); width: 100%;
    border-radius: 0; }
  input:focus { outline: 2px solid var(--spark); border-color: var(--spark); }
  .formerr { color: #B42318; font-size: 14px; }
  @media (max-width: 820px) { .contact .grid { grid-template-columns: 1fr; } }

  footer { background: var(--dusk); color: #8FA0BE; padding: 60px 0 40px;
    overflow: hidden; }
  footer .top { display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 16px; font-size: 13.5px; padding-bottom: 44px; }
  footer a { color: #C6D2E4; text-decoration: none; }
  footer a:hover { color: #fff; }
  footer .watermark { font-weight: 900; letter-spacing: -0.05em; line-height: 0.8;
    font-size: clamp(64px, 12vw, 190px); color: rgba(175,194,232,0.09);
    white-space: nowrap; user-select: none; }
  footer .fine { font-family: var(--mono); font-size: 10.5px;
    letter-spacing: 0.1em; color: #5E6E8C; margin-top: 18px; display: flex;
    justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* --- /services: alternating giant-numeral offer panels --- */
.pagehead { padding: 150px 0 30px; }
.pagehead h1 { font-size: clamp(42px, 5.6vw, 92px); font-weight: 900;
  letter-spacing: -0.045em; line-height: 0.98; margin: 0 0 22px; }
.pagehead .lede { max-width: 62ch; font-size: 18px; font-weight: 500;
  color: var(--ink-2); margin: 0; }
.pagehead .dateline { font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-2); margin-top: 26px; display: block; }
.offer { padding: clamp(80px, 12vh, 150px) 0; border-top: 1px solid var(--line); }
.offer .shell { display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 90px); align-items: center; }
.offer.flip .shell { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.offer.flip .pricecol { order: 2; }
.pricecol .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--spark); }
.pricecol .amount { font-size: clamp(72px, 10vw, 150px); font-weight: 900;
  letter-spacing: -0.05em; line-height: 0.95; margin: 8px 0 6px; }
.pricecol .amount .cur { font-size: 0.42em; vertical-align: 0.75em;
  letter-spacing: -0.02em; color: var(--spark); }
.pricecol .terms { font-family: var(--mono); font-size: 12px;
  color: var(--ink-2); letter-spacing: 0.06em; }
.offercopy h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 900;
  letter-spacing: -0.035em; line-height: 1.06; margin: 0 0 18px; }
.offercopy .def { color: var(--ink-2); font-size: 16px; font-weight: 500;
  max-width: 58ch; margin: 0 0 20px; }
.offercopy ul { margin: 0 0 24px; padding: 0; list-style: none; }
.offercopy li { padding: 13px 0; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 15.5px; font-weight: 500; }
.offercopy li:last-child { border-bottom: 1px solid var(--line); }
.offercopy .receipt { font-size: 14.5px; color: var(--ink-2); font-weight: 500;
  border-left: 2px solid var(--spark); padding-left: 14px; max-width: 56ch;
  margin: 0 0 26px; }
@media (max-width: 860px) { .offer .shell, .offer.flip .shell { grid-template-columns: 1fr; }
  .offer.flip .pricecol { order: 0; } }

/* --- FAQ --- */
.faq { padding: clamp(80px, 12vh, 150px) 0; border-top: 1px solid var(--line); }
.faq > .shell > h2 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1; margin: 0 0 40px; }
.qa { padding: 26px 0; border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: clamp(19px, 2.2vw, 26px); font-weight: 900;
  letter-spacing: -0.025em; margin: 0 0 10px; }
.qa p { margin: 0; color: var(--ink-2); font-size: 15.5px; font-weight: 500;
  max-width: 74ch; }

/* --- JA typography: Noto Sans JP, no negative tracking, never italic --- */
html[lang="ja"] body { font-family: 'Noto Sans JP', var(--sans); }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3,
html[lang="ja"] .hero h1, html[lang="ja"] .about .big,
html[lang="ja"] .offercopy h2, html[lang="ja"] .trow h3 {
  letter-spacing: 0.01em; font-style: normal; }
html[lang="ja"] .hero h1 { font-size: clamp(34px, 5vw, 84px); line-height: 1.16; }
html[lang="ja"] .cao h2 { letter-spacing: 0.01em; line-height: 1.16; }
html[lang="ja"] .contact h2, html[lang="ja"] .proof h2,
html[lang="ja"] .notes h2, html[lang="ja"] .how h2,
html[lang="ja"] .teaser h2, html[lang="ja"] .pagehead h1 {
  letter-spacing: 0.01em; line-height: 1.16; }
/* JA strings run wider per glyph; the EN clamps overflow or wrap mid-word. */
html[lang="ja"] .contact h2 { font-size: clamp(28px, 4.2vw, 58px); }
html[lang="ja"] .cao h2 { font-size: clamp(32px, 5vw, 72px); }
html[lang="ja"] body { line-break: strict; }
