/* サンプル「仕入先の見積書を並べて比べる」専用の見た目。sample-fax.css を写して接頭辞を pc- に替え、メール・比べる表・見積書の形を足した。色と書体は main.css の変数を使う */
.pc-page {
  --pc-head: 73px;
  --pc-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  --pc-unsure-ink: #92400E; --pc-unsure-bg: #FEF3C7;
  --pc-sku-ink: #991B1B; --pc-sku-bg: #FEE2E2;
  --pc-over-ink: #9A3412; --pc-over-bg: #FFEDD5;
  --pc-ok-ink: #115E59; --pc-ok-bg: #CCFBF1;
  --pc-muted: #475569;
}
.pc-page *:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 2px; }
.pc-page p { margin: 0; }
:where(.pc-page) :where(button, input) { font: inherit; color: inherit; }
html:has(#pc-app :focus-visible) { scroll-padding-top: 9.75rem; }
html:has(.pc-finish.is-ready) { scroll-padding-bottom: 10rem; }
.skip-link { top: -5rem; }
.pc-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); width: 100%; }
.pc-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* トップの「たとえば」節の部品（index.html の #can から写す） */
.can-eyebrow { display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 2vw, .75rem); word-break: auto-phrase; margin: 0 0 1rem !important; font-size: .85rem; font-weight: 600; letter-spacing: .16em; color: var(--cp-primary); text-align: center; }
.can-eyebrow::before, .can-eyebrow::after { content: ""; display: inline-block; flex: none; width: clamp(1rem, 5vw, 2rem); height: 1.5px; background: var(--cp-accent); }
.can-title { font-size: clamp(1.7rem, 3.2vw, 2.8rem); color: var(--cp-primary); line-height: 1.45; text-wrap: balance; word-break: auto-phrase; text-align: center; }
.can-title::after { content: ""; display: block; width: 64px; height: 2px; margin: 1.1rem auto 0; background: var(--cp-accent); }
.can-card__no { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .5rem; background: var(--cp-navy-deep); color: #fff; font-family: var(--ff-display); font-size: 1rem; font-weight: 600; letter-spacing: .06em; border-bottom: 2px solid var(--cp-accent); flex: none; }
.can-invite { position: relative; padding: clamp(1.5rem, 4vw, 3rem); background: var(--cp-white); border: 1px solid var(--cp-line); border-top: 3px solid var(--cp-accent); border-radius: 2px; box-shadow: var(--cp-shadow); }
.can-invite__title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.55; color: var(--cp-primary); text-wrap: balance; word-break: auto-phrase; }
.can-invite__text { margin-top: 1rem !important; font-size: 1rem; line-height: 1.95; text-wrap: pretty; }
.can-cta { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 2rem; width: 100%; background: var(--cp-primary); color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-decoration: none; border-radius: 2px; border-bottom: 2px solid var(--cp-accent); transition: background-color .3s ease, box-shadow .3s ease; word-break: auto-phrase; }
.can-cta:hover { background: var(--cp-navy-deep); box-shadow: var(--cp-shadow); }
.can-cta svg { width: 1.15rem; height: 1.15rem; transition: transform .3s ease; }
.can-cta:hover svg { transform: translateX(3px); }

/* プライバシーポリシーと同じヘッダーの戻るリンクとフッター */
.policy-header__back { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.04em; color: var(--cp-primary); border-bottom: 1px solid currentColor; padding-bottom: 0.1rem; white-space: nowrap; }
.policy-header__back:hover { color: var(--cp-navy-deep); }
.policy-footer .site-footer__inner { grid-template-columns: 1.2fr 1fr 1.1fr; }

/* 説明 */
.pc-intro { padding: clamp(1.75rem, 4vw, 3.25rem) 0 clamp(1.75rem, 3.5vw, 2.5rem); background: radial-gradient(60rem 30rem at 85% -5%, color-mix(in oklab, var(--cp-accent) 12%, transparent), transparent 70%), linear-gradient(180deg, var(--cp-white) 0%, var(--cp-bg) 100%); }
.pc-hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.pc-hero .can-eyebrow { justify-content: flex-start; }
.pc-hero .can-eyebrow::before { display: none; }
.pc-hero .can-title { text-align: left; font-size: clamp(1.7rem, 2.9vw, 2.45rem); }
.pc-hero .can-title::after { margin-left: 0; }
.pc-lead { margin: 1.1rem 0 0 !important; font-size: 1.02rem; line-height: 1.9; text-wrap: pretty; }
.pc-lead-act { margin-top: 1.25rem !important; }
.pc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem 1.25rem; margin: clamp(1.25rem, 3vw, 2rem) 0 0; padding-top: .9rem; border-top: 1px solid var(--cp-line); }
.pc-step { display: flex; align-items: baseline; gap: .55rem; }
.pc-step__no { flex: none; font-family: var(--ff-display); font-size: .95rem; font-weight: 600; letter-spacing: .06em; color: var(--cp-accent-ink); }
.pc-step__text { font-size: .95rem; font-weight: 600; line-height: 1.6; color: var(--cp-text); word-break: keep-all; }
.pc-note { margin-top: clamp(1rem, 2.5vw, 1.5rem); padding: .9rem 1.25rem 1rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; }
.pc-note__title { font-size: .98rem; color: var(--cp-primary); margin-bottom: .45rem; }
.pc-note__list { list-style: disc; padding-left: 1.3em; }
.pc-note__list li { font-size: .92rem; line-height: 1.75; margin-bottom: .2em; overflow-wrap: anywhere; }
.pc-note__list li::marker { color: var(--cp-primary); }
.pc-run { margin-top: .55rem !important; font-size: .82rem; line-height: 1.6; color: var(--pc-muted); font-family: var(--pc-sans); }

/* 触ってみる */
.pc-tool { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--cp-cream); border-top: 1px solid var(--cp-line); border-bottom: 1px solid var(--cp-line); }
.pc-tool__title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: var(--cp-primary); }
.pc-tool__lead { margin-top: .25rem !important; font-size: .98rem; color: var(--cp-text); }
.pc-tool__notice { margin-top: .35rem !important; font-size: .9rem; line-height: 1.7; color: var(--cp-text); }
.pc-noscript { margin-top: 1rem !important; padding: 1rem; background: var(--cp-white); border: 1px solid var(--cp-line); }
.pc-app { margin-top: 1rem; }

/* 依頼を選ぶ */
.pc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pc-tab { display: flex; flex-direction: column; gap: .1rem; min-height: 44px; padding: .6rem .9rem; text-align: left; background: var(--cp-white); border: 1px solid var(--cp-line); border-bottom: 3px solid var(--cp-line); border-radius: 2px; cursor: pointer; line-height: 1.5; transition: border-color .2s ease, background-color .2s ease; }
.pc-tab:hover { border-bottom-color: var(--cp-accent); }
.pc-tab[aria-selected="true"] { background: var(--cp-navy-deep); border-color: var(--cp-navy-deep); border-bottom-color: var(--cp-accent); color: #fff; }
.pc-tab__label { font-weight: 600; font-size: .95rem; word-break: auto-phrase; }
.pc-tab__who { font-size: .82rem; color: var(--pc-muted); min-width: 0; overflow-wrap: anywhere; }
.pc-tab[aria-selected="true"] .pc-tab__who { color: #cbd5e1; }
.pc-tab__state { font-size: .86rem; font-weight: 600; color: var(--cp-accent-ink); font-family: var(--pc-sans); }
.pc-tab[aria-selected="true"] .pc-tab__state { color: #bfdbfe; }

.pc-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; margin-top: 1rem; }

/* 左: 届いた依頼 */
.pc-srccol { position: sticky; top: calc(var(--pc-head) + .75rem); background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; box-shadow: var(--cp-shadow); padding: .75rem; }
.pc-srccol__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.pc-srccol__title { font-size: 1.02rem; color: var(--cp-primary); }
.pc-sheet { position: relative; margin-inline: auto; width: min(100%, calc((100vh - var(--pc-head) - 6.5rem) * var(--pc-ratio, 0.7546))); box-shadow: 0 0 0 1px var(--cp-line); cursor: zoom-in; background: #fff; }
.pc-sheet img { display: block; width: 100%; height: 100%; max-width: none; }
.pc-hit { position: absolute; border: 3px solid var(--cp-accent); border-radius: 2px; pointer-events: none; box-sizing: content-box; transform: translate(-3px, -3px); }

/* 右: 見積の下書き */
.pc-count { position: sticky; top: var(--pc-head); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; padding: .55rem 1rem; background: var(--cp-navy-deep); color: #fff; border-bottom: 2px solid var(--cp-accent); border-radius: 2px; }
.pc-count__main { display: flex; align-items: baseline; gap: .4rem; min-width: 0; white-space: nowrap; font-weight: 600; font-size: 1rem; }
.pc-count__num { font-family: var(--pc-sans); font-size: 2.1rem; font-weight: 700; line-height: 1.1; color: #fff; }
.pc-count__sub { min-width: 0; font-size: .92rem; color: #cbd5e1; overflow-wrap: anywhere; }
.pc-count__sub b { font-family: var(--pc-sans); font-size: 1.15rem; color: #fff; font-weight: 700; }
.pc-prior { margin-top: .35rem !important; font-size: .9rem; color: var(--cp-text); line-height: 1.7; }

.pc-head { margin-top: .75rem; padding: .7rem .9rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; }
.pc-head__row { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.pc-head__dl { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .1rem .9rem; margin: 0; font-size: .92rem; line-height: 1.7; }
.pc-head__dl dt { color: var(--pc-muted); }
.pc-head__dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.pc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin-top: .75rem; }
.pc-rowitem { position: relative; background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; padding: .6rem .9rem; }
.pc-rowitem.has-marks { border-left: 4px solid var(--cp-primary); box-shadow: var(--cp-shadow); padding: .8rem .95rem .95rem; }
.pc-rowitem.is-done { border-left: 4px solid var(--pc-ok-ink); }
/* 直した行を、少しの間だけ色で知らせる */
.is-just-fixed { animation: pc-fixed 2s ease-out; }
@keyframes pc-fixed { 0%, 35% { background-color: var(--pc-ok-bg); } 100% { background-color: var(--cp-white); } }
.pc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem .75rem; }
.pc-row__data { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .75rem; min-width: 0; }
.pc-name { font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.pc-diff { margin-top: .25rem !important; font-size: .82rem; color: var(--pc-ok-ink); line-height: 1.6; font-family: var(--pc-sans); overflow-wrap: anywhere; }
.pc-tags { display: flex; flex-wrap: wrap; gap: .3rem .4rem; }
.pc-rowitem .pc-tags--row, .pc-head .pc-tags--row { margin-top: .3rem; align-items: center; }
.pc-tags--row .pc-link { min-height: 44px; margin-left: .3rem; }

.pc-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; font-family: var(--pc-sans); font-size: .82rem; font-weight: 700; line-height: 1.6; border: 1px solid currentColor; border-radius: 2px; }
.pc-tag svg { width: .85rem; height: .85rem; flex: none; }
.pc-tag--unsure { color: var(--pc-unsure-ink); background: var(--pc-unsure-bg); }
.pc-tag--ok { color: var(--pc-ok-ink); background: var(--pc-ok-bg); }
.pc-by { font-size: .84rem; color: var(--pc-muted); font-family: var(--pc-sans); align-self: center; }

/* 確かめる所 */
.pc-block { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--cp-line); scroll-margin: 8rem; }
.pc-block__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .1rem; }
.pc-block__field { font-size: .92rem; font-weight: 600; color: var(--cp-primary); }
/* border を付けると内側の縦横比がずれて切り抜きが動くので、枠は box-shadow で描く */
.pc-crop { position: relative; overflow: hidden; margin: .5rem 1px 1px; background: #fff; box-shadow: 0 0 0 1px var(--cp-muted); max-width: calc(100% - 2px); }
.pc-crop img { position: absolute; max-width: none; height: auto; }
/* かすれの切り抜きは、FAX の点の集まりが字に見えるように少しなめらかにする。画像そのものは変えない */
.pc-crop--tight img { filter: blur(1.1px) contrast(1.5); }
/* スマホの幅で字が読める大きさにした切り抜き。入りきらない分は横に動かして見る */
.pc-cropscroll { overflow-x: auto; margin: .5rem 0 0; padding: 0 1px 1px; -webkit-overflow-scrolling: touch; }
.pc-cropscroll .pc-crop--wide { max-width: none; margin-top: 0; }
.pc-cropscroll:focus-visible { outline: 3px solid var(--cp-primary); outline-offset: 2px; }
.pc-say { margin-top: .5rem !important; font-size: .95rem; line-height: 1.75; overflow-wrap: anywhere; }
.pc-say b { font-family: var(--pc-sans); font-weight: 700; }
.pc-why { margin-top: .15rem !important; font-size: .9rem; color: var(--pc-muted); line-height: 1.7; overflow-wrap: anywhere; font-family: var(--pc-sans); }
.pc-group-label { margin-top: .6rem !important; font-size: .88rem; font-weight: 600; color: var(--cp-text); }
.pc-choices { display: grid; gap: .4rem; margin-top: .35rem; }
.pc-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-width: 0; overflow-wrap: anywhere; min-height: 44px; padding: .45rem .95rem; font-weight: 600; font-size: .95rem; line-height: 1.5; letter-spacing: .02em; border-radius: 2px; border: 1.5px solid var(--cp-primary); background: var(--cp-white); color: var(--cp-primary); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.pc-btn--primary { background: var(--cp-primary); color: #fff; }
.pc-btn--quiet { border-color: var(--cp-line); color: var(--cp-text); font-weight: 500; }
/* タッチの端末で押したあとに濃い色が残らないように */
@media (hover: hover) {
  .pc-btn:hover { background: var(--cp-primary); color: #fff; }
  .pc-btn--primary:hover { background: var(--cp-navy-deep); border-color: var(--cp-navy-deep); }
  .pc-btn--quiet:hover { background: var(--cp-cream); color: var(--cp-text); border-color: var(--cp-muted); }
}
.pc-btn--small { padding-inline: .7rem; font-size: .88rem; white-space: nowrap; }
.pc-btn:disabled, .pc-btn:disabled:hover { background: var(--cp-line); border-color: var(--cp-line); color: var(--pc-muted); cursor: not-allowed; }
.pc-type { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; margin-top: .35rem; }
.pc-input { width: 100%; min-height: 44px; padding: .4rem .65rem; font-family: var(--pc-sans); font-size: 16px; line-height: 1.4; background: #fff; border: 1.5px solid var(--cp-muted); border-radius: 2px; }
.pc-input[aria-invalid="true"] { border-color: var(--pc-sku-ink); }
.pc-err { margin-top: .3rem !important; font-size: .88rem; font-weight: 600; color: var(--pc-sku-ink); }
.pc-tools { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .4rem; }
.pc-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: var(--cp-primary); font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.pc-link:hover { color: var(--cp-navy-deep); }
.pc-block__top .pc-link { flex: none; white-space: nowrap; }
.pc-link:disabled { color: var(--pc-muted); text-decoration: none; cursor: not-allowed; }
.pc-nowrap { white-space: nowrap; }

/* 行を直す */
.pc-editor { margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--cp-line); }
.pc-editor__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .75rem; margin-top: .5rem; }
.pc-editor__field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .15rem; }
.pc-editor__field--wide { grid-column: 1 / -1; }
.pc-editor__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }

/* 確定 */
.pc-finish { margin-top: .9rem; padding: .9rem 1rem 1rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-top: 3px solid var(--cp-accent); border-radius: 2px; }
.pc-finish.is-ready { position: sticky; bottom: 0; z-index: 4; box-shadow: 0 -6px 18px rgba(15, 23, 42, .12); }
.pc-finish__msg { font-size: .95rem; line-height: 1.75; margin-bottom: .6rem !important; text-wrap: pretty; }
.pc-finish .pc-btn--primary { width: 100%; min-height: 50px; font-size: 1.02rem; }
.pc-done__title { font-size: 1.3rem; color: var(--cp-primary); }
.pc-done__title:focus { outline: none; }
.pc-done__lead { margin-top: .35rem !important; font-size: .95rem; line-height: 1.75; }
.pc-tablewrap { overflow-x: auto; margin-top: .75rem; background: var(--cp-white); border: 1px solid var(--cp-line); -webkit-overflow-scrolling: touch; }
.pc-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.6; font-family: var(--pc-sans); }
.pc-table th, .pc-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--cp-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.pc-table thead th { background: var(--cp-cream); color: var(--cp-text); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.pc-table tr:last-child td { border-bottom: 0; }
.pc-table .is-num { text-align: right; white-space: nowrap; }
.pc-tnote { display: block; font-size: .86em; color: var(--pc-muted); }
.pc-done__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.pc-done__actions .pc-btn--primary { flex: 1 1 100%; min-height: 50px; font-size: 1.02rem; }
.pc-done__saved { margin-top: .5rem !important; font-size: .9rem; color: var(--pc-ok-ink); font-weight: 600; font-family: var(--pc-sans); overflow-wrap: anywhere; }
.pc-done__next { margin-top: .85rem !important; padding-top: .75rem; border-top: 1px solid var(--cp-line); font-size: .92rem; line-height: 1.8; }
.pc-done__cta { margin-top: .6rem; min-height: 44px; }
.pc-reset { margin-top: 1rem; text-align: right; }

/* 表の形 */
.pc-paper { position: relative; margin-top: .75rem; padding: .9rem 1rem 1rem; background: #fff; border: 1px solid var(--cp-line); font-family: var(--pc-sans); }
.pc-paper__mark { position: absolute; right: .75rem; top: .75rem; padding: .05rem .5rem; border: 1px solid var(--cp-text); font-size: .78rem; font-weight: 700; }
.pc-paper__title { font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; padding-right: 8.5rem; }
.pc-paper__meta { margin-top: .35rem !important; font-size: .86rem; color: var(--pc-muted); overflow-wrap: anywhere; }
.pc-paper .pc-tablewrap { margin-top: .55rem; }
.pc-table tfoot th { font-weight: 600; text-align: right; background: var(--cp-cream); }
.pc-table tfoot td { background: var(--cp-cream); }
.pc-table tbody tr:last-child td { border-bottom: 1px solid var(--cp-line); }

/* 全体を拡大して見る */
.pc-zoom { width: min(96vw, 1100px); height: min(94dvh, 100%); max-width: none; max-height: none; padding: 0; border: 1px solid var(--cp-line); border-radius: 2px; background: var(--cp-white); color: var(--cp-text); font-family: var(--ff-serif); overflow: hidden; }
.pc-zoom[open] { display: flex; flex-direction: column; }
.pc-zoom::backdrop { background: rgba(2, 6, 23, .72); }
.pc-zoom__bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding: .4rem .6rem; border-bottom: 1px solid var(--cp-line); background: var(--cp-white); }
.pc-zoom__title { font-size: .98rem; font-weight: 600; color: var(--cp-primary); margin: 0; }
.pc-zoom__ctrl { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.pc-zoom__pct { min-width: 3.2em; text-align: center; font-family: var(--pc-sans); font-size: .88rem; }
.pc-zoom__scroll { flex: 1; min-height: 0; overflow: auto; background: var(--cp-cream); -webkit-overflow-scrolling: touch; }
.pc-zoom__scroll:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: -3px; }
/* main.css の「動きを減らす」は全部に短い transition を付ける。大きさが遅れて変わると中心の計算がずれるので切る */
.pc-zoom__page { position: relative; margin-inline: auto; background: #fff; transition: none !important; }
.pc-zoom__page img { display: block; width: 100%; height: 100%; max-width: none; }
html.pc-noscroll { overflow: hidden; }

/* 相談へ */
.pc-next { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.pc-next__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; }
.pc-next__actions .can-cta { width: auto; flex: 0 1 auto; }
.pc-next__sub { min-height: 44px; }

@media (max-width: 1024px) {
  .pc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .pc-note__list { columns: 2; column-gap: 2.5rem; }
  .pc-note__list li { break-inside: avoid; }
}
@media (max-width: 860px) {
  .pc-hero { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .pc-fig { min-height: 0; }
}
@media (max-width: 900px) {
  .pc-panel { grid-template-columns: minmax(0, 1fr); }
  .pc-srccol { position: static; display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: .75rem; align-items: center; box-shadow: none; padding: .55rem .75rem; }
  .pc-srccol__head { display: block; margin: 0; grid-column: 2; grid-row: 1; }
  .pc-srccol__head .pc-btn { margin-top: .45rem; width: 100%; }
  .pc-sheet { grid-column: 1; grid-row: 1; width: 100%; margin: 0; }
  .pc-sheet .pc-hit { display: none; }
}
@media (max-width: 768px) {
  .policy-footer .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pc-page { --pc-head: 63px; }
  .pc-table { font-size: .86rem; }
  .pc-table th, .pc-table td { padding: .5rem .4rem; }
  .pc-table td:first-child { min-width: 6.5em; }
  .policy-footer .site-footer__inner { grid-template-columns: 1fr; }
  .pc-lead { text-align: left; }
  .pc-steps { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .pc-step__text { font-size: .92rem; }
  .pc-hero .can-eyebrow { margin-bottom: .6rem !important; }
  .pc-note { padding: .85rem .9rem .9rem; }
  .pc-tool { padding-top: 1.1rem; scroll-margin-top: -1.25rem; }
  .pc-app { margin-top: .75rem; }
  .pc-tabs { gap: .3rem; }
  .pc-tab { padding: .4rem .45rem; }
  .pc-tab__label { font-size: .84rem; line-height: 1.35; }
  .pc-tab__who { display: none; }
  .pc-tab__state { font-size: .8rem; margin-top: auto; }
  .pc-count { padding: .35rem .75rem; gap: 0 .5rem; }
  .pc-count__main { font-size: .92rem; gap: .25rem; }
  .pc-count__sub { font-size: .86rem; }
  .pc-finish.is-ready { padding: .6rem .75rem .7rem; }
  .pc-finish.is-ready .pc-finish__msg { font-size: .88rem; line-height: 1.6; margin-bottom: .4rem !important; }
  .pc-count__num { font-size: 1.7rem; }
  .pc-rowitem { padding: .55rem .7rem; }
  .pc-rowitem.has-marks { padding: .7rem .75rem .85rem; }
  .pc-choices--2 { grid-template-columns: minmax(0, 1fr); }
  .pc-editor__grid { grid-template-columns: minmax(0, 1fr); }
  .pc-next__actions .can-cta, .pc-next__sub { width: 100%; }
  .pc-reset { text-align: center; }
  .pc-zoom { width: 100vw; height: 100dvh; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .is-just-fixed { animation: none; }
  .pc-tab, .pc-btn, .can-cta, .can-cta svg { transition: none; }
  .can-cta:hover svg { transform: none; }
}
@media (max-width: 340px) {
  .pc-tab { padding-inline: .35rem; }
  .pc-tab__label { font-size: .8rem; }
  .pc-srccol { grid-template-columns: 4rem minmax(0, 1fr); }
  .pc-tool__lead { display: none; }
}
/* 横向きなど高さのない画面では、固定の帯で作業の場所が狭くならないようにする */
@media (max-height: 500px) {
  .site-header, .pc-count, .pc-finish.is-ready { position: static; }
  html:has(#pc-app :focus-visible), html:has(.pc-finish.is-ready) { scroll-padding-top: 1rem; scroll-padding-bottom: 1rem; }
}
/* 見出しの近くの図（3 通の見積を品ごとに並べる） */
.pc-fig { margin: 0; padding: .85rem .95rem .95rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; box-shadow: var(--cp-shadow); }
.pc-fig__cap { font-size: .86rem; font-weight: 600; color: var(--cp-primary); margin-bottom: .4rem !important; line-height: 1.6; }
.pc-fig__rows { display: grid; font-family: var(--pc-sans); font-size: .84rem; border: 1px solid var(--cp-line); }
.pc-fig__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .6rem; align-items: baseline; padding: .35rem .55rem; border-top: 1px solid var(--cp-line); }
.pc-fig__row:first-child { border-top: 0; }
.pc-fig__row.is-marked { background: var(--pc-over-bg); }
.pc-fig__name { font-weight: 600; overflow-wrap: anywhere; }
.pc-fig__nums { text-align: right; line-height: 1.5; color: var(--cp-text); }
.pc-fig__mark { grid-column: 1 / -1; }
.pc-fig__ok { font-size: .82rem; color: var(--pc-ok-ink); font-weight: 600; }

/* 行: 見積と依頼を並べる */
.pc-row__data { display: grid; gap: .2rem; min-width: 0; }
.pc-row__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; }
.pc-slip { font-family: var(--pc-sans); font-weight: 600; font-size: .9rem; color: var(--pc-muted); }
.pc-name { font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.pc-date { font-family: var(--pc-sans); font-size: .84rem; color: var(--pc-muted); }
.pc-pair { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .05rem .7rem; margin: 0; font-family: var(--pc-sans); font-size: .92rem; line-height: 1.65; }
.pc-pair dt { color: var(--pc-muted); font-weight: 600; }
.pc-pair dd { margin: 0; overflow-wrap: anywhere; }
.pc-pair dd.is-empty { color: var(--pc-sku-ink); font-weight: 600; }
.pc-match { margin-top: .25rem !important; font-size: .84rem; color: var(--pc-ok-ink); font-family: var(--pc-sans); }
.pc-rowitem.is-ask, .pc-head.is-ask { border-left: 4px solid var(--pc-over-ink); }
.pc-head .pc-why { margin-top: .35rem !important; }

/* 印の色。見比べの印は赤と橙、人が決めたものは緑と橙の枠 */
.pc-tag--find { color: var(--pc-sku-ink); background: var(--pc-sku-bg); }
.pc-tag--paid, .pc-tag--diff, .pc-tag--calc { color: var(--pc-over-ink); background: var(--pc-over-bg); }
.pc-tag--ask { color: var(--pc-over-ink); background: #fff; }

/* 問い合わせる内容 */
.pc-asks { margin-top: .75rem; padding: .7rem .9rem; background: var(--pc-over-bg); border-left: 4px solid var(--pc-over-ink); font-family: var(--pc-sans); font-size: .92rem; line-height: 1.7; }
.pc-asks__title { font-weight: 700; color: var(--pc-over-ink); margin-bottom: .25rem !important; }
.pc-asks ul { list-style: disc; padding-left: 1.2em; margin: 0; }
.pc-asks li { overflow-wrap: anywhere; }
.pc-paper__meta { margin-top: .35rem !important; }
.pc-table td { white-space: normal; }

/* メールの見積（文字で出す） */
.pc-mail { position: relative; padding: .75rem .85rem; background: #fff; box-shadow: 0 0 0 1px var(--cp-line); font-family: var(--pc-sans); font-size: .9rem; line-height: 1.75; max-height: calc(100vh - var(--pc-head) - 6.5rem); overflow-y: auto; }
.pc-mail__mark { float: right; margin: 0 0 .3rem .6rem !important; padding: .05rem .5rem; border: 1px solid var(--cp-text); font-size: .8rem; font-weight: 700; }
.pc-mail__head { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 .7rem; margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--cp-line); font-size: .84rem; }
.pc-mail__head dt { color: var(--pc-muted); }
.pc-mail__head dd { margin: 0; overflow-wrap: anywhere; }
.pc-mail__line { overflow-wrap: anywhere; border-radius: 2px; }
.pc-mail__line.is-blank { height: .75em; }
.pc-mail__line.is-hit { background: var(--pc-unsure-bg); box-shadow: 0 0 0 2px var(--cp-accent); }
.pc-quote { margin: .5rem 0 0; padding: .45rem .7rem; background: #fff; border-left: 4px solid var(--cp-accent); box-shadow: 0 0 0 1px var(--cp-line); font-family: var(--pc-sans); font-size: .95rem; line-height: 1.7; overflow-wrap: anywhere; }

/* 見積ごとの確かめの終わり */
.pc-quotedone { margin-top: .9rem; padding: .8rem 1rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-top: 3px solid var(--cp-accent); border-radius: 2px; display: grid; gap: .55rem; }
.pc-quotedone__msg { font-size: .95rem; line-height: 1.75; }
.pc-quotedone__msg:focus { outline: none; }
.pc-quotedone a.pc-btn { text-decoration: none; }
select.pc-input { appearance: auto; }

/* 比べる表 */
.pc-compare { margin-top: clamp(1.25rem, 3vw, 2rem); padding: clamp(.9rem, 2.5vw, 1.4rem); background: var(--cp-white); border: 1px solid var(--cp-line); border-top: 3px solid var(--cp-accent); border-radius: 2px; box-shadow: var(--cp-shadow); scroll-margin-top: calc(var(--pc-head) + 8px - 90px); }
.pc-compare__title { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--cp-primary); }
.pc-compare .pc-why { margin-top: .3rem !important; }
/* 表の中の見えない札（発注先の欄の名前）が、横に動く箱の外へはみ出してページを広げないように、箱を基準にする */
.pc-compare .pc-tablewrap { position: relative; }
.pc-compare__table { min-width: 720px; }
.pc-compare__table thead th { white-space: normal; min-width: 9.5em; }
.pc-compare__table tbody th { font-weight: 600; min-width: 9em; background: var(--cp-cream); }
.pc-compare__table td, .pc-compare__table th { border-right: 1px solid var(--cp-line); }
.pc-cell > span { display: block; }
.pc-cell__src { font-weight: 600; }
.pc-cell__qty { color: var(--cp-text); }
.pc-cell__price { font-weight: 700; }
/* 差は数として出すだけ。最も低い単価の見積を目立たせない（発注先は人が決める。設計 §5） */
.pc-cell__diff { color: var(--cp-text); }
.pc-cell__no { color: var(--pc-sku-ink); font-weight: 600; }
.pc-cell__ask { color: var(--pc-over-ink); font-weight: 700; }
/* 印と人の判断（印 〜：人が確かめる前／人が〜とした）。小さめの字で、ますの最後に出す */
.pc-cell__mark { font-size: .86em; color: var(--cp-text); margin-top: .15rem; }
.pc-cell--missing, .pc-cell--unitopen, .pc-cell--unitask, .pc-cell--dup, .pc-cell--blank, .pc-cell--aiopen { background: #fafafa; }
.pc-total th, .pc-total td { border-top: 2px solid var(--cp-text); }
.pc-choice { min-width: 13em; }
.pc-done__title { font-size: 1.3rem; font-weight: 700; color: var(--cp-primary); margin-bottom: .3rem !important; }
.pc-done__title:focus { outline: none; }
.pc-finish .pc-btn--primary { width: 100%; }

/* 見出しの近くの図 */
.pc-fig__rows { display: grid; gap: .55rem; border: 0; }
.pc-fig__item { border: 1px solid var(--cp-line); }
.pc-fig__name { padding: .3rem .55rem; background: var(--cp-cream); font-weight: 700; font-size: .86rem; overflow-wrap: anywhere; }
.pc-fig__cells { display: grid; }
.pc-fig__cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .6rem; align-items: baseline; padding: .3rem .55rem; border-top: 1px solid var(--cp-line); font-size: .84rem; }
.pc-fig__cell.is-marked { background: var(--pc-over-bg); }
.pc-fig__who { font-weight: 600; overflow-wrap: anywhere; }
.pc-fig__val { text-align: right; }
.pc-fig__mark { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .pc-srccol.is-mail { display: block; }
  .pc-srccol.is-mail .pc-srccol__head { margin-bottom: .5rem; }
  .pc-srccol.is-mail .pc-mail { max-height: 19rem; }
}
@media (max-width: 560px) {
  .pc-mail__mark { float: none; display: inline-block; margin: 0 0 .4rem !important; }
  .pc-mail__head { font-size: .8rem; line-height: 1.55; }
  .pc-compare__table { min-width: 620px; font-size: .84rem; }
  /* 横に動かしても、どの品の行かが分かるように、品の列を左に留める */
  .pc-compare__table tbody th, .pc-compare__table thead th:first-child { position: sticky; left: 0; z-index: 1; min-width: 8.1em; max-width: 8.5em; word-break: auto-phrase; box-shadow: 1px 0 0 var(--cp-line); }
  .pc-compare__table thead th:first-child { background: var(--cp-cream); }
}

/* 2 周目の点検の直し */
/* 見出し上の文が折れても崩れないように（保険） */
@media (max-width: 400px) {
  .pc-hero .can-eyebrow { letter-spacing: .08em; text-align: left; }
  .pc-hero .can-eyebrow::after { display: none; }
}
.pc-srccol__note { font-size: .84rem; line-height: 1.5; color: var(--pc-muted); font-family: var(--pc-sans); }
.pc-fig__note { margin-top: .4rem !important; font-size: .84rem; line-height: 1.6; color: var(--pc-muted); font-family: var(--pc-sans); }
.pc-pair b { white-space: nowrap; }
/* 1〜2 字だけ折れないように、語の切れ目で折る */
.pc-fig__cap, .pc-done__cta, .pc-asks li, .pc-pair dd, .pc-block__field, .pc-compare__table tbody th { word-break: auto-phrase; }
/* 表のすぐ上の、横に動かす案内 */
.pc-tablehint { margin-top: .5rem !important; font-size: .9rem; line-height: 1.6; color: var(--cp-text); font-family: var(--pc-sans); }
.pc-compare .pc-tablewrap { margin-top: .35rem; }
/* 表の中の注と印は小さくしすぎない（thead の中でも同じ大きさにする） */
.pc-compare__table .pc-tnote, .pc-compare__table .pc-cell__mark { font-size: .8rem; line-height: 1.55; }
/* 確定のあとの並び */
/* 確定のあとの帯はタブのすぐ下に置く。広い幅で左に固定する見積書の欄は、帯の下で止める（箱の中の高さの計算も帯の分だけ減らす） */
.pc-app > .pc-count { margin-top: .75rem; }
@media (min-width: 901px) {
  .pc-app:has(> .pc-count) { --pc-head-band: calc(var(--pc-head) + 3.1rem); }
  .pc-app:has(> .pc-count) .pc-srccol { --pc-head: var(--pc-head-band); }
}
.pc-done__title ~ .pc-compare__title { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--cp-line); }
/* 小さなスマホでは、確定のボタンを 1 行に収める */
@media (max-width: 340px) {
  .pc-finish .pc-btn--primary { font-size: .95rem; padding-inline: .4rem; }
}
/* 小さなスマホでは、上の帯と合わせて画面の 30% を超えないよう、確定の帯を固定しない */
@media (max-height: 700px) {
  .pc-finish.is-ready { position: static; }
  html:has(.pc-finish.is-ready) { scroll-padding-bottom: 1rem; }
}

/* 全サンプル共通の整え（2026-11-06）: 最後の行に 1〜2 字だけ残さない・語の途中で折らない。押す所は 44px。word-break は Safari で効かないので、数字や日付など絶対に割りたくない所は nowrap の span にする */
main { text-wrap: pretty; }
main :where(p, li, h1, h2, h3, h4, dd, dt, figcaption, button, a, label, summary, caption) { word-break: auto-phrase; overflow-wrap: break-word; }
.policy-header__back { display: inline-flex; align-items: center; min-height: 44px; margin-block: -3px; }
.site-header .brand { min-height: 44px; margin-block: -3px; }
.policy-footer .site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* 3 周目の点検の直し */
/* 上の共通の整えは、広い幅でヘッダーを低くする（--pc-head とずれて、件数の帯との間に隙間が出る）ので、この本では打ち消す */
@media (min-width: 561px) {
  .site-header .brand { margin-block: 0; }
}
/* 語の切れ目で折る（wbr を入れた所だけで折る。入らない長さのときだけ字の途中で折る） */
.pc-ph { word-break: keep-all; overflow-wrap: anywhere; }
/* 「◯◯の行」と「全体で見る」が横に入らないときは、行を分ける（語の途中で折らないように） */
.pc-block__top { flex-wrap: wrap; gap: 0 .75rem; }
/* 狭いスマホでは、「直す」を下へ回して、見積元や日付を 1 行で見せる */
@media (max-width: 380px) {
  .pc-head__row { flex-direction: column; align-items: stretch; gap: .35rem; }
  .pc-head__dl { flex: none; }
  .pc-head__row > .pc-btn { align-self: flex-end; }
}
/* スマホでは、選んだ品名が切れないように「これにする」を下の行へ回す */
@media (max-width: 640px) {
  .pc-type--map { grid-template-columns: minmax(0, 1fr); }
}
/* ページの下の欄も、最後の行に 1〜2 字だけ残さない */
footer :where(p, li, address) { text-wrap: pretty; word-break: auto-phrase; }

/* 3 周目の確かめの直し */
/* 発注先の列のぶんだけ表を広げ、選んだ名前も他の列も細くしない（スマホの幅の指定より後ろに置く） */
.pc-compare__table:has(.pc-choice) { min-width: 840px; }
@media (min-width: 561px) {
  .pc-compare__table:has(.pc-choice) { min-width: 920px; }
}
/* 狭いスマホでは、品の列を留めると発注先の欄が入りきらず、名前の頭が隠れる。確定のあとだけ留めるのをやめ、どの品の欄かを欄の上に文字で出す */
@media (max-width: 395px) {
  .pc-compare__table:has(.pc-choice) tbody th, .pc-compare__table:has(.pc-choice) thead th:first-child { position: static; box-shadow: none; }
  .pc-compare__table .pc-choice__label { position: static; display: block; width: auto; height: auto; margin: 0 0 .2rem; overflow: visible; clip-path: none; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.55; }
}
/* 4 周目の直し */
/* 品の列を留めると見える幅が 144〜183px しかない幅では、確定の前の表を細くして、1 行の文を 1 度に見せる（確定のあとは :has の指定が勝つ） */
@media (max-width: 359px) {
  .pc-compare__table { min-width: 520px; }
}
/* 高さの低い画面では、件数の帯の補足を出さず、次に確かめる札と入力欄が入る高さを空ける（税抜の合計は見積の欄にも出ている） */
@media (max-height: 600px) {
  .pc-count__sub { display: none; }
}

/* Safari（auto-phrase が効かない）では text-wrap の pretty / balance と wbr・nowrap が重なると同じ字が 2 回描かれるので、折り方を普通に戻す（2026-11-07） */
@supports not (word-break:auto-phrase){main,main *,.policy-footer,.policy-footer *{text-wrap-style:auto!important}}
