/* 受付フォーム・お問い合わせの見た目（色などの基本の値は theme.css） */

/* ---------- 見出しの帯 ---------- */
.hero { background: var(--dark); color: var(--on-dark); }
.hero-in { max-width: var(--maxw); margin: 0 auto; padding: 20px 16px 22px; }
.hero .brand { min-height: 1.4em; }
.hero .brand-name { font-size: 12.5px; color: var(--on-dark-sub); letter-spacing: .04em; }
.hero .brand-logo { height: 44px; margin-bottom: 6px; }
.hero h1 { font-size: 22px; margin: 4px 0 6px; letter-spacing: .02em; }
.hero .lead { margin: 0; color: var(--on-dark-sub); font-size: 13.5px; }
.hero.compact .hero-in { padding: 12px 16px; }
.hero.compact h1 { font-size: 16px; margin: 0; }
.hero.compact .lead, .hero.compact .brand-name { display: none; }
.hero.compact .hero-in { display: flex; align-items: center; gap: 12px; }
.hero.compact .brand { min-height: 0; }
.hero.compact .brand-logo { height: 26px; margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px 24px; }
.center { text-align: center; }
.view > .card:first-child { margin-top: 20px; }

/* ---------- ステップの表示 ---------- */
.stepper { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; margin: 0; padding: 16px 0 4px; }
.stepper li { position: relative; text-align: center; font-size: 11.5px; color: var(--sub); white-space: nowrap; }
.stepper li:not(:first-child)::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.stepper .sn { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 4px;
  border: 1.5px solid var(--line); background: var(--card); font-size: 12.5px; font-weight: 700; }
.stepper .sl { display: block; }
.stepper li.cur { color: var(--ink); font-weight: 700; }
.stepper li.cur .sn { background: var(--dark); border-color: var(--dark); color: #fff; }
.stepper li.past .sn { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper li.past::before, .stepper li.cur::before { background: var(--accent); }
.stepper li.past { cursor: pointer; }

.panel h2 { font-size: 20px; margin: 18px 0 2px; }
.panel .sublead { margin: 0 0 4px; color: var(--sub); font-size: 13.5px; }
.card.important { border-color: var(--cta); background: var(--cta-soft); }
.card.important h3 { color: var(--cta); font-size: 16px; }
.card ul, .card ol { margin: 6px 0; padding-left: 1.4em; }
ol.steps li { margin: 6px 0; font-size: 14.5px; }
ul.plain { font-size: 14.5px; }
ul.plain li { margin: 6px 0; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.nav .btn { min-width: 110px; }
.errors:empty { display: none; }

/* ---------- 製品とパーツ ---------- */
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; overflow: hidden; }
.product-head { display: flex; justify-content: space-between; align-items: center; background: var(--accent-soft); color: var(--accent); padding: 8px 14px; font-weight: 700; font-size: 14px; }
.product-body { padding: 2px 14px 14px; }
.part { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 10px; }
.part-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--sub); font-weight: 700; }
.part-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; }
.part-grid2 { display: grid; grid-template-columns: 88px 1fr 1fr; gap: 8px; align-items: end; }
.part label { margin: 8px 0 3px; }
.part .line-sum { font-size: 13.5px; color: var(--sub); text-align: right; padding-bottom: 12px; white-space: nowrap; }
.ghost { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 1.5px dashed #b9c9bf; background: transparent; color: var(--accent);
  border-radius: 12px; padding: 11px; font-size: 14px; font-weight: 500; margin-top: 12px; }
.ghost:hover { background: var(--accent-soft); }
.ghost:disabled { opacity: .45; cursor: not-allowed; }
.ghost.big { border-radius: var(--radius); padding: 14px; background: var(--card); }

.yen-input { display: flex; align-items: center; gap: 8px; }
.yen-input input { max-width: 200px; }
input.short, select.short { max-width: 220px; }
.check.small { font-size: 13.5px; }

/* ---------- 選択肢（確認した日） ---------- */
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { margin: 0; display: flex; gap: 8px; align-items: center; padding: 10px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; background: var(--field); }
.choice label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; }

.zipmsg { font-size: 12.5px; color: var(--sub); margin: 6px 0 0; min-height: 1.4em; }
.zipmsg.ok { color: var(--accent); } .zipmsg.ng { color: var(--warn); }
.towns { display: flex; flex-wrap: wrap; gap: 6px; }
.towns button { border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }

/* ---------- 確認 ---------- */
.grp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 14px; margin-top: 12px; }
.grp h3 { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin: 12px 0 4px; }
.grp dl { margin: 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 10px; font-size: 14px; }
.grp dt { color: var(--sub); }
.grp dd { margin: 0; word-break: break-all; }
.grp .prod { font-weight: 700; margin: 8px 0 2px; font-size: 14px; }
.grp table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.grp td { padding: 4px 0; border-top: 1px dashed var(--line); vertical-align: top; }
.grp td.r { text-align: right; white-space: nowrap; padding-left: 8px; }

/* ---------- 支払い後・戻ったとき ---------- */
.order-label { margin: 14px 0 0; font-size: 13px; color: var(--sub); }
.order-id { margin: 0 0 6px; font-size: 30px; font-weight: 700; letter-spacing: .04em; color: var(--accent);
  background: var(--accent-soft); border-radius: var(--radius-s); padding: 6px 10px; display: inline-block; }

/* ---------- フッター ---------- */
.foot { max-width: var(--maxw); margin: 0 auto; padding: 8px 16px 32px; font-size: 12.5px; text-align: center; }
.foot a { margin: 0 6px; display: inline-block; }
.foot .disc { color: var(--sub); margin: 10px 0 0; }

@media (max-width: 420px) {
  .part-grid, .part-grid2 { grid-template-columns: 1fr 1fr; }
  .part .line-sum { grid-column: 1 / -1; padding-bottom: 0; }
  .grp dl { grid-template-columns: 6em 1fr; }
}

/* ---------- 注文の修正のページ ---------- */
.choice.col { flex-direction: column; }
.choice label.off { opacity: .55; cursor: not-allowed; background: #eeede8; }
dl.kv2 { margin: 10px 0 0; display: grid; grid-template-columns: 8em 1fr; gap: 4px 10px; font-size: 14.5px; }
dl.kv2 dt { color: var(--sub); }
dl.kv2 dd { margin: 0; }
.msg.info { white-space: pre-wrap; }

/* ---------- お見積もりのページ（最初のページ） ---------- */
/* パソコンでは、左に入力・右に金額を並べる。金額の欄は、画面を動かしても見える位置に固定する */
.wrap { max-width: 1000px; }
.wrap > section { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.wrap > section#vForm:has(.quote-grid) { max-width: none; }
.panel, .stepper { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.panel.wide { max-width: none; }
.stepper { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.quote-side { position: sticky; top: 12px; }
.quote-card { margin-top: 62px; border: 2px solid var(--accent); }
.quote-card .btn { margin: 12px 0; padding: 14px; font-size: 16px; }
.quote-card .totals .sum { font-size: 22px; }
.quote-card .totals.empty { opacity: .45; }
.card.slim { font-size: 13.5px; padding: 12px 14px; }
.card.slim b { display: block; color: var(--cta); font-size: 14.5px; margin-bottom: 2px; }
details.fold summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
details.fold[open] summary { margin-bottom: 8px; }
.quote-bar { display: none; }
@media (max-width: 860px) {
  .quote-grid { grid-template-columns: 1fr; gap: 0; }
  .quote-side { position: static; }
  .quote-card { margin-top: 12px; }
  /* スマートフォンでは、画面の下に合計とボタンをいつも出す */
  .quote-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; background: var(--card); border-top: 1px solid var(--line);
    padding: 8px 14px; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -4px 14px rgba(0, 0, 0, .08); }
  .quote-bar small { display: block; font-size: 11.5px; color: var(--sub); line-height: 1.3; }
  .quote-bar b { font-size: 20px; color: var(--cta); }
  .quote-bar.hidden { display: none; }
  body.has-quote-bar { padding-bottom: 72px; }
}
