/* pc-text:start（scripts/pc-text.mjs が入れる） */
:root { --pc-text: 1; }
@media (min-width: 1024px) { :root { --pc-text: 1.1; } }
html:lang(ja) { word-break: auto-phrase; }
summary { word-break: normal; }
p, li, dd, dt, td, th, small, summary, figcaption { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
/* pc-text:end */
/* KeiriBox のプロダクトページ。「1枚の領収書が申告書になるまで」を縦の物語で見せる。
   紙と帳簿の質感：生成りの紙・明朝の見出し・等幅の数字・細い罫線。色はアプリと同じ深緑＋金（frontend/public/icon.svg） */
:root {
  --paper: #f6f2e9;
  --paper-2: #efe9dc;
  --white: #fffdf8;
  --ink: #1d211f;
  --sub: #4a504b;
  --faint: #6b706a;
  --rule: #d9d2c2;
  --rule-2: #c4bba6;
  --green: #1f5f4a;
  --green-d: #133b2e;
  --gold: #e3b448;
  --gold-d: #a87a17;
  --red: #b5452b;
  --f-min: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif; font-size: calc(16px * var(--pc-text, 1)); line-height: 1.9; letter-spacing: .03em; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--f-min); font-weight: 900; margin: 0; line-height: 1.45; letter-spacing: .04em; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum"; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 32px); }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 4px; font-weight: 700; font-size: calc(15px * var(--pc-text, 1)); text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: background .15s, color .15s, border-color .15s; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--green); }
.btn-gold { background: var(--gold); color: var(--green-d); }
.btn-gold:hover { background: #edc568; }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-line-w { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-line-w:hover { border-color: #fff; }
.btn-text { background: none; border: 0; color: var(--sub); text-decoration: underline; font: inherit; font-size: calc(14px * var(--pc-text, 1)); cursor: pointer; padding: 8px; }

/* ヘッダー：細い1本の帯 */
.hd { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: 56px; padding: 0 max(16px, calc((100% - 1080px) / 2)); background: rgba(246, 242, 233, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { font-family: var(--f-mono); font-weight: 600; font-size: calc(17px * var(--pc-text, 1)); letter-spacing: .02em; }
.hd nav { display: flex; gap: 26px; margin-left: auto; }
.hd nav a { color: var(--ink); text-decoration: none; font-size: calc(14px * var(--pc-text, 1)); }
.hd nav a:hover { color: var(--green); }
.hd-mail { font-size: calc(14px * var(--pc-text, 1)); font-weight: 700; color: var(--green); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
[hidden] { display: none !important; }
.hd-start { font-size: calc(14px * var(--pc-text, 1)); font-weight: 700; color: var(--green-d); background: var(--gold); text-decoration: none; padding: 8px 14px; border-radius: 4px; white-space: nowrap; }
.hd-start:hover { background: #edc568; }
@media (max-width: 720px) { .hd nav { display: none; } .hd-mail { margin-left: auto; } .hd { gap: 14px; } }
@media (max-width: 480px) { .signup-open .hd-mail { display: none; } .signup-open .hd-start { margin-left: auto; } }
.cover-cta, .price-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.cover-cta span, .price-cta span { font-size: calc(13px * var(--pc-text, 1)); color: var(--sub); }
@media (max-width: 640px) { .cover-cta .btn, .price-cta .btn { width: 100%; } }
.cover-cta { justify-content: center; }
.cover-cta span { background: var(--paper); padding: 0 8px; }

/* 表紙 */
.cover { position: relative; text-align: center; padding: 72px 16px 56px; overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, transparent calc(50% - .5px), var(--rule) calc(50% - .5px), var(--rule) calc(50% + .5px), transparent calc(50% + .5px)); opacity: .6; pointer-events: none; }
.cover > * { position: relative; }
.cover-kicker { display: inline-block; font-size: calc(13px * var(--pc-text, 1)); color: var(--sub); background: var(--paper); padding: 0 12px; }
.cover-kicker span { display: block; font-family: var(--f-mono); font-size: calc(12px * var(--pc-text, 1)); color: var(--faint); }
.cover h1 { font-size: clamp(38px, 7.4vw, 92px); line-height: 1.28; margin: 26px auto 26px; background: var(--paper); display: inline-block; padding: 0 10px; }
.cover h1 .u { color: var(--green); background: linear-gradient(transparent 72%, rgba(227, 180, 72, .6) 72%); }
.cover-lead { max-width: 40em; margin: 0 auto; color: var(--sub); background: var(--paper); word-break: auto-phrase; }
.cover-receipt { margin: 46px auto 0; width: 230px; }
.cover-receipt .rc { rotate: -3deg; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: -3deg; translate: 0 0; } 50% { rotate: 2deg; translate: 0 -6px; } }
.cover-down { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 40px; font-size: calc(13px * var(--pc-text, 1)); color: var(--ink); text-decoration: none; background: var(--paper); padding: 0 10px; }
.cover-down span { font-size: 20px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 6px; } }
@media (max-width: 640px) { .cover { padding: 48px 16px 40px; } .cover-receipt { width: 200px; margin-top: 34px; } }

/* 領収書（共通） */
.rc { background: var(--white); color: #333; padding: 20px 18px 26px; font-size: calc(12px * var(--pc-text, 1)); line-height: 1.75; box-shadow: 0 12px 34px rgba(29, 33, 31, .16); text-align: left; clip-path: polygon(0 0, 100% 0, 100% 96%, 92% 100%, 84% 96%, 76% 100%, 68% 96%, 60% 100%, 52% 96%, 44% 100%, 36% 96%, 28% 100%, 20% 96%, 12% 100%, 4% 96%, 0 100%); }
.rc-h { text-align: center; font-family: var(--f-min); font-weight: 900; font-size: calc(16px * var(--pc-text, 1)); margin-bottom: 6px; }
.rc-shop { text-align: center; margin-bottom: 8px; }
.rc-r { display: flex; justify-content: space-between; font-family: var(--f-mono); }
.rc-t { border-top: 1px dashed #999; margin-top: 8px; padding-top: 8px; font-weight: 600; font-size: calc(14px * var(--pc-text, 1)); }
.rc.sm { width: 170px; padding: 14px 14px 20px; font-size: calc(10.5px * var(--pc-text, 1)); }
.rc.sm .rc-h { font-size: calc(13px * var(--pc-text, 1)); }

/* 物語：左に固定の舞台、右に章 */
.story { background: var(--white); border-block: 1px solid var(--rule); }
.story-in { width: min(1080px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.stage { position: relative; }
.stage-box { position: sticky; top: calc(50vh - 202px); height: 460px; margin: 60px 0; border: 1px solid var(--rule); background: var(--paper); background-image: linear-gradient(var(--rule) 1px, transparent 1px); background-size: 100% 32px; background-position: 0 63px; overflow: hidden; }
.rail { list-style: none; margin: 0; padding: 0; display: flex; border-bottom: 1px solid var(--rule); background: var(--white); position: relative; z-index: 2; }
.rail li { flex: 1; text-align: center; font-size: calc(12px * var(--pc-text, 1)); padding: 8px 0; color: var(--faint); border-right: 1px solid var(--rule); transition: color .3s, background .3s; }
.rail li:last-child { border-right: 0; }
.stage-box[data-step="2"] .rail li:nth-child(-n+1),
.stage-box[data-step="3"] .rail li:nth-child(-n+2),
.stage-box[data-step="4"] .rail li:nth-child(-n+3),
.stage-box[data-step="5"] .rail li:nth-child(-n+4) { color: var(--green); font-weight: 700; }
.stage-box[data-step="1"] .rail li:nth-child(1), .stage-box[data-step="2"] .rail li:nth-child(2), .stage-box[data-step="3"] .rail li:nth-child(3), .stage-box[data-step="4"] .rail li:nth-child(4), .stage-box[data-step="5"] .rail li:nth-child(5) { background: var(--green); color: #fff; font-weight: 700; }
.pane { position: absolute; inset: 37px 0 0; padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; opacity: 0; translate: 0 16px; transition: opacity .45s ease, translate .45s ease; pointer-events: none; }
.stage-box[data-step="1"] .p1, .stage-box[data-step="2"] .p2, .stage-box[data-step="3"] .p3, .stage-box[data-step="4"] .p4, .stage-box[data-step="5"] .p5 { opacity: 1; translate: 0 0; }
.tag { font-size: calc(12px * var(--pc-text, 1)); font-weight: 700; color: var(--green); letter-spacing: .1em; margin-bottom: 14px; }
.cap { text-align: center; font-family: var(--f-mono); font-size: calc(12px * var(--pc-text, 1)); color: var(--sub); margin-top: 14px; }
.cam { position: relative; margin: 0 auto; width: 250px; height: 300px; background: #26302c; border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.cam .rc { rotate: -3deg; }
.fr { position: absolute; width: 22px; height: 22px; border: 3px solid var(--gold); z-index: 2; }
.fr.a { top: 18px; left: 18px; border-right: 0; border-bottom: 0; } .fr.b { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.fr.c { bottom: 18px; left: 18px; border-right: 0; border-top: 0; } .fr.d { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.beam { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--gold); box-shadow: 0 0 14px 3px rgba(227, 180, 72, .7); z-index: 2; animation: beam 2.6s ease-in-out infinite; }
@keyframes beam { 0%, 100% { top: 22%; } 50% { top: 78%; } }
.fields { margin: 0; border-top: 1px solid var(--ink); background: var(--white); }
.fields div { display: grid; grid-template-columns: 76px 1fr; border-bottom: 1px solid var(--rule-2); padding: 9px 6px; align-items: baseline; }
.fields dt { font-size: calc(12px * var(--pc-text, 1)); color: var(--sub); }
.fields dd { margin: 0; font-weight: 500; }
.fields small { display: inline-block; font-size: calc(11px * var(--pc-text, 1)); color: var(--gold-d); background: #fbf1d8; padding: 0 6px; margin-left: 6px; }
.stage-box[data-step="2"] .fields div { animation: fill .7s both; }
.stage-box[data-step="2"] .fields div:nth-child(2) { animation-delay: .12s; }
.stage-box[data-step="2"] .fields div:nth-child(3) { animation-delay: .24s; }
.stage-box[data-step="2"] .fields div:nth-child(4) { animation-delay: .36s; }
.stage-box[data-step="2"] .fields div:nth-child(5) { animation-delay: .48s; }
@keyframes fill { from { background: rgba(227, 180, 72, .4); } to { background: transparent; } }
table { border-collapse: collapse; width: 100%; }
.jtab, .ltab, .ttab { font-size: calc(13.5px * var(--pc-text, 1)); background: var(--white); }
.jtab th, .ltab th { font-size: calc(11px * var(--pc-text, 1)); font-weight: 500; color: var(--sub); text-align: left; border-bottom: 1px solid var(--ink); padding: 6px 8px; }
.jtab td, .ltab td, .ttab td { padding: 10px 8px; border-bottom: 1px solid var(--rule-2); }
.r { text-align: right !important; }
.jtab td:nth-child(3), .jtab th:nth-child(3) { border-left: 2px solid var(--ink); }
.jmeta { margin-top: 16px; font-size: calc(12px * var(--pc-text, 1)); color: var(--sub); line-height: 1.8; }
.hanko { position: absolute; right: 34px; bottom: 50px; width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--red); color: var(--red); display: grid; place-items: center; font-family: var(--f-min); font-weight: 900; font-size: 20px; rotate: -14deg; opacity: 0; scale: 1.6; transition: opacity .3s .35s, scale .3s .35s; background: rgba(255, 253, 248, .6); }
.stage-box[data-step="3"] .hanko { opacity: .9; scale: 1; }
.ltab td { font-size: calc(12.5px * var(--pc-text, 1)); }
.ltab tr.new td, .ttab tr.new td { background: rgba(227, 180, 72, .28); font-weight: 600; }
.ttab td:first-child { width: 60%; }
.ttab tr.sum td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; }
.xtx { margin-top: 16px; font-family: var(--f-mono); font-size: calc(12px * var(--pc-text, 1)); color: var(--green); }
.xtx::before { content: "✓ "; }

.chapters { padding: 12vh 0; }
.ch { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; opacity: .3; transition: opacity .4s; }
.ch.on { opacity: 1; }
.ch .no { font-family: var(--f-mono); font-size: calc(15px * var(--pc-text, 1)); color: var(--gold-d); font-weight: 600; letter-spacing: .1em; display: flex; align-items: center; gap: 12px; }
.ch .no::after { content: ""; height: 1px; width: 56px; background: var(--gold-d); }
.ch h3 { font-size: clamp(25px, 3vw, 34px); margin: 12px 0 16px; }
.ch > p:not(.no) { color: var(--sub); }
.pts { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.pts li { font-size: calc(14.5px * var(--pc-text, 1)); padding: 10px 0 10px 26px; border-bottom: 1px solid var(--rule); position: relative; }
.pts li::before { content: "—"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
@media (max-width: 860px) {
  .story-in { grid-template-columns: 1fr; gap: 0; width: 100%; }
  .stage { position: sticky; top: 56px; z-index: 5; background: var(--white); padding: 10px 16px; border-bottom: 1px solid var(--rule); }
  .stage-box { position: relative; top: 0; height: 306px; margin: 0; }
  .pane { padding: 12px 14px; }
  .cam { width: 160px; height: 196px; }
  .rc.sm { width: 116px; padding: 10px 10px 14px; font-size: calc(8.5px * var(--pc-text, 1)); }
  .rc.sm .rc-h { font-size: calc(10px * var(--pc-text, 1)); }
  .fields div { padding: 4px 6px; grid-template-columns: 56px 1fr; font-size: calc(13px * var(--pc-text, 1)); }
  .jtab, .ltab, .ttab { font-size: calc(12px * var(--pc-text, 1)); }
  .ltab td { font-size: calc(11.5px * var(--pc-text, 1)); }
  .jtab td, .ltab td, .ttab td { padding: 5px 6px; }
  .jmeta { font-size: calc(11px * var(--pc-text, 1)); line-height: 1.55; }
  .hanko { width: 54px; height: 54px; font-size: calc(15px * var(--pc-text, 1)); right: 16px; bottom: 14px; }
  .tag { margin-bottom: 6px; }
  .cap, .jmeta, .xtx { margin-top: 6px; }
  .chapters { padding: 10px 16px 40px; }
  .ch { min-height: 70vh; padding: 36px 0; }
}

/* 保存の約束：深緑の帯に、番号つきの一覧 */
.promise { background: var(--green-d); color: #e5ece8; padding: 96px 0; }
.promise h2 { color: #fff; font-size: clamp(28px, 4.2vw, 46px); }
.promise-lead { margin-top: 16px; color: #b5c7bf; max-width: 38em; }
.vows { list-style: none; counter-reset: v; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255, 255, 255, .25); }
.vows li { counter-increment: v; padding: 22px 18px 0; font-size: calc(13.5px * var(--pc-text, 1)); color: #b5c7bf; border-right: 1px solid rgba(255, 255, 255, .12); }
.vows li:first-child { padding-left: 0; }
.vows li:last-child { border-right: 0; }
.vows li::before { content: counter(v, decimal-leading-zero); display: block; font-family: var(--f-mono); color: var(--gold); font-size: calc(13px * var(--pc-text, 1)); }
.vows b { display: block; font-family: var(--f-min); color: #fff; font-size: 20px; margin: 4px 0 8px; }
.promise .fine { margin-top: 30px; font-size: calc(12px * var(--pc-text, 1)); color: #86a096; }
@media (max-width: 900px) {
  .vows { grid-template-columns: 1fr; }
  .vows li { display: grid; grid-template-columns: 34px 1fr; padding: 16px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .vows li::before { grid-row: span 2; padding-top: 6px; }
  .vows b { margin: 0 0 2px; }
}
@media (max-width: 640px) { .promise { padding: 64px 0; } }

/* 見積もり：対話 */
.estimate { padding: 104px 0; }
.estimate h2 { font-size: clamp(26px, 3.8vw, 40px); text-align: center; }
.est-lead { text-align: center; color: var(--sub); margin-top: 14px; }
.chat { margin-top: 44px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 86%; padding: 14px 18px; font-size: calc(15px * var(--pc-text, 1)); line-height: 1.7; animation: pop .35s ease both; }
@keyframes pop { from { opacity: 0; translate: 0 8px; } }
.msg.old { animation: none; }
.msg.q { align-self: flex-start; background: var(--white); border: 1px solid var(--rule); border-radius: 2px 18px 18px 18px; }
.msg.q small { display: block; font-size: calc(12.5px * var(--pc-text, 1)); color: var(--faint); margin-top: 2px; }
.msg.q .who { display: block; font-family: var(--f-mono); font-size: calc(11px * var(--pc-text, 1)); color: var(--green); margin-bottom: 2px; }
.msg.a { align-self: flex-end; background: var(--green); color: #fff; border-radius: 18px 2px 18px 18px; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.msg.a::after { content: "変更"; font-weight: 400; font-size: calc(11px * var(--pc-text, 1)); opacity: .75; margin-left: 10px; border-bottom: 1px solid currentColor; }
.opts { align-self: flex-end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 100%; animation: pop .35s .1s ease both; }
.opts button { min-height: 46px; padding: 0 18px; border: 1.5px solid var(--green); background: var(--white); color: var(--green); border-radius: 999px; font: inherit; font-size: calc(14.5px * var(--pc-text, 1)); font-weight: 700; cursor: pointer; }
.opts button:hover, .opts button:focus-visible { background: var(--green); color: #fff; outline: none; }
.num-in { display: flex; align-items: center; gap: 8px; }
.num-in button.sq { width: 46px; padding: 0; font-size: 20px; }
.num-in output { font-family: var(--f-mono); font-size: 22px; font-weight: 600; min-width: 64px; text-align: center; }

.quote { margin-top: 28px; animation: pop .45s ease both; }
.quote-paper { background: var(--white); border: 1px solid var(--rule-2); padding: 34px 36px 28px; box-shadow: 0 18px 40px rgba(29, 33, 31, .1); position: relative; }
.quote-paper::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); pointer-events: none; }
.quote-h { text-align: center; font-family: var(--f-min); font-weight: 900; font-size: 22px; letter-spacing: .3em; }
.quote-to { display: flex; align-items: flex-end; gap: 8px; margin: 22px 0 18px; border-bottom: 1px solid var(--ink); max-width: 360px; position: relative; }
.quote-to input { flex: 1; border: 0; background: transparent; font: inherit; font-size: calc(17px * var(--pc-text, 1)); padding: 4px 0; min-width: 0; color: var(--ink); }
.quote-to input:focus { outline: none; background: #fbf4e2; }
.quote-to span { padding-bottom: 6px; }
.quote-sum { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; border: 2px solid var(--ink); padding: 12px 16px; position: relative; }
.quote-sum b { font-size: clamp(26px, 5vw, 36px); }
.quote-month { font-size: calc(13px * var(--pc-text, 1)); color: var(--sub); text-align: right; margin-top: 6px; }
.quote-tab { margin-top: 18px; font-size: calc(14px * var(--pc-text, 1)); }
.quote-tab th { font-size: calc(12px * var(--pc-text, 1)); font-weight: 500; color: var(--sub); text-align: left; border-bottom: 1px solid var(--ink); padding: 6px 4px; }
.quote-tab td { padding: 9px 4px; border-bottom: 1px solid var(--rule); }
.quote-tab td.r { font-family: var(--f-mono); white-space: nowrap; }
.quote-tab tr.tot td { font-weight: 700; border-bottom: 0; }
.quote-ctl { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; position: relative; }
.quote-ctl label { display: flex; flex-direction: column; font-size: calc(12px * var(--pc-text, 1)); color: var(--sub); gap: 4px; flex: 1; min-width: 150px; }
.quote-ctl select { min-height: 44px; border: 1px solid var(--rule-2); background: var(--paper); border-radius: 3px; padding: 0 10px; font: inherit; font-size: calc(15px * var(--pc-text, 1)); color: var(--ink); }
.quote-note { font-size: calc(12.5px * var(--pc-text, 1)); color: var(--sub); margin-top: 14px; line-height: 1.8; }
.quote-note:empty { display: none; }
.quote-issuer { text-align: right; margin-top: 18px; font-size: calc(13px * var(--pc-text, 1)); font-weight: 700; }
.quote-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
@media (max-width: 640px) {
  .estimate { padding: 72px 0; }
  .msg { max-width: 92%; }
  .quote-paper { padding: 26px 18px 22px; }
  .quote-btns .btn { flex: 1 1 100%; }
}

/* 料金：比較表 */
.pricing { background: var(--white); border-block: 1px solid var(--rule); padding: 96px 0; }
.price-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.price-head h2 { font-size: clamp(30px, 4vw, 44px); }
.price-head p { color: var(--sub); font-size: calc(14px * var(--pc-text, 1)); margin-top: 8px; }
.sw { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.sw button { border: 0; background: transparent; font: inherit; font-size: calc(14px * var(--pc-text, 1)); font-weight: 700; padding: 9px 20px; cursor: pointer; color: var(--ink); }
.sw button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.ptab-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--ink); }
.ptab-wrap:focus-visible { outline: 3px solid var(--gold); }
.ptab { min-width: 860px; font-size: calc(14px * var(--pc-text, 1)); }
.ptab th, .ptab td { padding: 13px 12px; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.ptab thead th { font-family: var(--f-min); font-weight: 900; font-size: calc(16px * var(--pc-text, 1)); line-height: 1.4; padding-top: 18px; }
.ptab .grp { display: block; font-family: "Noto Sans JP", sans-serif; font-weight: 500; font-size: calc(11px * var(--pc-text, 1)); color: var(--faint); letter-spacing: .1em; }
.ptab tbody th { text-align: left; font-weight: 500; font-size: calc(13px * var(--pc-text, 1)); color: var(--sub); white-space: nowrap; position: sticky; left: 0; background: var(--white); z-index: 1; }
.ptab thead th.corner { position: sticky; left: 0; background: var(--white); z-index: 1; }
.ptab .hl { background: #f4efe0; }
.ptab thead th.hl { box-shadow: inset 0 3px 0 var(--gold); }
.price-row td b { font-size: 28px; font-weight: 600; display: inline-block; margin-right: 2px; }
.price-row td small { display: block; font-size: calc(11.5px * var(--pc-text, 1)); color: var(--faint); line-height: 1.5; margin-top: 2px; }
.omakase { margin-top: 40px; border: 1px solid var(--rule); background: var(--paper); border-radius: 4px; padding: 24px; }
.omakase h3 { margin: 0 0 16px; font-size: 20px; }
.omakase h3 span { display: block; font-size: calc(13px * var(--pc-text, 1)); font-weight: 500; color: var(--sub); margin-top: 4px; }
.om-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.om-card { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 18px; }
.om-name { margin: 0; font-weight: 700; }
.om-price { margin: 6px 0 10px; color: var(--green); }
.om-price b { font-size: 28px; }
.om-price small { color: var(--sub); margin-left: 6px; }
.om-card ul { margin: 0; padding-left: 1.2em; font-size: calc(13.5px * var(--pc-text, 1)); color: var(--sub); }
.om-note { margin: 14px 0 0; font-size: calc(12.5px * var(--pc-text, 1)); color: var(--sub); }
.pnotes { margin: 22px 0 0; padding-left: 1.2em; font-size: calc(13px * var(--pc-text, 1)); color: var(--sub); }
@media (max-width: 640px) { .pricing { padding: 64px 0; } .ptab { min-width: 760px; } .ptab tbody th { white-space: normal; min-width: 108px; } }

/* よくある質問：罫線の一覧 */
.faq { padding: 96px 0; }
.faq h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 30px; }
.qa { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 2px solid var(--ink); }
.qa div { padding: 22px 0; border-bottom: 1px solid var(--rule-2); }
.qa dt { font-family: var(--f-min); font-weight: 900; font-size: calc(17px * var(--pc-text, 1)); padding-left: 30px; position: relative; }
.qa dt::before { content: "Q"; position: absolute; left: 0; font-family: var(--f-mono); color: var(--gold-d); }
.qa dd { margin: 8px 0 0; padding-left: 30px; font-size: calc(14.5px * var(--pc-text, 1)); color: var(--sub); }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } .faq { padding: 64px 0; } }

/* 結び */
.end { background: var(--ink); color: #e9e6de; text-align: center; padding: 104px 0; }
.end h2 { color: #fff; font-size: clamp(30px, 5vw, 56px); }
.end p { color: #b3afa5; margin-top: 16px; }
.end-mail { display: inline-block; margin-top: 28px; font-family: var(--f-mono); font-size: clamp(17px, 3vw, 26px); color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(227, 180, 72, .5); word-break: break-all; }
.end-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
@media (max-width: 640px) { .end { padding: 72px 0; } .end-btns .btn { width: 100%; } }

.ft { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center; padding: 24px max(16px, calc((100% - 1080px) / 2)) 90px; font-size: calc(13px * var(--pc-text, 1)); color: var(--sub); }
.ft nav { display: flex; gap: 18px; flex-wrap: wrap; }
.ft a { color: var(--sub); }

/* 右下の見積もりボタン */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: calc(15px * var(--pc-text, 1)); text-decoration: none; box-shadow: 0 10px 26px rgba(19, 59, 46, .35); transition: opacity .25s, translate .25s; }
.fab.hide { opacity: 0; translate: 0 20px; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover-receipt .rc, .cover-down span, .beam { animation: none; }
  .pane, .ch, .hanko { transition: none; }
}

/* ---- 見積書（印刷） ---- */
#quote-print { display: none; }
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body.print-quote > *:not(#quote-print) { display: none !important; }
  body.print-quote { background: #fff; }
  body.print-quote #quote-print { display: block; }
}
.qp { color: #111; font-size: calc(12.5px * var(--pc-text, 1)); line-height: 1.7; letter-spacing: 0; font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif; }
.qp h1 { text-align: center; font-size: 24px; letter-spacing: .5em; margin: 0 0 18px; font-family: inherit; }
.qp-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.qp-to { font-size: calc(16px * var(--pc-text, 1)); border-bottom: 1px solid #111; padding-bottom: 2px; min-width: 260px; }
.qp-meta { text-align: right; }
.qp-issuer { margin-top: 10px; }
.qp-total { border: 2px solid #111; padding: 8px 14px; display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 16px; font-size: calc(14px * var(--pc-text, 1)); }
.qp-total b { font-size: 20px; }
.qp table { width: 100%; border-collapse: collapse; border: 1px solid #999; font-size: calc(12px * var(--pc-text, 1)); margin: 0 0 12px; }
.qp th, .qp td { border-bottom: 1px solid #ccc; padding: 6px 8px; text-align: left; }
.qp th { background: #eef3f0; }
.qp .n { text-align: right; white-space: nowrap; }
.qp-sec { font-weight: 700; margin: 14px 0 4px; }
.qp ul { margin: 0; padding-left: 18px; }
