/* doc-tools の最小スタイル(フレームワーク無し)。印刷時は書類(.paper)だけを出す */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; font-size: 16px; line-height: 1.75; color: #1f1f1f; background: #fff; }
a { color: #0b57d0; }
h1 { font-size: 1.6rem; line-height: 1.4; margin: .4em 0 .5em; }
h2 { font-size: 1.3rem; line-height: 1.4; margin: 2em 0 .6em; padding-bottom: .2em; border-bottom: 2px solid #e3e3e3; }
h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; padding: 2px 20px; background: #f4f6f8; border-bottom: 1px solid #e2e5e9; }
.site-name { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: bold; text-decoration: none; font-size: 1.05rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: .95rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: #333; text-decoration: none; }   /* タップ領域 44px 以上 */
.site-nav a:hover { text-decoration: underline; }
/* 冒頭の PR 表示: 本文と同じ文字サイズ・十分なコントラスト(薄い色にしない) */
.pr-notice { max-width: 880px; margin: 12px auto 0; padding: 8px 14px; font-size: 1rem; color: #1f1f1f; background: #fff7e0; border: 1px solid #d9b650; border-radius: 4px; }
.pr-notice p { margin: 0; }
main { max-width: 880px; margin: 0 auto; padding: 8px 20px 56px; }
/* 出典の長い URL などで横にはみ出さない(スマホで画面が横に動いたり縮んだりするのを防ぐ) */
main { overflow-wrap: break-word; }
.site-footer { padding: 16px 20px 28px; background: #f4f6f8; border-top: 1px solid #e2e5e9; font-size: .9rem; color: #444; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer p { margin: 8px 0 0; }
.lead { font-size: 1.05rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0 .4em; margin: 0; padding: 0; list-style: none; font-size: .88rem; color: #555; }
.breadcrumb li + li::before { content: "›"; margin-right: .4em; color: #999; }
/* パンくずのタップ領域 44px 以上 */
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb a, .breadcrumb span { display: inline-flex; align-items: center; min-height: 44px; }
.tool-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.home-billing { margin: 16px 0 28px; padding: 14px 16px; border: 2px solid #0b57d0; border-radius: 6px; background: #f5f8ff; }
.home-billing h2 { margin-top: 0; }
.tool-card { display: block; height: 100%; padding: 14px 16px; border: 1px solid #d5dae0; border-radius: 6px; color: inherit; text-decoration: none; }
.tool-card:hover { border-color: #0b57d0; }
.tool-card strong { display: block; font-size: 1.1rem; margin-bottom: 4px; color: #0b57d0; }
.tool-card span { font-size: .92rem; color: #333; }
.tool-list > li { display: flex; flex-direction: column; }
.tool-list > li > .tool-card { height: auto; flex: 1 0 auto; }
.tool-guides { margin: 6px 0 0; padding-left: 1.2em; font-size: .92rem; }
.tool-guides li { padding: 2px 0; }
.home-faq { margin: 24px 0; }

/* フォーム */
.doc-form fieldset { margin: 0 0 18px; padding: 12px 16px 6px; border: 1px solid #d5dae0; border-radius: 6px; }
.doc-form legend { padding: 0 6px; font-weight: bold; }
.field { margin: 0 0 12px; flex: 1 1 200px; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
.field.check label { font-weight: normal; }
.field input[type="text"], .field input[type="date"], .field input[type="tel"], .field input[type="email"], .field input:not([type]), .field select, .field textarea,
.items input, .items select { width: 100%; padding: 8px 10px; font: inherit; font-size: 16px; color: inherit; background: #fff; border: 1px solid #aab2bc; border-radius: 4px; }
.field textarea { resize: vertical; }
/* スマホで押しやすい大きさ(44px 以上)。入力欄(約 46px)とそろえる */
.field select, .items select { min-height: 44px; }
.field.check label { padding: 8px 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 14px; }
/* hidden 属性を display:flex に負けさせない(年末調整ツールの配偶者欄) */
.field-row[hidden] { display: none; }
.field-row input[readonly] { background: #eef1f5; border-style: dashed; }
.field-row .auto-badge { margin-left: 6px; padding: 0 6px; font-size: .75rem; font-weight: normal; color: #1a4f8b; background: #e3eefb; border-radius: 3px; vertical-align: 1px; }
.field-row .auto-badge[hidden] { display: none; }
.field .sal-label { margin-top: 6px; font-size: .85rem; font-weight: normal; color: #555; }
.req { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: .75rem; font-weight: normal; color: #fff; background: #c5221f; border-radius: 3px; vertical-align: 1px; }
.hint { margin: 2px 0 0; font-size: .85rem; color: #555; }
.error { margin: 2px 0 0; font-size: .9rem; color: #b3261e; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: #b3261e; background: #fff8f7; }
.errors { margin: 12px 0 18px; padding: 10px 16px; border: 2px solid #b3261e; border-radius: 6px; background: #fff8f7; }
.errors p { margin: 0 0 4px; font-weight: bold; color: #b3261e; }
.errors ul { margin: 0; padding-left: 1.2em; }
.warnings { margin: 12px 0; padding: 10px 16px; border: 1px solid #d9b650; border-radius: 6px; background: #fffbea; }
.warnings ul { margin: 0; padding-left: 1.2em; }
.items { margin: 6px 0 10px; }
.item-head, .item-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px 120px 110px 76px; gap: 6px; align-items: start; }
/* 明細の「値引き」: チェックした行は単価をマイナスで計算する(iPhone の数字キーボードには「−」が無いため。2026-10-18)。押しやすいよう 44px */
.items .item-discount { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.items .item-discount input { flex: none; width: 20px; height: 20px; margin: 0; padding: 0; }
.item-row:has(.item-discount input:checked) .item-price input { color: #b3261e; }
.item-head { font-size: .85rem; font-weight: 600; color: #444; padding: 0 2px 2px; }
.item-row { margin-bottom: 6px; }
/* 1 行目の単価欄の「必須」の札: 見出しが出ている幅では見出しの札があるので隠し、スマホ幅(見出しが消える幅)だけ欄の上に出す */
.req-inline { display: none; }
.item-row .error { grid-column: 1 / -1; margin: 0; }
.more-rows summary { cursor: pointer; margin: 6px 0; padding: 8px 0; color: #0b57d0; }
/* 税・源泉徴収の設定(明細の後ろ。既定は閉じる)・最低限の案内・「保存しない」・例を入れて試す・退職日の目安ボタン */
.tax-settings { margin: 10px 0 8px; }
.tax-settings summary { cursor: pointer; margin: 6px 0; padding: 8px 0; color: #0b57d0; font-weight: 600; }
.need-min { margin: 0 0 12px; padding: 8px 12px; font-size: .95rem; background: #f1f6fe; border-radius: 4px; }
.save-note { margin: 4px 0 10px; font-size: .9rem; color: #444; }
.paper-sample { position: relative; overflow: hidden; }
.sample-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); font-size: 7rem; font-weight: bold; letter-spacing: .2em; color: rgba(0, 0, 0, .09); pointer-events: none; user-select: none; white-space: nowrap; z-index: 1; }
.sample-box { margin: 0 0 14px; }
.sample-box .btn { margin: 0 8px 0 0; padding: 8px 14px; }
.date-quick { margin: 4px 0 8px; font-size: .9rem; }
.date-quick .btn { margin: 2px 6px 2px 0; padding: 6px 12px; font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .item-head { display: none; }
  .req-inline { display: inline-block; margin: 0 0 2px; }
  .item-row { grid-template-columns: 1fr 1fr; padding: 8px; border: 1px solid #e2e5e9; border-radius: 4px; }
  .item-row .item-name { grid-column: 1 / -1; }
  .item-row .item-discount { grid-column: 1 / -1; }
}
.actions { margin: 8px 0 4px; }
.btn { display: inline-block; margin: 4px 8px 4px 0; padding: 10px 18px; font: inherit; font-weight: 600; line-height: 1.4; color: #0b57d0; text-decoration: none; background: #fff; border: 2px solid #0b57d0; border-radius: 6px; cursor: pointer; }
.cta-ad a { display: inline-block; margin: 4px 8px 4px 0; padding: 10px 18px; font-weight: 600; line-height: 1.4; color: #0b57d0; text-decoration: none; background: #fff; border: 2px solid #0b57d0; border-radius: 6px; }
/* バナー(a の中の画像に width 属性が無いもの。1px の計測画像は width="1" が付く)はボタンの枠を付けない(VC のバナー。幅が狭い画面では縮める) */
.cta-ad a:has(> img:not([width])) { padding: 0; border: 0; background: none; border-radius: 0; }
.cta-ad a > img:not([width]) { max-width: 100%; height: auto; vertical-align: bottom; }
/* width 属性つきのバナー(300x250 のユメキャリ)は、ボタンの枠のまま幅が狭い画面では縮める(1px の計測画像は影響なし) */
.cta-ad a > img[width] { max-width: 100%; height: auto; }
/* 幅が狭い画面(402px 未満)では、300x250 のバナーの a の余白(padding 10px 18px)と枠(2px)を外す。外さないと a が 340px になり、390px の画面でページ全体が 12px 横にはみ出す(2026-11-14 の点検)。広い画面は今までどおり。素材(a の中身)は変えない */
@media (max-width: 420px) {
  .cta-ad a:has(> img[width]:not([width="1"])) { max-width: 100%; margin-right: 0; padding: 0; border: 0; background: none; border-radius: 0; }
  .cta-ad a > img[width]:not([width="1"]) { vertical-align: bottom; }
}
.btn.primary { color: #fff; background: #0b57d0; }
.btn.secondary { color: #444; border-color: #aab2bc; }
.btn:hover { filter: brightness(.95); }
/* フォーム直下の2行(入力を保存しない・法的助言ではない) */
.saved-box { margin: 12px 0; padding: 10px 14px; background: #f7f8fa; border: 1px solid #d5dae1; border-radius: 6px; }
.saved-box .saved-title { margin: 0 0 4px; font-weight: 600; }
.saved-box .actions { margin: 6px 0 2px; }
.saved-box [hidden] { display: none; }
.form-note { margin: 6px 0 24px; padding: 10px 14px; font-size: .95rem; color: #1f1f1f; background: #f1f6ff; border-left: 4px solid #0b57d0; }
.form-note p { margin: 0; }
.guide dl dt, .faq dt { margin-top: 1em; font-weight: bold; }
.guide dl dd, .faq dd { margin: .2em 0 0; padding-left: 1em; }
.guide table, .legal table { border-collapse: collapse; margin: .6em 0; }
.guide th, .guide td { padding: 6px 10px; border: 1px solid #d5dae0; text-align: left; }
.guide blockquote { margin: 1em 0; padding: .6em 1em; background: #f7f7f7; border-left: 4px solid #ccc; }
.tool-link { margin: 24px 0; }
.tool-link-top { margin: 12px 0 18px; }
.related ul { padding-left: 1.2em; }
.disclaimer { margin-top: 36px; font-size: .95rem; }
/* 運営事務局の BOOTH 商品カード(自社商品。common/config/booth-products.json の既定は非表示) */
.booth-card { margin: 20px 0; padding: 10px 14px; border: 1px solid #c9d4e2; border-radius: 6px; background: #f8fafc; }
.booth-card p { margin: 4px 0; }
.booth-card .booth-label { font-size: 0.85rem; color: #555; }
.booth-card .booth-name { font-weight: bold; }
.booth-card .booth-summary { font-size: 0.95rem; }
/* 紹介リンクの枠: 先頭に PR ラベル(本文と同じ文字サイズ) */
.cta-list { margin: 28px 0; display: grid; gap: 14px; }
.cta { padding: 12px 16px; border: 1px solid #d5dae0; border-radius: 6px; background: #fafbfc; }
.cta .pr-label { margin: 0 0 4px; font-size: 1rem; font-weight: bold; color: #1f1f1f; }
.cta h3 { margin: .2em 0 .4em; }
.cta p { margin: .4em 0; }
/* 2 択の枠(parts/cta の $choice。aside 1 つの中に選択肢を並べる): 選択肢の間に区切り線 */
.cta-choice-item + .cta-choice-item { margin-top: 12px; padding-top: 10px; border-top: 1px solid #d5dae0; }
.cta-choice .cta-choice-item h4 { margin: .2em 0 .4em; font-size: 1rem; }

/* プレビュー */
.checks ul { margin: 0; padding: 0; list-style: none; }
.check { position: relative; margin: 0 0 6px; padding: 6px 10px 6px 36px; border-radius: 4px; background: #f4f6f8; }
.check .mark { position: absolute; left: 10px; top: 6px; width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: .8rem; font-weight: bold; color: #fff; border-radius: 50%; background: #1e8e3e; }
.check-warning { background: #fff4e5; }
.check-warning .mark { background: #c5221f; }
.check-info { background: #eef3fd; }
.check-info .mark { background: #0b57d0; }
.notice { margin: 16px 0; padding: 4px 16px 8px; border: 1px solid #d9b650; border-radius: 6px; background: #fffbea; }
.notice h2 { border: 0; margin-top: .6em; }
.preview-actions { margin: 16px 0 4px; }
/* プレビュー冒頭の「ダウンロードへ移動」と、ボタンの上の「PDF に出せない文字」の注意 */
.jump-dl { margin: 0 0 12px; }
.jump-dl .btn { margin: 0; }
#dl, #checks, #stamp { scroll-margin-top: 12px; }
.dl-reminder { margin: 0 0 10px; padding: 8px 12px; background: #fff4e5; border-radius: 4px; }
.dl-reminder a { display: inline-block; padding: 6px 0; }
.dl-next { margin: 4px 0 12px; font-size: .9rem; }
.pr-tag { display: inline-block; margin-right: 6px; padding: 0 6px; font-size: .8rem; font-weight: bold; color: #1f1f1f; border: 1px solid #8a8f98; border-radius: 3px; }
#kaikei-soft { scroll-margin-top: 12px; }
.dl-after-slot { min-height: 11rem; margin: 8px 0 16px; }   /* 箱の高さを先に確保(1 秒後に開いても下の本文がずれない。スマホ幅は行数が増えるので多めに) */
@media (max-width: 600px) { .dl-after-slot { min-height: 17rem; } }
/* 退職届・退職願のプレビュー(2 択、.dl-after-slot-flow): 押す前は高さも余白も持たない(JS が無くても空白 0)。ボタンを押した瞬間に app.js が
   中身の高さを測って min-height を開け、.dl-after-slot-open を付ける(余白はこのときだけ)。中身は約 1 秒後にその高さの中へ出る */
.dl-after-slot.dl-after-slot-flow { min-height: 0; margin: 0; }
.dl-after-slot.dl-after-slot-flow.dl-after-slot-open { margin: 8px 0 16px; }
.dl-after { margin: 0; }
.dl-after .cta-list { margin: 8px 0; }
.dl-after .dl-after-close { margin: 4px 0 0; text-align: right; }
.dl-after .dl-after-close .btn { margin: 0; padding: 4px 12px; font-size: .9rem; }
.dl-done { margin: 8px 0 12px; padding: 8px 12px; background: #eaf6ec; border-radius: 4px; }
.glyph-warning { margin: 0 0 10px; }
.glyph-warning p { margin: 0 0 4px; }
/* アプリ内ブラウザのときだけ、ダウンロードボタンの上に出す 1 行の案内(parts/inapp-note) */
.inapp-note { margin: 0 0 10px; padding: 8px 12px; font-size: .9rem; background: #eef3fd; border-radius: 4px; }
.paper { margin: 16px 0 20px; padding: 36px 40px; background: #fff; border: 1px solid #cfd4da; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.paper p { margin: 0; }
.paper-resignation { font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "IPAexMincho", "Noto Serif JP", serif; font-size: 1.05rem; }
.r-title { text-align: center; font-size: 1.7rem; letter-spacing: .6em; margin: 0 0 1.6em !important; }
.r-opening { text-align: right; margin-bottom: 1em !important; }
.r-body { line-height: 2.1; margin-bottom: 2em !important; }
.r-date { text-align: right; margin-bottom: 1.4em !important; }
.r-recipient { margin-bottom: 1.6em; font-size: 1.08rem; }
.r-sender { text-align: right; }
.seal, .v-seal { display: inline-block; width: 2.2em; height: 2.2em; line-height: 2.1em; margin-left: .8em; text-align: center; font-size: .7em; color: #888; border: 1px solid #999; border-radius: 50%; vertical-align: middle; }
.paper-billing { font-size: .95rem; }
.b-head { position: relative; text-align: center; margin-bottom: 18px; }
.b-title { font-size: 1.6rem; font-weight: bold; letter-spacing: .4em; }
.b-meta { position: absolute; right: 0; top: 0; text-align: right; font-size: .85rem; }
.b-meta span { display: block; }
.b-parties { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; margin-bottom: 16px; }
.b-to { flex: 1 1 320px; }
.b-issuer { flex: 0 1 260px; font-size: .88rem; }
.b-issuer-name { font-size: 1rem; font-weight: bold; }
.b-recipient { font-size: 1.2rem; padding-bottom: 2px; margin-bottom: 8px !important; border-bottom: 1px solid #555; }
.b-amount { display: flex; margin: 10px 0 !important; border: 1px solid #555; }
.b-amount span { padding: 8px 12px; background: #eee; border-right: 1px solid #555; white-space: nowrap; }
.b-amount strong { flex: 1; padding: 6px 12px; text-align: center; font-size: 1.35rem; }
.b-tadashigaki { padding-bottom: 2px; margin-bottom: 6px !important; border-bottom: 1px solid #555; }
.table-wrap { overflow-x: auto; }
.paper table { width: 100%; border-collapse: collapse; }
.paper th, .paper td { padding: 5px 8px; border: 1px solid #777; }
.paper thead th, .b-sum th { background: #eee; font-weight: normal; }
.paper td.num { text-align: right; white-space: nowrap; }
.b-small { font-size: .78rem; color: #333; }
.b-items + .b-small, .table-wrap + .b-small { text-align: right; }
.b-totals { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: flex-start; margin: 10px 0 8px; }
.b-rates { flex: 1 1 280px; max-width: 420px; }
.paper .b-rates { width: auto; }
.b-sum { flex: 0 1 300px; }
.paper .b-sum { width: auto; }
.b-sum tr.strong th, .b-sum tr.strong td { font-weight: bold; font-size: 1.05rem; }
.b-box { margin-top: 10px; }
.b-box-label { font-size: .88rem; }
.b-box p + p { padding: 6px 10px; border: 1px solid #777; }
@media (max-width: 640px) { .paper { padding: 20px 16px; } .b-meta { position: static; } }
@media print {
  body { font-size: 11pt; }
  .no-print, .site-header, .site-footer, .pr-notice, .breadcrumb, .cta-list, .disclaimer, .form-note, .checks, .notice, .preview-actions { display: none !important; }
  main { max-width: none; padding: 0; }
  .paper { margin: 0; padding: 0; border: 0; box-shadow: none; }
}

/* 源泉徴収の計算(/gensen-calc) */
.calc { margin: 16px 0; padding: 14px 16px 8px; border: 1px solid #d5dae0; border-radius: 6px; }
.calc-result { margin-top: 8px; }
.calc-table { width: 100%; max-width: 520px; border-collapse: collapse; }
.calc-table th, .calc-table td { padding: 6px 10px; border: 1px solid #d5dae0; text-align: left; font-weight: normal; }
.calc-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.calc-table tr.strong th, .calc-table tr.strong td { font-weight: bold; background: #eef3fd; }

/* ダウンロードボタン直下の 1 行テキストリンク(placement result_top。箱にしない) */
.cta-top { margin: 10px 0 14px; }
.cta-top .pr-label { font-weight: bold; color: #1f1f1f; }
.cta-top-link a { font-weight: normal; text-decoration: underline; }

/* プレビュー末尾の「次にやること」1 箱(2026-10-18 2 周目)。無料の内部リンク → 広告を 1 行ずつ(PR + 理由 + リンク + 条件の注記) → 運営者の商品 */
.next-box { margin: 28px 0; padding: 14px 16px; border: 1px solid #d5dae0; border-radius: 6px; background: #fafbfc; }
.next-box h2 { margin: 0 0 8px; font-size: 1.1rem; }
.next-list { margin: 0; padding: 0; list-style: none; }
.next-list li { margin: 0; padding: 9px 0; border-top: 1px solid #e6e9ed; }
.next-list li:first-child { padding-top: 0; border-top: 0; }
.next-form { margin: 0; }
.next-link { display: inline; margin: 0; padding: 0; font: inherit; font-weight: 600; color: #0b57d0; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.next-box .pr-label, .next-box .own-label { display: inline-block; margin-right: 6px; padding: 0 6px; font-size: .8rem; font-weight: bold; color: #1f1f1f; border: 1px solid #8a8f98; border-radius: 3px; }
.next-ad-link a { font-weight: 600; }
.next-cond { display: block; margin-top: 3px; font-size: .82rem; color: #4a4f57; }
/* 明細の入力ミスを送信前に欄の横へ出す(app.js。p.error[data-inline-error])。単価の欄だけ赤くする */
.item-row.has-error-inline .item-price input { border-color: #b3261e; background: #fff8f7; }

/* ふるさと納税ワンストップ特例申請書(/furusato-onestop)。申請書は JS がページの中に作る。印刷では申請書(.fs-sheet)だけを 1 枚ずつ出す */
.fs-step { margin: 1.2em 0 .4em; font-size: 1.05rem; border-bottom: 0; }
.fs-row { align-items: flex-end; padding-bottom: 4px; border-bottom: 1px dashed #e2e5e9; }
.fs-row .field label input, .fs-row .field label select { margin-top: 2px; font-weight: normal; }
.fs-sheets { margin: 20px 0; }
.fs-sheet { margin: 0 0 24px; padding: 24px 28px; border: 1px solid #aab2bc; background: #fff; }
.fs-form-no { margin: 0; font-size: .8rem; }
.fs-title { margin: 4px 0 14px; font-size: 1.1rem; font-weight: bold; text-align: center; }
.fs-table { width: 100%; margin: 0 0 10px; border-collapse: collapse; }
.fs-table th, .fs-table td { padding: 6px 10px; border: 1px solid #555; text-align: left; vertical-align: top; }
.fs-table th { width: 9em; font-weight: normal; background: #f4f6f8; }
.fs-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.fs-table td.fs-blank { height: 2.2em; }
.fs-mynumber-boxes { display: inline-flex; }
.fs-digit { display: inline-block; width: 1.6em; height: 1.9em; border: 1px solid #555; }
.fs-digit + .fs-digit { border-left: 0; }
.fs-mynumber-note { display: block; font-size: .8rem; color: #444; }
.fs-year, .fs-tax { margin: 0; text-align: center; }
.fs-to { margin: 6px 0; }
.fs-head { margin: 8px 0 4px; font-weight: bold; }
.fs-note, .fs-check { margin: 3px 0; font-size: .85rem; }
.fs-check { font-size: .95rem; }
.fs-indent { padding-left: 1em; }
.fs-cut { margin: 10px 0 4px; padding-top: 8px; border-top: 1px dashed #555; font-size: .85rem; }
/* 印刷は A4・余白 10mm を明示し(ブラウザ既定の余白に任せない)、申請書 1 通(申請書 + 受付書)を 1 枚に収める。名前付きページなので他のページの印刷には影響しない。実測(2026-10-22、Chromium 2 団体 = 申請書 2 枚、本文幅 190mm。tools/furusato-print-check.py で再現): シートの高さ 228.5mm(住所 31 字・折り返しなし)〜255.8mm(住所 120 字・フリガナ 60 字・氏名 60 字の上限入力)、印字可能高 277mm */
.fs-sheets { page: fs-sheet; }
@page fs-sheet { size: A4; margin: 10mm; }
@media print {
  .fs-sheets { margin: 0; }
  .fs-sheet { margin: 0; padding: 0; border: 0; font-size: 8.5pt; line-height: 1.3; break-after: page; page-break-after: always; break-inside: avoid; page-break-inside: avoid; }
  .fs-sheet:last-child { break-after: auto; page-break-after: auto; }
  .fs-note, .fs-check { font-size: 8pt; margin: 1px 0; }
  .fs-title { margin: 2px 0 4px; font-size: 11pt; }
  .fs-head { margin: 4px 0 2px; }
  .fs-to { margin: 3px 0; }
  .fs-table { margin: 0 0 4px; }
  .fs-table th, .fs-table td { padding: 2px 8px; }
  .fs-table td.fs-blank { height: 1.5em; }
  .fs-digit { height: 1.5em; }
  .fs-cut { margin: 6px 0 2px; padding-top: 4px; font-size: 8pt; }
}

/* 支払調書の作成(/shiharai-chosho)。記載内容の控え(.sc-sheet)は JS がページの中に作り、印刷では控えだけを A4 1 枚に出す */
.sc-sheets { margin: 20px 0; page: sc-sheet; }
.sc-sheet { margin: 0 0 24px; padding: 18px 22px; border: 1px solid #aab2bc; background: #fff; }
.sc-title { margin: 2px 0 8px; font-size: 1.05rem; font-weight: bold; text-align: center; }
.sc-table { width: 100%; margin: 0 0 8px; border-collapse: collapse; }
.sc-table th, .sc-table td { padding: 5px 10px; border: 1px solid #555; text-align: left; vertical-align: top; }
.sc-table th { width: 11em; font-weight: normal; background: #f4f6f8; }
.sc-table th.sc-band { width: auto; text-align: center; }
.sc-table td.sc-num { text-align: right; font-variant-numeric: tabular-nums; }
.sc-table td.sc-blank { height: 1.8em; }
.sc-digits { display: inline-flex; }
.sc-digit { display: inline-block; width: 1.5em; height: 1.8em; border: 1px solid #555; }
.sc-digit + .sc-digit { border-left: 0; }
.sc-small { display: block; font-size: .8rem; color: #444; }
.sc-note { margin: 3px 0; font-size: .85rem; }
.sc-row { align-items: flex-end; padding-bottom: 4px; border-bottom: 1px dashed #e2e5e9; }
.strong-note { font-weight: bold; }
@page sc-sheet { size: A4; margin: 10mm; }
@media print {
  .sc-sheets { margin: 0; }
  .sc-sheet { margin: 0; padding: 0; border: 0; font-size: 9pt; line-height: 1.35; break-inside: avoid; page-break-inside: avoid; }
  .sc-title { font-size: 11pt; }
  .sc-table th, .sc-table td { padding: 3px 8px; }
  .sc-note { font-size: 8pt; }
}

/* 計算ページの年月の欄・判定の一覧・横に長い表(.gs-*)。表は狭い画面では横にスクロールさせる */
.gs-ym { display: flex; gap: 8px; }
.gs-judge { margin: 0 0 12px; padding-left: 1.2em; }
.gs-judge li { margin: 4px 0; }
.gs-scroll { overflow-x: auto; }
.calc-table.gs-wide { max-width: none; }
.calc-table.gs-wide th, .calc-table.gs-wide td { white-space: nowrap; }
