/*
  FactLoop — Stripe系の明るく信頼できるライトテーマ。
*/
:root {
  --ink: #f6f8fc;     /* ページ背景（明るいグレー） */
  --ink-2: #eef2f8;   /* セクション別背景 */
  --surface: #ffffff; /* カード背景（白） */
  --line: #e4e9f0;    /* 境界線 */
  --line-2: #cdd6e3;  /* 入力枠など強めの境界 */
  --fog: #5b6677;     /* 補助テキスト（白地でコントラスト確保） */
  --mist: #36404f;    /* 本文 */
  --snow: #0e1b2e;    /* 見出し・最前景（濃紺） */
  --accent: #2563eb;  /* 信頼の青 */
  --accent-soft: #d7e3ff; /* 選択範囲などの淡い青 */
  --good: #15a34a;
  --warn: #c2780a;
  --bad: #dc2626;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.04);
  --shadow-md: 0 6px 24px rgba(16,24,40,0.08);
  --shadow-lg: 0 20px 60px rgba(16,24,40,0.18);
}

* { box-sizing: border-box; border-color: var(--line); }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: "Inter", "Noto Sans JP", ui-sans-serif, system-ui, -apple-system,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.01em;
  line-height: 1.85;
  overflow-x: hidden;
}
::selection { background: var(--accent-soft); color: var(--snow); }

h1, h2, h3, h4 { color: var(--snow); letter-spacing: 0.005em; line-height: 1.3; font-weight: 600; margin: 0; }
a { color: inherit; }
p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: 0; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* grid bg */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(14,27,46,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,27,46,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
}
.bg-radial { background: radial-gradient(120% 80% at 50% -10%, rgba(37,99,235,0.07) 0%, transparent 55%); }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; max-width: 64rem; margin: 0 auto; }
.brand { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; }
.brand b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--snow); }
.brand span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fog); }
.nav-cta { border: 1px solid var(--line-2); border-radius: 999px; padding: 0.35rem 1rem; font-size: 12px; color: var(--mist); text-decoration: none; transition: all 0.2s; }
.nav-cta:hover { border-color: var(--accent); color: var(--snow); }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-inner { position: relative; max-width: 64rem; margin: 0 auto; width: 100%; padding: 7rem 1.5rem 0; }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line-2); border-radius: 999px; padding: 0.25rem 0.75rem; font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--fog); }
.pulse { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { max-width: 48rem; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.2; letter-spacing: -0.01em; }
.hero-sub { margin-top: 1.5rem; font-size: 1.125rem; color: var(--fog); }
.hero-lead { margin-top: 2rem; max-width: 42rem; font-size: 17px; line-height: 2.25; color: var(--mist); }
.hero-lead em { font-style: normal; color: var(--snow); }

.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--snow); color: var(--ink); padding: 0.85rem 1.5rem; border-radius: 0.5rem; font-size: 15px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-accent { display: block; width: 100%; background: rgba(91,140,255,0.1); border: 1px solid var(--accent); color: var(--snow); padding: 0.85rem 1.5rem; border-radius: 0.5rem; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-accent:hover { background: rgba(91,140,255,0.2); }
.btn-accent:disabled { opacity: 0.5; }

/* section */
.section { position: relative; max-width: 64rem; margin: 0 auto; padding: 6rem 1.5rem; }
@media (min-width: 640px) { .section { padding: 8rem 1.5rem; } }
.eyebrow { display: flex; align-items: center; gap: 0.75rem; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 1.25rem; }
.eyebrow .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--accent); }
.section h2 { max-width: 48rem; font-size: clamp(1.875rem, 3.5vw, 2.25rem); line-height: 1.35; }
.lead { margin-top: 1.5rem; max-width: 42rem; font-size: 16px; line-height: 2.25; color: var(--mist); }
.lead + .lead { margin-top: 1.25rem; }
.lead strong, .lead .hi { color: var(--snow); font-weight: 600; }

/* grid of cells */
.cells { margin-top: 2.5rem; display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 0.75rem; overflow: hidden; }
@media (min-width: 640px) { .cells.c3 { grid-template-columns: repeat(3, 1fr); } .cells.c4 { grid-template-columns: repeat(4, 1fr); } }
.cell { background: var(--surface); padding: 1.5rem; }
.cell .t { font-size: 14px; font-weight: 500; color: var(--snow); }
.cell .d { margin-top: 0.5rem; font-size: 14px; line-height: 1.6; color: var(--fog); }
.cell .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* core cards */
.cards2 { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cards2 { grid-template-columns: 1fr 1fr; } }
.core { height: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 1rem; padding: 2rem; }
.core .no { font-family: var(--mono); font-size: 1.5rem; color: var(--accent); }
.core h3 { margin-top: 1rem; font-size: 1.125rem; line-height: 1.6; color: var(--snow); }
.core p { margin-top: 1rem; font-size: 15px; line-height: 2; color: var(--mist); }

.chips { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 14px; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 0.35rem 1rem; color: var(--mist); }
.arrow { color: var(--fog); }

.quote { margin-top: 2.5rem; border-left: 2px solid var(--accent); padding-left: 1.5rem; font-size: 1.125rem; line-height: 2.25; color: var(--snow); }
.loop-note { margin-top: 1.5rem; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.15em; color: var(--fog); }

/* faq */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; font-size: 15px; font-weight: 500; color: var(--snow); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { color: var(--fog); transition: transform 0.2s; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq p { margin-top: 0.75rem; max-width: 42rem; font-size: 15px; line-height: 2; color: var(--mist); }

/* diagnose section */
.diagnose { position: relative; scroll-margin-top: 4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); padding: 6rem 0; }
@media (min-width: 640px) { .diagnose { padding: 8rem 0; } }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--ink); }
.footer-grid { max-width: 64rem; margin: 0 auto; padding: 4rem 1.5rem; display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer p { margin-top: 1rem; max-width: 24rem; font-size: 14px; line-height: 1.7; color: var(--fog); }
.footer .right { } @media (min-width:640px){ .footer .right { text-align: right; } }
.footer .office { font-size: 14px; font-weight: 500; color: var(--snow); }
.footer address { margin-top: 0.5rem; font-style: normal; font-size: 14px; line-height: 1.7; color: var(--fog); }
.footer nav { margin-top: 1.25rem; display: flex; gap: 1.25rem; font-size: 12px; color: var(--fog); }
@media (min-width:640px){ .footer nav { justify-content: flex-end; } }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--mist); }
.copy { border-top: 1px solid var(--line); padding: 1.5rem 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--fog); }

/* ───────── 診断ウィジェット ───────── */
.dx { max-width: 48rem; margin: 0 auto; width: 100%; }
.dx-card { border: 1px solid var(--line); background: var(--surface); border-radius: 1rem; padding: 1.5rem; }
@media (min-width: 640px) { .dx-card { padding: 2.25rem; } }
.dx-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.dx-head h3 { font-size: 1.125rem; color: var(--snow); }
.dx-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fog); }

.field { display: block; margin-bottom: 1.25rem; }
.field > span { display: block; margin-bottom: 0.5rem; font-size: 14px; color: var(--fog); }
.field .req { color: var(--accent); }
.input, .select {
  width: 100%; border: 1px solid var(--line-2); background: var(--ink);
  padding: 0.7rem 1rem; font-size: 15px; color: var(--snow);
  border-radius: 0.5rem; outline: none; transition: border-color 0.2s;
  font-family: inherit;
}
.input::placeholder { color: rgba(138,138,148,0.6); }
.input:focus, .select:focus { border-color: var(--accent); }
.select { appearance: none; padding: 0.7rem 0.75rem; font-size: 14px; }
/* 選択肢の文字が長く見切れるため、常に縦積みで全文表示（シニア配慮） */
.grid3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.grid2 { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.dx-note { margin-top: 0.75rem; text-align: center; font-size: 12px; color: var(--fog); }

/* live log */
.dx-log { margin-top: 1.25rem; border: 1px solid var(--line); background: var(--ink-2); border-radius: 0.75rem; padding: 1.25rem; font-family: var(--mono); font-size: 13px; line-height: 1.8; }
.dx-log .ln { color: rgba(138,138,148,0.3); }
.dx-log .ln.active { color: var(--mist); }
.dx-log .ln.done-ln { color: var(--mist); }
.dx-log .gt { color: var(--accent); }
.dx-log .done { color: var(--good); }

.dx-error { margin-top: 1.25rem; border: 1px solid rgba(248,113,113,0.4); background: rgba(248,113,113,0.05); border-radius: 0.75rem; padding: 1.25rem; font-size: 14px; color: var(--mist); }

/* result card */
.dx-result { margin-top: 1.5rem; scroll-margin-top: 6rem; }
.rc { border: 1px solid var(--line); background: var(--surface); border-radius: 1rem; overflow: hidden; }
.rc-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 1rem 1.5rem; }
@media (min-width: 640px) { .rc-head { padding: 1rem 2.25rem; } }
.rc-head .dom { font-family: var(--mono); font-size: 14px; color: var(--mist); }
.rc-head .meta { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fog); }
.rc-body { display: grid; gap: 2rem; padding: 1.5rem; }
@media (min-width: 640px) { .rc-body { padding: 2.25rem; } }
@media (min-width: 768px) { .rc-body { grid-template-columns: 180px 1fr; } }

.score-label { font-size: 12px; color: var(--fog); }
.score-val { margin-top: 0.25rem; display: flex; align-items: baseline; gap: 0.25rem; }
.score-val .num { font-family: var(--mono); font-size: 3rem; font-weight: 600; line-height: 1; }
.score-val .max { font-size: 14px; color: var(--fog); }
.score-bar { margin-top: 0.75rem; height: 6px; width: 100%; border-radius: 999px; background: var(--ink); overflow: hidden; }
.score-bar > i { display: block; height: 100%; border-radius: 999px; transition: width 0.7s var(--ease); }
.meta-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 12px; }
.meta-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.meta-row dt { color: var(--fog); margin: 0; }
.meta-row dd { margin: 0; text-align: right; color: var(--mist); }

.rc-blocks { display: flex; flex-direction: column; gap: 1.75rem; }
.block-title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.block-title .d { width: 4px; height: 4px; border-radius: 999px; background: var(--accent); }
.block-title h4 { font-size: 14px; font-weight: 600; color: var(--snow); }
.block p { font-size: 15px; line-height: 2; color: var(--mist); }
.loop-ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.loop-ol li { display: flex; gap: 0.75rem; }
.loop-ol .no { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-top: 2px; }
.loop-ol .t { font-size: 14px; font-weight: 500; color: var(--snow); }
.loop-ol .d2 { font-size: 14px; color: var(--fog); }

.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.money { border: 1px solid var(--line); background: var(--ink); border-radius: 0.5rem; padding: 0.75rem 1rem; }
.money .l { font-size: 12px; color: var(--fog); }
.money .v { margin-top: 0.1rem; }
.money .v b { font-family: var(--mono); font-size: 1.25rem; font-weight: 600; color: var(--snow); }
.money .v span { margin-left: 0.25rem; font-size: 12px; color: var(--fog); }
.usage { margin-top: 1rem; border: 1px solid var(--line); background: var(--ink); border-radius: 0.5rem; padding: 0.75rem 1rem; }
.usage .l { font-size: 12px; color: var(--fog); }
.usage .v { margin-top: 0.1rem; font-family: var(--mono); font-size: 14px; color: var(--mist); }
.basis { margin-top: 0.75rem; font-size: 12px; line-height: 1.6; color: var(--fog); }

/* step2 */
.dx-step2 { margin-top: 1.5rem; }
.thanks { padding: 1rem 0; text-align: center; }
.thanks .big { font-size: 1.125rem; font-weight: 600; color: var(--snow); }
.thanks .sm { margin-top: 0.5rem; font-size: 14px; color: var(--fog); }

/* legal pages */
.legal { max-width: 48rem; margin: 0 auto; min-height: 100vh; padding: 7rem 1.5rem; }
.legal .back { font-family: var(--mono); font-size: 12px; letter-spacing: 0.15em; color: var(--fog); text-decoration: none; }
.legal h1 { margin-top: 1.5rem; font-size: 1.5rem; color: var(--snow); }
.legal-body { margin-top: 2.5rem; }
.legal dl { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal dl > div { display: grid; gap: 0.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.legal dl > div:last-child { border-bottom: none; }
@media (min-width: 640px) { .legal dl > div { grid-template-columns: 200px 1fr; } }
.legal dt { font-size: 14px; color: var(--fog); margin: 0; }
.legal dd { font-size: 14px; line-height: 1.7; color: var(--mist); margin: 0; }
.legal h2 { font-size: 1rem; font-weight: 600; color: var(--snow); margin-bottom: 0.75rem; }
.legal section { margin-bottom: 2rem; }
.legal p, .legal li { font-size: 15px; line-height: 2; color: var(--mist); }
.legal ul { padding-left: 1.25rem; color: var(--fog); }
/* 一次データ収集設計ブロック */
.fp { }
.fp-score { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.75rem; }
.fp-num { font-family: var(--mono); font-size: 2rem; font-weight: 600; line-height: 1; }
.fp-max { font-size: 12px; color: var(--fog); }
.fp-lv { margin-left: 0.25rem; font-size: 12px; }
.fp-row { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fp-row:last-of-type { border-bottom: none; }
.fp-l { color: var(--mist); white-space: nowrap; }
.fp-d { color: var(--fog); text-align: right; }
.fp-comment { margin-top: 0.75rem; font-size: 14px; line-height: 1.9; color: var(--mist); }

/* 設計シグナルの負リスト */
.sig-neg { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.sig-neg li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--warn); }
.sig-neg li:last-child { border-bottom: none; }
.sig-neg li span { display: block; margin-top: 0.1rem; font-size: 12px; color: var(--fog); }

/* 指標について（控えめなリンク） */
.glossary-link {
  margin-top: 1rem; background: none; border: none; padding: 0; cursor: pointer;
  font-size: 12px; color: var(--fog); text-decoration: underline; text-underline-offset: 3px;
  font-family: inherit;
}
.glossary-link:hover { color: var(--mist); }

/* 旧指標カード（タップで個別ポップアップ） */
.term-grid {
  margin-top: 2.5rem; display: grid; gap: 1px;
  border: 1px solid var(--line); background: var(--line);
  border-radius: 0.75rem; overflow: hidden;
}
@media (min-width: 640px) { .term-grid { grid-template-columns: 1fr 1fr; } }
.term-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left; background: var(--surface); border: none;
  padding: 1.25rem 1.5rem; font-family: inherit; font-size: 16px; font-weight: 500;
  color: var(--snow); cursor: pointer; transition: background 0.2s;
}
.term-card:hover { background: #f1f5fb; }
.term-plus { color: var(--accent); font-size: 1.25rem; flex-shrink: 0; }

/* モーダル */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(14,27,46,0.45); backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal-panel {
  position: relative; width: 100%; max-width: 40rem; max-height: 85vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 1rem; padding: 2rem;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; width: 2rem; height: 2rem; line-height: 1;
  background: none; border: 1px solid var(--line-2); border-radius: 999px; color: var(--mist);
  font-size: 1.1rem; cursor: pointer;
}
.modal-close:hover { color: var(--snow); border-color: var(--accent); }
.modal-title { font-size: 1.1rem; color: var(--snow); }
.modal-lead { margin-top: 0.75rem; font-size: 13px; line-height: 1.8; color: var(--fog); }
.modal-sec { margin-top: 1.5rem; }
.modal-h { font-size: 12px; font-family: var(--mono); letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.5rem; }
.modal-dl { border-top: 1px solid var(--line); }
.modal-dl > div { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.modal-dl dt { font-size: 14px; font-weight: 600; color: var(--snow); margin: 0; }
.modal-dl dd { margin: 0.25rem 0 0; font-size: 13px; line-height: 1.7; color: var(--fog); }

.hidden { display: none !important; }

/* ───────────────────────────────────────────
   シニアフレンドリー強化（文字を大きく・コントラスト引き上げ）
   ─────────────────────────────────────────── */
:root {
  --fog: #4d5868;   /* 白地でさらに濃く（シニア配慮の高コントラスト） */
  --mist: #2a3340;  /* 本文をより濃く */
}
body { font-size: 19px; line-height: 2.0; }

/* ライトテーマの奥行き（信頼感）：カードに影 */
.core, .dx-card, .dx-step2 { box-shadow: var(--shadow-sm); }
.rc { box-shadow: var(--shadow-md); }
.modal-panel { box-shadow: var(--shadow-lg); }
.cells, .term-grid { box-shadow: var(--shadow-sm); }

.hero-sub { font-size: 1.4rem; }
.hero-lead { font-size: 20px; line-height: 2.25; }
.lead { font-size: 18px; line-height: 2.25; }
.eyebrow { font-size: 12.5px; }

.brand b { font-size: 17px; }
.nav-cta { font-size: 14px; padding: 0.5rem 1.1rem; }

.cell .t { font-size: 16px; }
.cell .d { font-size: 16px; line-height: 1.9; }
.cell .n { font-size: 13px; }

.core h3 { font-size: 1.2rem; }
.core p { font-size: 16px; line-height: 2.05; }
.chip { font-size: 15px; }

/* ボタン：大きく・押しやすく */
.btn-primary, .btn-accent { font-size: 17px; padding: 1rem 1.6rem; }
.nav-cta, .glossary-link { min-height: 0; }

/* フォーム：大きく（スマホの自動ズーム防止にも有効） */
.dx-head h3 { font-size: 1.3rem; }
.dx-tag { font-size: 12px; }
.field > span { font-size: 16px; }
.input, .select { font-size: 18px; padding: 0.9rem 1rem; }
.dx-note { font-size: 14px; }

/* 診断結果 */
.rc-head .dom { font-size: 16px; }
.score-label { font-size: 14px; }
.score-val .max { font-size: 15px; }
.meta-row, .meta-row dt, .meta-row dd { font-size: 14.5px; }
.block-title h4 { font-size: 16.5px; }
.block p { font-size: 17px; line-height: 2.15; }
.loop-ol .t { font-size: 16px; }
.loop-ol .d2 { font-size: 15px; line-height: 1.85; }
.fp-row, .fp-l, .fp-d { font-size: 15px; }
.fp-comment { font-size: 16px; line-height: 2.05; }
.sig-neg li { font-size: 14.5px; }
.sig-neg li span { font-size: 13px; }
.money .v b { font-size: 1.45rem; }
.money .l, .money .v span, .usage .l { font-size: 14px; }
.usage .v { font-size: 16px; }
.basis { font-size: 13px; line-height: 1.8; }
.dx-log { font-size: 15px; }
.glossary-link { font-size: 14px; }

/* FAQ・フッター・モーダル */
.faq summary { font-size: 17px; }
.faq p { font-size: 16px; line-height: 2.15; }
.footer p, .footer address, .footer .office { font-size: 16px; }
.footer nav { font-size: 14px; }
.copy { font-size: 13px; }
.modal-title { font-size: 1.3rem; }
.modal-lead { font-size: 15px; line-height: 1.9; }
.modal-dl dt { font-size: 16px; }
.modal-dl dd { font-size: 15px; line-height: 1.8; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero-lead { font-size: 18px; }
  .lead { font-size: 17px; }
  .input, .select { font-size: 18px; } /* 16px以上でiOSの自動ズームを防止 */
}

/* ───────────────────────────────────────────
   画像・セクションのメリハリ
   ─────────────────────────────────────────── */
/* Hero 2カラム（テキスト＋画像） */
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; } }
.hero-media img { width: 100%; height: auto; display: block; border-radius: 1.25rem; }

/* セクション背景のメリハリ */
.sec-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-tint { background: linear-gradient(180deg, #e9f0fc 0%, #f6f8fc 100%); border-bottom: 1px solid var(--line); }

/* 循環図ビジュアル */
.concept-visual { margin: 3rem auto 0; max-width: 560px; text-align: center; }
.concept-visual img { width: 100%; height: auto; display: block; }
.concept-cap { margin-top: 1rem; font-size: 15px; color: var(--fog); }

/* 資産バンド（2カラム） */
.band { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 820px) { .band { grid-template-columns: 1.1fr 0.9fr; } }
.band-media img { width: 100%; height: auto; display: block; border-radius: 1.25rem; }

/* ───────────────────────────────────────────
   ヒーロー：画像の上にテキストをレイヤー（本気デザイン）
   ─────────────────────────────────────────── */
.hero-inner { position: relative; z-index: 2; display: block; } /* テキストは最前面 */
.hero-copy { max-width: 600px; }
/* テキスト側を白く保つグラデ被せ（可読性確保） */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, var(--ink) 30%, rgba(246,248,252,0.6) 48%, rgba(246,248,252,0) 66%);
}
.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 56%;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: right center;
  mix-blend-mode: multiply; /* 白背景を消し、線だけ溶け込ませる */
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
  mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}
@media (max-width: 860px) {
  .hero::after { background: linear-gradient(180deg, rgba(246,248,252,0.72), rgba(246,248,252,0.88)); }
  .hero-media { width: 100%; opacity: 0.16; }
  .hero-media img { object-position: center; -webkit-mask-image: none; mask-image: none; }
}

/* ───────── 全画像を背景レイヤーとして処理（multiply合成・マスク） ───────── */
.has-media { position: relative; overflow: hidden; }
.has-media > *:not(.sec-media) { position: relative; z-index: 2; }
.sec-media { position: absolute; top: 0; bottom: 0; z-index: 0; pointer-events: none; }
.sec-media-right { right: 0; width: 46%; }
.sec-media img {
  width: 100%; height: 100%; object-fit: contain; object-position: right center;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to left, #000 58%, transparent 100%);
  mask-image: linear-gradient(to left, #000 58%, transparent 100%);
}
.concept-visual img { mix-blend-mode: multiply; }
@media (max-width: 820px) { .sec-media { display: none; } } /* モバイルはテキスト優先 */

/* ───────── 複数選択チップ ───────── */
.dx-group { border: none; margin: 0 0 1.5rem; padding: 0; }
.dx-group legend { padding: 0; margin-bottom: 0.7rem; font-size: 16px; color: var(--mist); font-weight: 500; }
.dx-group legend em { font-style: normal; font-size: 12px; color: var(--accent); margin-left: 0.5rem; }
.chips-select { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-opt span {
  display: inline-block; padding: 0.65rem 1.05rem; border: 1px solid var(--line-2);
  border-radius: 999px; font-size: 15px; color: var(--mist); background: var(--surface);
  cursor: pointer; transition: all 0.15s; user-select: none;
}
.chip-opt span:hover { border-color: var(--accent); }
.chip-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea.input { resize: vertical; line-height: 1.7; }

/* ───────── 解析中フルスクリーンオーバーレイ ───────── */
.dx-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(14,27,46,0.55); backdrop-filter: blur(6px);
}
.dx-overlay.active { display: flex; }
.dx-overlay-card {
  width: 100%; max-width: 34rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: var(--shadow-lg);
  padding: 2rem 1.5rem; text-align: center;
  max-height: 90vh; overflow-y: auto;
}
#dx-overlay-log { margin-top: 1rem; }
#dx-overlay-log .ln { font-size: 13px; }
@media (max-width: 640px) {
  .dx-overlay { padding: 0.75rem; align-items: flex-start; }
  .dx-overlay-card { padding: 1.5rem 1.15rem; margin-top: 0.5rem; }
  .dx-overlay-title { margin-top: 1rem; font-size: 1.2rem; }
}
.dx-overlay-title { margin-top: 1.5rem; font-size: 1.35rem; font-weight: 600; color: var(--snow); }
.dx-overlay-sub { margin-top: 0.5rem; font-size: 14px; color: var(--fog); }
.dx-slide-wrap { margin-top: 1.6rem; padding: 1.1rem 1.15rem 1rem; border: 1px solid rgba(37,99,235,0.22); border-radius: 0.9rem; background: rgba(37,99,235,0.05); min-height: 5.4rem; }
.dx-slide-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.dx-slide-row { margin-top: 0.6rem; display: flex; align-items: center; gap: 0.6rem; }
.dx-slide-step { flex: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 0.22rem 0.7rem; transition: opacity 0.4s ease, background 0.4s ease; }
.dx-slide-step.goal { background: var(--good); }
.dx-slide-step.fade { opacity: 0; }
.dx-slide { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--snow); text-align: left; transition: opacity 0.4s ease, color 0.4s ease; }
.dx-slide.fade { opacity: 0; }
.dx-slide.goal { color: var(--good); }
.dx-slide-dots { margin-top: 0.85rem; display: flex; gap: 0.4rem; }
.dx-slide-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: background 0.4s ease, width 0.4s ease; }
.dx-slide-dots i.on { background: var(--accent); width: 20px; }
.dx-slide-dots i.on:last-child { background: var(--good); }
.dx-progress { margin-top: 1.5rem; height: 7px; background: var(--ink); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.dx-progress > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.3s ease; }
.dx-elapsed { margin-top: 0.5rem; font-size: 12px; color: var(--fog); font-family: var(--mono); letter-spacing: 0.05em; }
#dx-overlay-log { margin-top: 1.25rem; text-align: left; }

/* エラー/ご案内モーダル（画面中央にウィンドウで出す） */
.dx-modal {
  position: fixed; inset: 0; z-index: 240; display: none;
  align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(14,27,46,0.55); backdrop-filter: blur(6px);
}
.dx-modal.active { display: flex; animation: dxModalIn 0.18s ease-out; }
@keyframes dxModalIn { from { opacity: 0; } to { opacity: 1; } }
.dx-modal-card {
  width: 100%; max-width: 30rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: var(--shadow-lg);
  padding: 2.25rem 2rem; text-align: center;
}
.dx-modal-icon {
  width: 3.25rem; height: 3.25rem; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; color: #fff;
  background: var(--accent);
}
.dx-modal-title { margin-top: 1.1rem; font-size: 1.2rem; font-weight: 700; color: var(--snow); }
.dx-modal-msg { margin-top: 0.75rem; font-size: 15px; line-height: 1.7; color: var(--mist); white-space: pre-line; word-break: break-word; }
.dx-modal-btn { margin-top: 1.75rem; width: 100%; justify-content: center; }

/* 自己申告フォーム（第2段） */
.dx-self { margin-top: 1.5rem; }
.dx-self-intro { font-size: 14px; color: var(--snow); background: var(--ink); border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.9rem 1rem; margin-bottom: 1rem; }
.dx-acc { border: 1px solid var(--line); border-radius: 0.75rem; margin-bottom: 0.6rem; overflow: hidden; background: var(--surface); }
.dx-acc > summary { cursor: pointer; list-style: none; padding: 0.9rem 1.1rem; font-weight: 700; color: var(--snow); background: var(--ink); }
.dx-acc > summary::-webkit-details-marker { display: none; }
.dx-acc > summary::after { content: "＋"; float: right; color: var(--accent); font-weight: 700; }
.dx-acc[open] > summary::after { content: "－"; }
.dx-acc-body { padding: 0.5rem 1.1rem 1rem; }
.dx-q { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.dx-q:first-child { border-top: none; }
.dx-q-label { font-size: 14px; color: var(--snow); margin-bottom: 0.6rem; line-height: 1.6; }
.dx-q-hint { display: none; margin-top: 0.5rem; font-size: 12px; color: var(--bad); font-weight: 600; }
.dx-q.dx-q-missing { border-left: 3px solid var(--bad); margin-left: -1.1rem; padding-left: calc(1.1rem - 3px); background: rgba(248,113,113,0.05); border-radius: 0 0.4rem 0.4rem 0; }
.dx-q.dx-q-missing .dx-q-hint { display: block; }
.dx-q-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dx-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.dx-opt span { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--mist); cursor: pointer; transition: all .15s; }
.dx-opt span:hover { border-color: var(--accent); }
.dx-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.dx-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dx-self-submit { margin-top: 1.25rem; width: 100%; justify-content: center; }
.dx-self-note { margin-top: 1rem; font-size: 13px; color: var(--fog); line-height: 1.7; }
.dx-dogfood { margin-top: 1.25rem; font-size: 12px; color: var(--fog); text-align: center; }
.dx-cost { margin-top: 1.25rem; padding: 1.1rem 1.25rem; border: 1px solid var(--accent); border-radius: 0.9rem; background: rgba(37,99,235,0.05); text-align: center; }
.dx-cost-k { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; }
.dx-cost-v { margin-top: 0.35rem; font-size: 1.35rem; color: var(--snow); font-weight: 700; }
.dx-cost-v b { color: var(--accent); }
.dx-cost-n { margin-top: 0.5rem; font-size: 13px; color: var(--mist); line-height: 1.6; }
.rc-sum-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (max-width: 640px) { .rc-sum-3 { grid-template-columns: 1fr; } }
.rc-sum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
@media (max-width: 760px) { .rc-sum-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .rc-sum-grid { grid-template-columns: 1fr; } }
/* 4軸レーダー（ダイヤモンド） */
.rd-wrap { margin-top: 1.25rem; }
.rd-cap { text-align: center; font-size: 12.5px; color: var(--fog); margin-bottom: 0.25rem; }
.rd-chart { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }
.rd-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.rd-ax { stroke: var(--line); stroke-width: 1; }
.rd-data { fill: rgba(37,99,235,0.16); stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.rd-dot { fill: var(--accent); }
.rd-lab { fill: var(--snow); font-size: 11px; font-weight: 700; }
.score-hint { margin-top: 0.55rem; font-size: 12px; line-height: 1.55; color: var(--fog); }
.dx-frame { margin-top: 1rem; padding: 0.9rem 1rem; border-left: 3px solid var(--accent); background: var(--ink); border-radius: 0 0.5rem 0.5rem 0; font-size: 13px; line-height: 1.75; color: var(--mist); }
.explain-flow { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.explain-flow .ef-step { border: 1px solid var(--line); border-radius: 0.7rem; padding: 0.7rem 0.9rem; font-size: 13.5px; color: var(--mist); background: var(--surface); }
.explain-flow .ef-step b { display: block; color: var(--snow); font-size: 14.5px; margin-bottom: 0.15rem; }
.explain-flow .ef-step.ef-goal { border-color: var(--good); background: rgba(21,163,74,0.06); }
.explain-flow .ef-step.ef-goal b { color: var(--good); }
@media (prefers-reduced-motion: no-preference) {
  .explain-flow .ef-arrow { animation: ef-arrow-pulse 2s ease-in-out infinite; }
  .explain-flow .ef-step.ef-goal { animation: ef-goal-pulse 2.4s ease-in-out infinite; }
}
@keyframes ef-arrow-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes ef-goal-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(21,163,74,0); } 50% { box-shadow: 0 0 0 5px rgba(21,163,74,0.12); } }

/* ツイン・フライホイール（集客ループ×売れるループを一次情報でつなぎ、回すほど育つ） */
.fl-wheel { width: 100%; max-width: 560px; height: auto; display: block; margin: 2.5rem auto 0; overflow: visible; }
.fl-track { fill: none; stroke: #cbd5e1; stroke-width: 2.5; }
.fl-flow { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.14 0.86; }
.fl-hub { fill: var(--accent); }
.fl-hub-pulse { fill: var(--accent); opacity: 0.25; transform-box: fill-box; transform-origin: center; }
.fl-hub-t { fill: #fff; font-size: 12.5px; font-weight: 700; text-anchor: middle; }
.fl-lobe { fill: var(--snow); font-size: 22px; font-weight: 700; text-anchor: middle; }
.fl-lobe-s { fill: var(--fog); font-size: 13px; text-anchor: middle; }
.fl-lobe-note { fill: var(--fog); font-size: 12px; text-anchor: middle; }
.fl-particle { fill: var(--good); }
.fl-grow { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fl-caption { margin-top: 1rem; text-align: center; font-weight: 700; color: var(--snow); }
@media (prefers-reduced-motion: no-preference) {
  .fl-flow { animation: fl-dash 7s linear infinite; }
  .fl-hub-pulse { animation: fl-hub 2.4s ease-in-out infinite; }
  .fl-grow { animation: fl-grow 4.5s ease-out infinite; }
  .fl-grow.g2 { animation-delay: 2.25s; }
}
@keyframes fl-dash { to { stroke-dashoffset: -1; } }
@keyframes fl-hub { 0%, 100% { transform: scale(1); opacity: 0.25; } 50% { transform: scale(1.25); opacity: 0.1; } }
@keyframes fl-grow { 0% { transform: scale(0.55); opacity: 0.3; } 100% { transform: scale(1.18); opacity: 0; } }
.dx-cta { margin-top: 1.25rem; padding: 1.2rem 1.3rem; border-radius: 1rem; background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(37,99,235,0.03)); border: 1px solid rgba(37,99,235,0.35); box-shadow: 0 4px 16px rgba(37,99,235,0.12); }

/* 最終結果カード：前段と“別デザイン”で新しいレポートと分かるように */
.rc.result-final { border: 2px solid var(--good); box-shadow: 0 10px 34px rgba(21,163,74,0.14); }
.rc.result-final .rf-head { background: var(--good); border-radius: 0; }
.rc.result-final .rf-head .dom, .rc.result-final .rf-head .meta { color: #fff; }
.rf-banner { margin: 0.25rem 0 0; padding: 1.4rem 1.4rem 1.5rem; border-radius: 1rem; background: linear-gradient(135deg, rgba(21,163,74,0.10), rgba(21,163,74,0.02)); border: 1px solid rgba(21,163,74,0.3); }
.rf-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--good); font-weight: 700; }
.rf-scores { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 0.9rem; }
.rf-s span { display: block; font-size: 12.5px; color: var(--fog); }
.rf-s b { font-family: var(--mono); font-size: 2.2rem; font-weight: 700; color: var(--snow); line-height: 1.1; }
.rf-s small { font-size: 13px; color: var(--fog); margin-left: 0.15rem; }
.rf-line { margin-top: 1rem; font-size: 14.5px; line-height: 1.75; color: var(--mist); }
.rf-line b { color: var(--snow); }

/* 「成長設計レポートを開く」CTAカード（上下に配置・クリック率向上） */
.dx-report-cta { margin-top: 1.4rem; padding: 1.2rem 1.3rem; border-radius: 1rem; background: linear-gradient(135deg, var(--accent), #1d4fd8); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,0.28); }
.dx-report-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,99,235,0.36); }
.dx-report-cta .drc-t { font-size: 1.08rem; font-weight: 700; }
.dx-report-cta .drc-d { margin-top: 0.4rem; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.9); }
.dx-report-cta .drc-btn { margin-top: 0.9rem; display: inline-block; background: #fff; color: var(--accent); font-weight: 700; font-size: 15px; padding: 0.6rem 1.3rem; border-radius: 999px; }
.dx-report-cta .drc-t svg rect, .dx-report-cta .drc-t svg path { stroke: #fff; }
.dx-report-cta .drc-sub { margin-top: 0.7rem; font-size: 12.5px; color: rgba(255,255,255,0.82); }
.dx-report-cta .drc-sub a { color: #fff; text-decoration: underline; font-weight: 600; }
.dx-cta-t { font-size: 1.05rem; font-weight: 700; color: var(--snow); line-height: 1.5; }
.dx-cta-d { margin-top: 0.5rem; font-size: 14px; line-height: 1.75; color: var(--mist); }
.explain-flow .ef-arrow { text-align: center; color: var(--accent); font-weight: 700; line-height: 1; }
.rc-important { margin-top: 1.25rem; padding: 1.1rem 1.2rem; border: 1px dashed var(--warn); border-radius: 0.9rem; background: rgba(194,120,10,0.05); }
.rc-important .ri-head { font-size: 13px; font-weight: 700; color: var(--warn); letter-spacing: 0.03em; }
.rc-important .ri-list { margin: 0.75rem 0 0; padding-left: 1.1rem; }
.rc-important .ri-list li { font-size: 14px; line-height: 1.7; color: var(--mist); margin-bottom: 0.4rem; }
.rc-important .ri-note { margin-top: 0.6rem; font-size: 12.5px; line-height: 1.7; color: var(--fog); }
.mosaic-line.free b { color: var(--accent); font-weight: 700; }
.dx-orbit { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.dx-orbit::before, .dx-orbit::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; }
.dx-orbit::before { border-top-color: var(--accent); border-right-color: var(--accent); animation: dx-spin 1s linear infinite; }
.dx-orbit::after { inset: 14px; border-bottom-color: #9bb8ff; border-left-color: #9bb8ff; animation: dx-spin 1.6s linear infinite reverse; }
.dx-orbit-core {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(37,99,235,0.15);
  animation: dx-pulse 1.4s ease-in-out infinite;
}
@keyframes dx-spin { to { transform: rotate(360deg); } }
@keyframes dx-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.55); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .dx-orbit::before, .dx-orbit::after, .dx-orbit-core { animation: none; } }

/* ───────── 見積り：コンサルを主役に ───────── */
.est-hero {
  border: 1.5px solid var(--accent);
  background: linear-gradient(180deg, rgba(37,99,235,0.07), rgba(37,99,235,0.02));
  border-radius: 0.85rem; padding: 1.25rem;
}
.est-hero-tag { display: inline-block; font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px; padding: 0.22rem 0.75rem; }
.est-hero-name { margin-top: 0.6rem; font-size: 15px; color: var(--snow); font-weight: 600; }
.est-hero-val { margin-top: 0.15rem; }
.est-hero-val b { font-family: var(--mono); font-size: 2rem; font-weight: 600; color: var(--snow); }
.est-hero-val span { margin-left: 0.35rem; font-size: 14px; color: var(--fog); }
.est-hero-note { margin-top: 0.45rem; font-size: 13px; color: var(--fog); line-height: 1.75; }
.est-sub { margin: 1.25rem 0 0.6rem; font-size: 13px; color: var(--fog); }

/* 料金：実装とコンサルを並列（比較・対等・おすすめ表記なし） */
.plan-grid { display: grid; gap: 1rem; }
@media (min-width: 560px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.plan { border: 1px solid var(--line-2); border-radius: 0.85rem; padding: 1.25rem; background: var(--surface); }
.plan-name { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; }
.plan-price { margin-top: 0.5rem; }
.plan-price b { font-family: var(--mono); font-size: 1.85rem; font-weight: 600; color: var(--snow); }
.plan-price span { margin-left: 0.3rem; font-size: 13px; color: var(--fog); }
.plan-rows { margin-top: 0.9rem; border-top: 1px solid var(--line); }
.plan-row { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan-row span:first-child { color: var(--fog); }
.plan-row span:last-child { color: var(--mist); font-family: var(--mono); }
.plan-desc { margin-top: 0.75rem; font-size: 13px; line-height: 1.7; color: var(--fog); }

/* 改善レポート受け取りフォーム */
.rep-cta { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border: 1px solid rgba(37,99,235,0.3); background: linear-gradient(180deg, rgba(37,99,235,0.06), transparent); border-radius: 0.85rem; }
.rep-cta-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 0.6rem; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
select.input { appearance: auto; -webkit-appearance: auto; background: var(--surface); color: var(--mist); }
.dx-step2 textarea.input { min-height: 2.6rem; line-height: 1.7; }

/* 診断結果＝サマリー（続きはレポート） */
.rc-main { padding: 1.5rem; }
@media (min-width: 640px) { .rc-main { padding: 2.25rem; } }
.rc-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; margin-top: 0.25rem; }
@media (max-width: 560px) { .rc-sum { grid-template-columns: 1fr; } }
.rc-meta { margin-top: 1.5rem; }
.rc-teaser { margin-top: 1.75rem; }
.teaser-text { margin-top: 0.6rem; font-size: 15.5px; line-height: 1.95; color: var(--mist); }
.rc-locked { margin-top: 1.5rem; border: 1px dashed var(--line-2); border-radius: 0.85rem; padding: 1.25rem 1.4rem; background: rgba(37,99,235,0.03); }
.locked-head { display: flex; align-items: center; gap: 0.5rem; font-size: 15px; font-weight: 600; color: var(--snow); }
.locked-head svg { color: var(--accent); flex-shrink: 0; }
.locked-list { margin: 0.9rem 0 0; padding: 0; list-style: none; }
.locked-list li { position: relative; padding: 0.5rem 0 0.5rem 1.6rem; font-size: 14px; color: var(--mist); border-bottom: 1px solid var(--line); }
.locked-list li:last-child { border-bottom: none; }
.locked-list li::before { content: ""; position: absolute; left: 0.25rem; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent); opacity: 0.5; }
.locked-note { margin-top: 1rem; font-size: 13.5px; color: var(--accent); font-weight: 500; }

/* 続きを見たくなる仕掛け：ブラー＋解錠 */
.teaser-text .blur-lock, .weak-val { transition: filter 0.5s ease; }
.blur-lock { filter: blur(5px); -webkit-filter: blur(5px); user-select: none; pointer-events: none; opacity: 0.9; }
.lock-row { margin-top: 0.65rem; font-size: 13px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.4rem; }
.lock-row svg { color: var(--accent); }
.weak-tile { margin-top: 1.5rem; border: 1px solid var(--line-2); border-radius: 0.85rem; padding: 1.1rem 1.25rem; background: var(--surface); }
.weak-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 13px; font-weight: 600; color: var(--snow); }
.weak-label svg { color: var(--accent); }
.weak-val { margin-top: 0.55rem; font-size: 15px; line-height: 1.8; color: var(--mist); }
.preview-grid { margin-top: 1rem; display: grid; gap: 1rem; }
@media (min-width: 620px) { .preview-grid { grid-template-columns: 1fr 1fr; } }
.preview-card { border: 1px solid var(--line); border-radius: 0.85rem; padding: 1rem 1.1rem; background: linear-gradient(180deg, rgba(37,99,235,0.035), var(--surface)); }
.preview-k { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.preview-v { margin-top: 0.55rem; font-size: 15px; line-height: 1.75; color: var(--mist); }
.preview-note { margin-top: 0.55rem; font-size: 12.5px; line-height: 1.65; color: var(--fog); }
.roadmap-mini { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 14px; line-height: 1.65; color: var(--mist); }
.roadmap-mini span { display: block; padding-left: 0.85rem; border-left: 2px solid var(--line-2); }

/* 用語モーダルの出典リンク */
.modal-src { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 13.5px; color: var(--accent); text-decoration: none; font-weight: 500; word-break: break-all; }
.modal-src:hover { text-decoration: underline; }
.modal-src::after { content: "↗"; font-size: 12px; }

/* ───────── 運用年数グラフ＋積層イメージ ───────── */
.compound-grid { margin-top: 2.5rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .compound-grid { grid-template-columns: 1.4fr 0.6fr; } }
.compound-media img { width: 100%; height: auto; display: block; }

.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.chart-cap { font-size: 13px; color: var(--fog); margin-bottom: 0.5rem; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line-2); stroke-width: 1; }
.chart .gap { fill: rgba(37,99,235,0.10); }
.chart .dot-fl { fill: var(--accent); }
.chart .dot-nm { fill: #94a0b3; }
.chart .dot-rival { fill: #e08a2c; }
.chart .entry-line { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .entry-lab { fill: var(--fog); font-size: 12px; text-anchor: middle; }
.chart .xlab { fill: var(--fog); font-size: 13px; text-anchor: middle; font-family: var(--mono); }
.chart .gaplab { fill: var(--accent); font-size: 13px; text-anchor: middle; font-weight: 600; }

/* 線の描画アニメ（reveal表示でドロー） */
.chart .line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart .line-fl { stroke: var(--accent); stroke-width: 4; transition: stroke-dashoffset 1.9s var(--ease) 0.15s; }
.chart .line-rival { stroke: #e08a2c; stroke-width: 3.5; transition: stroke-dashoffset 1.6s var(--ease) 0.5s; }
.chart .line-normal { stroke: #94a0b3; stroke-width: 2.5; transition: stroke-dashoffset 1.9s var(--ease); }
.chart.is-visible .line { stroke-dashoffset: 0; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; font-size: 14px; color: var(--mist); }
.lg { display: inline-flex; align-items: center; gap: 0.5rem; }
.lg i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.lg-fl i { background: var(--accent); }
.lg-rival i { background: #e08a2c; }
.lg-nm i { background: #94a0b3; }

/* 年ごとの差：伸びるバーで可視化 */
.gap-viz { margin-top: 1.5rem; }
.gap-viz-head { font-size: 13px; color: var(--fog); margin-bottom: 0.75rem; }
.gap-row { display: grid; grid-template-columns: 44px 1fr 56px; align-items: center; gap: 0.85rem; padding: 0.42rem 0; }
.gap-year { font-family: var(--mono); font-size: 14px; color: var(--mist); }
.gap-bar { height: 12px; background: var(--ink-2); border-radius: 999px; overflow: hidden; }
.gap-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #9bc0ff, var(--accent)); transition: width 1.2s var(--ease); }
.gap-viz.is-visible .gap-bar i { width: var(--w); }
.gap-row:nth-child(3) .gap-bar i { transition-delay: 0.08s; }
.gap-row:nth-child(4) .gap-bar i { transition-delay: 0.16s; }
.gap-row:nth-child(5) .gap-bar i { transition-delay: 0.24s; }
.gap-row:nth-child(6) .gap-bar i { transition-delay: 0.32s; }
.gap-row:nth-child(7) .gap-bar i { transition-delay: 0.40s; }
.gap-val { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--accent); text-align: right; }
.gap-row-last .gap-bar { height: 15px; }
.gap-row-last .gap-val { font-size: 1.15rem; }
.gap-note { margin-top: 0.85rem; font-size: 12.5px; color: var(--fog); }

/* 「お金では買えない＝時間が要る」論理の強調ブロック */
.moat { margin-top: 2.5rem; max-width: 680px; border-left: 3px solid var(--accent); background: linear-gradient(90deg, rgba(37,99,235,0.06), transparent); padding: 1.25rem 1.5rem; border-radius: 0 0.75rem 0.75rem 0; }
.moat-h { font-size: 1.25rem; font-weight: 600; color: var(--snow); }
.moat-p { margin-top: 0.6rem; font-size: 16px; line-height: 2; color: var(--mist); }
.moat-p strong { color: var(--snow); font-weight: 600; }

/* ───────── 自走ループ図（汎用SVG） ───────── */
.loop-wrap { margin: 2.5rem auto 0; max-width: 540px; }
.loop-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  transform-origin: 50% 50%;
  animation: loop-engine-grow 23.2s ease-out 1 forwards;
}
.loop-track { fill: none; stroke: #cbd5e1; stroke-width: 2.2; }
.loop-core {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(37, 99, 235, 0.18);
  stroke-width: 1.4;
  filter: drop-shadow(0 16px 28px rgba(37, 99, 235, 0.16));
}
.loop-core-pulse {
  fill: none;
  stroke: rgba(37, 99, 235, 0.24);
  stroke-width: 3;
  transform-origin: 360px 280px;
  animation: core-pulse 5.8s ease-out 4 forwards;
}
.loop-core-pulse.p2 {
  animation-delay: 0.14s;
}
.loop-flow {
  fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 110 960; transform-origin: 360px 280px;
  animation: loop-rot 5.8s linear 4 forwards, loop-cycle-pulse 5.8s ease-in-out 4 forwards;
}
.loop-flow-glow {
  stroke: rgba(37, 99, 235, 0.22);
  stroke-width: 18;
  stroke-dasharray: 120 950;
  filter: blur(1px);
  animation-duration: 5.8s, 5.8s;
  animation-iteration-count: 4, 4;
  animation-fill-mode: forwards, forwards;
}
@keyframes loop-rot { to { transform: rotate(360deg); } }
.loop-node {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 5;
  filter: drop-shadow(0 12px 24px rgba(37, 99, 235, 0.26));
  transform-origin: center;
  animation: node-heartbeat 5.8s ease-in-out 4 forwards;
}
.loop-node.n2,
.loop-node.n3,
.loop-node.n4 { animation-delay: 0s; }
.loop-num { fill: #fff; font-family: var(--mono); font-size: 22px; font-weight: 600; text-anchor: middle; }
.loop-name { fill: var(--snow); font-size: 19px; font-weight: 600; }
.loop-center { fill: #24344a; font-size: 16px; font-weight: 600; text-anchor: middle; }
@keyframes core-pulse {
  0%, 74% { opacity: 0; transform: scale(0.62); }
  80% { opacity: 0.7; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(2.25); }
}
@keyframes loop-cycle-pulse {
  0%, 76% { stroke-width: 5.8; opacity: 0.9; }
  84% { stroke-width: 9.5; opacity: 1; }
  100% { stroke-width: 6.4; opacity: 0.96; }
}
@keyframes node-heartbeat {
  0%, 76%, 100% { transform: scale(1); }
  84% { transform: scale(1.22); }
  91% { transform: scale(1.04); }
}
@keyframes loop-engine-grow {
  0%, 22% { transform: scale(0.94); }
  25%, 47% { transform: scale(0.985); }
  50%, 72% { transform: scale(1.025); }
  75%, 96% { transform: scale(1.065); }
  100% { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .loop-flow,
  .loop-flow-glow,
  .loop-core-pulse,
  .loop-node,
  .loop-svg {
    animation: none;
  }
}

.loop-key { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
@media (min-width: 680px) { .loop-key { grid-template-columns: 1fr 1fr; gap: 0.9rem 2rem; } }
.loop-key li { display: flex; gap: 0.85rem; align-items: flex-start; }
.loop-key-n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.loop-key div { font-size: 15px; line-height: 1.75; color: var(--fog); }
.loop-key b { color: var(--snow); margin-right: 0.5rem; }
.loop-note { margin-top: 1.5rem; text-align: center; font-size: 13px; color: var(--fog); }

/* ───────── BEFORE / AFTER ───────── */
.ba-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 680px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--surface); box-shadow: var(--shadow-sm); padding: 2rem 1.75rem; text-align: center; }
.ba-after { border-color: rgba(37,99,235,0.35); background: linear-gradient(180deg, rgba(37,99,235,0.045), var(--surface)); }
.ba-tag { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; padding: 0.24rem 0.8rem; border-radius: 999px; }
.ba-tag-before { color: var(--fog); background: var(--ink-2); }
.ba-tag-after { color: #fff; background: var(--accent); }
.ba-title { margin-top: 0.8rem; font-size: 1.2rem; font-weight: 600; color: var(--snow); }

/* BEFORE：配線パイプが行き止まる */
.ba-pipe { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; margin: 1.75rem 0; }
.ba-pipe::before { content: ""; position: absolute; top: 0.6rem; bottom: 0.6rem; left: 50%; width: 2px; background: var(--line-2); transform: translateX(-50%); }
.ba-step { position: relative; z-index: 1; min-width: 168px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 0.75rem 1.2rem; font-size: 15px; color: var(--mist); box-shadow: var(--shadow-sm); }
.ba-step-dead { color: var(--bad); border-color: rgba(220,38,38,0.45); border-style: dashed; background: rgba(220,38,38,0.045); font-weight: 600; }
.ba-step-dead::after { content: "✕"; margin-left: 0.45rem; font-weight: 700; }

/* AFTER：回り続けるループ */
.ba-loop { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 1.5rem 0; }
.ba-loop-svg { width: 172px; height: 172px; display: block; }
.ba-ring { fill: none; stroke: var(--line-2); stroke-width: 5; }
.ba-ring-flow { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 70 370; transform-origin: 100px 100px; animation: loop-rot 4.5s linear infinite; }
.ba-dot { fill: var(--accent); }
.ba-loop-c { fill: var(--snow); font-size: 24px; font-weight: 600; text-anchor: middle; }
.ba-loop-cap { margin-top: 1.1rem; font-size: 13.5px; color: var(--accent); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .ba-ring-flow { animation: none; } }

.ba-desc { margin-top: auto; padding-top: 1.25rem; font-size: 14px; line-height: 1.85; color: var(--fog); }

/* ───────── 測定＝防御壁 ───────── */
.shield-flow { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 820px) { .shield-flow { flex-direction: row; align-items: center; justify-content: center; gap: 1.25rem; } }
.sf-inputs, .sf-outcomes { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; max-width: 320px; }
.sf-chip { border: 1px solid var(--line-2); border-radius: 0.7rem; background: var(--surface); padding: 0.85rem 1rem; }
.sf-chip b { display: block; font-size: 15px; color: var(--snow); }
.sf-chip span { display: block; margin-top: 0.15rem; font-size: 13px; color: var(--fog); }
.sf-core { flex-shrink: 0; width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4f86ff, var(--accent)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.sf-core span { font-size: 13px; font-weight: 500; }
.sf-arrow { color: var(--accent); }
.sf-arrow::before { content: "→"; font-size: 1.6rem; line-height: 1; display: inline-block; }
@media (max-width: 819px) { .sf-arrow::before { content: "↓"; } }
.sf-out { border: 1px solid var(--line-2); border-radius: 0.7rem; background: var(--surface); padding: 0.85rem 1rem; }
.sf-out b { display: block; font-size: 15px; color: var(--snow); }
.sf-out span { display: block; margin-top: 0.15rem; font-size: 13px; color: var(--fog); }
.sf-shield { display: flex; align-items: center; gap: 0.75rem; border-color: var(--accent); background: linear-gradient(180deg, rgba(37,99,235,0.07), transparent); }
.sf-shield-icon { width: 34px; height: 34px; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .gap-bar i { width: var(--w) !important; transition: none; } }

@media (prefers-reduced-motion: reduce) {
  .chart .line { stroke-dashoffset: 0 !important; transition: none; }
}

/* Final top-page polish */
:root {
  --wrap-wide: 72rem;
}

.nav-inner,
.footer-grid {
  max-width: var(--wrap-wide);
}

.section {
  max-width: var(--wrap-wide);
}

.hero {
  min-height: 92vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(246,248,252,0.96)),
    var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10rem;
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  max-width: var(--wrap-wide);
  padding-top: 8.5rem;
  padding-bottom: 6rem;
  z-index: 3;
}

.hero-copy {
  max-width: 52rem;
  position: relative;
  z-index: 4;
}

.hero-media {
  position: absolute;
  top: 5rem;
  right: 0;
  bottom: 0;
  width: min(58vw, 48rem);
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -2rem 0 0 -10rem;
  z-index: 2;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(246,248,252,0.84) 28%, rgba(246,248,252,0.18) 58%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(246,248,252,0.92) 92%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  border-radius: 0;
  filter: saturate(1.05) contrast(1.04);
}

.hero h1 {
  max-width: 52rem;
  font-size: clamp(2.35rem, 4.25vw, 3.85rem);
  letter-spacing: 0;
}

.hero-title span {
  display: block;
}

.hero-lead {
  max-width: 45rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 2.1;
  color: #283343;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-note {
  font-size: 14px;
  color: var(--fog);
}

.badge {
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  box-shadow: 0 10px 24px rgba(14,27,46,0.14);
}

/* ヒーローの副ボタン（枠線＝主役に対して控えめ） */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.6);
  color: var(--snow);
  border: 1px solid var(--accent);
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-line:hover { background: var(--accent-soft); }
.hero-note-link { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ヒーローの2択（無料クイック診断／実データ精密レポート） */
.hero-choices-lead { margin-top: 2rem; font-size: 15px; color: var(--fog); font-weight: 600; }
.hero-choices { margin-top: .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 720px; }
.hero-choice { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.3rem; border-radius: .9rem; text-decoration: none; background: var(--snow); color: var(--ink); box-shadow: 0 10px 24px rgba(14,27,46,0.14); transition: transform .12s, box-shadow .12s; }
.hero-choice:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14,27,46,0.2); }
.hero-choice .hc-tag { font-family: ui-monospace, Consolas, monospace; font-size: 11px; letter-spacing: .06em; opacity: .82; }
.hero-choice .hc-t { font-size: 1.15rem; font-weight: 700; }
.hero-choice .hc-d { font-size: 13px; line-height: 1.6; opacity: .88; }
.hero-choice .hc-go { margin-top: .3rem; font-size: 13px; font-weight: 700; color: var(--accent-soft); }
.hero-choice.slim { background: rgba(255,255,255,0.72); color: var(--mist); border: 1px solid var(--accent); box-shadow: none; }
.hero-choice.slim .hc-t { color: var(--snow); }
.hero-choice.slim .hc-go { color: var(--accent); }
@media (max-width: 640px) { .hero-choices { grid-template-columns: 1fr; } }

/* ナビ右側（レポート例＋無料診断） */
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta.filled { background: var(--snow); color: var(--ink); border-color: var(--snow); }
.nav-cta.filled:hover { opacity: 0.88; color: var(--ink); border-color: var(--snow); }

/* ページ内CTA帯（各セクションの切れ目に設置） */
.fl-ctaband-wrap { padding: 0 1.1rem; margin: 3rem 0; }
.fl-ctaband {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  background: linear-gradient(160deg, #0f172a, #1e293b);
  border-radius: 1rem;
  padding: 1.9rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.fl-ctaband-t { color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.75; margin: 0 0 1.2rem; }
.fl-ctaband-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.fl-ctaband .btn-line { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.5); }
.fl-ctaband .btn-line:hover { background: rgba(255,255,255,0.16); }
.fl-ctaband-note { color: #9fb0c7; font-size: 0.82rem; margin: 1.1rem 0 0; }
.fl-ctaband-note .hero-note-link { color: #7dd3fc; }

/* 追従CTAバー（スクロールで出現・その場で閉じられる） */
.fl-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  gap: 0.8rem; flex-wrap: wrap;
  background: rgba(14,27,46,0.97);
  color: #fff; padding: 0.7rem 1rem;
  box-shadow: 0 -6px 20px rgba(14,27,46,0.18);
}
.fl-sticky-t { font-size: 0.9rem; font-weight: 600; }
.fl-sticky-b { background: var(--accent); color: #fff; text-decoration: none; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.85rem; font-weight: 600; }
.fl-sticky-b.ghost { background: transparent; border: 1px solid rgba(255,255,255,0.5); }
.fl-sticky-x { background: none; border: none; color: #9fb0c7; font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem; }
@media (max-width: 600px) { .fl-sticky-t { display: none; } .fl-sticky { gap: 0.5rem; padding: 0.6rem 0.7rem; } .fl-sticky-b { font-size: 0.8rem; padding: 0.45rem 0.7rem; } }

.sec-white,
.diagnose {
  max-width: none;
}

.sec-white > *,
.diagnose > .wrap {
  max-width: var(--wrap-wide);
}

.sec-white > * {
  margin-left: auto;
  margin-right: auto;
}

/* sec-white は子要素を wrap-wide 幅で中央寄せする。h2 は .section h2 の狭い max-width(48rem)が
   残ると「中央寄せの中でさらに中央化」されて左に揃わず浮く。他の子と同じ幅扱いにして左端を揃える。 */
.sec-white > h2 {
  max-width: var(--wrap-wide);
}

.cells {
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
}

.cell {
  padding: 1.75rem;
}

.cell .t {
  font-size: 1.05rem;
}

.cell .d {
  font-size: 15px;
  line-height: 1.85;
}

.loop-wrap {
  padding: 1rem;
  border-radius: 1.4rem;
  background: radial-gradient(circle at 50% 42%, rgba(37,99,235,0.08), transparent 58%);
}

.loop-key li,
.sf-chip,
.sf-out,
.ba-card,
.chart,
.dx-card,
.preview-card,
.weak-tile,
.rc-locked {
  box-shadow: var(--shadow-sm);
}

.ba-card {
  text-align: left;
}

.ba-tag,
.ba-title {
  align-self: flex-start;
}

.ba-pipe,
.ba-loop {
  width: 100%;
  align-items: center;
}

.ba-loop-cap {
  max-width: 22rem;
  line-height: 1.75;
  text-align: center;
}

.shield-flow {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.35));
}

.sf-core {
  box-shadow: 0 18px 38px rgba(37,99,235,0.22);
}

.has-media {
  isolation: isolate;
}

.sec-media {
  opacity: 0.18;
}

.chart {
  position: relative;
  overflow: hidden;
}

.chart::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), #91b7ff, transparent);
}

.moat {
  background:
    linear-gradient(90deg, rgba(37,99,235,0.09), rgba(255,255,255,0.64)),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.term-card {
  min-height: 5rem;
}

.term-card::after {
  content: "クリックで説明";
  margin-left: auto;
  font-size: 12px;
  color: var(--fog);
  font-weight: 500;
  white-space: nowrap;
}

.term-plus {
  margin-left: 0.5rem;
}

.diagnose {
  background:
    radial-gradient(circle at 20% 0%, rgba(37,99,235,0.12), transparent 30rem),
    linear-gradient(180deg, #eef4ff 0%, #f6f8fc 100%);
}

.dx {
  max-width: 56rem;
}

.dx-card {
  border-radius: 1.25rem;
  box-shadow: 0 22px 60px rgba(16,24,40,0.09);
}

.dx-head h3 {
  font-size: 1.3rem;
}

.chip-opt span {
  background: #fff;
}

.chip-opt input:checked + span {
  box-shadow: 0 8px 18px rgba(37,99,235,0.18);
}

.rc {
  box-shadow: 0 22px 60px rgba(16,24,40,0.1);
}

.rc-sum {
  align-items: stretch;
}

.sum-score {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.score-val .num {
  font-size: clamp(2.4rem, 7vw, 3.5rem);
}

.score-val.geo-wait {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fog);
  padding: 0.55rem 0 0.15rem;
  animation: geo-pulse 1.4s ease-in-out infinite;
}

@keyframes geo-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.rep-cta {
  background:
    linear-gradient(135deg, rgba(37,99,235,0.09), rgba(255,255,255,0.78)),
    var(--surface);
}

.dx-typechip {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--fog);
}
.dx-typechip b { color: var(--snow); }
.dx-scope {
  margin: 1rem 0 0.4rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.dx-scope b { display: block; margin-bottom: 0.3rem; }
.dx-scope.out {
  background: rgba(234, 179, 8, 0.10);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #7a5c00;
}
.dx-scope.partial {
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.30);
  color: #1e3a8a;
}

/* ===== レポート型 診断結果（AI-ERA report） ===== */
.rr-sec { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.rr-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--brand, #2563eb);
  font-weight: 600;
}
.rr-h { font-size: 1.12rem; margin: 0.15rem 0 0.5rem; line-height: 1.5; }
.rr-lead { color: var(--fog); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.3rem; }

.rr-axis { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.rr-axis:last-child { border-bottom: 0; }
.rr-axis-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.rr-axis-l { font-weight: 600; font-size: 0.96rem; }
.rr-axis-d { color: var(--fog); font-size: 0.85rem; line-height: 1.7; margin: 0.35rem 0 0.6rem; }
.rr-badge {
  flex: none;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.rr-badge::before { content: "● "; }
.rr-badge.good { background: rgba(22,163,74,0.10); color: #15803d; }
.rr-badge.mid  { background: rgba(234,179,8,0.14); color: #a16207; }
.rr-badge.bad  { background: rgba(220,38,38,0.10); color: #b91c1c; }
.rr-badge.wait { background: rgba(37,99,235,0.10); color: #2563eb; }

.rr-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #eef2f8;
  display: flex;
  align-items: center;
}
.rr-bar-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.rr-bar-fill.good { background: linear-gradient(90deg,#22c55e,#16a34a); }
.rr-bar-fill.mid  { background: linear-gradient(90deg,#eab308,#ca8a04); }
.rr-bar-fill.bad  { background: linear-gradient(90deg,#f87171,#dc2626); }
.rr-bar-fill.wait { background: repeating-linear-gradient(45deg,#93b4ff,#93b4ff 6px,#c7d7ff 6px,#c7d7ff 12px); animation: geo-pulse 1.4s ease-in-out infinite; }
.rr-bar-num {
  position: absolute; right: 0; top: -1.35rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--snow); font-weight: 600;
}
.rr-bar-num i { color: var(--fog); font-style: normal; font-size: 0.68rem; }
.rr-bar-num.wait { color: #2563eb; }

.rr-cards { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rr-card { padding: 1.05rem 1.15rem; border: 1px solid var(--line); border-radius: 0.85rem; background: #fff; }
.rr-card.good { border-color: rgba(22,163,74,0.35); background: linear-gradient(180deg,#fff,#f4fbf6); }
.rr-card.hole { border-color: rgba(220,38,38,0.30); background: linear-gradient(180deg,#fff,#fdf5f5); }
.rr-card-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.12rem 0.55rem; border-radius: 999px; margin-bottom: 0.5rem; }
.rr-card-tag.good { background: rgba(22,163,74,0.12); color: #15803d; }
.rr-card-tag.hole { background: rgba(220,38,38,0.12); color: #b91c1c; }
.rr-card-h { font-weight: 700; font-size: 0.98rem; margin-bottom: 0.4rem; }
.rr-card p { color: var(--fog); font-size: 0.86rem; line-height: 1.75; margin: 0; }

.rr-action { display: flex; gap: 0.9rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 0.85rem; background: #fff; margin-bottom: 0.75rem; }
.rr-action-n { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 999px; background: var(--brand,#2563eb); color: #fff; font-family: var(--mono); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.rr-action-h { font-weight: 700; font-size: 0.97rem; margin-bottom: 0.3rem; }
.rr-action p { color: var(--fog); font-size: 0.86rem; line-height: 1.75; margin: 0; }

.rr-verdict {
  margin: 1.4rem 0 0.5rem;
  padding: 1.5rem 1.6rem;
  border-radius: 1rem;
  background: linear-gradient(160deg,#0f172a,#1e293b);
  color: #e2e8f0;
}
.rr-verdict-k { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; color: #7dd3fc; margin-bottom: 0.6rem; }
.rr-verdict-h { font-size: 1.18rem; font-weight: 700; line-height: 1.6; color: #fff; }
.rr-verdict p { margin: 0.8rem 0 0; color: #cbd5e1; font-size: 0.9rem; line-height: 1.85; }

/* ===== 新メッセージ：痛みリスト / コールアウト / 時系列 ===== */
.fl-pain { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; max-width: 720px; }
.fl-pain-item { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 0.85rem; padding: 1rem 1.15rem; box-shadow: var(--shadow-sm); }
.fl-pain-x { flex: none; color: var(--fog); font-weight: 700; line-height: 1.7; }
.fl-pain-item p { margin: 0; font-size: 0.96rem; color: var(--mist); line-height: 1.8; }
.fl-turn { color: var(--fog); margin-top: 1.5rem; }
.fl-callout { margin-top: 1.75rem; background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(255,255,255,0.7)); border: 1px solid rgba(37,99,235,0.25); border-radius: 1rem; padding: 1.5rem 1.6rem; max-width: 680px; }
.fl-callout-s { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.fl-callout p { margin: 0.7rem 0 0; font-size: 1.12rem; font-weight: 700; line-height: 1.65; color: var(--snow); }
.fl-timeline { margin-top: 2rem; max-width: 720px; }
.fl-tl { display: grid; grid-template-columns: 132px 1fr; gap: 1.3rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.fl-tl:last-child { border-bottom: 0; }
.fl-tl-when { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); font-weight: 600; padding-top: 0.15rem; }
.fl-tl p { margin: 0; font-size: 0.96rem; color: var(--mist); line-height: 1.85; }
@media (max-width: 640px) { .fl-tl { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ===== 質問チップ／自己成長FAQの入口 ===== */
.fl-ask-line { margin-top: 1.5rem; }
.fl-ask-chip:not(.btn-primary) {
  background: #fff; border: 1px solid var(--line-2); color: var(--accent);
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer; transition: background 0.15s;
}
.fl-ask-chip:not(.btn-primary)::before { content: "? "; font-weight: 700; }
.fl-ask-chip:not(.btn-primary):hover { background: var(--accent-soft); }
.fl-ask-cta {
  margin-top: 1.8rem; max-width: 820px;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(255,255,255,0.6));
  border: 1px solid var(--line); border-radius: 0.9rem; padding: 1.3rem 1.4rem;
}
.fl-ask-cta p { margin: 0 0 1rem; color: var(--mist); font-size: 0.92rem; }

.ask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ask-modal { position: fixed; inset: 0; background: rgba(14,27,46,0.55); display: none; align-items: center; justify-content: center; padding: 1.2rem; z-index: 1000; }
.ask-modal.open { display: flex; }
.ask-card { position: relative; background: #fff; border-radius: 1rem; max-width: 520px; width: 100%; padding: 1.9rem 1.7rem; box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto; }
.ask-close { position: absolute; top: 0.7rem; right: 0.9rem; background: none; border: 0; font-size: 1.5rem; color: var(--fog); cursor: pointer; line-height: 1; }
.ask-eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.ask-title { margin: 0.4rem 0 0.5rem; color: var(--snow); font-size: 1.2rem; }
.ask-lead { color: var(--fog); font-size: 0.9rem; margin: 0 0 1rem; line-height: 1.75; }
#ask-q { width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line-2); border-radius: 0.6rem; font-family: inherit; font-size: 0.95rem; line-height: 1.7; resize: vertical; }
.ask-error { color: var(--bad); font-size: 0.85rem; margin: 0.5rem 0 0; }
.ask-submit { margin-top: 1rem; }
.ask-done { text-align: center; padding: 0.5rem 0; }
.ask-done-icon { width: 2.6rem; height: 2.6rem; border-radius: 999px; background: rgba(21,163,74,0.12); color: var(--good); font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.ask-done h3 { color: var(--snow); font-size: 1.14rem; }
.ask-done p { color: var(--mist); font-size: 0.9rem; line-height: 1.85; margin: 0.7rem 0; }
.ask-done-cta { margin-top: 1rem; display: inline-flex; }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 820px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.2rem;
  font-weight: 600;
  position: relative;
  padding-right: 2.6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand, #2563eb);
  font-weight: 600;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-a {
  padding: 0 1.2rem 1.15rem;
  color: var(--fog);
  line-height: 1.8;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }
  .hero-inner {
    padding-top: 7.5rem;
  }
  .hero-media {
    inset: 3.5rem 0 auto 0;
    width: 100%;
    height: 26rem;
    opacity: 0.2;
  }
  .hero-media::before {
    inset: 0;
    background: linear-gradient(180deg, rgba(246,248,252,0.7), var(--ink));
  }
  .hero h1 {
    max-width: 100%;
  }
  .term-card::after {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 18px;
  }
  .nav-inner {
    padding: 0.9rem 1rem;
  }
  .brand span {
    display: none;
  }
  .nav-cta {
    font-size: 13px;
    padding: 0.45rem 0.8rem;
  }
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .hero-note {
    width: 100%;
    text-align: center;
  }
  .ba-card,
  .dx-card {
    padding: 1.35rem;
  }
}

/* Diagnosis result: stronger report curiosity */
.result-tease {
  position: relative;
}

.result-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 92% 18%, rgba(37,99,235,0.13), transparent 9rem),
    linear-gradient(135deg, rgba(37,99,235,0.07), rgba(255,255,255,0.9));
}

.result-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.result-hero h3 {
  margin-top: 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  line-height: 1.45;
}

.result-num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.12em;
}

.result-hero p {
  margin-top: 0.55rem;
  max-width: 38rem;
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist);
}

.result-stamp {
  width: 112px;
  height: 112px;
  border: 1px solid rgba(37,99,235,0.24);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(255,255,255,0.7);
  box-shadow: inset 0 0 0 8px rgba(37,99,235,0.04);
  transform: rotate(-7deg);
}

.result-stamp span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.result-stamp b {
  margin-top: 0.1rem;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.tease-panel {
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.mosaic-box {
  margin-top: 1rem;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--surface);
}

.mosaic-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--snow);
  background: rgba(37,99,235,0.06);
  border-bottom: 1px solid rgba(37,99,235,0.16);
}

.mosaic-head svg {
  color: var(--accent);
  flex-shrink: 0;
}

.mosaic-line {
  display: grid;
  grid-template-columns: minmax(9rem, 0.6fr) 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
}

.mosaic-line:last-child {
  border-bottom: none;
}

.mosaic-line span {
  font-size: 13px;
  color: var(--fog);
}

.mosaic-line b {
  font-size: 15px;
  color: var(--snow);
  line-height: 1.7;
}

.preview-hot {
  border-color: rgba(37,99,235,0.24);
  background:
    linear-gradient(180deg, rgba(37,99,235,0.07), rgba(255,255,255,0.96));
}

.lead-gate {
  position: relative;
  margin-top: -0.35rem;
  border-color: rgba(37,99,235,0.28);
}

.lead-gate::before {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.report-button {
  min-height: 3.4rem;
  font-size: 16px;
  box-shadow: 0 14px 30px rgba(37,99,235,0.16);
}

.measure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
}

.measure-tile {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem;
  background: #fff;
}

.measure-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.measure-top span {
  font-size: 13px;
  color: var(--fog);
}

.measure-top b {
  font-family: var(--mono);
  font-size: 1.65rem;
  color: var(--snow);
}

.measure-top small {
  margin-left: 0.15rem;
  font-size: 12px;
  color: var(--fog);
}

.measure-bar {
  height: 8px;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: var(--ink-2);
  overflow: hidden;
}

.measure-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.measure-note {
  margin-top: 0.55rem;
  font-size: 12px;
  color: var(--fog);
}

.tone-bad .measure-top b,
.tone-bad .measure-note {
  color: var(--bad);
}

.tone-bad .measure-bar i {
  background: var(--bad);
}

.tone-warn .measure-top b,
.tone-warn .measure-note {
  color: var(--warn);
}

.tone-warn .measure-bar i {
  background: var(--warn);
}

.tone-ok .measure-top b {
  color: var(--good);
}

.tone-ok .measure-bar i {
  background: var(--good);
}

.consult-box {
  margin-top: 1.5rem;
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 1.25rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 95% 5%, rgba(37,99,235,0.11), transparent 13rem),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.consult-head h3 {
  margin-top: 0.3rem;
  font-size: 1.25rem;
}

.consult-head p {
  margin-top: 0.35rem;
  font-size: 14px;
  color: var(--fog);
}

.consult-submit {
  width: 100%;
  justify-content: center;
}

.sf-arrow::before {
  content: "→";
}

@media (max-width: 819px) {
  .sf-arrow::before {
    content: "↓";
  }
}

.term-card::after {
  content: "クリックで説明";
}

.modal-src::after {
  content: "↗";
}

@media (max-width: 620px) {
  .result-hero {
    grid-template-columns: 1fr;
  }
  .result-stamp {
    width: 88px;
    height: 88px;
    justify-self: end;
  }
  .mosaic-line {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .measure-grid {
    grid-template-columns: 1fr;
  }
}

/* Senior-readable typography pass */
body {
  font-size: 19px;
}

.nav-cta,
.field > span,
.select,
.cell .d,
.footer p,
.footer .office,
.footer address,
.dx-error,
.rc-head .dom,
.block p,
.loop-key div,
.ba-desc,
.sf-chip span,
.sf-out span,
.preview-v,
.roadmap-mini,
.measure-note,
.consult-head p,
.modal-lead,
.modal-dl dd {
  font-size: 16px;
}

.cell .t,
.dx-head h3,
.score-label,
.block-title h4,
.loop-key b,
.term-card,
.locked-head,
.weak-label,
.preview-k,
.measure-top span,
.mosaic-head,
.mosaic-line b,
.plan-name,
.plan-row,
.chart-legend,
.gap-val {
  font-size: 17px;
}

.meta-list,
.meta-row,
.locked-list li,
.teaser-text,
.weak-val,
.preview-note,
.lock-row,
.dx-note,
.basis,
.usage,
.plan-desc,
.est-hero-note {
  font-size: 15.5px;
  line-height: 1.85;
}

.badge,
.brand span,
.dx-tag,
.cell .n,
.preview-k,
.result-kicker,
.modal-h,
.chart-cap,
.ba-tag,
.copy {
  font-size: 13px;
}

.result-hero p {
  font-size: 17px;
}

.result-hero h3 {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
}

.score-val .num {
  font-size: clamp(3rem, 7.5vw, 4rem);
}

.measure-top b {
  font-size: 2rem;
}

.input,
.select,
.chip-opt span {
  font-size: 17px;
}

.btn-primary,
.btn-accent,
.report-button {
  font-size: 17px;
}

/* Discarding first-party data visual */
.ba-discard {
  min-height: 270px;
  margin-top: 1.15rem;
  gap: 0;
}

.ba-discard::before {
  display: none;
}

.ba-discard-svg {
  width: min(100%, 360px);
  height: auto;
  display: block;
  overflow: visible;
}

.discard-line {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  animation: discard-flow 5.4s linear infinite;
}

.discard-card rect {
  fill: #fff;
  stroke: #cbd5e1;
  stroke-width: 1.4;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.08));
}

.discard-card text {
  fill: #334155;
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
}

.discard-card {
  opacity: 0.28;
  animation: discard-step 5.4s ease-in-out infinite;
}

.discard-card-1 { animation-delay: 0s; }
.discard-card-2 { animation-delay: 0.9s; }

.discard-card-dead {
  animation: discard-step-dead 5.4s ease-in-out infinite;
  animation-delay: 1.8s;
}

.discard-card-dead rect {
  fill: rgba(239, 68, 68, 0.045);
  stroke: rgba(220, 38, 38, 0.45);
  stroke-dasharray: 4 4;
}

.discard-card-dead text,
.discard-card-dead path {
  fill: none;
  stroke: #dc2626;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.discard-card-dead text {
  fill: #dc2626;
  stroke: none;
  font-weight: 700;
}

.discard-fragments {
  fill: #dc2626;
  stroke: #dc2626;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  animation: discard-particles 5.4s ease-in-out infinite;
}

@keyframes discard-flow {
  0% { stroke-dashoffset: 0; opacity: 0.55; }
  100% { stroke-dashoffset: -72; opacity: 0.9; }
}

@keyframes discard-step {
  0%, 12% { opacity: 0.28; transform: translateY(0) scale(1); }
  22%, 42% { opacity: 1; transform: translateY(0) scale(1.035); }
  58%, 100% { opacity: 0.42; transform: translateY(0) scale(1); }
}

@keyframes discard-step-dead {
  0%, 12% { opacity: 0.18; transform: translateY(0) scale(1); }
  24%, 48% { opacity: 1; transform: translateY(0) scale(1.04); }
  70%, 100% { opacity: 0.22; transform: translateY(15px) scale(0.96); }
}

@keyframes discard-particles {
  0%, 58% { opacity: 0; transform: translateY(-4px); }
  72% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(22px); }
}

@media (prefers-reduced-motion: reduce) {
  .discard-line,
  .discard-card,
  .discard-card-dead,
  .discard-fragments {
    animation: none;
  }

  .discard-fragments {
    opacity: 0.35;
  }
}

/* Spiral growth visual */
.ba-spiral {
  min-height: 270px;
  margin-top: 1.15rem;
}

.ba-spiral-svg {
  width: min(100%, 360px);
  height: auto;
  display: block;
  overflow: visible;
}

.spiral-shadow,
.spiral-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spiral-shadow {
  stroke: rgba(148, 163, 184, 0.34);
  stroke-width: 18;
}

.spiral-path {
  stroke: url(#spiralLine);
  stroke-width: 5.5;
  stroke-dasharray: 72 640;
  animation: spiral-rise 6.5s ease-in-out infinite;
}

.spiral-dot {
  fill: #2563eb;
  stroke: #fff;
  stroke-width: 4;
  filter: drop-shadow(0 7px 14px rgba(37, 99, 235, 0.18));
  transform-origin: center;
}

.spiral-dot.d1 { opacity: 0.48; }
.spiral-dot.d2 { opacity: 0.64; }
.spiral-dot.d3 { opacity: 0.78; }
.spiral-dot.d4 { opacity: 0.9; }
.spiral-dot.d5 { opacity: 1; fill: #0f2f8f; }

.spiral-label {
  fill: #334155;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.spiral-goal {
  fill: #0f2f8f;
  font-size: 15px;
}

.ba-spiral .ba-loop-cap {
  max-width: 26rem;
  margin-top: 0.7rem;
  color: #1d4ed8;
  font-size: 15px;
}

@keyframes spiral-rise {
  0% { stroke-dashoffset: 710; opacity: 0.55; }
  45% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .spiral-path {
    animation: none;
    stroke-dasharray: none;
  }
}
