/* =========================================================
   Crypto.T.Chain theme v9 — base / hero / how it works
   基調: 白ベース × 紺の文字 × ティール（ブランド）× ライム（塗りのアクセント）
   記帳の効率化・専門性が伝わる清潔なトーン。強い動きは motion.js / hero-gl.js
   ========================================================= */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra"; src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chakra"; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-tint: #eaf6fa;
  --surface: #ffffff;
  --navy: #0b1530;
  --ink: #0b1530;
  --text: #2a3652;
  --muted: #5d6882;
  --line: rgba(11, 21, 48, .10);
  --line-strong: rgba(11, 21, 48, .18);
  --brand: #0895b8;          /* ティール（白地で読める濃さ） */
  --brand-bright: #19c3e6;   /* 光・線の演出用 */
  --brand-soft: rgba(8, 149, 184, .10);
  --lime: #c8f53c;           /* 塗り専用（文字色には使わない） */
  --lime-ink: #5a8a00;       /* 白地で読めるライム系の文字色 */
  --lime-soft: rgba(200, 245, 60, .35);
  --hot: #e0245e;
  --shadow-sm: 0 2px 6px rgba(11, 21, 48, .06), 0 10px 30px -12px rgba(11, 21, 48, .14);
  --shadow-lg: 0 4px 12px rgba(11, 21, 48, .06), 0 40px 80px -30px rgba(11, 21, 48, .28);
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --display: "Bricolage", var(--jp);
  --mono: "Chakra", ui-monospace, monospace;
  /* 左右の余白。viewport-fit=cover（画面下の固定CTAのため）で横向きのiPhoneのノッチに文字が掛からないよう、安全領域も下限にする */
  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --max: 1280px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--jp); font-weight: 500; line-height: 1.85; letter-spacing: .02em;
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--ink); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
/* 「5営業日（標準）」などをまとめて改行させない（「5／営業日」「5営業日／（標準）」「（標／準）」に分かれないように）。8文字ほどなので幅320pxでも収まる */
.nw { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* カーソル追従の淡い光 */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(25,195,230,.10) 0%, rgba(25,195,230,0) 62%);
  opacity: 0; transition: opacity .4s;
}
.has-pointer .cursor-glow { opacity: 1; }

/* ---------- 共通パーツ ---------- */
.container { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.eyebrow { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--brand); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.marker { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); padding: 0 .08em; }

.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: .04em; white-space: nowrap;
  transform: translate(var(--mx), var(--my)); transition: transform .25s var(--ease-out), box-shadow .3s, background .3s, color .3s;
  isolation: isolate; overflow: hidden;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 12px 30px -10px rgba(11,21,48,.55); }
.btn-primary::before { /* 走る光 */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(200,245,60,.55) 45%, transparent 60%);
  transform: translateX(-120%); animation: sheen 2.8s var(--ease-out) infinite;
}
.btn-primary .arrow { color: var(--lime); }
.btn-primary:hover { background: #13224a; box-shadow: 0 0 0 6px var(--brand-soft), 0 18px 40px -10px rgba(8,149,184,.6); }
@keyframes sheen { 60%, 100% { transform: translateX(120%); } }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--ink); background: rgba(255,255,255,.7); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 10px 30px -12px rgba(8,149,184,.5); }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: background .4s, backdrop-filter .4s, padding .4s, box-shadow .4s; }
.site-header.is-scrolled { background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(160%); padding-block: 10px; box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(11,21,48,.3); }
/* ロゴ: ハヤクスル（主）＋ 区切り線 ＋ by Crypto.T.Chain（従）。
   高さ --logo-h（PC 42px／〜820px 34px）を幅に換算して指定し、高さは縦横比から出す。
   入りきらない狭い画面では、入る分だけ縦横比のまま小さくなる（段差なし: 357px まで 34px → 340px 約31px → 320px 約27.5px）。
   709.42×123.99 は hayakusuru-logo-header.svg の寸法 */
.site-header .logo { --logo-h: 42px; display: flex; align-items: center; min-width: 0; text-decoration: none; }
.site-header .logo-mark { width: calc(var(--logo-h) * 709.42 / 123.99); max-width: 100%; min-width: 0; height: auto; }
/* 暗号資産・NFT損益計算の代行ページだけは会社のロゴ（ctc-logo-header-light.svg・380×64）。高さは同じ --logo-h、幅は縦横比から（PC 約249px／〜820px 約202px。狭い画面では同じく縮む） */
.site-header .logo-mark--ctc { width: calc(var(--logo-h) * 380 / 64); }
.site-header .logo-by { display: flex; align-items: center; flex: none; }
.site-header .logo-by::before { content: ""; width: 1px; height: 26px; margin: 0 16px 0 20px; background: var(--line-strong); }
.site-header .logo-by img { width: auto; height: 15px; margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.site-nav a { text-decoration: none; color: var(--text); transition: color .2s; }
.site-nav a:hover { color: var(--brand); }
.site-nav .btn { padding: 11px 20px; font-size: 14px; color: #fff; }
/* 社名「by Crypto.T.Chain」の出し分け（区切り線込みで PC 約162px／タブレット約137px）
   901px以上 = ナビの横に出す／821〜900px = ナビと並ぶ余白が足りないので省く（Windows のスクロールバー17px分も見込む）／
   600〜820px（タブレット縦など）= ナビのリンクが消えて余白があるので小さく出す／600px未満 = ハヤクスルを優先して省く */
@media (max-width: 900px) { .site-header .logo-by { display: none; } }
@media (max-width: 820px) { .site-nav a:not(.btn) { display: none; } .site-header { gap: 16px; } .site-header .logo { --logo-h: 34px; } }
@media (min-width: 600px) and (max-width: 820px) {
  .site-header .logo-by { display: flex; }
  .site-header .logo-by::before { height: 22px; margin: 0 12px 0 16px; }
  .site-header .logo-by img { height: 13px; }
}
/* 狭いスマホ: 間隔とボタンの余白を詰めてロゴの幅を確保する（〜400px。375px まではロゴ 34px のまま入る） */
@media (max-width: 400px) { .site-header { gap: 12px; } .site-nav .btn { padding-inline: 16px; } }
/* 375px未満（Android の 360px・幅320px など）: 相談ボタンの文字と余白をさらに詰め、ロゴの幅を確保する
   （360px でもロゴ 34px、320px で約27.5px。ボタンがロゴより目立たないように）。
   374px から効かせるのは、ロゴが縮み始める幅（約372px）より手前で切り替え、幅を狭めたときにロゴが一度大きくなる段差を出さないため。
   行の高さは 14px のときと同じにして、ヘッダーの高さ（75.9px）を他の幅と揃える */
@media (max-width: 374px) { .site-nav .btn { font-size: 13px; padding-inline: 12px; line-height: calc(14px * 1.85); } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero-gl { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero::before { /* 奥行きの淡い色面（WebGL が無いときの背景も兼ねる） */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 55% at 78% 30%, rgba(25,195,230,.14), transparent 70%),
    radial-gradient(35% 40% at 12% 90%, rgba(200,245,60,.18), transparent 70%),
    var(--bg);
}
.hero::after { /* 方眼（帳簿の罫線） */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 30%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(11,21,48,.045) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(11,21,48,.045) 79px 80px);
}
.hero-inner { padding: 140px 0 124px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: end; }
.hero h1 { margin: 22px 0 26px; font-weight: 900; font-size: clamp(36px, 6.2vw, 104px); line-height: 1.06; letter-spacing: -.02em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; white-space: nowrap; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .accent { font-family: var(--display); color: var(--brand); font-size: 1.3em; line-height: .8; }
.hero h1 .marker { background-size: 100% 100%; }
/* ハヤクスルLPのヒーロー見出し2行目「月次決算を5営業日に。」は、幅430px以下だと 36px（clamp の最小）でも1行に入らず右が切れていた（.line は nowrap＋overflow:hidden）。
   文言・行の構成は変えずに、画面幅に合わせて文字を小さくする（2026-10-01・QA指摘。v904-fixes CHANGES §5-5 の案A） */
@media (max-width: 430px) { .hero--page h1 { font-size: min(36px, calc((100vw - var(--gutter) * 2) / 10.9)); } }
/* リード文の幅: 36em→40em（v9.0.4。「月末から5営業日（標準）」を足しても PC・タブレット（601〜1440px）で2行に収まるように。幅600px以下は画面幅が先に効くので変わらない） */
.hero .lead { max-width: 40em; color: var(--text); font-size: clamp(15px, 1.25vw, 18px); margin: 0 0 36px; }
.hero .lead strong { color: var(--ink); font-weight: 900; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ヒーロー右側: 計器風パネル（演出。実データではない） */
.hud { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; border: 1px solid var(--line); background: rgba(255,255,255,.82); backdrop-filter: blur(12px); border-radius: 18px; padding: 18px 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.hud::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(25,195,230,.12), transparent); height: 40%; animation: scan 3.2s linear infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.hud-title { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 12px; }
.hud-title .live { color: var(--hot); } .hud-title .live::before { content: "● "; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hud-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px dashed var(--line-strong); color: var(--text); }
.hud-row b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud-row b.lime { color: var(--lime-ink); } .hud-row b.cyan { color: var(--brand); }
.hud-bar { height: 5px; background: var(--bg-soft); border-radius: 5px; overflow: hidden; margin-top: 12px; }
.hud-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-bright), var(--lime)); }
.hud small { display: block; margin-top: 10px; color: var(--muted); letter-spacing: .04em; }

.scroll-cue { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--brand), transparent); animation: drip 1.6s var(--ease-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
/* 幅1240px以下では「SCROLL」を出さない（画面の中央にあるため、ヒーローのボタン「5営業日の仕組みを見る」に重なる。実測: 幅960〜1160pxで重なり、1180pxで隙間2px・1240pxで29px）。
   901px以下は下の指定で従来から出していない。ヒーローは下揃えなので、画面の高さでは変わらない */
@media (max-width: 1240px) { .scroll-cue { display: none; } }

/* 流れる帯（紺） */
.marquee { position: absolute; left: 0; right: 0; bottom: 0; background: var(--navy); color: #fff; overflow: hidden; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(16px, 2vw, 24px); letter-spacing: .02em; padding: 13px 0; }
.marquee-track { display: inline-flex; gap: 48px; padding-right: 48px; animation: marquee 22s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; color: var(--lime); font-size: .7em; }
.marquee .o { -webkit-text-stroke: 1px #fff; color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 120px 0 130px; }
  .hud { max-width: 420px; }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  .hud { display: none; }              /* スマホは見出しとCTAを優先 */
  .hero-gl { opacity: .45; }           /* 粒子の台帳は背景として控えめに */
  .hero-inner { padding-bottom: 110px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   HOW IT WORKS — 5営業日で締める仕組み（連携→取り込み→登録→紐付け→試算表）
   JSなし / 動きを減らす設定では、5ステップを縦に並べた静的表示
   ========================================================= */
.flow { position: relative; background: var(--bg-soft); }
.flow-head { padding: 120px 0 40px; }
.flow-head p { color: var(--text); max-width: 40em; margin: 18px 0 0; }
.section-title { font-weight: 900; font-size: clamp(32px, 5vw, 68px); line-height: 1.15; letter-spacing: -.01em; margin: 18px 0 0; }
.section-title em { font-style: normal; font-family: var(--display); color: var(--brand); }

.flow-stage { position: relative; }
.steps { list-style: none; margin: 0 auto; padding: 0 0 120px; display: grid; gap: 16px; }
.step { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.step-no { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--brand); line-height: 1; }
.step h3 { margin: 8px 0 6px; font-size: 22px; }
.step p { margin: 0; }
.flow-grid, .rail, .burst, .shock, .flash { display: none; }

.motion-on .steps { display: none; }
.motion-on .flow-stage { height: 100svh; overflow: hidden; }
.motion-on .flow-grid { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 56px; padding: 90px var(--gutter) 110px; max-width: 1440px; margin: 0 auto; }

/* 左: ステップ番号と説明 */
.step-counter .label { font-family: var(--mono); font-weight: 600; letter-spacing: .4em; color: var(--brand); font-size: 14px; }
.step-counter .num { font-family: var(--display); font-weight: 800; font-size: clamp(110px, 16vw, 240px); line-height: .82; letter-spacing: -.05em; color: var(--ink); position: relative; display: inline-block; font-variant-numeric: tabular-nums; }
.step-counter .num::before, .step-counter .num::after { content: attr(data-n); position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0; }
.step-counter .num::before { color: var(--brand-bright); }
.step-counter .num::after { color: var(--hot); }
.step-counter .num.glitch::before { opacity: .85; animation: gl1 .32s steps(2) 1; }
.step-counter .num.glitch::after { opacity: .85; animation: gl2 .32s steps(2) 1; }
@keyframes gl1 { 0% { transform: translate(-8px, 3px); clip-path: inset(10% 0 55% 0); } 50% { transform: translate(6px, -2px); clip-path: inset(60% 0 8% 0); } 100% { transform: none; clip-path: inset(0 0 100% 0); } }
@keyframes gl2 { 0% { transform: translate(8px, -3px); clip-path: inset(50% 0 20% 0); } 50% { transform: translate(-6px, 2px); clip-path: inset(5% 0 70% 0); } 100% { transform: none; clip-path: inset(100% 0 0 0); } }
.step-counter .num.is-final { color: var(--brand); }
.step-caption { margin-top: 18px; min-height: 8.5em; }
.step-caption h3 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 900; line-height: 1.35; }
.step-caption p { margin: 0; max-width: 30em; }

/* 右: イラストの舞台（560×400 の座標系。container query で文字も一緒に伸縮） */
.illu { position: relative; width: 100%; aspect-ratio: 560 / 400; container-type: inline-size; color: var(--ink); }
.illu > * { position: absolute; }
.tile { border: 1px solid var(--line); border-radius: 3cqw; background: var(--surface); box-shadow: var(--shadow-lg); display: grid; align-content: center; justify-items: center; gap: .8cqw; text-align: center; }
.tile svg { width: 9cqw; height: 9cqw; color: var(--brand); }
.tile b { font-size: 3.1cqw; color: var(--ink); }
.tile small { font-family: var(--mono); font-size: 1.9cqw; letter-spacing: .12em; color: var(--muted); }
.badge { position: absolute; font-family: var(--mono); font-weight: 600; font-size: 1.9cqw; letter-spacing: .08em; padding: .6cqw 1.6cqw; border-radius: 99px; background: var(--lime); color: var(--navy); box-shadow: 0 8px 20px -8px rgba(90,138,0,.8); white-space: nowrap; }

/* STEP1 連携 */
.i-bank { left: 2%; top: 8%; width: 30%; height: 30%; }
.i-card { left: 2%; top: 60%; width: 30%; height: 30%; }
.i-freee { left: 66%; top: 30%; width: 32%; height: 40%; border: 2px solid var(--brand); }
.i-freee .appname { font-family: var(--jp); font-weight: 900; font-size: 4.4cqw; letter-spacing: .02em; color: var(--ink); }
.i-freee .badge { left: 50%; bottom: -3.5cqw; transform: translateX(-50%); }
.i-wires { inset: 0; width: 100%; height: 100%; overflow: visible; }
.i-wires path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 6 6; opacity: .7; }
.packet { left: 0; top: 0; width: 2.4cqw; height: 2.4cqw; opacity: 0; border-radius: 50%; background: var(--lime); border: 2px solid var(--lime-ink); box-shadow: 0 0 14px rgba(200,245,60,.9); }
.packet.c { background: var(--brand-bright); border-color: var(--brand); box-shadow: 0 0 14px rgba(25,195,230,.8); }

/* STEP2〜4 「自動で経理」の画面（イメージ） */
.i-app { left: 0; top: 0; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 3cqw; background: var(--surface); box-shadow: var(--shadow-lg); padding: 3cqw 3.4cqw; transform-origin: 100% 50%; }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 2cqw; border-bottom: 1px solid var(--line); font-size: 2.6cqw; }
.app-bar .ttl { font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 1.4cqw; }
.app-bar .ttl::before { content: ""; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 .6cqw var(--brand-soft); }
.app-bar .cnt { font-family: var(--mono); font-size: 2.1cqw; letter-spacing: .08em; color: var(--muted); }
.app-bar .cnt b { font-family: var(--display); font-size: 3.4cqw; color: var(--ink); margin: 0 .6cqw; font-variant-numeric: tabular-nums; }
.txns { list-style: none; margin: 0; padding: 0; }
.txn { position: relative; display: grid; grid-template-columns: 9cqw 1fr 15cqw 15cqw 5cqw; align-items: center; gap: 1.6cqw; padding: 1.55cqw 0; border-bottom: 1px dashed var(--line-strong); font-size: 2.3cqw; color: var(--ink); }
.txn .d { font-family: var(--mono); color: var(--muted); font-size: 2cqw; }
.txn .m { font-family: var(--mono); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn .a { font-family: var(--display); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.txn .a.in { color: var(--brand); }
.txn .acct { justify-self: start; font-size: 2cqw; padding: .4cqw 1.2cqw; border-radius: 99px; border: 1px dashed var(--line-strong); color: var(--muted); white-space: nowrap; }
.txn .acct.set { border: 1px solid var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.txn .st { justify-self: end; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 2cqw; font-weight: 900; color: var(--navy); }
.txn .st.ok { background: var(--lime); border-color: var(--lime-ink); }
.txn .clip { position: absolute; right: -4.6cqw; top: 50%; width: 3.4cqw; height: 3.4cqw; margin-top: -1.7cqw; border-radius: 1cqw; display: grid; place-items: center; background: var(--lime); border: 1px solid var(--lime-ink); opacity: 0; }
.txn .clip svg { width: 2.2cqw; height: 2.2cqw; color: var(--navy); }
.txn .rule { position: absolute; left: 27cqw; top: -1.2cqw; font-family: var(--mono); font-weight: 600; font-size: 1.6cqw; letter-spacing: .06em; color: var(--lime-ink); opacity: 0; white-space: nowrap; }
.ai-scan { position: absolute; left: 0; right: 0; top: 0; height: 7cqw; background: linear-gradient(180deg, transparent, rgba(25,195,230,.18) 50%, transparent); border-bottom: 2px solid var(--brand); opacity: 0; pointer-events: none; }
.ai-scan::after { content: "AI"; position: absolute; right: 2cqw; bottom: -1.4cqw; font-family: var(--mono); font-weight: 600; font-size: 1.8cqw; letter-spacing: .1em; padding: .2cqw 1.2cqw; border-radius: 99px; background: var(--brand); color: #fff; }

/* STEP4 Googleドライブ（お客様がアップロード） */
.i-drive { left: -2%; top: 24%; width: 26%; height: 52%; border: 2px solid var(--lime-ink); }
.i-drive svg { color: var(--lime-ink); }
.rcpt { left: 0; top: 0; width: 5.2cqw; height: 6.6cqw; border-radius: .8cqw; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 10px 24px -8px rgba(11,21,48,.45); opacity: 0; }
.rcpt::before { content: ""; position: absolute; left: 18%; right: 18%; top: 22%; height: 46%; background: repeating-linear-gradient(#b9c3d6 0 2px, transparent 2px 6px); }

/* STEP5 試算表（イメージ・ダミー） */
.i-ledger { left: 0; top: 0; width: 100%; border: 1px solid var(--line); border-radius: 3cqw; background: var(--surface); box-shadow: var(--shadow-lg); padding: 3cqw 3.4cqw 3.6cqw; }
.ledger-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 2.1cqw; letter-spacing: .16em; color: var(--muted); padding-bottom: 1.8cqw; border-bottom: 1px solid var(--line); }
.ledger-head .state { color: var(--lime-ink); font-weight: 600; }
.ledger-row { display: grid; grid-template-columns: 1fr auto; gap: 2cqw; padding: 1.5cqw 0; border-bottom: 1px dashed var(--line-strong); font-size: 2.6cqw; color: var(--ink); }
.ledger-row .amt { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; min-width: 9ch; }
.ledger-row.total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: .8cqw; font-weight: 900; }
.ledger-row.total .amt { color: var(--brand); font-size: 3.2cqw; }
.stamp { position: absolute; right: 5cqw; top: 46%; opacity: 0; font-family: var(--display); font-weight: 800; font-size: 6.4cqw; letter-spacing: .04em; color: var(--brand); background: rgba(255,255,255,.88); border: .8cqw solid var(--brand); border-radius: 2cqw; padding: .4cqw 2.6cqw; box-shadow: 0 0 0 .8cqw var(--lime-soft); pointer-events: none; }
.stamp small { display: block; font-family: var(--jp); font-weight: 900; font-size: 2.2cqw; letter-spacing: .1em; text-align: center; margin-top: -.6cqw; color: var(--ink); }

/* 進捗レール */
.motion-on .rail { display: flex; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; align-items: flex-start; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.rail-line { position: absolute; left: 10%; right: 10%; top: 7px; height: 3px; border-radius: 3px; background: var(--line); }
.rail-line i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--lime)); }
.rail-node { position: relative; flex: 1; display: grid; justify-items: center; gap: 10px; }
.rail-node::before { content: ""; width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg-soft); transition: all .3s; }
.rail-node.on { color: var(--ink); }
.rail-node.on::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.rail-node.on.last::before { border-color: var(--lime-ink); background: var(--lime); box-shadow: 0 0 0 6px var(--lime-soft); }

/* 第5ステップの炸裂 */
.motion-on .burst { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; width: 100%; height: 100%; }
.motion-on .shock { display: block; position: absolute; left: 70%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 4px solid var(--brand-bright); opacity: 0; z-index: 4; pointer-events: none; }
.motion-on .flash { display: block; position: absolute; inset: 0; background: radial-gradient(circle at 70% 50%, rgba(200,245,60,.55), transparent 55%); opacity: 0; z-index: 3; pointer-events: none; }

@media (max-width: 900px) {
  .motion-on .flow-grid { grid-template-columns: 1fr; gap: 10px; align-content: center; padding: 84px max(20px, env(safe-area-inset-right, 0px)) 76px max(20px, env(safe-area-inset-left, 0px)); }
  .step-counter .label { font-size: 11px; }
  .step-counter .num { font-size: 72px; }
  .step-caption { margin-top: 6px; min-height: 9.2em; }
  .step-caption h3 { font-size: 20px; margin-bottom: 6px; }
  .step-caption p { font-size: 13.5px; line-height: 1.7; }
  .illu { width: 88%; margin: 0 auto; }
  .motion-on .rail { bottom: 22px; font-size: 10px; letter-spacing: .06em; }
}

/* ---------- 見出しの分割表示（motion.js が .split を付与） ---------- */
.split .ch { display: inline-block; will-change: transform, opacity; }
/* 語句のまとまり（.w）の中・句読点をつないだ単位（.u）の中では改行しない。改行はまとまりの間だけ（日本語の改行ルールの代わり。motion.js の split()）。
   1行に入りきらない長いまとまりだけ .is-long でまとまりの中の改行を許す（.u の中は許さない） */
.split .w, .split .u, .phrased .w, .phrased .u { white-space: nowrap; }
.split .w.is-long, .phrased .w.is-long { white-space: normal; }
/* 2行以上になる見出しは、行の長さをそろえる（「ゴールは、貴社の／経理部で／回せること。」→「ゴールは、／貴社の経理部で／回せること。」など。
   改行できるのはまとまりの間だけなので、語の途中では切れない。対応していないブラウザは従来どおり前から詰める）。
   .phrased は動きを減らす設定・GSAP なしのとき（文字は分けず、まとまりだけ入れる） */
.split, .phrased { text-wrap: balance; }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
