/* =========================================================
   siteforge 検証ページ（建設・設備業向けホームページ制作）
   素の CSS。色・余白・角丸・影は :root の変数にまとめる。
   ========================================================= */

:root {
  /* 色 */
  --navy-950: #0c1729;
  --navy-900: #13223b;
  --navy-800: #1a2e4f;
  --navy-700: #24406b;
  --navy-100: #e6ecf5;
  --navy-50: #f2f5fa;
  --wood-700: #7a4c20;
  --wood-600: #8f5c2a;
  --wood-300: #e0b47c;
  --wood-100: #f3e8d8;
  --wood-50: #faf5ee;
  --accent: #dfa761;
  --accent-hover: #e9b779;
  --on-accent: #13223b;
  --ink: #17202d;
  --ink-2: #3a4454;
  --muted: #586272;
  --line: #e5e0d8;
  --line-2: #cfc8bd;
  --bg: #ffffff;
  --tint: #f7f4ef;
  --ok: #1d7048;
  --err: #b3261e;
  --focus: #1f64e0;

  /* 余白・角丸・影 */
  --gutter: 16px;
  --wrap: 1160px;
  --section-y: clamp(72px, 9vw, 120px);
  --header-h: 64px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(19, 34, 59, 0.06), 0 1px 1px rgba(19, 34, 59, 0.04);
  --shadow: 0 12px 32px -14px rgba(19, 34, 59, 0.22), 0 2px 6px rgba(19, 34, 59, 0.05);
  --shadow-lg: 0 32px 64px -24px rgba(19, 34, 59, 0.34), 0 4px 12px rgba(19, 34, 59, 0.06);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
}
p, li, dd, dt, summary, h1, h2, h3 { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3 { font-weight: 700; line-height: 1.4; letter-spacing: 0.03em; font-feature-settings: "palt"; margin: 0; }
p { margin: 0; }
strong { font-weight: 700; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 840px; }
.nb { display: inline-block; }
.center { text-align: center; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
.ic.flip { transform: scaleX(-1); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--bg); color: var(--navy-900); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; line-height: 1.3;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn .ic { transition: transform 0.2s var(--ease); }
.btn:hover .ic:not(.flip) { transform: translateX(3px); }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px rgba(171, 112, 40, 0.7); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-glass { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.55); backdrop-filter: blur(4px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--navy-900); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy-900); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(19, 34, 59, 0.08);
}
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--navy-900); }
.brand-name { position: relative; padding-left: 26px; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.brand-name::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; transform: translateY(-46%);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent) 0 30%, transparent 30% 40%, var(--navy-700) 40% 65%, transparent 65% 75%, var(--navy-900) 75%);
}
.brand-by { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; white-space: nowrap; }

/* ---------- 1. ヒーロー ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-950); overflow: hidden; --focus: #ffd38f; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 20, 37, 0.94) 0%, rgba(10, 20, 37, 0.82) 42%, rgba(10, 20, 37, 0.42) 75%, rgba(10, 20, 37, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 20, 37, 0.55) 0%, transparent 40%);
}
.hero-inner { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(128px, 14vw, 176px); }
.eyebrow { display: inline-flex; align-items: baseline; gap: 12px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.86); margin-bottom: 20px; }
.eyebrow::before { content: ""; flex: none; width: 32px; height: 2px; background: var(--accent); transform: translateY(-0.3em); }
.hero h1 { font-size: clamp(1.85rem, 4.6vw, 3.4rem); line-height: 1.38; letter-spacing: 0.02em; max-width: 15em; text-wrap: balance; }
.hero h1 .hl { color: var(--wood-300); }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px);
  font-weight: 700; font-size: 0.95rem;
}
.hero-points .ic { color: var(--wood-300); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.82); line-height: 1.8; }

/* ---------- 2. 3つの数字 ---------- */
.figures { position: relative; z-index: 2; margin-top: -88px; }
.figure-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.figure-card { padding: 28px 32px 30px; position: relative; }
.figure-card + .figure-card::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.fig-label { font-size: 0.85rem; font-weight: 700; color: var(--wood-600); letter-spacing: 0.06em; }
.fig-num { margin-top: 6px; font-size: clamp(2.4rem, 4.2vw, 3.2rem); font-weight: 700; color: var(--navy-900); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fig-num .u { font-size: 0.42em; letter-spacing: 0.02em; margin: 0 2px; color: var(--ink-2); }
.fig-desc { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }

/* ---------- セクション共通 ---------- */
.section { padding: var(--section-y) 0; }
.section.tint { background: var(--tint); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; color: var(--wood-600); margin-bottom: 12px; }
.kicker::before, .section-head .kicker::after { content: ""; width: 20px; height: 1px; background: currentColor; opacity: 0.6; }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--navy-900); }
.lead { margin-top: 18px; color: var(--ink-2); font-size: 1.02rem; }
.lead strong { color: var(--ink); }

/* ---------- 3. こんな会社向け ---------- */
.for-cards { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.for-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.for-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.for-body { padding: 22px 24px 26px; }
.for-body h3 { font-size: 1.15rem; color: var(--navy-900); }
.for-body p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* ---------- 4. デザイン見本 ---------- */
.sample-cards { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sample-card {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 14px 14px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.sample-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.browser { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin-bottom: 12px; }
.browser-bar { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 10px; background: #efebe5; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3ccc2; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); }
.sample-card:hover .browser img { transform: scale(1.025); }
.sample-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px; }
.sample-title { font-size: 1.2rem; font-weight: 700; color: var(--navy-900); }
.chips { display: inline-flex; gap: 6px; }
.chips i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-2); }
.sample-desc { padding: 0 6px; color: var(--muted); font-size: 0.92rem; }
.sample-go { margin-top: auto; padding: 10px 6px 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy-700); }

/* ---------- 5. 基本5ページ ---------- */
.page-cards { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.page-cards li { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 24px; }
.pc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--wood-50); color: var(--wood-700); border: 1px solid var(--wood-100); }
.pc-icon .ic { width: 24px; height: 24px; }
.page-cards { counter-reset: pc; }
.page-cards li { counter-increment: pc; }
.page-cards li::after { content: "0" counter(pc); position: absolute; top: 20px; right: 20px; font-size: 0.8rem; font-weight: 700; color: var(--line-2); letter-spacing: 0.06em; }
.page-cards h3 { margin-top: 16px; font-size: 1.05rem; color: var(--navy-900); }
.page-cards p { margin-top: 6px; font-size: 0.875rem; color: var(--muted); line-height: 1.75; }

.page-cards + p { margin-bottom: 28px; }

/* 折りたたみ（共通） */
.fold { max-width: 820px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.fold summary, .faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--navy-900);
}
.fold summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.chev { width: 22px; height: 22px; color: var(--navy-700); transition: transform 0.25s var(--ease); }
details[open] > summary .chev { transform: rotate(180deg); }
.fold-body { padding: 0 22px 22px; color: var(--ink-2); font-size: 0.95rem; }
.fold-body ul { margin: 0; padding-left: 1.2em; }
.fold-body li + li { margin-top: 8px; }

/* ---------- 6. プラン ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 980px; margin: 0 auto 20px; }
.plan { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 34px 30px; box-shadow: var(--shadow); overflow: hidden; }
.plan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--navy-800); }
.plan + .plan::before { background: var(--wood-600); }
.plan-name { font-size: 1.15rem; color: var(--navy-900); }
.plan-price { margin-top: 10px; font-size: 1.1rem; font-weight: 700; color: var(--navy-900); display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 4px; }
.plan-price .num { font-size: clamp(2.3rem, 4vw, 2.9rem); letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-price .tax { margin-left: 8px; font-size: 0.75rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 10px; align-self: center; }
.plan-spec { margin: 24px 0 0; border-top: 1px solid var(--line); }
.plan-spec > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan-spec dt { font-size: 0.82rem; font-weight: 700; color: var(--wood-600); padding-top: 2px; }
.plan-spec dd { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.plan-spec strong { color: var(--navy-900); }

.price-extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.extra-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; }
.extra-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: var(--navy-900); margin-bottom: 8px; }
.extra-title span { font-size: 0.72rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 10px; font-weight: 700; }
.price-rows { list-style: none; margin: 0; padding: 0; }
.price-rows li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); font-size: 0.93rem; }
.price-rows li:last-child { border-bottom: 0; }
.price-rows span { color: var(--ink-2); }
.price-rows small { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.price-rows b { flex: none; max-width: 46%; text-wrap: balance; text-align: right; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.price-rows b.inc { background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--navy-800); border-radius: 999px; padding: 0 12px; font-size: 0.85rem; }

/* ---------- 7. 進め方 ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: none; }
.flow li { position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 60px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.flow-no { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; font-size: 1.2rem; box-shadow: 0 0 0 6px var(--navy-50); }
.flow h3 { margin-top: 20px; font-size: 1.02rem; color: var(--navy-900); }
.flow p { margin-top: 8px; font-size: 0.88rem; color: var(--muted); line-height: 1.75; }
.flow-badges { list-style: none; margin: 44px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.flow-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px 10px 16px; border-radius: 999px; background: var(--wood-50); border: 1px solid var(--wood-100); color: var(--wood-700); font-weight: 700; font-size: 0.95rem; }

/* ---------- 8. 概算見積もり ---------- */
.conditions { margin-bottom: 28px; max-width: none; }
.conditions summary { color: var(--navy-900); }
.check-list { list-style: none; padding: 0 !important; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }

.sim-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.sim-main { background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px 36px 28px; min-width: 0; }

/* 進行表示 */
.sim-progress { --p: 0; list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.sim-progress::before, .sim-progress::after { content: ""; position: absolute; top: 17px; left: calc(100% / 12); height: 2px; border-radius: 2px; }
.sim-progress::before { right: calc(100% / 12); background: var(--line); }
.sim-progress::after { width: calc((100% - 100% / 6) * var(--p)); background: var(--navy-800); transition: width 0.35s var(--ease); }
.sim-progress li { position: relative; z-index: 1; display: flex; justify-content: center; }
.sim-progress button { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0 2px; cursor: pointer; color: var(--muted); font-size: 0.78rem; font-weight: 700; min-width: 44px; }
.sp-no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); color: var(--muted); font-size: 0.9rem; transition: all 0.25s var(--ease); }
.sim-progress .is-done .sp-no { background: var(--navy-50); border-color: var(--navy-800); color: var(--navy-800); }
.sim-progress [aria-current="step"] { color: var(--navy-900); }
.sim-progress [aria-current="step"] .sp-no { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: 0 0 0 5px var(--navy-100); }
.sp-label { white-space: nowrap; }

.sim-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.sim-step + .sim-step { margin-top: 36px; }
.sim.is-stepped .sim-step { display: none; margin-top: 0; }
.sim.is-stepped .sim-step.is-active { display: block; animation: stepIn 0.35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sim-step > legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 20px; font-size: 1.3rem; font-weight: 700; color: var(--navy-900); }
.sim-step > legend:focus { outline: none; }
.sim-step > legend:focus-visible { outline: 3px solid var(--focus); }
.step-no { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--wood-50); border: 1px solid var(--wood-100); color: var(--wood-700); font-size: 0.95rem; }
.sim-sub { border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
.sim-sub > legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 0.95rem; color: var(--ink-2); }

/* 選択肢カード */
.choices { display: grid; gap: 12px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.sim-sub .choices { grid-template-columns: 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%;
  min-height: 84px; padding: 16px 18px 16px 54px;
  background: var(--bg); border: 2px solid var(--line); border-radius: 14px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.choice-body::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg);
  transition: all 0.2s var(--ease);
}
.choice-body b { font-size: 1.02rem; color: var(--ink); line-height: 1.5; }
.choice-body em { font-style: normal; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.choice:hover .choice-body { border-color: var(--navy-100); background: var(--navy-50); }
.choice input:checked + .choice-body { border-color: var(--navy-800); background: var(--navy-50); box-shadow: 0 6px 18px -10px rgba(26, 46, 79, 0.5); }
.choice input:checked + .choice-body::before { border-color: var(--navy-800); background: var(--navy-800); box-shadow: inset 0 0 0 4px #fff; }
.choice input:checked + .choice-body b { color: var(--navy-900); }
.choice input:checked + .choice-body em { color: var(--navy-700); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--focus); outline-offset: 3px; }
.choices.cols-2 .choice-body em { font-weight: 700; }

.choice-media .choice-body { padding: 10px 10px 14px; justify-content: flex-start; }
.choice-media .choice-body::before { left: auto; right: 18px; top: 18px; margin-top: 0; z-index: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.choice-media .choice-body img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; margin-bottom: 10px; border: 1px solid var(--line); }
.choice-media .choice-body b, .choice-media .choice-body em { padding: 0 6px; }

.hint { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }
.hint a { font-weight: 700; }

/* オプションの数 */
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stepper-row:first-of-type { padding-top: 4px; }
.stepper-label { display: flex; flex-direction: column; min-width: 0; }
.stepper-label span { font-weight: 700; color: var(--ink); }
.stepper-label em { font-style: normal; font-weight: 700; color: var(--navy-700); font-size: 0.9rem; }
.stepper-label small { color: var(--muted); font-size: 0.8rem; line-height: 1.6; margin-top: 2px; }
.stepper { flex: none; display: flex; align-items: center; gap: 4px; background: var(--tint); border-radius: 999px; padding: 4px; }
.st-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--navy-900); cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color 0.2s, color 0.2s; }
.st-btn:hover:not(:disabled) { background: var(--navy-900); color: #fff; }
.st-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.st-btn .ic { width: 18px; height: 18px; }
.stepper output { min-width: 32px; text-align: center; font-weight: 700; font-size: 1.15rem; color: var(--navy-900); font-variant-numeric: tabular-nums; }

/* チェックボックスのカード */
.check-card { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.check-card:hover { background: var(--navy-50); border-color: var(--navy-100); }
.check-card input, .agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--line-2); background: var(--bg); color: transparent; transition: all 0.2s var(--ease); }
.check-box .ic { width: 16px; height: 16px; }
.check-card input:checked ~ .check-box, .agree input:checked ~ .check-box { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.check-card:has(input:checked) { border-color: var(--navy-800); background: var(--navy-50); }
.check-card input:focus-visible ~ .check-box, .agree input:focus-visible ~ .check-box { outline: 3px solid var(--focus); outline-offset: 3px; }
.check-text { display: flex; flex-direction: column; }
.check-text b { font-weight: 700; }
.check-text em { font-style: normal; font-size: 0.85rem; color: var(--muted); }

.ref-inputs { display: grid; gap: 10px; margin-top: 16px; }
.field-error { margin-top: 10px; color: var(--err); font-weight: 700; font-size: 0.9rem; }
.ref-notice { margin-top: 16px; padding: 14px 16px; background: var(--tint); border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--ink-2); line-height: 1.75; }

/* 前へ・次へ */
.sim-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.sim-count { font-size: 0.9rem; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.sim-count span { color: var(--navy-900); font-size: 1.1rem; }
.sim-nav .btn { min-width: 120px; }
.sim-nav .btn:disabled { visibility: hidden; }

/* 合計（PC は右に追従、スマホは下に固定） */
.summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); --focus: #ffd38f; }
.sum-head { padding: 26px 26px 20px; background: radial-gradient(120% 100% at 100% 0%, rgba(223, 167, 97, 0.18), transparent 60%); }
.sum-head h3 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.78); }
.sum-total { margin-top: 6px; font-size: 2.4rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sum-total span { display: inline-block; transform-origin: left center; }
.sum-total.bump span { animation: bump 0.5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); color: #fff; } 30% { transform: scale(1.06); color: var(--wood-300); } 100% { transform: scale(1); color: #fff; } }
.sum-tax, .sum-monthly { font-size: 0.88rem; color: rgba(255, 255, 255, 0.8); font-variant-numeric: tabular-nums; }
.sum-tax { margin-top: 4px; }
.sum-toggle { display: none; }
.sum-detail { padding: 0 26px 26px; }
.sum-lines { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.86rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: rgba(255, 255, 255, 0.88); }
.sum-lines li span:last-child { flex: none; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.sum-open { margin-top: 8px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); }
.sum-extra { margin: 16px 0 20px; padding: 14px 16px; background: rgba(255, 255, 255, 0.07); border-radius: var(--radius-sm); font-size: 0.8rem; color: rgba(255, 255, 255, 0.84); }
.sum-extra ul { margin: 6px 0 0; padding-left: 1.2em; }

/* ---------- 9. 相談フォーム ---------- */
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.95rem; color: var(--ink); padding: 0; }
.req, .opt { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; vertical-align: 0.1em; line-height: 1.7; }
.req { background: #fbe9e7; color: #9d2318; }
.opt { background: var(--tint); color: var(--muted); }
.label-note { font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.text {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink); letter-spacing: 0.02em;
  background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.text::placeholder { color: #8a8f97; }
.text:hover { border-color: #b3ab9f; }
.text:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(36, 64, 107, 0.18); }
textarea.text { min-height: 140px; resize: vertical; line-height: 1.7; }
.char-count { margin-top: 6px; text-align: right; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.char-count.over { color: var(--err); font-weight: 700; }

.more-fields { margin: 4px 0 24px; border: 1.5px dashed var(--line-2); border-radius: 12px; }
.more-fields summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 18px; cursor: pointer; font-weight: 700; color: var(--navy-800); }
.more-fields summary::-webkit-details-marker { display: none; }
.more-fields summary .ic { transition: transform 0.25s var(--ease); }
.more-fields[open] summary .ic { transform: rotate(45deg); }
.more-sub { font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.more-fields[open] { border-style: solid; background: #fcfbf9; }
.more-body { padding: 4px 18px 2px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--bg); font-size: 0.93rem; transition: all 0.2s; }
.seg input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.field > label.agree, .agree { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 400 !important; position: relative; }
.agree .check-box { margin-top: 2px; }
.agree a { font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: #fdeceb; color: var(--err); font-weight: 700; font-size: 0.92rem; }

/* 確認・完了 */
.confirm:focus, .done:focus { outline: none; }
.confirm h3 { font-size: 1.3rem; color: var(--navy-900); margin-bottom: 6px; }
.confirm-list { margin: 20px 0; border-top: 1px solid var(--line); }
.confirm-list dt { font-size: 0.82rem; font-weight: 700; color: var(--wood-600); padding-top: 14px; }
.confirm-list dd { margin: 2px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.confirm-actions .btn-primary { flex: 1 1 240px; }

.done { text-align: center; }
.done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e3f2ea; color: var(--ok); margin: 0 auto 14px; }
.done-icon .ic { width: 32px; height: 32px; }
.done-title { font-size: 1.2rem; font-weight: 700; color: var(--navy-900); }
.done-demo { display: inline-block; padding: 10px 16px; border-radius: var(--radius-sm); background: #fff6db; border: 1px solid #ecd58f; color: #5a4300; font-weight: 700; }
.receipt-title { margin-top: 30px; font-size: 1rem; color: var(--ink-2); text-align: left; }
.done .confirm-list { text-align: left; }

/* ---------- 10. よくある質問 ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow 0.25s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { padding: 20px 24px; font-size: 1.02rem; }
.answer { padding: 0 24px 22px; color: var(--ink-2); font-size: 0.95rem; }
.answer p + p { margin-top: 10px; }
.answer ul { margin: 0; padding-left: 1.2em; }
.answer li + li { margin-top: 6px; }

/* ---------- 11. 事業者情報 ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-body .section-title { margin-bottom: 24px; }
.profile { margin: 0; border-top: 1px solid var(--line); }
.profile > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 700; color: var(--wood-600); font-size: 0.9rem; }
.profile dd { margin: 0; word-break: break-all; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.78); padding: 48px 0; font-size: 0.88rem; --focus: #ffd38f; }
.site-footer a { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.brand-footer { color: #fff; margin-bottom: 10px; }
.brand-footer .brand-by { color: rgba(255, 255, 255, 0.7); }
.site-footer .links { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }

/* ---------- 印刷（完了画面の控えだけ） ---------- */
@media print {
  body * { visibility: hidden; }
  #done, #done * { visibility: visible; }
  #done { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
  .summary, .site-header { display: none; }
  .no-print { display: none; }
}

/* ---------- タブレット ---------- */
@media (max-width: 1080px) {
  .page-cards { grid-template-columns: repeat(3, 1fr); }
  .price-extras { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 640px; margin: 0 auto; }
  .flow li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding-bottom: 28px; }
  .flow li:not(:last-child)::after { top: 60px; bottom: 4px; left: 25px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .flow h3 { margin-top: 12px; }
}

@media (max-width: 959px) {
  :root { --sumbar-h: 92px; }
  .sim-layout { display: block; }
  /* 前へ・次へは合計バーのすぐ上に固定（合計バーに隠れないように） */
  .sim-nav { position: sticky; bottom: var(--sumbar-h); z-index: 6; background: var(--bg); margin: 24px -22px -22px; padding: 12px 22px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .sim-main { padding: 26px 22px 22px; }
  /* 合計は画面の下に固定（シミュレーターの範囲にいる間だけ） */
  .summary { position: sticky; top: auto; bottom: 0; z-index: 20; margin: 20px calc(var(--gutter) * -1) 0; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(12, 23, 41, 0.28); }
  .sum-head { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; height: var(--sumbar-h); padding: 8px 16px; align-content: center; }
  .sum-head h3 { grid-column: 1 / 3; font-size: 0.72rem; line-height: 1.5; }
  .sum-total { grid-column: 1 / 3; font-size: 1.55rem; margin: 0; line-height: 1.2; }
  .sum-tax, .sum-monthly { font-size: 0.74rem; margin: 0; line-height: 1.6; white-space: nowrap; }
  .sum-tax { grid-column: 1; grid-row: 3; }
  .sum-monthly { grid-column: 2; grid-row: 3; }
  .sum-toggle {
    display: inline-flex; align-items: center; gap: 6px; grid-column: 3; grid-row: 1 / 4; align-self: center;
    min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 0.85rem; font-weight: 700;
  }
  .sum-detail { display: none; max-height: 52vh; overflow-y: auto; padding: 0 18px 20px; }
  .summary.open .sum-detail { display: block; }
}

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  :root { --header-h: 58px; }
  body { font-size: 15.5px; }
  .brand-name { font-size: 1.25rem; }
  .header-cta { min-height: 38px; padding: 0 14px; font-size: 0.85rem; }

  .hero::after { background: linear-gradient(180deg, rgba(10, 20, 37, 0.78) 0%, rgba(10, 20, 37, 0.86) 55%, rgba(10, 20, 37, 0.95) 100%); }
  .hero-inner { padding-top: 48px; padding-bottom: 120px; }
  .eyebrow { font-size: 0.8rem; margin-bottom: 14px; }
  .eyebrow::before { width: 20px; }
  .hero h1 { font-size: 1.72rem; line-height: 1.45; }
  .hero-points { margin-top: 22px; gap: 8px; }
  .hero-points li { font-size: 0.85rem; padding: 6px 12px 6px 10px; }
  .hero-actions { flex-direction: column; margin-top: 28px; }
  .hero-actions .btn { width: 100%; }

  .figures { margin-top: -76px; }
  .figure-cards { grid-template-columns: 1fr; }
  .figure-card { padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .figure-card + .figure-card::before { left: 22px; right: 22px; top: 0; bottom: auto; width: auto; height: 1px; }
  .fig-label { grid-column: 1; }
  .fig-desc { grid-column: 1; margin-top: 0; font-size: 0.8rem; }
  .fig-num { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 1.9rem; }

  .for-cards, .sample-cards, .plans, .price-extras { grid-template-columns: 1fr; gap: 18px; }
  .for-card { display: grid; grid-template-columns: 112px 1fr; }
  .for-card img { height: 100%; aspect-ratio: auto; min-height: 112px; }
  .for-body { padding: 16px 18px; }
  .for-body h3 { font-size: 1.02rem; }
  .for-body p { font-size: 0.88rem; margin-top: 4px; }

  .page-cards { grid-template-columns: 1fr; gap: 10px; }
  .page-cards li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 16px 18px; }
  .pc-icon { width: 44px; height: 44px; grid-row: 1 / 3; }
  .page-cards li::after { top: 16px; right: 16px; }
  .page-cards h3 { margin-top: 0; }
  .page-cards p { margin-top: 2px; }

  .plan { padding: 26px 22px 22px; }
  .extra-card { padding: 22px 20px; }
  .price-extras { margin-top: 32px; }

  .sim-main { padding: 22px 16px 18px; border-radius: 16px; }
  .sim-nav { margin: 20px -16px -18px; padding: 10px 16px; border-radius: 0 0 16px 16px; }
  .sim-count { display: none; }
  .sim-nav .btn { min-height: 48px; }
  #step-next, #step-done { flex: 1 1 auto; }
  #step-done { white-space: nowrap; padding: 0 14px; font-size: 0.95rem; }
  .sim-progress { margin-bottom: 24px; }
  .sim-progress .sp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sim-step > legend { font-size: 1.15rem; margin-bottom: 16px; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .choice-body { min-height: 64px; padding: 12px 16px 12px 50px; }
  .choice-media .choice-body { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px 44px 8px 8px; min-height: 0; }
  .choice-media .choice-body img { grid-row: 1 / 3; margin: 0; }
  .choice-media .choice-body b { align-self: end; padding: 0; }
  .choice-media .choice-body em { align-self: start; padding: 0; }
  .choice-media .choice-body::before { top: 50%; margin-top: -11px; right: 14px; }
  .stepper-row { align-items: flex-start; }
  .st-btn { width: 40px; height: 40px; }
  .sim-nav .btn { min-width: 0; padding: 0 16px; }

  .form-card { padding: 22px 18px; border-radius: 16px; }
  .confirm-actions .btn { width: 100%; }

  .about { grid-template-columns: 1fr; }
  .profile > div { grid-template-columns: 6.5em 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand-by { display: none; }
}

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