/* =========================================================
   ReHOME オーダーロールスクリーン 購入フォーム
   カーテン版リニューアル提案のデザイン言語を踏襲
   - Main grey #666C70 / Charcoal #38393D / Gold accent #d7be00
   ========================================================= */
:root{
  --bg:#f0f1f2;
  --surface:#ffffff;
  --surface-2:#e6e8ea;
  --surface-3:#d8dbde;
  --line:#d3d6d8;
  --line-strong:#a9adb1;
  --ink:#38393D;
  --ink-2:#4d5054;
  --ink-3:#7a7e82;
  --accent-beige:#b9bdc0;
  --accent-deep:#666C70;
  --accent-bg:#eef0f2;
  --gold:#d7be00;
  --gold-soft:#f6f3e8;
  --gold-ink:#7a5800;
  --cta:#38393D;
  --cta-hover:#25262a;
  --ok:#2f7d4f;
  --sel-blue:#86B8C0;
  --warn:#b8742a;
  --error:#b54545;
  --shadow-sm:0 1px 2px rgba(40,42,46,0.05), 0 1px 1px rgba(40,42,46,0.03);
  --shadow-md:0 4px 16px rgba(40,42,46,0.07), 0 1px 2px rgba(40,42,46,0.04);
  --shadow-lg:0 12px 32px rgba(40,42,46,0.12), 0 2px 6px rgba(40,42,46,0.06);
}
*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  overflow-anchor:none;
  font-family:'Noto Sans JP',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased; text-wrap:pretty; line-height:1.6;
}
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; }
img{ display:block; max-width:100%; }

/* ───────── 遮光デザイン専用LP ───────── */
.shade-lp{ background:var(--surface); padding:0 0 8px; }
.shade-lp[hidden]{ display:none; }
.shade-lp{ display:none !important; }
.shade-lp-inner{ max-width:760px; margin:0 auto; padding:18px 16px 4px; text-align:center; }
.slp-hero{ display:block; width:100%; height:auto; margin:0 0 10px; border-radius:5px; }
.slp-hero.slp-flush{ margin:0; border-radius:0; }
.slp-hero.slp-flush + .slp-vtitle{ margin-top:18px; }
.slp-hero.slp-flush + .slp-vsub{ margin-top:14px; }
.slp-hero.slp-gap-top{ margin-top:28px; }
.slp-banner.slp-banner-flush{ margin-top:0; }
/* 2枚目ヒーローの下部「画像をタップ…」帯をトリミング（高さ基準） */
.slp-hero-crop{ position:relative; width:100%; padding-bottom:297%; overflow:hidden; border-radius:5px; margin:0 0 10px; }
.slp-hero-crop img{ position:absolute; top:0; left:0; width:100%; height:auto; display:block; }
/* 1級遮光ヒーローの下部「カラーバリエーション＋タップ案内」帯をトリミング */
.slp-1kyu-crop{ padding-bottom:405%; }
/* 採光ヒーローの下部「カラーバリエーション＋タップ案内」帯をトリミング */
.slp-saiko-crop{ padding-bottom:298%; }
/* 完全遮光ヒーローの下部「カラーバリエーション＋タップ案内」帯をトリミング */
.slp-kanzen-crop{ padding-bottom:461%; }
/* テキスタイルヒーローの下部「カラーバリエーション＋タップ案内」帯をトリミング */
.slp-textile-crop{ padding-bottom:397%; }
/* シンプルヒーローの下部「カラーバリエーション＋タップ案内」帯をトリミング */
.slp-simple-crop{ padding-bottom:413%; }
.slp-vtitle{
  margin:18px 0 6px; font-size:22px; font-weight:700; color:var(--ink); letter-spacing:.08em;
  position:relative; display:inline-block; padding:0 2px;
}
.slp-vtitle::after{ content:""; display:block; height:3px; background:var(--gold); border-radius:2px; margin-top:7px; }
.slp-vsub{ margin:0 0 14px; font-size:13px; color:var(--ink-3); letter-spacing:.04em; }
.slp-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.slp-chip{
  display:flex; flex-direction:column; gap:6px; padding:0; background:none; border:0; cursor:pointer; text-align:center; font:inherit;
}
.slp-chip-img{ position:relative; display:block; line-height:0; border-radius:5px; overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .15s ease, box-shadow .15s ease; aspect-ratio:1/1; }
.slp-chip:hover .slp-chip-img{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.slp-chip-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.slp-chip-zoom{
  position:absolute; right:6px; bottom:6px; width:24px; height:24px; border-radius:50%;
  background:rgba(56,57,61,.78); color:#fff; display:flex; align-items:center; justify-content:center;
  line-height:0; backdrop-filter:blur(2px); transition:background .15s ease, transform .15s ease;
}
.slp-chip-zoom svg{ width:15px; height:15px; }
.slp-chip:hover .slp-chip-zoom{ background:var(--sel-blue); transform:scale(1.08); }
.slp-chip-cap{ display:flex; flex-direction:column; line-height:1.3; }
.slp-chip-cap .n{ font-size:12px; font-weight:700; color:var(--ink); }
.slp-chip-cap .s{ font-size:11px; color:var(--ink-3); }
.slp-banner{ display:block; line-height:0; margin:18px 0 14px; border-radius:5px; overflow:hidden; }
.slp-banner img{ width:100%; height:auto; display:block; }
.slp-faq{ display:inline-block; font-size:16px; font-weight:700; color:var(--accent-deep); text-decoration:none; padding:6px 0; margin-bottom:28px; }
.slp-faq:hover{ text-decoration:underline; }
@media (max-width:620px){
  .slp-grid{ grid-template-columns:repeat(3,1fr); gap:8px; }
  .slp-vtitle{ font-size:19px; }
}

/* ───────── オーダー誘導バナー（常駐ではない） ───────── */
.order-banner{
  background:var(--gold); text-align:center;
  padding:26px 20px 22px; margin-bottom:6px;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.ob-badge{
  display:inline-block; background:var(--ink); color:#fff;
  font-size:12px; font-weight:700; letter-spacing:.12em; white-space:nowrap;
  padding:5px 16px; border-radius:999px;
}
.ob-title{
  margin:0; font-size:24px; font-weight:700; color:var(--ink);
  letter-spacing:.06em; white-space:nowrap;
}
.ob-arrow{ color:var(--ink); line-height:0; animation:obBounce 1.6s ease-in-out infinite; }
.ob-arrow svg{ width:26px; height:26px; }
@keyframes obBounce{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(7px); }
}
@media (prefers-reduced-motion:reduce){ .ob-arrow{ animation:none; } }
@media (max-width:620px){
  .order-banner{ padding:20px 16px 16px; }
  .ob-title{ font-size:20px; }
}

/* ───────── ヘッダー ───────── */
.site-header{
  background:var(--surface); border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:30;
}
.site-header .inner{
  max-width:1180px; margin:0 auto; padding:14px 32px;
  display:flex; align-items:center; gap:16px;
}
.logo{ font-size:19px; font-weight:700; letter-spacing:.08em; }
.logo small{ font-size:11px; font-weight:500; color:var(--ink-3); letter-spacing:.16em; margin-left:8px; }
.breadcrumb{ margin-left:auto; font-size:12px; color:var(--ink-3); }
.header-trust{ display:flex; gap:16px; }
.header-trust span{ font-size:11.5px; color:var(--ink-2); display:inline-flex; align-items:center; gap:5px; }
.header-trust svg{ width:14px; height:14px; color:var(--accent-deep); }

/* ───────── ヒーロー ───────── */
.hero{
  max-width:1180px; margin:0 auto; padding:30px 32px 8px;
}
.hero .meta{ font-size:12px; color:var(--ink-3); margin-bottom:8px; letter-spacing:.04em; }
.hero h1{ font-size:25px; font-weight:700; letter-spacing:.02em; margin:0 0 10px; }
.hero .stars{ display:flex; align-items:center; gap:10px; font-size:13px; color:var(--ink-2); }
.hero .stars .s{ color:#d4a23a; letter-spacing:-1px; font-size:15px; }
.hero .stars .rev{ color:var(--ink-3); }

/* ───────── レイアウト ───────── */
.layout{
  max-width:1180px; margin:0 auto; padding:30px 32px 64px;
  display:grid; grid-template-columns:1fr 360px; gap:30px; align-items:stretch;
}
.steps-col{ min-width:0; }

/* ───────── 進行バー（上部） ───────── */
.progress{
  position:sticky; top:0; z-index:20;
  background:var(--bg); padding:14px 0 10px; margin-bottom:6px;
}
.progress .pips{ display:flex; gap:6px; }
.progress .pip{
  flex:1; font-size:11px; text-align:center; color:var(--ink-3);
  padding:7px 4px 8px; border-radius:5px; position:relative; white-space:nowrap;
  border:1px solid transparent;
}
.progress .pip .pn{
  display:inline-flex; width:18px; height:18px; border-radius:50%; margin-right:5px;
  align-items:center; justify-content:center; font-size:10px; font-weight:700;
  background:var(--surface-3); color:var(--ink-2); vertical-align:middle;
}
.progress .pip.done{ color:var(--ink-2); }
.progress .pip.done .pn{ background:var(--accent-deep); color:#fff; }
.progress .pip.current{ color:var(--ink); font-weight:700; background:var(--surface); border-color:var(--line); box-shadow:var(--shadow-sm); }
.progress .pip.current .pn{ background:var(--accent-deep); color:#fff; }
.progress .pip.locked{ opacity:.4; cursor:not-allowed; }

/* ───────── ステップカード ───────── */
.step{
  background:var(--surface); border:1px solid var(--line); border-radius:5px;
  padding:26px 26px 24px; margin-bottom:16px; position:relative; scroll-margin-top:80px;
}
.step.done{ background:#fbfaf6; }
/* ロック中のステップ（前の選択が未完了） */
.step.locked{ opacity:.5; pointer-events:none; filter:saturate(.5); position:relative; }
.step.locked::after{
  content:'前のステップを選択すると進めます'; position:absolute; top:14px; right:18px;
  font-size:11px; font-weight:600; color:var(--ink-3);
  background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:4px 12px;
  pointer-events:none;
}
.step.locked .step-head .status{ display:none; }
.step-head{ display:flex; align-items:center; gap:13px; margin-bottom:8px; flex-wrap:nowrap; }
.step-head .num{
  width:31px; height:31px; border-radius:50%; background:var(--accent-deep); color:#fff;
  font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.step.done .step-head .num{ background:var(--surface); color:var(--accent-deep); border:2px solid var(--accent-deep); }
.step-head h2{ font-size:18px; font-weight:700; margin:0; letter-spacing:.01em; flex:0 1 auto; min-width:0; white-space:nowrap; }
.step-head .status{
  margin-left:auto; font-size:12px; font-weight:600; color:var(--sel-blue);
  display:flex; align-items:center; gap:5px; flex:0 1 auto; min-width:0; max-width:50%; white-space:nowrap;
}
.step-head .status svg{ flex:0 0 auto; }
.step-head .status.todo{ color:var(--ink-3); font-weight:500; }
.step-head .status .stxt{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.step-sub{ font-size:13px; color:var(--ink-2); margin:0 0 18px 44px; }
.step-content{ padding-left:44px; }

@media (max-width:560px){
  .step-sub{ margin-left:0; }
  .step-content{ padding-left:0; }
}

/* ───────── 生地タイプタブ（ゴールド active） ───────── */
.fabric-tabs{ display:flex; flex-wrap:wrap; gap:7px; margin-bottom:14px; }
.fabric-tab{
  padding:8px 14px; border:1.5px solid var(--line); border-radius:999px;
  background:var(--surface); font-size:12px; font-weight:600; color:var(--ink-2);
}
.fabric-tab .count{ font-size:10px; font-weight:500; margin-left:4px; opacity:.7; }
.fabric-tab.active{ background:var(--gold); color:#fff; border-color:var(--gold); }
.series-desc{ font-size:12.5px; color:var(--ink-3); margin:0 0 14px; }

/* ───────── カラー/ルーム プレビュー（寸法シミュレーター内蔵） ───────── */
.color-preview{
  display:grid; grid-template-columns:1.4fr 1fr; gap:16px; align-items:center;
  background:linear-gradient(180deg,#f9f9fa 0%,#eef0f2 100%);
  border:1px solid var(--line); border-radius:5px; padding:16px; margin:0 0 18px;
}
.cp-stage{ position:relative; border-radius:5px; overflow:hidden; background:var(--surface-2); padding:10px; }
.cp-stage svg{ width:100%; height:auto; display:block; }
.cp-info{ display:flex; flex-direction:column; justify-content:center; }
.cp-label{ font-size:11px; letter-spacing:.06em; color:var(--ink-3); font-weight:700; margin-bottom:7px; }
.cp-name{ font-size:21px; font-weight:700; letter-spacing:.02em; line-height:1.25; }
.cp-code{ font-size:12px; color:var(--ink-3); font-family:'SF Mono',monospace; margin-bottom:10px; }
.cp-desc{ font-size:12px; line-height:1.7; color:var(--ink-2); }
.cp-dims{ display:flex; gap:18px; margin-top:12px; font-size:12px; color:var(--ink-2); }
.cp-dims b{ font-size:15px; color:var(--ink); }
.cp-dims .u{ color:var(--ink-3); font-size:11px; }
@media (max-width:560px){ .color-preview{ grid-template-columns:1fr; } }

/* ───────── スウォッチ ───────── */
.color-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.swatch{
  position:relative; border:1.5px solid var(--line); border-radius:5px;
  background:var(--surface); overflow:hidden; cursor:pointer; text-align:left;
  padding:0; font-family:inherit; transition:border-color .15s;
  display:flex; flex-direction:column; justify-content:flex-start;
}
.swatch:hover{ border-color:var(--line-strong); }
.swatch.selected{ border-color:var(--accent-deep); border-width:2px; box-shadow:0 0 0 4px rgba(102,108,112,.08); }
.swatch .chip{ width:100%; aspect-ratio:5/4; position:relative; display:block; }
.swatch .chip img{ width:100%; height:100%; object-fit:cover; object-position:top; display:block; }
.swatch .chip::after{
  content:''; position:absolute; inset:0; display:none;
  background:linear-gradient(180deg,rgba(255,255,255,0) 60%,rgba(0,0,0,.05)),
    repeating-linear-gradient(90deg,transparent 0 3px,rgba(0,0,0,.03) 3px 4px);
}
#colorGrid[data-tab="1"] .swatch .chip::after{ display:none; }
.swatch .meta{ padding:8px 10px 10px; }
.swatch .meta .name{ display:block; font-size:12.5px; font-weight:600; margin-bottom:1px; line-height:1.35; }
.swatch .meta .desc{ display:block; font-size:11px; color:var(--ink-3); line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.swatch .badge{
  position:absolute; top:8px; left:8px; font-size:10px; font-weight:700;
  padding:3px 7px; border-radius:999px; background:var(--gold); color:#fff;
}
.swatch .sw-badge{
  position:absolute; top:6px; left:6px; z-index:2;
  background:var(--cta,#38393D); color:#fff; font-size:10px; font-weight:700;
  padding:2px 6px; border-radius:4px; line-height:1.3; white-space:nowrap; box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.swatch .check{
  position:absolute; top:8px; right:8px; width:22px; height:22px; border-radius:50%;
  background:var(--sel-blue); color:#fff; display:none; align-items:center; justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
}
.swatch .check svg{ width:13px; height:13px; }
.swatch.selected .check{ display:flex; }
@media (max-width:680px){ .color-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:440px){ .color-grid{ grid-template-columns:repeat(2,1fr); } }

/* ───────── オプションカード（操作方法・本体仕様） ───────── */
.option-list{ display:flex; flex-direction:column; gap:10px; }
.option-card{
  border:1.5px solid var(--line); border-radius:5px; padding:16px 18px; background:var(--surface);
  display:flex; gap:18px; align-items:center; text-align:left; font-family:inherit; width:100%; transition:.15s;
}
.option-card:hover{ border-color:var(--line-strong); }
.option-card.disabled{ opacity:.42; cursor:not-allowed; background:var(--surface-2); filter:grayscale(.35); }
.option-card.disabled:hover{ border-color:var(--line); }
.option-card.selected{ border-color:var(--accent-deep); border-width:2px; background:var(--accent-bg); box-shadow:0 0 0 4px rgba(102,108,112,.06); }
.option-card .icon{
  width:110px; height:110px; flex-shrink:0; border-radius:5px; background:var(--surface-2);
  overflow:hidden; display:flex; align-items:center; justify-content:center;
}
.option-card .icon img{ width:100%; height:100%; object-fit:cover; }
.option-card .body{ flex:1; min-width:0; }
.option-card .body .ttl{ font-size:14px; font-weight:700; display:flex; align-items:center; gap:8px; margin-bottom:3px; }
.option-card .body .ttl .add{ font-size:11px; font-weight:700; color:var(--gold-ink); background:var(--gold-soft); padding:1px 7px; border-radius:5px; white-space:nowrap; }
.option-card .body .desc{ font-size:12px; color:var(--ink-2); line-height:1.5; }
.option-card .radio{ width:20px; height:20px; border-radius:50%; border:2px solid var(--line-strong); flex-shrink:0; position:relative; }
.option-card.selected .radio{ border-color:var(--accent-deep); }
.option-card.selected .radio::after{ content:''; position:absolute; inset:3px; background:var(--accent-deep); border-radius:50%; }

/* ───────── セグメント（取付位置・既製/オーダー） ───────── */
.seg{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.seg-btn{
  border:1.5px solid var(--line); background:var(--surface); border-radius:5px; padding:14px;
  font-family:inherit; text-align:left; transition:.15s;
}
.seg-btn:hover{ border-color:var(--line-strong); }
.seg-btn.active{ border-color:var(--accent-deep); border-width:2px; background:var(--accent-bg); }
.seg-btn .seg-ttl{ font-size:14px; font-weight:700; color:var(--ink); }
.seg-btn .seg-sub{ font-size:11px; color:var(--ink-3); margin-top:3px; }

/* ───────── 取り付け位置（イラスト付き2択） ───────── */
.fit-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.fit-card{
  border:1.5px solid var(--line); background:var(--surface); border-radius:5px;
  padding:14px; font-family:inherit; text-align:left; transition:.15s; position:relative;
  display:flex; flex-direction:column;
}
.fit-card:hover{ border-color:var(--line-strong); }
.fit-card.selected{ border-color:var(--accent-deep); border-width:2px; background:var(--accent-bg); box-shadow:0 0 0 4px rgba(102,108,112,.06); }
.fit-card .fit-img{ display:block; border-radius:5px; overflow:hidden; background:var(--surface-2); margin-bottom:10px; }
.fit-card .fit-img img{ width:100%; height:auto; display:block; }
.fit-card .fit-ttl{ font-size:14px; font-weight:700; color:var(--ink); }
.fit-card .fit-desc{ font-size:11.5px; color:var(--ink-3); margin-top:3px; line-height:1.5; }
.fit-card .fit-radio{ position:absolute; top:14px; right:14px; width:20px; height:20px; border-radius:50%; border:2px solid var(--line-strong); }
.fit-card.selected .fit-radio{ border-color:var(--accent-deep); }
.fit-card.selected .fit-radio::after{ content:''; position:absolute; inset:3px; background:var(--accent-deep); border-radius:50%; }
.fit-card.disabled{ opacity:.4; cursor:not-allowed; }
@media (max-width:440px){ .fit-grid{ grid-template-columns:1fr; } }

.block{ margin-top:22px; }
.block:first-child{ margin-top:0; }
.block-ttl{ font-size:13px; font-weight:700; margin:0 0 4px; }
.block-note{ font-size:12px; color:var(--ink-3); margin:0 0 12px; }
.block-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.block-head .block-ttl{ margin:0; }
.measure-link{ background:transparent; border:none; color:var(--accent-deep); font-weight:600; text-decoration:underline; font-size:12px; padding:0; white-space:nowrap; }

/* ───────── サイズ入力 ───────── */
.size-range{ margin-top:14px; border:1px solid var(--line); border-radius:5px; overflow:hidden; }
.size-range:empty{ display:none; }
.size-foot-note{ margin:12px 0 0; font-size:11.5px; color:var(--ink-2); line-height:1.6; }
.size-lock-msg{ display:none; }
#orderSizeBlock.locked .size-grid,#orderSizeBlock.locked .block-head,#orderSizeBlock.locked .size-range{ opacity:.4; pointer-events:none; }
#orderSizeBlock.locked .size-lock-msg{ display:flex; align-items:center; justify-content:center; gap:7px; text-align:center; margin:0 0 12px; padding:12px; font-size:13px; font-weight:700; color:var(--accent-deep); background:var(--accent-bg,#eef4f5); border:1.5px dashed var(--sel-blue); border-radius:6px; }
.size-range .sr-ttl{ background:var(--surface-2); padding:9px 14px; font-size:12.5px; font-weight:700; color:var(--ink); }
.size-range .sr-row{ display:flex; justify-content:space-between; padding:8px 14px; font-size:13px; color:var(--ink-2); border-top:1px solid var(--line); }
.size-range .sr-row span{ font-weight:600; }
.size-range .sr-note{ padding:8px 14px; font-size:11px; color:var(--ink-3); border-top:1px solid var(--line); line-height:1.5; }
.size-row label{ display:flex; flex-direction:column; gap:2px; font-size:13px; font-weight:600; margin-bottom:6px; white-space:nowrap; }
.size-row label .hint{ font-size:11px; color:var(--ink-3); font-weight:400; margin-left:0; }
.size-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.size-row{ min-width:0; }
.input-wrap{
  display:flex; align-items:stretch; border:1.5px solid var(--line-strong); border-radius:5px;
  background:var(--surface); overflow:hidden; transition:border-color .15s;
}
.input-wrap:focus-within{ border-color:var(--accent-deep); box-shadow:0 0 0 3px rgba(102,108,112,.1); }
.input-wrap input{
  flex:1; border:none; background:transparent; padding:14px 16px; font-size:22px; font-weight:600;
  color:var(--ink); outline:none; text-align:right; min-width:0; width:100%; -moz-appearance:textfield;
}
.input-wrap input::placeholder{ color:var(--line-strong); opacity:.55; font-weight:600; }
.input-wrap input::-webkit-outer-spin-button,.input-wrap input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.input-wrap .unit{ display:flex; align-items:center; padding:0 16px; background:var(--surface-2); font-size:14px; font-weight:600; color:var(--ink-2); border-left:1px solid var(--line); }
.size-help{ display:flex; align-items:center; justify-content:space-between; margin-top:6px; font-size:11.5px; color:var(--ink-3); }
.size-help .warning{ color:var(--error); font-weight:600; }
.size-help button{ background:transparent; border:none; color:var(--accent-deep); font-weight:600; text-decoration:underline; font-size:11.5px; padding:0; }
.kisei-select{
  width:100%; padding:13px 14px; border:1.5px solid var(--line); border-radius:5px; background:var(--surface);
  font-size:14px; color:var(--ink); appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23383a3d' d='M0 0h12L6 8z'/></svg>");
  background-repeat:no-repeat; background-position:right 12px center;
}
.kisei-select:focus{ border-color:var(--gold); outline:none; }

.help-callout{
  background:var(--gold-soft); border:1px solid #e8dcb6; border-radius:5px; padding:12px 14px;
  margin-top:14px; font-size:12px; color:var(--ink-2); line-height:1.55; display:flex; gap:9px;
}
.op-note{
  display:flex; gap:9px; align-items:flex-start; margin-top:12px;
  background:var(--gold-soft); border:1px solid #e8dcb6; border-radius:5px; padding:12px 14px;
  font-size:12px; color:var(--ink-2); line-height:1.6;
}
.op-note[hidden]{ display:none; }
.op-note svg{ flex:0 0 auto; width:18px; height:18px; color:var(--gold-ink); margin-top:1px; }
.op-note b{ color:var(--ink); font-weight:700; }
.help-callout svg{ flex:0 0 auto; width:16px; height:16px; color:#c79a45; margin-top:1px; }
.help-callout strong{ color:var(--ink); }

/* ───────── stepper ───────── */
.stepper{ display:inline-flex; align-items:center; border:1.5px solid var(--line-strong); border-radius:5px; overflow:hidden; }
.stepper button{ width:44px; height:46px; border:none; background:var(--surface-2); font-size:18px; font-weight:700; color:var(--ink); }
.stepper button:hover{ background:var(--surface-3); }
.stepper .val{ width:56px; text-align:center; font-size:18px; font-weight:700; }

/* ───────── pills ───────── */
.pill-row{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{
  padding:10px 16px; border:1.5px solid var(--line-strong); border-radius:999px; background:var(--surface);
  font-size:13px; font-weight:600; color:var(--ink-2);
}
.pill.selected{ background:var(--accent-deep); border-color:var(--accent-deep); color:#fff; }

/* ───────── 部品色チップ ───────── */
.color-chips{ display:flex; gap:10px; flex-wrap:wrap; }
.color-chip{
  display:flex; align-items:center; gap:9px; border:1.5px solid var(--line); background:var(--surface);
  border-radius:999px; padding:7px 16px 7px 8px;
}
.color-chip .dot{ width:22px; height:22px; border-radius:50%; border:1px solid rgba(0,0,0,.08); }
.color-chip span{ font-size:13px; font-weight:600; white-space:nowrap; }
.color-chip.selected{ border-color:var(--accent-deep); box-shadow:0 0 0 1.5px var(--accent-deep) inset; }
.color-chip.disabled{ opacity:.4; cursor:not-allowed; }

/* ───────── 確認パネル ───────── */
.confirm-panel{ margin-top:4px; padding:16px 16px 14px; background:var(--bg); border:1px solid var(--line); border-radius:5px; }
.confirm-title{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; margin-bottom:10px; }
.confirm-badge{ display:inline-block; padding:2px 8px; font-size:10px; font-weight:700; background:var(--accent-deep); color:#fff; border-radius:999px; letter-spacing:.04em; }
.confirm-row{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:8px 0; font-size:13px; }
.confirm-row + .confirm-row{ border-top:1px dashed var(--line); }
.confirm-key{ color:var(--ink-2); font-weight:500; flex:0 0 auto; }
.confirm-val{ color:var(--ink); font-weight:600; text-align:right; }
.confirm-row.highlight .confirm-val b{ font-size:18px; color:var(--accent-deep); margin-right:2px; }
.confirm-note{ margin:10px 0 0; font-size:11px; color:var(--ink-3); line-height:1.6; }
.agree{ display:flex; gap:11px; align-items:flex-start; margin-top:16px; cursor:pointer; font-size:13px; color:var(--ink-2); }
.agree input{ width:20px; height:20px; accent-color:var(--accent-deep); margin-top:1px; flex:0 0 auto; }
.agree b{ color:var(--error); }

/* ───────── 右サマリー（sticky） ───────── */
.summary{
  position:sticky; top:16px; background:var(--surface); border:1px solid var(--line);
  border-radius:5px; overflow:hidden; box-shadow:var(--shadow-sm);
}
.summary .head{ background:var(--surface-3); padding:13px 18px; font-size:14px; font-weight:700; display:flex; justify-content:space-between; align-items:center; }
.summary .head .cnt{ font-size:11px; color:var(--ink-2); font-weight:500; }
.summary .preview{ padding:14px 18px 4px; }
.summary .preview .frame{ border:1px solid var(--line); border-radius:5px; overflow:hidden; background:linear-gradient(180deg,#f9f9fa,#eef0f2); padding:12px; }
.summary .preview .frame svg{ width:100%; height:auto; display:block; }
.summary .preview .pv-cap{ text-align:center; font-size:11px; color:var(--ink-3); margin-top:6px; }
.summary .rows{ padding:6px 18px 10px; }
.summary .sum-qty{ display:flex; align-items:center; justify-content:space-between; padding:11px 18px; border-top:1px solid var(--line); background:var(--surface); }
.summary .sum-qty .ql{ font-size:13px; font-weight:600; color:var(--ink-2); }
.summary .sum-qty .stepper{ border-color:var(--line); }
.summary .sum-qty .stepper button{ width:38px; height:38px; font-size:16px; }
.summary .sum-qty .stepper .val{ width:46px; font-size:16px; }
.summary .row{ display:grid; grid-template-columns:74px 1fr auto; gap:10px; padding:9px 0; border-bottom:1px dashed var(--line); font-size:13px; align-items:center; }
.summary .row:last-child{ border-bottom:none; }
.summary .row .k{ color:var(--ink-3); font-size:12px; }
.summary .row .v{ color:var(--ink); font-weight:500; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.summary .row .v.empty{ color:var(--ink-3); font-weight:400; }
.summary .row .edit{ background:none; border:none; color:var(--accent-deep); font-size:11px; font-weight:600; text-decoration:underline; }
.summary .total{ background:var(--surface-2); border-top:1px solid var(--line); padding:15px 18px; display:flex; justify-content:space-between; align-items:baseline; }
.summary .total .l{ font-size:13px; color:var(--ink-2); }
.summary .total .v{ font-size:24px; font-weight:700; }
.summary .total .v .yen{ font-size:14px; font-weight:500; }
.summary .total .v .tax{ font-size:11px; font-weight:400; color:var(--ink-3); margin-left:4px; }
.summary .total .v .tax-in{ font-size:12px; font-weight:600; color:var(--ink-2); margin-left:6px; }

/* 生地選択のセール10%OFFバナー */
.fabric-sale{ display:flex; align-items:center; gap:10px; margin:12px 0 4px; padding:11px 14px; border-radius:5px; background:#fdecec; border:1px solid #f3c9c9; }
.fabric-sale[hidden]{ display:none; }
.fabric-sale .fs-badge{ flex-shrink:0; font-size:12px; font-weight:800; color:#fff; background:var(--error,#c0392b); padding:3px 10px; border-radius:4px; letter-spacing:.05em; }
.fabric-sale .fs-text{ font-size:13px; color:#9a3434; line-height:1.5; }
.fabric-sale .fs-text b{ font-size:15px; color:var(--error,#c0392b); }
.summary .cta-wrap{ padding:16px 18px 18px; }
.cta-btn{
  width:100%; background:var(--cta); color:#fff; border:none; padding:16px; border-radius:5px;
  font-size:15px; font-weight:700; letter-spacing:.02em; box-shadow:0 4px 12px rgba(102,108,112,.18); transition:.15s;
}
.cta-btn:hover{ background:var(--cta-hover); }
.cta-btn:disabled,.cta-btn.is-disabled{ background:var(--line-strong); color:var(--surface); box-shadow:none; }
.cta-btn.is-disabled{ cursor:pointer; }
.cta-btn .sub{ display:block; font-size:11px; font-weight:400; opacity:.85; margin-top:3px; }
.cta-missing{ font-size:11px; color:var(--warn); margin:0 0 9px; display:flex; align-items:center; gap:5px; }
.cta-sub{ font-size:11px; color:var(--ink-3); text-align:center; margin-top:9px; }
.trust-mini{ margin:14px 18px 18px; padding:12px 14px; background:var(--surface-2); border-radius:5px; font-size:11px; color:var(--ink-2); line-height:1.7; }
.trust-mini div{ display:flex; align-items:center; gap:7px; }
.trust-mini svg{ width:14px; height:14px; color:var(--accent-deep); flex:0 0 auto; }

/* ───────── モバイル固定CTA ───────── */
.sticky-cta{ display:none; }

/* ───────── 確認モーダル ───────── */
.modal-bd{
  position:fixed; inset:0; background:rgba(35,28,20,.45); z-index:50;
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:1;
}
.modal-bd[hidden]{ display:none; }
.cart-confirm{ animation:popIn .2s ease both; }
#lpDetailBody img{ width:100%; height:auto; display:block; border-radius:8px; }
#lpDetailBody img + img{ margin-top:12px; }
.measure-box{ position:relative; background:#fff; border-radius:8px; max-width:560px; width:100%; max-height:92vh; overflow-y:auto; box-shadow:var(--shadow-lg); }
.measure-box img{ width:100%; height:auto; display:block; border-radius:8px; }
.measure-note{ margin:14px; padding:14px 16px; border:1.5px solid var(--error,#c0392b); border-radius:6px; }
.measure-note p{ margin:0 0 8px; font-size:13px; line-height:1.7; color:var(--ink); }
.measure-note p:last-child{ margin-bottom:0; }
.measure-note .mn-em{ color:var(--error,#c0392b); font-weight:700; }
.measure-close{ position:absolute; top:10px; right:10px; width:34px; height:34px; border-radius:50%; border:none; background:rgba(0,0,0,.55); color:#fff; font-size:22px; line-height:1; cursor:pointer; z-index:2; }
@keyframes popIn{ from{transform:translateY(8px);} to{transform:none;} }
.cc-head{ display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid var(--line); position:sticky; top:0; background:#fff; z-index:2; }
.cc-head h3{ font-size:16px; font-weight:700; margin:0; }
.cc-close{ background:none; border:none; font-size:22px; color:var(--ink-3); line-height:1; }
.cc-body{ padding:16px 18px; }
.cart-confirm{ background:#fff; border-radius:8px; width:100%; max-width:430px; max-height:92vh; overflow-y:auto; box-shadow:var(--shadow-lg); }

/* header（ゴールド） */
.nc-head{ background:var(--gold); padding:30px 18px 22px; text-align:center; position:sticky; top:0; z-index:2; }
.nc-head-pill{ display:inline-block; background:var(--cta); color:#fff; font-size:12px; font-weight:700; padding:6px 18px; border-radius:999px; }
.nc-head h3{ font-size:21px; font-weight:700; color:#fff; margin:12px 0 0; letter-spacing:.02em; }
.nc-close{ position:absolute; top:12px; right:14px; background:rgba(0,0,0,.18); border:none; color:#fff; width:26px; height:26px; border-radius:50%; font-size:18px; line-height:1; }

.nc-body{ padding:18px 16px 6px; }
.nc-sec-ttl{ display:flex; align-items:center; gap:8px; font-size:15px; font-weight:700; color:var(--ink); margin-bottom:12px; }
.nc-badge{ font-size:10px; font-weight:700; color:var(--gold-ink); background:#fff; border:1.5px solid var(--gold); border-radius:5px; padding:3px 8px; letter-spacing:.04em; }

/* ① 合計金額 */
.nc-pricebox{ background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:14px; margin-bottom:10px; }
.nc-num{ display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; background:var(--accent-deep); color:#fff; font-size:11px; font-weight:700; margin-right:6px; }
.nc-num.red{ background:var(--error); }
.nc-pb-label{ font-size:13px; color:var(--ink); display:flex; align-items:center; }
.nc-pb-note{ font-size:11.5px; color:var(--ink-2); margin:8px 0 6px; line-height:1.5; }
.nc-pb-amounts{ display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.nc-amt{ display:inline-flex; align-items:baseline; }
.nc-amt b{ font-size:26px; font-weight:800; color:var(--cta); letter-spacing:.01em; }
.nc-amt .u{ font-size:13px; font-weight:700; color:var(--cta); margin-left:1px; }
.nc-amt .t{ font-size:10px; font-weight:700; color:#fff; background:var(--accent-deep); border-radius:3px; padding:1px 5px; margin-left:4px; align-self:center; }
.nc-amt-sub b{ font-size:21px; color:var(--ink-2); }
.nc-amt-sub .u{ color:var(--ink-2); }
.nc-amt-sep{ font-size:18px; color:var(--line-strong); font-weight:300; }

/* ② カートの小計 */
.nc-minbox{ background:#fbf2f2; border:1px solid #e8c9c9; border-radius:6px; padding:12px 14px; margin-bottom:16px; }
.nc-mb-row{ display:flex; align-items:center; font-size:13px; color:var(--ink); }
.nc-mb-price{ margin-left:auto; font-size:16px; font-weight:800; color:var(--error); text-decoration:line-through; text-decoration-thickness:1.5px; }
.nc-mb-note{ font-size:11.5px; color:#a25656; margin-top:6px; line-height:1.5; }

/* カート画面イメージ */
.nc-mock-wrap{ margin-bottom:16px; }
.nc-mock-real{ position:relative; border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.nc-mock-real img{ width:100%; height:auto; display:block; }
.nc-mock-box-real{ position:absolute; left:75.5%; top:27%; width:23%; height:13%; border:2.5px solid var(--error); border-radius:5px; pointer-events:none; }
.nc-mock-callout-real{ position:absolute; left:50%; top:2%; transform:translateX(-50%); background:var(--error); color:#fff; font-size:11px; font-weight:700; padding:4px 9px; border-radius:4px; white-space:nowrap; box-shadow:0 2px 6px rgba(0,0,0,.2); }
.nc-mock-title{ font-size:12px; font-weight:700; color:var(--ink-2); margin-bottom:8px; }
.nc-mock{ border:1px solid var(--line); border-radius:6px; overflow:hidden; background:#fff; }
.nc-mock-store{ display:flex; align-items:center; gap:6px; background:var(--surface-2); padding:7px 12px; font-size:12px; font-weight:700; color:var(--ink-2); border-bottom:1px solid var(--line); }
.nc-mock-store svg{ width:15px; height:15px; }
.nc-mock-row{ display:flex; gap:10px; padding:12px; align-items:center; }
.nc-mock-thumb{ width:54px; height:54px; flex:0 0 auto; border:1px solid var(--line); border-radius:5px; overflow:hidden; background:var(--surface-2); }
.nc-mock-thumb svg{ width:100%; height:100%; }
.nc-mock-info{ flex:1; min-width:0; }
.nc-mock-pname{ font-size:12px; font-weight:700; line-height:1.4; color:var(--ink); overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.nc-mock-pmeta{ font-size:10.5px; color:var(--ink-3); margin-top:3px; }
.nc-mock-pricewrap{ flex:0 0 auto; text-align:right; position:relative; }
.nc-mock-callout{ display:block; background:var(--error); color:#fff; font-size:9.5px; font-weight:700; padding:3px 7px; border-radius:4px; margin-bottom:5px; white-space:nowrap; position:relative; }
.nc-mock-callout::after{ content:''; position:absolute; bottom:-4px; right:14px; border-left:5px solid transparent; border-right:5px solid transparent; border-top:5px solid var(--error); }
.nc-mock-price{ font-size:12px; color:var(--ink-2); }
.nc-mock-price b{ font-size:17px; font-weight:800; color:var(--error); }
.nc-mock-note{ font-size:11px; color:var(--ink-2); line-height:1.6; margin-top:9px; }
.nc-mock-note b{ color:var(--error); font-weight:700; }

/* ご注文後の流れ */
.nc-flow-ttl{ text-align:center; font-size:13px; font-weight:700; color:var(--ink); position:relative; margin:18px 0 12px; }
.nc-flow-ttl::before,.nc-flow-ttl::after{ content:''; position:absolute; top:50%; width:24%; height:1px; background:var(--line); }
.nc-flow-ttl::before{ left:0; } .nc-flow-ttl::after{ right:0; }
.nc-flow-step{ border:1px solid var(--line); border-radius:6px; padding:11px 13px; }
.nc-flow-h{ font-size:12.5px; font-weight:700; color:var(--ink); margin-bottom:4px; }
.nc-flow-d{ font-size:11.5px; line-height:1.55; padding-left:18px; position:relative; }
.nc-flow-d::before{ position:absolute; left:0; top:0; font-weight:700; }
.nc-x{ color:#a25656; } .nc-x::before{ content:'✕'; color:var(--error); }
.nc-ok{ color:var(--ok); } .nc-ok::before{ content:'●'; color:var(--ok); font-size:9px; top:2px; }
.nc-flow-arrow{ text-align:center; color:var(--line-strong); font-size:15px; margin:5px 0; }

/* デバッグ */
.nc-debug{ margin-top:14px; }
.nc-debug summary{ font-size:11.5px; color:var(--ink-3); cursor:pointer; padding:6px 0; }
.nc-choice{ font-size:10.5px; color:var(--ink-2); background:var(--surface-2); border-radius:5px; padding:10px; line-height:1.7; word-break:break-all; font-family:'SF Mono',monospace; }

.nc-footer{ padding:14px 16px 18px; position:sticky; bottom:0; background:#fff; border-top:1px solid var(--line); }
.nc-confirm-btn{ width:100%; padding:14px; background:var(--cta); color:#fff; border:none; border-radius:6px; font-size:15px; font-weight:700; display:flex; flex-direction:column; align-items:center; gap:2px; box-shadow:0 4px 12px rgba(56,57,61,.22); }
.nc-confirm-btn small{ font-size:10.5px; font-weight:500; opacity:.85; }
.nc-confirm-btn:hover{ background:var(--cta-hover); }
.nc-back{ width:100%; padding:11px; background:var(--surface-2); color:var(--ink-2); border:none; border-radius:6px; font-size:12.5px; font-weight:600; margin-top:8px; }
.nc-back:hover{ background:var(--surface-3); }

.footnote{ max-width:1180px; margin:0 auto; padding:8px 32px 80px; font-size:11.5px; color:var(--ink-3); line-height:1.8; }

/* ───────── レスポンシブ（モバイル：1カラム＋下部固定CTA） ───────── */
@media (max-width:980px){
  .layout{ grid-template-columns:1fr; padding-bottom:120px; }
  .summary{ position:static; }
  .summary .cta-wrap{ display:none; }
  .header-trust{ display:none; }
  .sticky-cta{
    display:block; position:fixed; left:0; right:0; bottom:0; z-index:40;
    background:rgba(255,255,255,.96); backdrop-filter:blur(10px);
    border-top:1px solid var(--line); padding:11px 16px calc(env(safe-area-inset-bottom,12px) + 12px);
  }
  .sticky-cta .price-line{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
  .sticky-cta .price-line .lbl{ font-size:11px; color:var(--ink-3); }
  .sticky-cta .price-line .v{ font-size:19px; font-weight:700; }
  .sticky-cta .price-line .v .yen{ font-size:11px; font-weight:500; margin-right:2px; }
  .sticky-cta .missing{ font-size:11px; color:var(--warn); margin-bottom:7px; display:flex; align-items:center; gap:5px; }
}
@media (max-width:620px){
  .site-header .inner,.hero,.layout,.footnote{ padding-left:16px; padding-right:16px; }
  .step{ padding:20px 16px; }
  .progress .pip .lbl{ display:none; }
  .progress .pip .pn{ margin-right:0; }
  .hero h1{ font-size:21px; }
}
