:root {
  --g-900: #06401a;
  --g-800: #075a22;
  --g-700: #087838;
  --g-600: #088808;
  --g-300: #8fcf86;
  --g-200: #bfe3b8;
  --g-100: #d9eed4;
  --g-50: #eef7ea;
  --o-500: #e87818;
  --o-700: #b04800;
  --o-100: #fbdcbd;
  --o-50: #fff2e3;
  --paper: #fffbf4;
  --card: #ffffff;
  --ink: #15271a;
  --muted: #485a4b;
  --line: #d9d4c4;
  --radius: 16px;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", "MingLiU", "Noto Serif CJK TC", serif;
  --sans: "Microsoft JhengHei", "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 128px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 19px/1.75 var(--sans);
  overflow-wrap: anywhere;
}
body.page-proc { padding-bottom: 96px; }
h1, h2, h3 { font-family: var(--serif); color: var(--g-900); line-height: 1.35; margin: 0; }
p { margin: 0; }
a { color: var(--g-700); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--o-500); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.main { padding-top: 8px; padding-bottom: 24px; min-height: 50vh; }
.loading { color: var(--muted); padding-top: 24px; }

/* ---- 頁首 ---- */
.site-head { background: var(--g-900); color: #fff; border-bottom: 4px solid var(--o-500); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; text-decoration: none; }
.cross { flex: none; width: 40px; height: 40px; display: block; }
.cross svg { width: 100%; height: 100%; display: block; }
.brand-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.head-org { font-size: 17px; font-weight: 700; }
.head-sub { font-size: 14px; display: flex; flex-wrap: wrap; column-gap: 10px; color: #e3f2de; }
.dept { white-space: nowrap; font-weight: 700; color: #ffd7ae; }
.head-title { font-family: var(--serif); white-space: nowrap; }
.head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.back { color: #fff; font-size: 15px; white-space: nowrap; border: 1px solid rgba(255,255,255,.6); border-radius: 99px; padding: 3px 14px; text-decoration: none; line-height: 1.6; }
.back:hover { background: rgba(255,255,255,.14); }
.badge-doctor { background: var(--o-500); color: #2c1300; font-weight: 700; font-size: 13px; padding: 0 12px; border-radius: 99px; line-height: 1.7; white-space: nowrap; }

/* ---- 頁尾 ---- */
.site-foot { margin-top: 40px; border-top: 1px solid var(--line); background: var(--g-50); padding: 20px 0 28px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.site-foot p { margin: 2px 0; }
.site-foot .disclaimer { color: var(--ink); }

/* ---- 按鈕 ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 24px; border: 2px solid var(--g-600); background: var(--g-600); color: #fff; font-weight: 700; border-radius: 99px; text-decoration: none; }
.btn:hover { background: var(--g-700); border-color: var(--g-700); }
.btn.ghost { background: transparent; color: var(--g-800); }
.btn.ghost:hover { background: var(--g-50); }
.btn.small { min-height: 40px; padding: 2px 16px; font-size: 16px; }

/* ---- 首頁 ---- */
.welcome { padding: 40px 0 16px; }
.kicker { color: var(--o-700); font-weight: 700; font-size: 17px; letter-spacing: .1em; }
.welcome h1 { font-size: 42px; margin: 6px 0 14px; }
.lead { color: #2f4233; max-width: 44rem; }
.how { list-style: none; display: flex; gap: 12px; flex-wrap: wrap; padding: 0; margin: 24px 0 0; }
.how li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 5px 18px 5px 6px; font-size: 17px; }
.how b { width: 32px; height: 32px; border-radius: 50%; background: var(--g-600); color: #fff; display: grid; place-items: center; font-family: var(--serif); }
.sec-h { font-size: 28px; margin: 30px 0 16px; padding-bottom: 8px; border-bottom: 3px solid var(--o-500); display: inline-block; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 22px; background: var(--card); border: 2px solid var(--line); border-radius: 22px; text-decoration: none; color: inherit; }
.card:hover { border-color: var(--g-600); background: var(--g-50); }
.ptxt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-name { font: 700 24px/1.35 var(--serif); color: var(--g-900); }
.card-intro { color: var(--muted); font-size: 17px; line-height: 1.6; }
.card-doc { font-size: 15px; color: var(--o-700); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.tag { background: var(--g-100); color: var(--g-900); border-radius: 99px; padding: 0 14px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.go { margin-top: auto; color: var(--o-700); font-weight: 700; }
.go::after { content: " →"; }
.empty, .notice { margin-top: 24px; padding: 28px 22px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.notice h1, .empty h1 { font-size: 26px; margin-bottom: 10px; }
.notice p, .empty p { margin-bottom: 10px; }

/* ---- 步驟條 ---- */
.steps { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.steps ol { list-style: none; margin: 0 auto; display: flex; padding-top: 8px; padding-bottom: 8px; }
.steps li { flex: 1; position: relative; }
.steps li + li::before { content: ""; position: absolute; left: -50%; right: 50%; top: 17px; height: 3px; background: var(--line); }
.steps li.done + li::before, .steps li.cur::before { background: var(--g-600); }
.steps li:first-child::before { display: none; }
.steps a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 15px; line-height: 1.3; text-align: center; }
.steps b { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line); font: 700 18px var(--serif); color: var(--muted); }
.steps li.cur b { background: var(--g-600); border-color: var(--g-600); color: #fff; }
.steps li.cur a { color: var(--g-900); font-weight: 700; }
.steps li.done b { background: var(--g-100); border-color: var(--g-600); color: var(--g-800); }

.step-sec { padding: 40px 0 6px; }
.step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.step-head .num { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--g-600); color: #fff; font: 700 24px/48px var(--serif); text-align: center; box-shadow: 0 0 0 4px var(--o-100); }
.step-head h2 { font-size: 30px; }
.step-head p { color: var(--muted); font-size: 18px; margin-top: 2px; line-height: 1.6; }

/* ---- 步驟 1 ---- */
.hero { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 24px 40px; align-items: start; padding-top: 28px; }
.hero-fig { background: var(--card); border: 2px solid var(--line); border-top: 5px solid var(--o-500); border-radius: 22px; padding: 14px 12px 14px; }
.hero-txt { display: flex; flex-direction: column; }
.fig-tip { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.filter-msg { margin-top: 8px; font-size: 16px; color: var(--o-700); font-weight: 700; line-height: 1.5; }
.filter-msg:empty { display: none; }
.hero-fig .btn { margin-top: 8px; }
.step-tag { display: flex; gap: 10px; align-items: center; color: var(--o-700); font-size: 16px; margin-bottom: 8px; }
.step-tag b { background: var(--o-100); color: #5a2400; padding: 1px 12px; border-radius: 99px; }
.hero h1 { font-size: 38px; margin-bottom: 12px; }
.doc-note { margin-top: 12px; background: var(--o-50); border-left: 5px solid var(--o-500); padding: 6px 14px; font-size: 16px; color: #5a2400; border-radius: 0 10px 10px 0; }
.mini-h { font-size: 22px; margin: 24px 0 10px; }
.reg-line { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.chip { display: inline-block; flex: none; background: var(--g-100); color: var(--g-900); border-radius: 99px; padding: 0 14px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.chip.on { background: var(--g-600); color: #fff; }
.note-box { margin-top: 20px; background: var(--g-50); border-left: 5px solid var(--g-600); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 18px; font-size: 17px; }

/* ---- 徽章（C 款）與節段尺 ---- */
.rb, .mb { --bg: #fff; --bd: #e2ddd2; --if: #f3f0ea; --is: #b7c2b5; --ring: none; --pb: #f1efe9; --pf: #566659; }
.rb.avail, .mb.avail { --bd: #9fbf98; --if: #e6f2e1; --is: #087838; --pb: #e6f2e1; --pf: #06401a; }
.rb.on, .mb.on { --bg: var(--g-600); --bd: var(--g-600); --if: #3aa63a; --is: #fff; --ring: 0 0 0 3px var(--o-500); --pb: #fde7d6; --pf: #7a3200; }
.bc { flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); border: 2px solid var(--bd); box-shadow: var(--ring); box-sizing: border-box; }
.bc svg { width: 78%; height: 78%; display: block; }
.ic-f { fill: var(--if); stroke: var(--is); }
.ic-l { fill: none; stroke: var(--is); }
.ic-d { fill: var(--is); stroke: none; }

.route { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 4px; text-align: left; }
.route::before { content: ""; position: absolute; left: 37px; top: 36px; bottom: 36px; width: 5px; border-radius: 3px; background: repeating-linear-gradient(#d6e8cf 0 9px, #fff 9px 12px); }
.rb { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; background: transparent; border: 0; padding: 4px 6px; text-align: left; color: inherit; border-radius: 16px; }
.rb .bc { width: 56px; height: 56px; }
.rb:hover { background: var(--g-50); }
.rb-tx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rb-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rb-name { font: 700 19px/1.35 var(--serif); color: var(--g-900); }
.rb-sub { font-size: 14px; color: var(--muted); }
.rb-desc { font-size: 15px; line-height: 1.45; color: var(--muted); }
.pill { align-self: flex-start; font-size: 14px; font-weight: 700; line-height: 1.6; padding: 0 12px; border-radius: 99px; background: var(--pb); color: var(--pf); }
.rb.preview .bc, .mb.preview .bc { outline: 3px dashed var(--o-500); outline-offset: 3px; }
.rb.filter { background: var(--o-50); box-shadow: inset 0 0 0 2px var(--o-700); }

.mbs { list-style: none; margin: 0; padding: 4px 3px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.mb { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 52px; }
.mb .bc { width: 44px; height: 44px; }
.mb-n { font-size: 13px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.mb.on .mb-n { color: var(--g-900); font-weight: 700; }
.card-mbs { margin-bottom: 4px; }
.side-mbs { justify-content: center; gap: 8px 6px; }
.side-mbs .mb { width: 42px; }
.side-mbs .mb .bc { width: 38px; height: 38px; }
.side-mbs .mb-n { font-size: 12px; }
.side-seg { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--g-900); }
.side-seg b { color: var(--muted); font-weight: 400; font-size: 14px; }

.seg-card { margin-top: 20px; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 16px 18px 18px; }
.seg-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.seg-head h2 { font-size: 22px; }
.seg-clear { min-height: 44px; }
.seg-tip { margin: 4px 0 10px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.seg-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 28px; }
.ruler { display: flex; flex-direction: column; flex: none; max-width: 100%; }
.vrow, .drow { display: flex; align-items: center; gap: 12px; width: 100%; background: transparent; border: 0; padding: 0; color: inherit; text-align: left; }
button.vrow { height: 48px; cursor: pointer; }
button.drow { height: 44px; cursor: pointer; }
.vrow.static { height: 34px; }
.drow.static { height: 12px; }
.vl { flex: none; width: 40px; text-align: right; font-size: 15px; font-weight: 700; color: var(--g-900); }
.vcol { flex: none; width: 170px; display: flex; justify-content: center; }
.vbar { height: 32px; border-radius: 16px; background: #fff; border: 2px solid #9fbf98; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--g-900); }
.vrow.static .vbar { height: 24px; border-radius: 12px; font-size: 12px; }
.vrow.ghost .vl { color: #7d8a7f; font-weight: 400; }
.vrow.ghost .vbar { background: #f3f0ea; border-color: #e2ddd2; }
.vrow.inv .vbar { background: #cfe9c6; border-color: var(--g-600); }
.vrow.sel .vbar { background: var(--g-600); border-color: var(--g-900); color: #fff; box-shadow: 0 0 0 3px #fbd3b2; }
.dbar { width: 70px; height: 6px; border-radius: 3px; background: #ece7dc; }
button.drow .dbar { width: 92px; height: 14px; border-radius: 7px; background: var(--o-50); border: 2px solid #e8a46a; box-sizing: border-box; }
.drow.sel .dbar { background: var(--o-500); border-color: var(--o-700); }
.dtag { font-size: 14px; color: var(--muted); }
.drow.sel .dtag { color: #7a3200; font-weight: 700; }
.seg-sumbox { flex: 1 1 200px; min-width: 200px; display: flex; flex-direction: column; gap: 4px; background: var(--g-50); border-radius: 14px; padding: 12px 14px; }
.sg-lab { font-size: 14px; color: var(--muted); }
.sg-sel { font: 700 20px/1.4 var(--serif); color: var(--g-900); }
.sg-sum { font-size: 16px; font-weight: 700; color: var(--g-900); }
.sg-vert { font-size: 14px; color: var(--muted); }
.seg-note { margin-bottom: 14px; padding: 8px 14px; background: var(--o-50); border-left: 5px solid var(--o-500); border-radius: 0 10px 10px 0; font-size: 16px; color: #5a2400; }

/* ---- 步驟 2 套餐 ---- */
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.pkg { position: relative; display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 28px 24px 22px; overflow: hidden; }
.pkg.rec { border-color: var(--o-500); }
.pkg.on { border-color: var(--g-600); box-shadow: 0 0 0 4px var(--g-100); }
.ribbon { position: absolute; top: 18px; right: -40px; transform: rotate(38deg); width: 140px; text-align: center; background: var(--o-500); color: #2c1300; font-weight: 700; font-size: 16px; padding: 2px 0; letter-spacing: .2em; }
.pkg h3 { font-size: 25px; padding-right: 44px; }
.pkg .tag { color: var(--o-700); font-weight: 700; margin-top: 2px; }
.pkg .aud { font-size: 16px; color: var(--muted); margin: 6px 0 12px; line-height: 1.6; }
.pk-items { list-style: none; margin: 0 0 14px; padding: 12px 0; border-top: 1px dashed var(--line); font-size: 17px; line-height: 1.55; flex: 1; }
.pk-items li { padding: 0 0 4px 24px; position: relative; }
.pk-items li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 7px; height: 12px; border: solid var(--g-600); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pk-price small { display: block; font-size: 15px; color: var(--muted); line-height: 1.3; }
.pk-price strong { font: 700 28px var(--serif); color: var(--g-900); display: block; margin-bottom: 12px; }
.pkg .btn { width: 100%; }
.pkg.on .btn { background: var(--g-100); color: var(--g-900); }
.pkg-state { margin-top: 18px; font-size: 17px; color: var(--muted); }

/* ---- 步驟 3 ---- */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.side-col { display: none; }
.ctl { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; }
.ctl h3 { font-size: 21px; }
.ctl p { font-size: 16px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: none; max-width: 270px; min-height: 48px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { flex: none; width: 62px; height: 34px; border-radius: 99px; background: #7d8a7f; position: relative; transition: background .2s; }
.switch-track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch input:checked + .switch-track { background: var(--g-600); }
.switch input:checked + .switch-track::after { left: 32px; }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--o-500); outline-offset: 2px; }
.switch-text { font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--g-900); display: flex; flex-direction: column; }
.switch-text small { font-weight: 400; color: var(--muted); font-size: 14px; }

.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 14px; margin-bottom: 14px; background: var(--o-50); border: 2px solid var(--o-500); border-radius: 12px; font-size: 16px; color: #5a2400; font-weight: 700; }
.empty-filter { color: var(--muted); }
.cat { margin-top: 24px; }
.cat:first-of-type { margin-top: 0; }
.cat h3 { font-size: 23px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.kind { font: 400 15px var(--sans); color: #5a2400; background: var(--o-100); padding: 0 12px; border-radius: 99px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.item:hover { border-color: #a7b99f; }
.item.on { border-color: var(--g-600); background: var(--g-50); }
.item.none { background: transparent; border-style: dashed; }
.item-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; min-height: 56px; cursor: pointer; }
.item-row input { appearance: none; -webkit-appearance: none; margin: 0; width: 30px; height: 30px; border: 2px solid #6f7f6c; border-radius: 8px; background: #fff; position: relative; cursor: pointer; }
.item-row input[type=radio] { border-radius: 50%; }
.item-row input:checked { background: var(--g-600); border-color: var(--g-600); }
.item-row input[type=checkbox]:checked::after { content: ""; position: absolute; left: 9px; top: 3px; width: 8px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.item-row input[type=radio]:checked::after { content: ""; position: absolute; left: 7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.item-row input:disabled { cursor: default; opacity: .8; }
.item-row input:focus-visible { outline: 3px solid var(--o-500); outline-offset: 2px; }
.item-main { display: flex; flex-direction: column; min-width: 0; }
.item-name { font-weight: 700; line-height: 1.45; }
.badge { margin-left: 10px; font: 700 14px var(--sans); background: var(--g-600); color: #fff; padding: 1px 10px; border-radius: 99px; vertical-align: 2px; white-space: nowrap; }
.badge.u { background: var(--g-100); color: var(--g-900); }
.group-tag { margin-left: 10px; font-size: 14px; font-weight: 400; color: var(--muted); }
.item.none .item-name { font-weight: 400; }
.item-desc { font-size: 16px; color: var(--muted); line-height: 1.55; }
.item-doc { font-size: 14px; color: var(--o-700); }
.item-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.4; min-width: 5.5rem; }
.price-now { font: 700 20px var(--serif); color: var(--g-900); white-space: nowrap; }
.price-old { font-size: 15px; color: var(--muted); white-space: nowrap; }
.price-sub { font-size: 14px; color: var(--g-800); white-space: nowrap; }
.price-sub:empty { display: none; }
.item.pend .price-sub { color: var(--o-700); font-weight: 700; }
.pk-pend { display: block; margin: -8px 0 12px; font-size: 14px; color: var(--o-700); font-weight: 700; }
.pk-pend:empty { display: none; }
.sum-pend { margin-top: 4px; font-size: 16px; font-weight: 700; color: #ffd7ae; }
.tb-pend { font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--o-700); text-align: right; }

/* ---- 步驟 4 ---- */
.sum { background: var(--g-900); color: #fff; border-radius: 28px; border-bottom: 6px solid var(--o-500); padding: 32px 36px 26px; }
.sum-top { text-align: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.35); }
.sum-lab { font: 400 22px var(--serif); letter-spacing: .2em; }
.big { display: block; font: 700 66px/1.2 var(--serif); color: #fff; margin: 4px 0 6px; }
.sum-sub { font-size: 16px; color: #e3f2de; }
.bd { list-style: none; margin: 18px 0; padding: 0; font-size: 17px; }
.bd li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dotted rgba(255,255,255,.35); }
.bd small { color: #cfe6c9; }
.bd b { font-family: var(--serif); white-space: nowrap; }
.acts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 6px; }
.sum .btn { background: #fff; color: var(--g-900); border-color: #fff; }
.sum .btn:hover { background: var(--g-100); }
.sum .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.sum .btn.ghost:hover { background: rgba(255,255,255,.14); }
.status { width: 100%; text-align: center; color: #ffd7ae; font-weight: 700; font-size: 16px; }
.status:empty { display: none; }
.share-input { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 2px solid #fff; border-radius: 10px; background: #fff; color: var(--ink); }
.sum-disc { margin-top: 18px; font-size: 15px; color: #e3f2de; text-align: center; line-height: 1.6; }

.faq { margin-top: 34px; }
.faq h2 { font-size: 24px; margin-bottom: 12px; }
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 36px; }
.faq details p { margin-top: 8px; color: var(--muted); font-size: 17px; }

/* ---- 底部合計列 ---- */
.totalbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 3px solid var(--o-500); box-shadow: 0 -4px 14px rgba(6, 64, 26, .14); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.tb-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.tb-count { color: var(--muted); }
.tb-count b { color: var(--g-900); font-weight: 700; margin-right: 10px; }
.tb-sum { font: 700 24px var(--serif); color: var(--g-900); white-space: nowrap; }

.print-sheet { display: none; }

@media (min-width: 900px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr) 270px; align-items: start; }
  .side-col { display: block; position: sticky; top: 100px; background: var(--card); border: 2px solid var(--line); border-top: 5px solid var(--o-500); border-radius: 22px; padding: 12px 10px; text-align: center; }
  .side-col .fig-tip { margin-top: 6px; }
}

@media (max-width: 760px) {
  body { font-size: 18px; }
  html { scroll-padding-top: 116px; }
  .wrap { padding: 0 16px; }
  .head-org { font-size: 15.5px; }
  .head-sub { font-size: 13px; column-gap: 8px; }
  .cross { width: 34px; height: 34px; }
  .back { font-size: 14px; padding: 2px 11px; }
  .steps a { font-size: 13px; }
  .steps b { width: 30px; height: 30px; font-size: 16px; }
  .steps li + li::before { top: 14px; }
  .welcome h1 { font-size: 31px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 16px; gap: 14px; }
  .step-head h2 { font-size: 25px; }
  .step-head .num { width: 42px; height: 42px; font: 700 21px/42px var(--serif); }
  .step-head { gap: 12px; }
  .step-head p { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 14px; padding-top: 16px; }
  .hero-txt { display: contents; }
  .hero-head { order: 0; }
  .hero-fig { order: 1; padding: 8px 8px 12px; }
  .hero-rest { order: 2; }
  .hero h1 { font-size: 27px; margin-bottom: 0; }
  .rb-desc { display: none; }
  .route { gap: 2px; }
  .route::before { top: 28px; bottom: 28px; left: 29px; }
  .rb { min-height: 52px; padding: 2px 6px; }
  .rb .bc { width: 44px; height: 44px; }
  .rb-tx { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
  .rb-name { font-size: 18px; }
  .pill { font-size: 13px; }
  .seg-card { padding: 14px 12px 16px; }
  .ruler { margin: 0 auto; }
  .step-tag { margin-bottom: 4px; }
  .hero-head .lead { display: none; }
  .ctl { flex-direction: column; align-items: stretch; }
  .switch { max-width: none; }
  .item-row { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .item-price { grid-column: 2; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 2px 10px; }
  .price-now { font-size: 18px; }
  .sum { padding: 24px 16px 20px; border-radius: 22px; }
  .big { font-size: 46px; }
  .pkg { padding: 26px 18px 20px; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  html { font-size: 12pt; }
  body { background: #fff; padding: 0 !important; color: #000; font-size: 11pt; line-height: 1.5; }
  .site-head, .site-foot, .main, .totalbar, .steps { display: none !important; }
  .print-sheet { display: block; }
  .print-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 2px solid #000; padding-bottom: 6px; }
  .print-top h1 { font-size: 16pt; margin: 2px 0; color: #000; }
  .p-org, .p-meta { font-size: 10pt; }
  .p-proc { margin: 2px 0; font-size: 13pt; font-weight: 700; }
  .print-body, .print-body svg, .print-body .bc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-mbs { padding: 0; gap: 4px 6px; flex-wrap: nowrap; }
  .print-mbs .mb { width: 15mm; }
  .print-mbs .mb .bc { width: 11mm; height: 11mm; }
  .print-mbs .mb-n { font-size: 8pt; color: #000; }
  .p-seg { margin-top: 6px; border-bottom: 1px solid #999; padding-bottom: 4px; }
  .p-seg-h { font-weight: 700; font-size: 11pt; }
  .p-line { font-size: 10.5pt; line-height: 1.45; }
  .p-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
  .p-table th, .p-table td { border-bottom: 1px solid #999; padding: 4px 6px; text-align: left; line-height: 1.35; }
  .p-table th { border-bottom: 2px solid #000; }
  .p-table .r { text-align: right; white-space: nowrap; }
  .p-table tfoot td { border-top: 2px solid #000; border-bottom: 0; font-weight: 700; font-size: 13pt; }
  .p-disc { margin: 10px 0 3px; font-size: 10pt; }
  .p-date { font-size: 9.5pt; color: #333; }
  tr { break-inside: avoid; }
}
