/* =========================================================
   社長のAI秘書 LP
   ---------------------------------------------------------
   1. Design tokens
   2. Base / utilities
   3. Components（button, badge, note, reveal）
   4. Header / navigation
   5. Sections（hero → contact）
   6. Footer / floating CTA / video modal
   7. Privacy page
   8. Responsive / reduced motion
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --brand: #2453e6;          /* Secretary Blue：ボタン・強調 */
  --brand-strong: #1a40c4;
  --brand-tint: #eaf0ff;
  --brand-tint-2: #d9e4ff;
  --navy: #0f1a33;           /* 見出し・締めの帯 */
  --night: #0b1631;          /* ヘッダー・ファーストビューの背景 */
  --night-2: #13224a;
  --on-night: #ffffff;
  --on-night-2: #c3cde3;
  --on-night-3: #9fadc9;
  --focus-on-night: #9db8ff;
  --ink: #0f1a33;
  --ink-2: #3f4b66;
  --ink-3: #5b6680;
  --line: #e2e8f3;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --sun: #ffb020;            /* 小面積のアクセントのみ（文字色には使わない） */
  --sun-tint: #fff1d6;
  --mint: #0b7356;
  --red: #c9343f;
  --line-green: #06c755;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 51, .06), 0 4px 12px -4px rgba(15, 26, 51, .08);
  --shadow: 0 2px 4px rgba(15, 26, 51, .04), 0 18px 40px -16px rgba(15, 26, 51, .18);
  --shadow-lg: 0 4px 8px rgba(15, 26, 51, .04), 0 40px 80px -32px rgba(15, 26, 51, .28);

  --header-h: 72px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "YuGothic", Meiryo, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 2. Base / utilities ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.85; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "palt"; letter-spacing: .02em; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; padding: 8px 16px; border-radius: 8px; background: var(--navy); color: #fff; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.sp-only { display: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 860px; }

/* ---------- 3. Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px;
  padding: 12px 28px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 16px 36px; font-size: 17px; }
.btn-xl { min-height: 72px; padding: 20px 52px; font-size: 20px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(36, 83, 230, .8); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(36, 83, 230, .9); }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand-tint-2); }
.btn-secondary:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); }
.btn-white:hover { transform: translateY(-2px); background: var(--brand-tint); }
.btn:active { transform: translateY(0); }
.arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
button:disabled, .btn:disabled { cursor: not-allowed; opacity: .6; transform: none; box-shadow: none; }

.demo-badge {
  flex: none; display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.7; letter-spacing: .04em;
  color: #6e4300; background: var(--sun-tint); border: 1px solid #f3cf87;
}
.note { margin-top: 32px; font-size: 13px; line-height: 1.8; color: var(--ink-3); }
.center { text-align: center; }

/* スクロールで表示（JSの初期化が終わったときだけ隠す） */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 4. Header / navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .92); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 26, 51, .35); }
/* ヘッダー：暗い背景。ロゴは白・シルバーの画像 */
.site-header { background: rgba(11, 22, 49, .96); }
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, .08); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .6); }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--focus-on-night); }
.brand-logo { display: block; width: auto; height: 34px; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.brand-name { font-size: 18px; }
.gnav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.gnav ul { display: flex; gap: 26px; }
.gnav a:not(.btn) { position: relative; font-size: 14px; font-weight: 700; color: var(--on-night-2); text-decoration: none; padding: 6px 0; }
.gnav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--focus-on-night); transform: scaleX(0); transition: transform .25s var(--ease); }
.gnav a:not(.btn):hover { color: #fff; }
.gnav a:not(.btn):hover::after { transform: scaleX(1); }
.gnav-cta { min-height: 44px; padding: 8px 22px; font-size: 14px; }
.header-cta, .menu-btn { display: none; }

/* ---------- 5. Sections ---------- */
.section { position: relative; padding: 136px 0; }
.section-soft { background: var(--bg-soft); }
.sec-head { max-width: 820px; margin-bottom: 64px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 800; letter-spacing: .12em; color: var(--brand); }
.sec-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
h1, h2, h3 { word-break: auto-phrase; }
.sec-title { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.45; font-weight: 800; letter-spacing: .03em; }
.sec-lead { margin-top: 24px; font-size: 17px; color: var(--ink-2); }

/* --- 01 Hero --- */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 112px; overflow: hidden; background: var(--night); color: var(--on-night); }
/* 背景のごく淡い光（ブランドブルー）。装飾は控えめに */
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(36, 83, 230, .22), transparent); pointer-events: none; }
.hero-inner { position: relative; }
.hero .wrap, .site-header .wrap { max-width: 1320px; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-areas: "copy media" "actions media";
  grid-template-rows: auto 1fr; column-gap: clamp(32px, 4vw, 56px); align-items: start;
}
.hero-copy { grid-area: copy; padding-top: 24px; }
.hero-media { grid-area: media; align-self: center; min-width: 0; }
/* 薄いブルーの背景は動画を包む要素に付け、どの画面幅でも動画との余白を均等に保つ */
.video-stage { padding: clamp(20px, 2.6vw, 36px); border-radius: clamp(28px, 3vw, 40px); background: var(--night-2); border: 1px solid rgba(255, 255, 255, .08); }
.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; align-self: start; }
.hero-eyebrow { display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(157, 184, 255, .4); font-size: 14px; font-weight: 700; color: #c9d7ff; }
.hero-title { margin-top: 28px; font-size: clamp(40px, 4.1vw, 58px); line-height: 1.25; font-weight: 900; letter-spacing: .04em; }
.hero-lead { margin-top: 28px; font-size: clamp(16px, 1.4vw, 19px); line-height: 2; font-weight: 600; color: var(--on-night-2); }
.hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.hero .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.hero .btn-primary { box-shadow: 0 12px 28px -12px rgba(36, 83, 230, .9); }

.video-card {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: #080f22; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .1);
}
.video-el { width: 100%; height: 100%; object-fit: contain; background: #080f22; }
.video-open {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 18px;
  border: 0; background: transparent; cursor: pointer;
}
.video-open-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .96); color: var(--navy); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm);
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.video-open-chip svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--brand); fill: #fff; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.video-open-chip svg .wave { fill: none; }
.video-open:hover .video-open-chip, .video-open:focus-visible .video-open-chip { background: var(--brand); color: #fff; transform: translateY(-2px); }
.video-open:hover .video-open-chip svg { background: #fff; fill: var(--brand); stroke: var(--brand); }
.video-open:focus-visible { outline-offset: -4px; border-radius: var(--radius-lg); }
.video-toggle {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(15, 26, 51, .78); cursor: pointer; transition: background-color .2s;
}
.video-toggle:hover { background: var(--navy); }
.video-toggle svg { width: 20px; height: 20px; fill: #fff; }
.video-toggle[data-state="playing"] .i-play, .video-toggle[data-state="paused"] .i-pause { display: none; }
.video-fallback {
  position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .95); font-size: 13px; color: var(--ink-2);
}
.video-noscript { position: absolute; right: 16px; bottom: 16px; padding: 8px 16px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; }
html:not(.js) .video-open, html:not(.js) .video-toggle { display: none; }
.video-card.is-failed .video-open, .video-card.is-failed .video-toggle { display: none; }
.video-caption { margin-top: 12px; font-size: 13px; color: var(--on-night-3); text-align: center; }

/* --- 02 Problem --- */
.worries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.worry {
  display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 32px 18px 28px; text-align: center;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.worry-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-tint); }
.worry-ic svg, .f-ic svg, .step-ic svg { width: 32px; height: 32px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.worry p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.worry strong { display: block; font-size: 16px; color: var(--ink); }

.scatter {
  margin-top: 64px; display: grid; grid-template-columns: 1fr 56px 1fr; align-items: stretch; gap: 16px;
}
.scatter-panel { display: flex; flex-direction: column; align-items: center; padding: 36px 28px 32px; border-radius: var(--radius-lg); text-align: center; }
.scatter-panel.before { background: var(--bg-soft); }
.scatter-panel.after { background: var(--brand-tint); }
.scatter-tag { font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--ink-3); }
.after .scatter-tag { color: var(--brand); }
.scatter-text { margin-top: 20px; font-size: 18px; font-weight: 800; line-height: 1.6; }
.scatter-arrow { display: grid; place-items: center; }
.scatter-arrow svg { width: 48px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.orbit { position: relative; width: min(100%, 340px); aspect-ratio: 1 / .8; margin-top: 16px; }
.o-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.o-lines path { fill: none; stroke: #b9c3d6; stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.o-node, .o-center { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; }
.o-node { padding: 6px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.n1 { left: 17%; top: 20%; } .n2 { left: 83%; top: 20%; } .n3 { left: 13%; top: 64%; } .n4 { left: 87%; top: 64%; } .n5 { left: 50%; top: 88%; }
.o-center { left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; box-shadow: 0 0 0 8px rgba(15, 26, 51, .08); }
.stack { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
.s-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.s-row i { font-style: normal; padding: 5px 12px; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.s-down { width: 2px; height: 22px; background: var(--brand); border-radius: 2px; position: relative; }
.s-down::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 8px; height: 8px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateX(-50%) rotate(45deg); }
.s-ai { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: #fff; font-weight: 800; color: var(--brand); box-shadow: var(--shadow-sm); }
.s-boss { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; box-shadow: 0 0 0 8px rgba(36, 83, 230, .15); position: relative; transition: box-shadow .4s; }
.act-no { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--ink-3); color: #fff; font-size: 12px; vertical-align: 1px; }
.after .act-no { background: var(--brand); }
.o-runner, .o-bubble, .s-card, .s-flow b { display: none; }
.o-status { min-height: 1.6em; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.o-status:empty { visibility: hidden; }
/* 完成形（JSが無い・動きを減らす設定）：社長に要点が届いた状態 */
.s-boss::after {
  content: "✓"; position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--mint); color: #fff; font-size: 14px; font-weight: 900; border: 2px solid #fff;
}

/* ---- 図解アニメーション（.scatter.is-anim のときだけ） ---- */
.scatter.is-anim .scatter-panel { transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .5s; }
.scatter.is-anim[data-phase="before"] .after, .scatter.is-anim[data-phase="after"] .before { opacity: .45; transform: scale(.98); }
.scatter.is-anim[data-phase="before"] .before, .scatter.is-anim[data-phase="after"] .after { box-shadow: 0 20px 40px -24px rgba(15, 26, 51, .35); }
.scatter.is-anim .scatter-arrow svg { transition: opacity .4s; }
.scatter.is-anim[data-phase="before"] .scatter-arrow svg { opacity: .3; }
.scatter.is-anim .s-boss::after { transform: scale(0); transition: transform .4s var(--ease); }
.scatter.is-anim .s-boss.is-done::after { transform: scale(1); }
.scatter.is-anim .s-boss.is-done { box-shadow: 0 0 0 8px rgba(15, 138, 102, .2); }
/* 1幕：社長が各ツールを確認して回る */
.o-node { transition: background-color .3s, border-color .3s, transform .3s var(--ease), color .3s; }
.o-node.is-active { background: var(--sun-tint); border-color: var(--sun); color: #6e4300; transform: translate(-50%, -50%) scale(1.1); }
.o-node.is-done { color: #9aa3b5; }
.o-lines .ol { transition: stroke .3s; }
.o-lines .ol.is-active { stroke: var(--sun); stroke-width: 2.5; animation: olFlow .5s linear infinite; }
@keyframes olFlow { to { stroke-dashoffset: -18; } }
.scatter.is-anim .o-runner {
  display: block; position: absolute; z-index: 1; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--navy); box-shadow: 0 0 0 4px rgba(15, 26, 51, .15); opacity: 0; transition: left .4s var(--ease), top .4s var(--ease), opacity .2s;
}
.scatter.is-anim .o-runner.is-on { opacity: 1; }
.scatter.is-anim .o-bubble {
  display: block; position: absolute; z-index: 3; left: 50%; top: 50%; padding: 6px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: 12.5px; font-weight: 700; white-space: nowrap; color: var(--ink);
  transform: translate(-50%, -84px) scale(.9); opacity: 0; transition: opacity .25s, transform .25s var(--ease);
}
.scatter.is-anim .o-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.scatter.is-anim .o-bubble.is-show { opacity: 1; transform: translate(-50%, -84px); }
.o-center { z-index: 2; transition: box-shadow .3s; }
.o-center.is-busy { animation: busy .45s ease-in-out; }
@keyframes busy { 40% { box-shadow: 0 0 0 14px rgba(255, 176, 32, .28); } }
.before.is-tired .o-center { box-shadow: 0 0 0 8px rgba(201, 52, 63, .18); animation: tired 1s ease-in-out infinite; }
@keyframes tired { 50% { box-shadow: 0 0 0 14px rgba(201, 52, 63, .1); } }
.before.is-tired .o-lines .ol { stroke: #e3a3a8; }
.before.is-tired .o-status { color: var(--red); }
/* 2幕：情報がAI秘書に集まり、社長には要点だけが届く */
.s-row i { transition: background-color .3s, color .3s, transform .3s var(--ease); }
.s-row i.is-send { background: var(--brand); color: #fff; transform: translateY(-2px); }
.s-flow { height: 34px; }
.scatter.is-anim .after.is-gather .s-flow b {
  display: block; position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--brand);
  animation: dotFall .7s linear infinite;
}
.scatter.is-anim .after.is-gather .s-flow b:nth-child(2) { animation-delay: .23s; }
.scatter.is-anim .after.is-gather .s-flow b:nth-child(3) { animation-delay: .46s; }
@keyframes dotFall { from { transform: translateY(-4px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(30px); opacity: 0; } }
.s-ai { transition: box-shadow .3s, transform .3s var(--ease); }
.after.is-sort .s-ai { box-shadow: 0 0 0 6px rgba(36, 83, 230, .18), var(--shadow-sm); transform: scale(1.06); }
.after.is-sort .s-ai svg { animation: spinOnce .9s var(--ease); }
@keyframes spinOnce { to { transform: rotate(360deg); } }
.s-deliver { height: 40px; }
.scatter.is-anim .s-card {
  display: inline-flex; position: absolute; z-index: 2; left: 50%; top: -6px; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--brand-tint-2); box-shadow: var(--shadow-sm); font-size: 12.5px; font-weight: 800; color: var(--brand); white-space: nowrap;
  transform: translateX(-50%); opacity: 0;
}
.s-card svg { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.scatter.is-anim .after.is-deliver .s-card { animation: deliver 1.1s var(--ease) forwards; }
@keyframes deliver { 0% { opacity: 0; transform: translate(-50%, -6px); } 20% { opacity: 1; } 75% { opacity: 1; transform: translate(-50%, 34px); } 100% { opacity: 0; transform: translate(-50%, 46px) scale(.8); } }
.after .o-status { color: var(--brand); }
.after.is-done-text .o-status { color: var(--mint); }

/* --- 03 Change（一日のストーリー） --- */
.day { position: relative; display: grid; gap: 20px; max-width: 1040px; margin: 0 auto; }
.day::before { content: ""; position: absolute; left: 59px; top: 24px; bottom: 24px; width: 2px; background: var(--brand-tint-2); }
.day-item { position: relative; display: grid; grid-template-columns: 120px 1fr 1fr; gap: 16px; align-items: stretch; }
.day-time { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.day-time span { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 4px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-tint-2); font-size: 20px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.day-before, .day-after { padding: 22px 26px; border-radius: var(--radius); }
.day-before { background: #fff; border: 1px dashed #c8d0de; }
.day-before p { margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.day-after { background: #fff; border: 2px solid var(--brand); box-shadow: var(--shadow); }
.day-after p { margin-top: 8px; font-size: 16px; font-weight: 700; }
.tag-before, .tag-after { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tag-before { background: var(--bg-soft); color: var(--ink-3); }
.tag-after { background: var(--brand); color: #fff; }

/* --- 04 LINE --- */
.line-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.ask-chips li { padding: 10px 18px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.line-demo { display: flex; flex-direction: column; align-items: center; }
.phone {
  width: 100%; max-width: 420px; border-radius: 44px; padding: 12px; background: var(--navy); box-shadow: var(--shadow-lg);
}
.phone-head {
  display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; border-radius: 34px 34px 0 0; background: #fff; border-bottom: 1px solid var(--line);
}
.phone-head b { font-size: 16px; }
.phone-head .demo-badge { margin-left: auto; }
.phone-back { font-size: 26px; line-height: 1; color: var(--ink-3); }
.phone-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; }
.phone-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 22px; background: #b9cbe7; min-height: 560px; }
.chat-date { text-align: center; }
.chat-date span { display: inline-block; padding: 2px 12px; border-radius: 999px; background: rgba(15, 26, 51, .22); color: var(--navy); font-size: 12px; font-weight: 700; }
.chat { display: flex; align-items: flex-end; gap: 6px; }
.chat.me { flex-direction: row-reverse; }
.bubble { max-width: 82%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.7; }
.chat.me .bubble { background: #8fe08a; border-top-right-radius: 6px; }
.chat.ai .bubble { background: #fff; border-top-left-radius: 6px; }
.bubble b { color: var(--brand); }
.chat-time { flex: none; font-size: 11px; color: #22304d; }
.chat-card { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); }
.cc-label { font-size: 12px; color: var(--ink-3); }
.cc-num { font-size: 30px; font-weight: 900; line-height: 1.3; font-variant-numeric: tabular-nums; }
.cc-num small { font-size: 14px; margin-left: 2px; }
.cc-diff { font-size: 12px; font-weight: 700; color: var(--mint); }
.cc-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 8px; }
.cc-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--brand-tint-2); transform-origin: bottom; }
.cc-bars i:last-child { background: var(--brand); }
.chat-file, .ui-file { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); font-weight: 700; font-size: 14px; }
.cf-ic { flex: none; display: grid; place-items: center; width: 36px; height: 40px; border-radius: 6px; background: #fde8e8; color: #a3242d; font-size: 11px; font-weight: 800; }
.phone-input { padding: 12px 16px 22px; border-radius: 0 0 34px 34px; background: #fff; }
.phone-input span { display: block; padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); font-size: 13px; color: var(--ink-3); }
.line-demo .note { margin-top: 18px; }
/* 会話の順次表示（JS有効時のみ） */
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 20px; border-top-left-radius: 6px; background: #fff; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8d9bb8; animation: typing 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.js .phone-body.is-seq .chat { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .phone-body.is-seq .chat.is-in { opacity: 1; transform: none; }
.js .phone-body.is-seq .chat:not(.is-in) .cc-bars i { transform: scaleY(0); }
.cc-bars i { transition: transform .8s var(--ease) .2s; }

/* --- 05 Features --- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { display: flex; flex-direction: column; padding: 32px 30px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.f-head { display: flex; align-items: center; gap: 14px; }
.f-ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-tint); }
.f-ic svg { width: 28px; height: 28px; }
.f-head h3 { font-size: 20px; line-height: 1.4; }
.f-scene { margin-top: 20px; font-size: 16px; font-weight: 800; color: var(--brand); }
.f-text { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.f-ui { margin-top: auto; padding-top: 22px; }
.f-ui > div { padding: 14px; border-radius: 14px; background: var(--bg-soft); font-size: 13px; }
.ui-sched, .ui-mail, .ui-num, .ui-report { display: grid; gap: 6px; }
.ui-sched span, .ui-mail span, .ui-num span { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: #fff; }
.ui-sched b { color: var(--brand); font-variant-numeric: tabular-nums; }
.ui-sched .free { background: transparent; border: 1px dashed var(--brand-tint-2); color: var(--ink-3); }
.ui-mail span { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.5; }
.ui-mail b { font-size: 12px; }
.ui-num span { justify-content: space-between; color: var(--ink-3); }
.ui-num b { font-size: 16px; color: var(--ink); }
.ui-files, .ui-report { display: grid; gap: 6px; }
.uf-q { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.uf-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #fff; }
.uf-item .cf-ic { width: 30px; height: 34px; font-size: 10px; }
.uf-item .cf-ic.doc { background: #e3ecff; color: var(--brand-strong); }
.uf-item b { display: block; font-size: 13px; line-height: 1.45; }
.uf-item small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.4; }
.ui-report b { margin-bottom: 2px; font-size: 13px; }
.ur-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--ink-2); }
.ur-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.ur-dot.blue { background: var(--brand); } .ur-dot.amber { background: var(--sun); } .ur-dot.red { background: var(--red); }
/* 経営ダッシュボードのミニ画面：数字・棒グラフ（計画と実績）・円グラフ（経費内訳） */
.ui-dash { display: grid; gap: 8px; }
.ud-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ud-kpis span { padding: 6px 8px; border-radius: 8px; background: #fff; line-height: 1.35; min-width: 0; }
.ud-kpis small { display: block; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.ud-kpis b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ud-kpis span:first-child b { color: var(--brand); }
.ud-charts { display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #fff; }
.ud-bars { display: flex; align-items: flex-end; gap: 7px; height: 60px; border-bottom: 1px solid var(--line); }
.ud-bars i { flex: 1; display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.ud-bars i::before, .ud-bars i::after { content: ""; flex: 1; border-radius: 3px 3px 0 0; transform-origin: bottom; transition: transform .9s var(--ease); }
.ud-bars i::before { height: var(--p); background: #c9d1de; }
.ud-bars i::after { height: var(--a); background: var(--brand); }
.ud-bars i:nth-child(2)::before, .ud-bars i:nth-child(2)::after { transition-delay: .06s; }
.ud-bars i:nth-child(3)::before, .ud-bars i:nth-child(3)::after { transition-delay: .12s; }
.ud-bars i:nth-child(4)::before, .ud-bars i:nth-child(4)::after { transition-delay: .18s; }
.ud-bars i:nth-child(5)::before, .ud-bars i:nth-child(5)::after { transition-delay: .24s; }
.ud-bars i:nth-child(6)::before, .ud-bars i:nth-child(6)::after { transition-delay: .3s; }
.js .feature:not(.is-in) .ud-bars i::before, .js .feature:not(.is-in) .ud-bars i::after { transform: scaleY(0); }
.ud-donut {
  position: relative; width: 64px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(#1f63ad 0 52%, #64a5e0 0 74%, #6cc0a0 0 88%, #e8b26a 0 100%);
  transition: transform .9s var(--ease) .2s, opacity .9s var(--ease) .2s;
}
.ud-donut::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #fff; }
.js .feature:not(.is-in) .ud-donut { transform: rotate(-90deg) scale(.6); opacity: 0; }
.ud-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--ink-3); }
.ud-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ud-legend span::before { content: ""; width: 10px; height: 8px; border-radius: 2px; }
.lg-plan::before { background: #c9d1de; }
.lg-act::before { background: var(--brand); }
.lg-cost::before { width: 9px !important; height: 9px !important; border-radius: 50% !important; background: conic-gradient(#1f63ad 0 52%, #64a5e0 0 74%, #6cc0a0 0 88%, #e8b26a 0 100%); }

/* --- 連携ツール（暗い帯） --- */
.tools { background: var(--night); color: var(--on-night); overflow: hidden; }
.tools .sec-label { color: var(--focus-on-night); }
.tools .sec-title { color: #fff; }
.tools .sec-lead { color: var(--on-night-2); }
.tools :focus-visible { outline-color: var(--focus-on-night); }
.tool-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; }
.tool-stats > div { display: flex; flex-direction: column; padding: 24px 16px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.tool-stats dt { font-size: 14px; font-weight: 700; color: var(--on-night-3); }
/* ラベルの行数が違っても数字の高さがそろうよう、数字はカードの下端に置く */
.tool-stats dd { margin: auto 0 0; padding-top: 4px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.tool-stats b { font-size: clamp(48px, 6vw, 80px); font-weight: 900; line-height: 1.1; letter-spacing: .02em; color: #fff; font-variant-numeric: tabular-nums; }
.tool-stats dd span { font-size: 18px; font-weight: 700; color: var(--on-night-2); white-space: nowrap; }
.tool-stats > div:last-child b { color: #9db8ff; }
/* 流れるツール名（装飾。JSで生成） */
.tool-marquee { display: grid; gap: 12px; margin: 64px 0 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tool-marquee:empty { display: none; }
.tm-row { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.tm-row.rev { animation-direction: reverse; animation-duration: 80s; }
.tool-marquee:hover .tm-row { animation-play-state: paused; }
.tm-row span { flex: none; margin-right: 12px; padding: 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: 15px; font-weight: 700; color: #dfe6f7; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* 状態の見方とカテゴリ */
.tool { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1.5px solid transparent; font-size: 13px; font-weight: 700; line-height: 1.4; }
.tool.ok { background: var(--brand-tint); color: var(--brand-strong); }
.tool.cond { border-color: #9db8ff; color: #fff; }
.tool.unk { border: 1px dashed rgba(255, 255, 255, .4); color: var(--on-night-2); }
.tool-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-bottom: 32px; }
.tool-legend li { display: inline-flex; align-items: center; gap: 10px; }
.tool-legend b { font-size: 18px; font-variant-numeric: tabular-nums; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tool-cat { padding: 22px 20px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .3s, background-color .3s; }
.tool-cat:hover { border-color: rgba(157, 184, 255, .45); background: rgba(255, 255, 255, .06); }
.tc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tc-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(36, 83, 230, .3); }
.tc-ic svg { width: 22px; height: 22px; fill: none; stroke: #c9d7ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-head h3 { flex: 1; font-size: 16px; line-height: 1.4; color: #fff; }
.tc-n { flex: none; min-width: 28px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 800; text-align: center; color: var(--on-night-2); }
.tool-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; padding: 24px 28px; border-radius: var(--radius); background: rgba(36, 83, 230, .18); border: 1px solid rgba(157, 184, 255, .3); }
.tool-more { color: var(--on-night-2); }
.tool-more b { display: block; color: #fff; font-size: 18px; }
.tool-note { margin-top: 24px; font-size: 12.5px; line-height: 1.8; color: var(--on-night-3); }

/* --- 06 Dashboard（デモ画面のスクリーンショット） --- */
.dash { max-width: 1120px; margin: 0 auto; }
.dash-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.dash-tab {
  min-height: 44px; padding: 8px 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.dash-tab:hover { border-color: var(--brand); color: var(--brand); }
.dash-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.dash-frame { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.dash-bar { display: flex; align-items: center; gap: 14px; padding: 12px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 11px; height: 11px; border-radius: 50%; background: #d3dae6; }
.dash-title { font-size: 14px; font-weight: 800; }
.dash-bar .demo-badge { margin-left: auto; }
.dash-panel.is-entering { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.shot-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #f3f4f6; cursor: zoom-in; }
.shot-zoom img { width: 100%; height: auto; aspect-ratio: 1920 / 911; }
.shot-zoom-chip {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px 6px 10px;
  border-radius: 999px; background: rgba(15, 26, 51, .82); color: #fff; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .2s;
}
.shot-zoom-chip svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.shot-zoom:hover .shot-zoom-chip, .shot-zoom:focus-visible .shot-zoom-chip { opacity: 1; }
.shot-zoom:focus-visible { outline-offset: -4px; }
html:not(.js) .shot-zoom { cursor: default; }
html:not(.js) .shot-zoom-chip { display: none; }
.dash-panel-cap { padding: 16px 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.dash-panel-cap b { margin-right: 12px; color: var(--ink); }
.dash-cap { margin-top: 18px; font-size: 13px; color: var(--ink-3); text-align: center; }
html:not(.js) .dash-panel[hidden] { display: block !important; border-top: 1px solid var(--line); }
html:not(.js) .dash-tabs { display: none; }

.shot-modal { width: min(1600px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 16px; background: var(--navy); overflow: hidden; }
.shot-modal::backdrop { background: rgba(6, 11, 26, .85); }
.shot-modal[open] { animation: modalIn .3s var(--ease); }
.shot-close { position: absolute; right: 12px; top: 12px; z-index: 2; background: var(--navy); box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(0, 0, 0, .35); }
.shot-close:hover { background: var(--brand); }
.shot-scroll { max-height: calc(100dvh - 80px); overflow: auto; overscroll-behavior: contain; }
.shot-scroll img { width: 100%; height: auto; }
.shot-hint { display: none; padding: 10px 16px; font-size: 13px; color: #c6d0e6; }

/* --- 07 Flow --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; padding: 36px 24px 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow-sm); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -19px; z-index: 1; width: 14px; height: 14px;
  border-top: 3px solid var(--brand); border-right: 3px solid var(--brand); transform: translateY(-50%) rotate(45deg);
}
.step-no { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--brand); }
.step-ic { display: grid; place-items: center; width: 72px; height: 72px; margin-top: 16px; border-radius: 50%; background: var(--brand-tint); }
.step h3 { margin-top: 20px; font-size: 18px; line-height: 1.5; }
.step p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); text-align: left; }

/* --- 08 Price --- */
.price-card {
  position: relative; max-width: 680px; margin: 0 auto; padding: 64px 56px 56px; text-align: center;
  border-radius: 32px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden;
}
.price-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--brand); }
.price-name { font-size: 20px; font-weight: 800; }
.price-main { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 24px; line-height: 1; }
.price-period { font-size: 22px; font-weight: 800; color: var(--ink-2); }
.price-num { font-size: clamp(56px, 9vw, 96px); font-weight: 900; letter-spacing: .01em; color: var(--brand); font-variant-numeric: tabular-nums; }
.price-unit { font-size: 28px; font-weight: 800; }
.price-unit small { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.price-tax { display: inline-block; margin-top: 24px; padding: 8px 22px; border-radius: 999px; background: var(--bg-soft); font-size: 17px; font-weight: 700; color: var(--ink-2); }
.price-btn { margin-top: 40px; min-width: min(100%, 360px); }
.price-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* --- 09 FAQ --- */
.faq { display: grid; gap: 14px; }
.faq details { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.faq details[open] { border-color: var(--brand-tint-2); box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative; display: block; padding: 24px 64px 24px 64px; list-style: none; cursor: pointer; font-size: 17px; font-weight: 800; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 24px; top: 22px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; }
.faq summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: linear-gradient(var(--brand), var(--brand)) center / 16px 2px no-repeat, linear-gradient(var(--brand), var(--brand)) center / 2px 16px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq-a { position: relative; padding: 0 28px 26px 64px; }
.faq-a::before { content: "A"; position: absolute; left: 24px; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sun-tint); color: #6e4300; font-weight: 800; font-size: 14px; }
.faq-a p { color: var(--ink-2); font-size: 15.5px; }
.js .faq details[open] .faq-a { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --- 10 Closing --- */
.closing { position: relative; padding: 128px 0; background: var(--navy); color: #fff; overflow: hidden; text-align: center; }
.closing::before, .closing::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.closing::before { width: 520px; height: 520px; left: -160px; top: -220px; background: rgba(36, 83, 230, .35); }
.closing::after { width: 360px; height: 360px; right: -100px; bottom: -200px; background: rgba(127, 166, 255, .16); }
.closing-inner { position: relative; z-index: 1; }
.closing-title { font-size: clamp(32px, 5vw, 60px); line-height: 1.35; font-weight: 900; letter-spacing: .04em; }
.closing-lead { margin-top: 28px; font-size: clamp(16px, 1.6vw, 19px); font-weight: 600; color: #d3dcf0; }
.closing .btn { margin-top: 48px; }

/* --- Contact --- */
.contact-section { background: var(--bg-soft); }
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.contact-steps { margin-top: 36px; display: grid; gap: 14px; }
.contact-steps li { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.contact-steps span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-tint-2); color: var(--brand); font-weight: 800; }
.contact-form { display: grid; gap: 20px; padding: 40px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.contact-availability { font-size: 14px; padding: 12px 16px; border-radius: 12px; background: var(--sun-tint); color: #5c3800; font-weight: 600; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.field em { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--brand); padding: 1px 8px; border-radius: 4px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid #c9d2e2; border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(36, 83, 230, .16); }
.field input:disabled, .field textarea:disabled { background: var(--bg-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field ::placeholder { color: #66738b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0; accent-color: var(--brand); }
.consent:has([aria-invalid="true"]) { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
.form-status { font-size: 14px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: var(--mint); }
.form-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.form-note a, a.form-note { color: var(--brand); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- 6. Footer / floating CTA / video modal ---------- */
.site-footer { padding: 56px 0 calc(56px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; }
.footer-meta { flex: 1 1 360px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.footer-meta a { color: var(--brand); text-underline-offset: 3px; }
.footer-note { color: var(--ink-3); }
.copy { font-size: 12px; color: var(--ink-3); }

.float-cta { display: none; }

.video-modal {
  width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px;
  background: var(--navy); color: #fff; overflow: auto;
}
.video-modal::backdrop { background: rgba(6, 11, 26, .82); }
.video-modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.vm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 24px; }
.vm-head h2 { font-size: 16px; }
.vm-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); cursor: pointer; }
.vm-close:hover { background: rgba(255, 255, 255, .2); }
.vm-close svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.vm-frame { aspect-ratio: 16 / 9; background: #000; }
.vm-video { width: 100%; height: 100%; object-fit: contain; }
.vm-note { padding: 14px 24px 18px; font-size: 13px; color: #c6d0e6; }
body.modal-open { overflow: hidden; }

/* ---------- 7. Privacy page ---------- */
.privacy-page { padding: 48px 32px 80px; }
.privacy-page h1 { margin-top: 24px; font-size: clamp(24px, 5vw, 36px); line-height: 1.5; }
.privacy-page h2 { margin-top: 36px; font-size: 20px; }
.privacy-page p { margin-top: 16px; }
.privacy-page > a { color: var(--brand); font-weight: 700; }
.privacy-list { margin-top: 12px; padding-left: 1.4em; list-style: disc; }
.privacy-list li { margin-top: 4px; }
.privacy-date { color: var(--ink-3); font-size: 14px; }

/* ---------- 8. Responsive ---------- */
@media (max-width: 1120px) {
  .gnav ul { gap: 18px; }
  .worries { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 24px; }
  .header-cta { display: inline-flex; margin-left: auto; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -8px; padding: 0 11px; border: 0; background: transparent; cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .gnav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    margin: 0; flex-direction: column; align-items: stretch; gap: 24px; padding: 16px 24px 40px; overflow-y: auto;
    background: var(--night); border-top: 1px solid rgba(255, 255, 255, .08);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .gnav.is-open { opacity: 1; visibility: visible; transform: none; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li a:not(.btn) { display: block; padding: 18px 4px; font-size: 17px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .gnav li a:not(.btn)::after { display: none; }
  .gnav-cta { min-height: 56px; font-size: 16px; }
  body.nav-open { overflow: hidden; }
  /* JSが無い・初期化前でもメニューを読めるようにする */
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 12px 24px 0; }
  html:not(.js) .gnav { position: static; height: auto; visibility: visible; opacity: 1; transform: none; flex-basis: 100%; padding: 0 0 16px; border: 0; }
  html:not(.js) .gnav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  html:not(.js) .gnav li a:not(.btn) { padding: 6px 0; font-size: 14px; border: 0; }
  html:not(.js) .menu-btn, html:not(.js) .header-cta { display: none; }
  html:not(.js) .hero { padding-top: 40px; }

  .section { padding: 96px 0; }
  .sec-head { margin-bottom: 48px; }
  .hero { padding: calc(var(--header-h) + 40px) 0 80px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "media" "actions"; grid-template-rows: auto; }
  .hero-copy { padding-top: 0; }
  .hero-media { width: 100%; max-width: 760px; margin: 40px auto 0; }
  .hero-actions { margin-top: 32px; }
  .scatter { grid-template-columns: 1fr; }
  .scatter-arrow svg { transform: rotate(90deg); }
  .day::before { left: 39px; }
  .day-item { grid-template-columns: 80px 1fr; }
  .day-time { grid-row: span 2; justify-content: flex-start; }
  .day-time span { width: 64px; height: 64px; font-size: 16px; }
  .line-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pc-only { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .sp-only { display: inline; }
  .section { padding: 80px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-title { font-size: clamp(25px, 7.2vw, 32px); }
  .sec-lead { font-size: 15.5px; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-logo { height: 26px; }
  .header-cta { min-height: 40px; padding: 6px 14px; font-size: 13px; }
  .hero { padding: calc(var(--header-h) + 20px) 0 48px; }
  .hero-eyebrow { font-size: 12px; padding: 4px 12px; }
  .hero-title { margin-top: 14px; font-size: clamp(32px, 9.6vw, 42px); line-height: 1.22; }
  .hero-lead { margin-top: 12px; font-size: 15px; line-height: 1.8; }
  .hero-media { margin-top: 20px; }
  .video-stage { padding: 10px; border-radius: 22px; }
  /* 操作ボタンは映像に重ねず、動画の下に並べる */
  .video-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; aspect-ratio: auto; overflow: visible; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .video-el { grid-column: 1 / -1; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; box-shadow: var(--shadow); }
  .video-toggle { position: static; grid-row: 2; grid-column: 1; }
  .video-open { position: static; grid-row: 2; grid-column: 2; padding: 0; align-items: center; }
  .video-open-chip { min-height: 44px; padding: 6px 16px 6px 8px; background: #fff; }
  .video-fallback { position: static; grid-column: 1 / -1; }
  .video-caption { margin-top: 8px; font-size: 11.5px; }
  .cap-dur { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 18px; gap: 4px; }
  .hero-actions .btn-primary { width: 100%; min-height: 58px; font-size: 17px; }
  .hero-actions .btn-secondary { min-height: 44px; padding: 8px; border-color: transparent; background: transparent; color: #fff; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
  .video-toggle { background: rgba(255, 255, 255, .14); }
  .btn-xl { width: 100%; min-height: 64px; padding: 18px 24px; font-size: 18px; }
  .worries { grid-template-columns: 1fr; gap: 10px; }
  .worry { flex-direction: row; text-align: left; padding: 16px 18px; gap: 16px; }
  .worry-ic { flex: none; width: 52px; height: 52px; }
  .worry-ic svg { width: 26px; height: 26px; }
  .worry strong { display: inline; }
  .scatter { margin-top: 40px; }
  .scatter-panel { padding: 28px 16px; }
  .o-node { font-size: 12px; padding: 4px 10px; }
  .o-center, .s-boss { width: 64px; height: 64px; font-size: 14px; }
  .scatter.is-anim .o-bubble { font-size: 12px; transform: translate(-50%, -76px) scale(.9); }
  .scatter.is-anim .o-bubble.is-show { transform: translate(-50%, -76px); }
  .o-status { font-size: 13px; }
  .day::before { display: none; }
  .day-item { grid-template-columns: 1fr; gap: 10px; }
  .day-time { grid-row: auto; flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 14px; }
  .day-time span { width: auto; height: auto; margin: 0; padding: 2px 14px; border-radius: 999px; font-size: 16px; }
  .day-before, .day-after { padding: 16px 18px; }
  .day-item + .day-item { margin-top: 16px; }
  .ask-chips li { font-size: 14px; padding: 8px 14px; }
  .phone { border-radius: 36px; padding: 10px; }
  .phone-head { border-radius: 28px 28px 0 0; padding: 14px 14px 12px; }
  .phone-input { border-radius: 0 0 28px 28px; }
  .phone-body { min-height: 0; padding: 14px 10px 18px; }
  .bubble { font-size: 14.5px; max-width: 86%; }
  .features { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 24px 20px; }
  .dash-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; scrollbar-width: none; }
  .dash-tabs::-webkit-scrollbar { display: none; }
  .dash-tab { flex: none; padding: 8px 16px; font-size: 14px; }
  .dash-frame { border-radius: 16px; }
  .dash-bar { padding: 10px 14px; }
  .dash-title { display: none; }
  .shot-zoom-chip { opacity: 1; right: 8px; bottom: 8px; min-height: 32px; padding: 4px 10px 4px 8px; font-size: 12px; }
  .dash-panel-cap { padding: 14px 16px; font-size: 14px; }
  .dash-panel-cap b { display: block; margin: 0 0 2px; }
  .dash-cap { text-align: left; }
  .shot-modal { width: 100%; max-height: 100dvh; border-radius: 0; }
  .shot-scroll img { width: 1400px; max-width: none; }
  .shot-hint { display: block; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .tool-stats { gap: 8px; }
  .tool-stats > div { padding: 16px 6px 14px; border-radius: 14px; }
  .tool-stats dt { display: flex; align-items: center; justify-content: center; min-height: 3em; font-size: 11px; line-height: 1.5; }
  .tool-stats b { font-size: 40px; }
  .tool-stats dd span { font-size: 13px; }
  .tool-marquee { margin: 40px 0 36px; gap: 8px; }
  .tm-row span { padding: 7px 14px; font-size: 13px; margin-right: 8px; }
  .tool-legend { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tool-cat { padding: 18px 16px 20px; }
  .tool-foot { padding: 20px 18px; }
  .tool-foot .btn { width: 100%; }
  .step:not(:last-child)::after { display: block; top: auto; right: 50%; bottom: -22px; transform: translateX(50%) rotate(135deg); }
  .step { padding: 28px 20px; }
  .price-card { padding: 48px 20px 36px; border-radius: 24px; }
  .price-main { flex-direction: column; align-items: center; gap: 10px; }
  .price-num { font-size: clamp(52px, 16vw, 72px); }
  .price-unit { font-size: 22px; }
  .price-tax { font-size: 15px; padding: 8px 16px; }
  .price-btn { width: 100%; }
  .faq summary { padding: 20px 52px 20px 56px; font-size: 15.5px; }
  .faq summary::before { left: 16px; top: 19px; }
  .faq summary::after { right: 20px; }
  .faq-a { padding: 0 18px 22px 56px; }
  .faq-a::before { left: 16px; }
  .closing { padding: 88px 0; }
  .contact-form { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .video-modal { width: 100%; max-height: 100dvh; border-radius: 16px; }
  .vm-head { padding: 8px 8px 8px 16px; }

  .float-cta {
    position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 14px;
    border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; text-decoration: none;
    box-shadow: 0 14px 30px -10px rgba(36, 83, 230, .8);
    opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s, visibility .3s;
  }
  .float-cta.is-visible { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 360px) {
  .tool-stats > div { padding: 14px 4px 12px; }
  .tool-stats dt { min-height: 4.5em; font-size: 10.5px; }
  .tool-stats b { font-size: 32px; }
  .tool-stats dd { gap: 3px; }
  .tool-stats dd span { font-size: 11px; }
  .brand-name { font-size: 14px; }
  .header-cta { padding: 6px 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tm-row { animation: none; }
}
