/* =========================================================
   MISSION 見積もりシミュレーター — 顧客向けUI
   “工房のショールーム” — 深い黒 × 真鍮ゴールド / 粒状の質感
   スマホ優先レスポンシブ。クラス名は既存を完全踏襲（JS互換）。
   ========================================================= */

:root {
  /* --- 面（warm near-black） --- */
  --bg:            #0d0d0c;
  --bg-2:          #121110;
  --bg-elev:       #171614;
  --bg-card:       #1c1a17;
  --bg-card-hover: #232019;
  --line:          #2a2723;
  --line-strong:   #3b372f;
  --hair:          rgba(216, 178, 90, 0.14);   /* 真鍮のヘアライン */

  /* --- 真鍮ゴールド --- */
  --gold:      #d8b25a;
  --gold-hi:   #f2d78c;   /* ハイライト */
  --gold-soft: #e6c877;
  --gold-deep: #a9853a;
  --gold-dim:  rgba(216, 178, 90, 0.14);
  --gold-glow: rgba(216, 178, 90, 0.28);

  /* --- 文字 --- */
  --text:       #f4f1ea;
  --text-dim:   #b3a89a;
  --text-faint: #7c7568;

  /* --- 信号色 --- */
  --green: #5fd08a;
  --red:   #f0685f;
  --amber: #f0a83c;

  --radius:    16px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --shadow:    0 18px 44px -18px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0,0,0,.4);
  --shadow-gold: 0 10px 34px -12px var(--gold-glow);
  --maxw: 720px;

  --font-disp: "Oswald", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 84px;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(216,178,90,0.10) 0%, transparent 60%),
    radial-gradient(900px 900px at 88% 6%, rgba(216,178,90,0.05) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 40%);
  background-attachment: fixed;
  position: relative;
}
/* 粒状のフィルム（うっすら質感） */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

/* ---------- ヘッダー ---------- */
.site-header {
  text-align: center;
  padding: 40px 16px 22px;
  position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), transparent);
}
.site-header::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.brand {
  font-family: var(--font-disp);
  font-size: clamp(34px, 9vw, 46px);
  letter-spacing: 0.34em;
  font-weight: 600;
  margin: 0;
  text-indent: 0.34em;
  color: transparent;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 52%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(216,178,90,0.22));
}
.brand-sub {
  margin: 10px 0 0;
  font-family: var(--font-disp);
  font-size: 11px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
}
.lead {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 0 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- 進捗バー ---------- */
.progress {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 4px;
  max-width: var(--maxw); margin: 14px auto 0;
  padding: 11px 16px;
  background: rgba(13, 13, 12, 0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.progress::-webkit-scrollbar { display: none; }
.progress-step {
  flex: 1 0 auto; min-width: 52px; text-align: center;
  font-family: var(--font-disp);
  font-size: 11px; letter-spacing: .04em;
  color: var(--text-faint);
  padding: 5px 2px 7px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .25s, border-color .25s;
}
.progress-step.done    { color: var(--text-dim); border-color: var(--line-strong); }
.progress-step.current { color: var(--gold-hi); border-color: var(--gold); font-weight: 700; }

/* ---------- ステップ共通 ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 8px 16px 40px; }

.step { margin: 26px 0; animation: fadeUp .45s cubic-bezier(.2,.7,.2,1) both; }
.step[hidden] { display: none !important; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 50%;
  font-family: var(--font-disp);
  background: radial-gradient(circle at 32% 28%, rgba(242,215,140,.25), var(--gold-dim));
  color: var(--gold-hi);
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), 0 3px 10px -4px var(--gold-glow);
}
.step-title { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: .01em; }
.step-hint { font-size: 12.5px; color: var(--text-dim); margin: 2px 0 14px 42px; }

.step-chosen {
  margin-left: 42px; font-size: 13px; color: var(--gold-soft);
  display: flex; align-items: center; gap: 6px;
}
.step-chosen::before { content: "✓"; color: var(--gold); font-size: 12px; }

/* ---------- 選択肢グリッド ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.opt {
  appearance: none; text-align: left;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent),
    var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 14px; cursor: pointer;
  font-family: inherit;
  transition: border-color .18s, background .18s, transform .1s, box-shadow .18s;
}
.opt:hover { background: var(--bg-card-hover); border-color: var(--line-strong); transform: translateY(-1px); }
.opt:active { transform: scale(.985); }
.opt.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(216,178,90,0.12), rgba(216,178,90,0.05));
  box-shadow: 0 0 0 1px var(--gold) inset, 0 6px 18px -10px var(--gold-glow);
}
.opt .opt-title { font-weight: 600; }
.opt .opt-meta { display: block; font-size: 11px; color: var(--text-dim); margin-top: 3px; }

.badge {
  display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 999px;
  margin-left: 6px; vertical-align: middle; font-weight: 700; letter-spacing: .02em;
}
.badge.current    { background: rgba(95,208,138,.16); color: #a7ecc2; border: 1px solid rgba(95,208,138,.4); }
.badge.new        { background: linear-gradient(180deg, #37b46e, #1f8f52); color: #f0fff6; box-shadow: 0 2px 8px -2px rgba(55,180,110,.5); }
.badge.final      { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #362a06; }
.badge.matte      { background: rgba(139,92,246,.18); color: #ddd0ff; border: 1px solid rgba(139,92,246,.4); }
.badge.prohibited { background: rgba(240,104,95,.16); color: #ffcdc9; border: 1px solid rgba(240,104,95,.4); }

/* メーカー切替タブ */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; margin-left: 42px; }
.tab {
  flex: 1; padding: 9px; text-align: center; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text-dim); font-size: 13px; font-weight: 500;
  font-family: inherit; transition: color .18s, border-color .18s, background .18s;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab.active {
  color: #241c06; font-weight: 700;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border-color: var(--gold-hi);
}

/* 検索ボックス */
.search {
  width: 100%; margin-bottom: 12px; padding: 12px 15px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 15px; font-family: inherit;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.search::placeholder { color: var(--text-faint); }
.search:focus {
  outline: none; border-color: var(--gold);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.scroll-list { max-height: 380px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.scroll-list::-webkit-scrollbar { width: 8px; }
.scroll-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
.scroll-list::-webkit-scrollbar-track { background: transparent; }
.empty-note {
  color: var(--text-dim); font-size: 13px; padding: 11px 14px; margin-bottom: 10px;
  background: rgba(240,168,60,.07); border: 1px solid rgba(240,168,60,.28);
  border-radius: var(--radius-sm);
}

/* ---------- カラーチップ ---------- */
.color-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .color-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .color-grid { grid-template-columns: repeat(4, 1fr); } }

.color-opt {
  display: flex; align-items: center; gap: 11px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 11px; cursor: pointer;
  transition: border-color .18s, background .18s, transform .1s;
  font-family: inherit; color: var(--text); text-align: left;
}
.color-opt:hover { background: var(--bg-card-hover); border-color: var(--line-strong); transform: translateY(-1px); }
.color-opt.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 6px 16px -10px var(--gold-glow); }
.swatch {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.35), inset 0 -3px 6px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,.5);
}
.color-name { font-size: 12px; line-height: 1.35; }
.color-name small { display: block; color: var(--text-faint); font-size: 10px; font-family: var(--font-disp); letter-spacing: .03em; }

/* ---------- コーティングカード ---------- */
.coat-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .coat-grid { grid-template-columns: repeat(3, 1fr); } }
.coat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; cursor: pointer;
  transition: border-color .18s, transform .12s, background .18s, box-shadow .18s;
  display: flex; flex-direction: column; font-family: inherit; color: var(--text); text-align: left;
  position: relative;
}
.coat-card:hover { border-color: var(--line-strong); background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.coat-card.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, var(--shadow-gold); }
.coat-card.featured { border-color: rgba(216,178,90,.5); }
.coat-name { font-weight: 700; font-size: 17px; color: var(--gold-soft); letter-spacing: .01em; }
.coat-layers { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.coat-desc { font-size: 12.5px; color: var(--text-dim); margin: 12px 0; flex: 1; line-height: 1.7; }
.coat-from { font-size: 13px; color: var(--text-dim); }
.coat-from b { font-family: var(--font-disp); font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: .01em; }
.coat-tag {
  align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .03em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #241c06;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
  box-shadow: 0 3px 10px -4px var(--gold-glow);
}

/* ---------- 結果カード ---------- */
.result-card {
  background:
    radial-gradient(600px 200px at 80% -10%, rgba(216,178,90,0.14), transparent 60%),
    linear-gradient(180deg, #211d16, var(--bg-card));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-gold), var(--shadow);
}
.result-title { font-size: 19px; font-weight: 700; margin: 0 0 5px; line-height: 1.4; }
.result-sub { font-size: 13px; color: var(--text-dim); margin: 0 0 20px; }

.price-rows { border-top: 1px solid var(--line); margin-top: 6px; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.price-row .label { color: var(--text-dim); }
.price-row .val { font-family: var(--font-disp); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.price-row.total { padding: 18px 0 4px; border-bottom: none; }
.price-row.total .label { color: var(--text); font-weight: 700; font-size: 15px; }
.price-row.total .val {
  color: transparent; font-weight: 700; font-size: 34px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text;
}

.section-label {
  font-family: var(--font-disp);
  font-size: 12px; color: var(--gold-soft); letter-spacing: .14em; text-transform: uppercase;
  margin: 22px 0 8px; font-weight: 600;
}

.explain { font-size: 13px; color: var(--text-dim); }
.explain li { margin: 6px 0; }

.notes { list-style: none; padding: 0; margin: 10px 0 0; }
.notes li { font-size: 12px; color: var(--text-dim); padding-left: 18px; position: relative; margin: 6px 0; }
.notes li::before { content: "※"; position: absolute; left: 0; color: var(--gold); }

/* 代替プラン（磨きレベル選択） */
.alt-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.alt-opt {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 10px; cursor: pointer; text-align: center; font-family: inherit; color: var(--text);
  transition: border-color .18s, background .18s, transform .1s;
}
.alt-opt:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.alt-opt.selected { border-color: var(--gold); background: var(--gold-dim); box-shadow: 0 0 0 1px var(--gold) inset; }
.alt-opt .alt-name { font-size: 13px; font-weight: 600; }
.alt-opt .alt-price { font-family: var(--font-disp); font-size: 16px; margin-top: 5px; font-variant-numeric: tabular-nums; }
.alt-opt .alt-reco { display: block; font-size: 10px; color: var(--gold); margin-top: 4px; font-weight: 700; }

/* 磨きレベルの説明（比較ボタンの直下） */
.polish-detail {
  background: var(--bg-elev); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 10px;
}
.polish-detail .pd-name { font-size: 13px; font-weight: 600; color: var(--gold); margin: 0; }
.polish-detail .pd-desc { font-size: 13px; color: var(--text); margin: 6px 0 0; line-height: 1.7; }
.polish-detail .pd-steps { font-size: 12px; color: var(--text); margin: 10px 0 0; line-height: 1.7; }
.polish-detail .pd-steps span {
  display: inline-block; font-size: 10px; color: var(--gold); border: 1px solid var(--line-strong);
  border-radius: 3px; padding: 1px 6px; margin-right: 8px; letter-spacing: .08em; vertical-align: 1px;
}
.polish-detail .pd-detail { font-size: 12px; color: var(--text-dim); margin: 8px 0 0; line-height: 1.7; }

/* 相談系（禁止・要相談） */
.consult-card {
  background: linear-gradient(180deg, rgba(240,168,60,.08), var(--bg-card));
  border: 1px solid var(--amber); border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 22px;
}
.consult-card.error { border-color: var(--red); border-left-color: var(--red); }
.consult-card h2 { margin: 0 0 10px; font-size: 18px; color: var(--gold-soft); }
.consult-card p { color: var(--text-dim); font-size: 14px; margin: 8px 0; line-height: 1.7; }

/* 自己修復塗装の注意カード */
.special-paint-card {
  background: linear-gradient(180deg, rgba(240, 168, 60, 0.10), var(--bg-card));
  border: 1px solid var(--amber); border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 18px; margin-top: 16px;
}
.special-paint-card .sp-title { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--amber); font-weight: 700; }
.special-paint-card .sp-notes { list-style: none; padding: 0; margin: 0 0 14px; }
.special-paint-card .sp-notes li { font-size: 13px; color: var(--text); padding-left: 16px; position: relative; margin: 7px 0; }
.special-paint-card .sp-notes li::before { content: "・"; position: absolute; left: 0; color: var(--amber); }
.special-paint-card .contact-row { margin-top: 4px; }

/* ---------- 洗車・メンテ料金（折りたたみ・参考情報） ---------- */
.wash-maint { margin-top: 16px; }
.wm-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 15px;
  color: var(--text-dim); font-size: 13.5px; font-family: inherit;
  cursor: pointer; text-align: left; transition: border-color .18s, background .18s, color .18s;
}
.wm-toggle:hover { background: var(--bg-card-hover); border-color: var(--line-strong); color: var(--text); }
.wm-arrow { color: var(--gold); font-size: 11px; flex: 0 0 auto; }
.wash-maint.open .wm-toggle { border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-bottom-color: transparent; color: var(--text); }
.wm-body {
  background: var(--bg-elev); border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 12px 16px;
}
.wm-title { margin: 0 0 4px; font-size: 12px; color: var(--gold-soft); font-weight: 700; letter-spacing: .06em; }
.wm-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.wm-row:last-of-type { border-bottom: none; }
.wm-row .label { color: var(--text-dim); }
.wm-row .label small { display: block; font-size: 10.5px; color: var(--text-faint); }
.wm-row .val { font-family: var(--font-disp); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wm-note { margin: 6px 0 0; font-size: 11px; color: var(--text-faint); }

/* ---------- 分岐画面 共通カード ---------- */
.branch-card {
  background: linear-gradient(180deg, #201d17, var(--bg-card));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.branch-card .bc-title { margin: 0 0 12px; font-size: 17px; font-weight: 700; color: var(--gold-soft); }
.branch-card .bc-text { font-size: 14px; color: var(--text); margin: 10px 0; line-height: 1.8; }
.branch-card .bc-text strong { color: var(--gold-soft); }
.branch-card .tabs { margin-left: 0; margin-bottom: 14px; }
/* 幌車のリア系案内（真鍮ゴールド左線・磨き説明と同トーン） */
.horo-note {
  margin: 0 0 14px; padding: 10px 14px;
  border-left: 2px solid var(--gold-deep); background: var(--gold-dim);
  font-size: 13px; color: var(--text); line-height: 1.8;
}
.branch-card .wm-row { font-size: 13.5px; }

/* ---------- フィルム組み合わせ見積もり ---------- */
.combo-card { margin-top: 16px; padding: 0; overflow: hidden; }
.combo-toggle {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; padding: 17px 20px; min-height: 54px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 700; color: var(--gold-soft); text-align: left;
}
.combo-toggle .combo-chev { color: var(--text-dim); transition: transform .2s; }
.combo-toggle.open .combo-chev { transform: rotate(180deg); }
.combo-body { padding: 0 20px 20px; }
.combo-lead { margin: 0 0 12px; font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }

.combo-part { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--bg-elev); overflow: hidden; }
.combo-part.selected { border-color: var(--gold); }
.combo-part.open { border-color: var(--line-strong); }
.combo-part.disabled { opacity: .55; }
.combo-part-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; color: var(--text); text-align: left;
}
.combo-part-head:disabled { cursor: not-allowed; }
.combo-part-name { font-weight: 600; }
.combo-sel { color: var(--gold-soft); font-weight: 700; white-space: nowrap; font-family: var(--font-disp); font-variant-numeric: tabular-nums; }
.combo-unsel { color: var(--text-faint); font-size: 12px; }
.combo-reason { color: var(--text-faint); font-size: 11px; text-align: right; }
.combo-opts { padding: 2px 10px 10px; display: grid; gap: 6px; }
.combo-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 12px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit; font-size: 13.5px; color: var(--text); text-align: left;
  transition: border-color .15s, background .15s;
}
.combo-opt:hover { background: var(--bg-card-hover); }
.combo-opt.active { border-color: var(--gold); background: var(--gold-dim); color: var(--gold-soft); font-weight: 700; }
.combo-opt-price { font-family: var(--font-disp); font-variant-numeric: tabular-nums; white-space: nowrap; }
.combo-summary { margin-top: 14px; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.combo-empty { margin: 2px 0; font-size: 12.5px; color: var(--text-faint); text-align: center; }
.combo-total { border-top: 1px solid var(--line-strong); margin-top: 4px; padding-top: 10px; }
.combo-total .label { color: var(--text); font-weight: 700; }
.combo-total .val { color: var(--gold-soft); font-weight: 700; font-family: var(--font-disp); font-size: 18px; }
.combo-actions { margin-top: 12px; }
.combo-actions .cta.copied { border-color: var(--green); color: var(--green); }

/* ---------- PPF・カーラッピング比較 ---------- */
.ppf-goal { margin-bottom: 16px; }
.ppf-goal-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--text); }
.ppf-goal-opts { display: grid; gap: 8px; }
@media (min-width: 560px) { .ppf-goal-opts { grid-template-columns: repeat(3, 1fr); } }
.ppf-goal-opt {
  min-height: 48px; padding: 12px 14px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  transition: border-color .15s, background .15s;
}
.ppf-goal-opt:hover { background: var(--bg-card-hover); }
.ppf-goal-opt.active { border-color: var(--gold); background: var(--gold-dim); color: var(--gold-soft); }
.ppf-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-elev); padding: 15px; margin-bottom: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.ppf-card.highlight { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-gold); }
.ppf-card-title { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--gold-soft); }
.ppf-card-purpose { margin: 0 0 10px; font-size: 12.5px; color: var(--text-dim); }
.ppf-card-catch { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--gold-soft); line-height: 1.5; }
.ppf-features { margin: 0 0 10px; padding-left: 1.2em; font-size: 12.5px; color: var(--text); line-height: 1.7; }
.ppf-features li { margin: 0; }
.ppf-spec { display: flex; gap: 12px; padding: 4px 0; font-size: 12.5px; }
.ppf-spec .label { color: var(--text-faint); min-width: 52px; }
.ppf-price { margin-top: 10px; padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.ppf-price-head { font-size: 11px; font-weight: 700; color: var(--gold-soft); letter-spacing: .05em; margin-bottom: 2px; }
.ppf-price .wm-row { font-size: 13.5px; }
.ppf-price .val { color: var(--text); font-weight: 700; }
.ppf-price-consult { margin: 4px 0; font-size: 12.5px; color: var(--text-dim); }
.ppf-honest { margin: 8px 0 0; font-size: 11.5px; color: var(--amber); }
.ppf-recommended .label { color: var(--gold-soft); font-weight: 700; }
.ppf-recommended .val { color: var(--gold-soft); font-size: 15px; }
.ppf-recommend-note { margin: 6px 0 0; font-size: 11.5px; color: var(--gold-soft); }
.ppf-why {
  display: inline-block; margin-top: 8px; min-height: 32px;
  background: none; border: none; padding: 4px 0;
  color: var(--text-dim); font-size: 12px; text-decoration: underline;
  cursor: pointer; font-family: inherit;
}
.ppf-why.open { color: var(--gold-soft); }
.ppf-why-body { margin-top: 6px; padding: 10px 12px; font-size: 12px; line-height: 1.7; color: var(--text-dim); background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.ppf-headlight { margin-top: 16px; }
.ppf-sub-title { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; color: var(--gold-soft); }
.ppf-sub-title small { margin-left: 8px; font-size: 11px; color: var(--text-faint); font-weight: 400; }

/* ---------- ボタン ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 18px; padding: 16px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #241c06; border: none; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; letter-spacing: .02em;
  box-shadow: 0 10px 26px -12px var(--gold-glow);
  transition: filter .15s, transform .1s, box-shadow .15s;
}
.cta:hover { filter: brightness(1.07); box-shadow: 0 14px 32px -12px var(--gold-glow); }
.cta:active { transform: scale(.99); }
.cta.secondary { background: transparent; color: var(--gold); border: 1px solid var(--gold); box-shadow: none; }
.cta.secondary:hover { background: var(--gold-dim); filter: none; }

.contact-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.contact-row .cta { flex: 1; min-width: 140px; margin-top: 0; }

/* ---------- 相談導線 2択カード（ご来店予約が主役・電話はワンクッション） ---------- */
.contact-choice {
  margin-top: 20px; padding: 16px 14px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  text-align: center;
}
.cc-title { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text); }
.contact-choice .cta { width: 100%; margin-top: 12px; }
.cc-reserve { flex-direction: column; gap: 3px; padding: 18px 16px; }
.cc-reserve-main { font-size: 17px; line-height: 1.3; }
.cc-reserve-sub { font-size: 12px; font-weight: 600; opacity: .85; }
.cc-save-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
.contact-choice .cc-tel-open { font-size: 14.5px; padding: 13px 14px; }
.cc-hours { margin: 7px 0 0; font-size: 12px; color: var(--text-faint); }
.cc-tel-confirm {
  margin-top: 12px; padding: 13px 13px 15px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-align: left;
}
.cc-tel-text { margin: 0; font-size: 13px; line-height: 1.75; color: var(--text-dim); }
.cc-tel-confirm .cta { margin-top: 12px; }

.reset-bar { text-align: center; margin: 30px 0 0; }
.reset-bar button {
  background: none; border: none; color: var(--text-faint); font-size: 13px;
  cursor: pointer; text-decoration: underline; font-family: inherit;
  transition: color .15s;
}
.reset-bar button:hover { color: var(--text-dim); }

/* ---------- ローディング / フッター ---------- */
.loading { text-align: center; color: var(--text-dim); padding: 56px 16px; }
.spinner {
  width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--gold);
  border-radius: 50%; margin: 0 auto 14px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer {
  text-align: center; color: var(--text-faint); font-size: 11px;
  padding: 26px 16px; border-top: 1px solid var(--hair); margin-top: 34px;
}
.disclaimer { font-size: 11px; color: var(--text-faint); text-align: center; margin: 12px auto 0; max-width: var(--maxw); }

/* ---------- 動きに敏感な方への配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 部位別PPF（同時施工upsell・用途別セット・全部位一覧） ---------- */
.pp-upsell {
  background: linear-gradient(180deg, rgba(200, 168, 92, 0.08), var(--bg-card));
  border: 1px solid var(--line-strong); border-left: 4px solid var(--gold-soft);
  border-radius: var(--radius); padding: 18px; margin-top: 16px;
}
.pp-upsell-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--gold-soft); }
.pp-upsell-lead { margin: 0 0 12px; font-size: 12.5px; color: var(--text-dim); }
.pp-upsell-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pp-upsell-item:last-of-type { border-bottom: none; }
.pp-upsell-name { font-size: 13.5px; color: var(--text); margin-bottom: 4px; }
.pp-upsell-name small { margin-left: 6px; font-size: 10.5px; color: var(--text-faint); }
.pp-upsell-note { margin: 4px 0 0; font-size: 11px; color: var(--text-faint); }
.pp-dual, .pp-set-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pp-single { font-size: 12px; color: var(--text-faint); }
.pp-combo {
  font-family: var(--font-disp); font-variant-numeric: tabular-nums;
  font-size: 16px; font-weight: 700; color: var(--gold-soft); white-space: nowrap;
}
.pp-combo-small { font-size: 11.5px; color: var(--gold-soft); }
.pp-consult { font-size: 12.5px; color: var(--text-dim); }
.pp-sets { margin-top: 18px; }
.pp-set-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 10px;
}
.pp-set-title { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--text); }
.pp-set-desc { margin: 0 0 8px; font-size: 12px; color: var(--text-dim); }
.pp-set-plus { font-size: 11.5px; color: var(--text-faint); }
.pp-all { margin-top: 14px; }
.pp-row .val { text-align: right; line-height: 1.5; }
.pp-head { font-size: 11px; color: var(--text-faint); border-bottom: 1px solid var(--line-strong); }
.pp-head .val { font-family: inherit; }
.pp-all-note { margin: 10px 0 0; font-size: 12px; color: var(--text-dim); }

/* ========================================================
   事前お見積書（quote_doc.js）— プレビュー＋印刷
   書類本文は白地（印刷インク・書類の信頼感）、
   世界観はヘッダ黒帯×金と金罫線で出す。
   ======================================================== */
#quote-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 10, 9, 0.92);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px 12px 32px;
}
body.quote-open { overflow: hidden; }
.quote-toolbar {
  display: flex; gap: 10px; justify-content: center;
  max-width: 560px; margin: 0 auto 12px;
}
.quote-toolbar .cta { flex: 1; text-align: center; }
.quote-hint {
  text-align: center; font-size: 12px; color: var(--text-dim);
  margin: 10px auto 0;
}

/* --- 書類本体（画面・印刷共通） --- */
.quote-sheet {
  background: #ffffff; color: #1c1a17;
  max-width: 560px; margin: 0 auto;
  padding: 0 0 22px; border-radius: 6px; overflow: hidden;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 13.5px; line-height: 1.6;
}
.q-head {
  background: #0d0d0c; color: #d8b25a;
  padding: 14px 22px 12px;
}
.q-brand {
  margin: 0; font-family: Oswald, sans-serif; font-weight: 700;
  font-size: 24px; letter-spacing: 0.14em;
}
.q-brand-sub { margin: 2px 0 0; font-size: 10.5px; letter-spacing: 0.08em; color: #e6c877; }
.q-title {
  text-align: center; font-size: 21px; font-weight: 900;
  letter-spacing: 0.3em; text-indent: 0.3em; color: #1c1a17;
  margin: 20px 22px 6px;
  padding-bottom: 10px; border-bottom: 2px solid #a9853a;
}
.q-meta { margin: 10px 22px 0; font-size: 12px; color: #55504a; }
.q-meta-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.q-section {
  margin: 18px 22px 6px; padding-bottom: 3px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: #8a6d2f;
  border-bottom: 1px solid #d9cba4;
}
.q-row { display: flex; margin: 3px 22px; }
.q-key { flex: 0 0 7em; color: #8a857e; font-size: 12.5px; }
.q-val { flex: 1; font-weight: 500; }
.q-item {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 5px 22px; align-items: baseline;
}
.q-item-label small { display: block; font-size: 11px; color: #8a857e; }
.q-item-price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.q-adjust .q-item-price { color: #9d2f2f; }
.q-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 10px 22px 0; padding-top: 9px; border-top: 2px solid #a9853a;
}
.q-total-label { font-weight: 700; }
.q-total-price {
  font-family: Oswald, "Zen Kaku Gothic New", sans-serif;
  font-size: 25px; font-weight: 700; color: #8a6d2f;
  font-variant-numeric: tabular-nums;
}
.q-teaser {
  margin: 8px 22px 0; padding: 7px 10px; font-size: 12.5px;
  background: #faf5e6; border: 1px dashed #a9853a; border-radius: 4px; color: #6d5623;
}
.q-ref .q-item-price { color: #55504a; }
.q-ref-note { margin: 4px 22px 0; font-size: 11px; color: #8a857e; }
.q-notes {
  margin: 6px 22px 0; padding-left: 1.3em; font-size: 11.5px; color: #55504a;
}
.q-notes li { margin: 3px 0; }
.q-foot {
  margin: 18px 22px 0; padding-top: 10px; border-top: 1px solid #d9cba4;
  font-size: 11.5px; color: #55504a;
}
.q-foot p { margin: 2px 0; }
.q-foot-name { font-weight: 700; color: #1c1a17; }

/* 結果画面の見積書ボタン */
.quote-btn { width: 100%; margin-top: 10px; }

/* --- 印刷: 見積書プレビューを開いているときは書類だけをA4に出す --- */
@page { size: A4 portrait; margin: 12mm; }
@media print {
  body.quote-open > :not(#quote-overlay) { display: none !important; }
  body.quote-open { overflow: visible; background: #fff; }
  body.quote-open #quote-overlay {
    position: static; background: none; padding: 0; overflow: visible;
  }
  .quote-toolbar, .quote-hint { display: none !important; }
  .quote-sheet {
    max-width: none; border-radius: 0; box-shadow: none;
    font-size: 12.5px;
  }
  .q-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ========================================================
   まとめてお見積もり（quote_options.js・第2弾）
   結果画面の選択セクション。フィルム部位は combo-* を再利用。
   ======================================================== */
.qo-card {
  background: var(--bg-card); border: 1px solid var(--gold-dim);
  border-radius: var(--radius-sm); padding: 16px; margin-top: 14px;
}
.qo-title {
  margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--gold-soft);
  letter-spacing: 0.06em;
}
.qo-lead { margin: 0 0 10px; font-size: 12px; color: var(--text-dim); }
.qo-group {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-top: 8px; overflow: hidden;
}
.qo-group.open { border-color: var(--gold-dim); }
.qo-group-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: var(--bg-elev); color: var(--text);
  border: none; padding: 11px 12px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-align: left;
}
.qo-chev { color: var(--gold-soft); font-size: 11px; }
.qo-count {
  margin-left: auto; font-size: 11px; color: var(--gold-hi);
  background: var(--gold-dim); border-radius: 10px; padding: 2px 8px;
}
.qo-group-body { padding: 6px 10px 10px; }
.qo-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 6px; border-bottom: 1px solid var(--line);
  cursor: pointer; font-size: 13px;
}
.qo-row:last-of-type { border-bottom: none; }
.qo-row.selected .qo-row-label { color: var(--gold-hi); }
.qo-row input[type="checkbox"] { accent-color: var(--gold); width: 17px; height: 17px; flex: none; }
.qo-row-label { flex: 1; }
.qo-row-label small { display: block; font-size: 11px; color: var(--text-faint); }
.qo-row-price { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.qo-note { margin: 6px 0 0; font-size: 11px; color: var(--text-faint); }
.qo-summary {
  margin-top: 12px; padding: 12px; border: 1px solid var(--gold-dim);
  border-radius: var(--radius-sm); background: var(--bg-elev);
}
.qo-discount .val { color: #e8a0a0; }
.qo-teaser {
  margin: 10px 0 6px; font-size: 12.5px; color: var(--gold-hi); text-align: center;
}
.qo-summary .cta { display: block; width: 100%; text-align: center; margin-top: 8px; }

/* おトクの見える化（第2弾仕様追加）— 書類とサマリー */
.q-savings {
  margin: 8px 22px 0; padding: 8px 12px;
  background: #faf5e6; border: 1px dashed #a9853a; border-radius: 4px;
}
.q-savings-main { margin: 0; font-size: 13.5px; font-weight: 700; color: #8a6d2f; }
.q-savings-detail { margin: 2px 0 0; font-size: 11px; color: #6d5623; }
.q-savings .q-teaser {
  margin: 6px 0 0; padding: 0; background: none; border: none;
}
.qo-savings {
  margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--gold-hi);
  text-align: center;
}
.qo-savings small { display: block; font-size: 11px; font-weight: 400; color: var(--text-dim); }
