/* =========================================================
   印刷用(media="print" で読み込み)
   案Dの帳票の見た目のまま、墨の帯は罫線だけに切り替えてトナーを節約する。
   ご説明用の要約(summary.html)を A4 縦で印刷・PDF保存しやすくする。
   ========================================================= */
@page { size: A4 portrait; margin: 15mm 15mm 17mm; }

html { font-size: 10.5pt; }
body { background: #fff !important; color: #000 !important; line-height: 1.65; }

/* 画面用の部品は印刷しない */
.skip, .hdr, .ftr, .cta, .doors, .inline-cta, .doc__foot, .faq-tools, .print-hide, .print-bar,
.hero__photo, .phead__photo, .gnav, .hdr__cta, .hero__btns, .phead__cta { display: none !important; }
.print-only { display: block !important; }

a { color: #000 !important; text-decoration: none !important; }

.hero, .phead, .sec, .sec--tint { background: #fff !important; padding: 0 !important; margin: 0 0 6mm !important; border: 0 !important; }
.hero__in, .phead__in, .sec__in, .sec__in--split { display: block !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.hero__text, .phead__text { padding: 0 0 3mm !important; border: 0 !important; border-bottom: 1.5pt solid #000 !important; }
.hero h1, .phead h1 { font-size: 16pt; }
.phead__side { display: none; }
.sheet { transform: none !important; box-shadow: none !important; margin: 4mm 0 0 !important; }
.sec h2 { font-size: 13pt; border-left: 3pt solid #000 !important; margin: 0 0 3mm !important; padding-left: 3mm; }
h2, h3 { break-after: avoid; page-break-after: avoid; }
table, tr, .doc, .fig, li, details, .facts div, .steps__row { break-inside: avoid; page-break-inside: avoid; }

/* 墨の帯 → 罫線のみ */
.sheet__head, .doc__head, .ledger thead th, .toc p {
  background: #fff !important; color: #000 !important; border-bottom: 1.5pt solid #000 !important;
}
.doc__head h2, .doc__head span, .sheet__no { color: #000 !important; }
.ledger, .doc, .steps, .ng, .flow, .faq, .facts, .toc, .sheet { border-color: #000 !important; }
.ledger { font-size: 9.5pt; border-width: 1pt !important; }
.ledger th, .ledger td { border: .5pt solid #777 !important; padding: 4px 7px !important; }
.ledger tbody th, .sheet__body dt, .steps__ask, .ng li::before, .door--sell {
  background: #F8F2EA !important; -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.steps__headrow { background: #fff !important; color: #000 !important; border-bottom: 1pt solid #000; }
.ledger--stack, .ledger--stack tbody, .ledger--stack tr { display: revert !important; }
.ledger--stack th, .ledger--stack td { display: table-cell !important; width: auto !important; }
.ledger--stack thead { position: static !important; display: table-header-group !important; }
.ledger--stack td[data-label]::before { content: none !important; }
.doc { border-width: 1pt !important; margin: 0 0 4mm !important; }
.doc__head { padding: 2mm 4mm !important; }
.doc__head h2 { font-size: 11pt !important; }
.doc__body { padding: 2mm 4mm 1mm !important; }
.tag, .tentative { color: #000 !important; border-color: #000 !important; }

/* 手順の帳票は3列のまま */
.steps__row { display: grid !important; grid-template-columns: 12mm 1fr 55mm !important; }
.steps--two .steps__row { grid-template-columns: 12mm 1fr !important; }
.steps__headrow { display: grid !important; }
.steps__ask-label { display: none !important; }
.steps__n, .flow__n, .faq .q { color: #000 !important; }

/* よくある質問は開いた状態で印刷 */
.faq details > *:not(summary) { display: block !important; }
.faq summary::after { display: none; }

/* 図は幅広版を使う */
.fig__wide { display: block !important; max-width: 170mm; }
.fig__narrow { display: none !important; }
.fig { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* 要約ページ専用 */
.print-doc { margin: 0 !important; }
.print-head { border-bottom: 1.5pt solid #000; padding-bottom: 3mm; margin-bottom: 5mm; }
.print-head__name { font-size: 15pt; font-weight: 700; margin: 0 0 1mm; }
.print-head__meta { font-size: 9pt; margin: 0; }
.doc-meta { font-size: 8.5pt; color: #333 !important; margin-top: 4mm !important; }
.sec .doc__head h2, .doc__head h2 { border: 0 !important; padding: 0 !important; margin: 0 !important; }
