/* 家賃増額ナビ
   決まりは site/assets/_デザインの決まり.md。色・字・余白の値はここの :root だけで決める。
   読む人は50〜70代の大家と、管理会社の担当者。本文は大きめ、行間は広め、リンクは下線つき。 */

/* ------------------------------------------------------------------ 1. 値 */
:root {
  --navy: #1d3557;
  --navy-deep: #15263f;
  --navy-50: #eef2f7;
  --ink: #1e2329;
  --sub: #555c66;
  --line: #dcdfe3;
  --field: #858c96;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --paper: #f8f6f1;
  --paper-line: #e6e0d2;
  --link: #1a4b8f;
  --shu: #a63a1d;
  --shu-50: #fbf1ec;
  --focus: #e0a100;
  --fs: 18px;
  --wrap: 1160px;
  --read: 760px;
  --gap: 24px;
  --sec: 64px;
  --font: "M PLUS 2", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --mincho: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
html[data-fs="l"] { --fs: 21px; }

/* ------------------------------------------------------------------ 2. 土台 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: var(--fs); line-height: 1.9; letter-spacing: .02em; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.art a:visited { color: #4a3d82; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.wrap.narrow > * { max-width: var(--read); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }
p { margin: 0 0 1.1em; }
small { font-size: .86em; }
p, li, dd, td { text-wrap: pretty; }
h1, h2, h3, h4 { line-height: 1.5; font-weight: 700; letter-spacing: .04em; font-feature-settings: "palt"; word-break: auto-phrase; color: var(--ink); }
table, .sl-val, .sl-out dd, .entry-price, td.yen, .result b.big { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ 3. 上の帯 */
header.site { background: #fff; border-top: 4px solid var(--navy); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo-mark {
  flex: none; width: 44px; height: 44px; background: var(--navy) url("/assets/icon.svg") center / 44px 44px no-repeat;
}
.logo-txt { display: flex; flex-direction: column; line-height: 1.35; }
.logo-name { font-family: var(--mincho); font-size: 1.5em; font-weight: 700; color: var(--navy); letter-spacing: .1em; }
.logo-sub { font-size: .76em; color: var(--sub); letter-spacing: .03em; margin-top: 2px; }
.logo:hover .logo-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.top-r { display: flex; align-items: center; gap: 20px; }
.fs { display: flex; align-items: center; font-size: .8em; color: var(--sub); white-space: nowrap; }
.fs > span { margin-right: 10px; }
.fs button {
  font: inherit; font-size: 1em; min-width: 56px; min-height: 44px; padding: 2px 12px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 0;
}
.fs button:first-of-type { border-radius: 2px 0 0 2px; }
.fs button:last-of-type { border-radius: 0 2px 2px 0; margin-left: -1px; }
.fs button[aria-pressed="true"] { background: var(--navy-50); border-color: var(--navy); color: var(--navy); font-weight: 700; position: relative; }
.top-r .apply {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; background: var(--navy); color: #fff;
  text-decoration: none; font-weight: 700; font-size: .92em; border-radius: 2px; letter-spacing: .06em;
}
.top-r .apply:hover { background: var(--navy-deep); text-decoration: underline; }
.gnav { border-top: 1px solid var(--line); }
.gnav .wrap { display: flex; flex-wrap: wrap; gap: 0 4px; }
.gnav a {
  position: relative; display: flex; align-items: center; min-height: 52px; padding: 0 18px; color: var(--ink);
  text-decoration: none; font-weight: 500; font-size: .92em; word-break: keep-all;
}
.gnav a:first-child { padding-left: 0; }
.gnav a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px; background: transparent; }
.gnav a:first-child::after { left: 0; }
.gnav a:hover { color: var(--navy); }
.gnav a:hover::after { background: var(--line); }
.gnav a[aria-current="page"] { color: var(--navy); }
.gnav a[aria-current="page"]::after { background: var(--navy); }

/* ------------------------------------------------------------------ 4. 現在地・ページの頭 */
.crumb { font-size: .86em; color: var(--sub); padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; line-height: 1.6; }
.crumb a { color: var(--sub); }
.crumb span[aria-hidden], .crumb > span:not(:last-child) { color: #9aa0a8; }
.page-h, .art h1 {
  font-family: var(--mincho); font-size: 2em; line-height: 1.45; letter-spacing: .06em; margin: 20px 0 20px; color: var(--ink);
}
.lead { font-size: 1.08em; line-height: 1.95; margin: 0 0 32px; }
.fineprint { font-size: .86em; color: var(--sub); line-height: 1.75; }
.sec > p, .sec > ul, .sec > ol, .sec > dl, .sec > .warn, .sec > .next, .lead { max-width: 42em; }

/* ------------------------------------------------------------------ 5. 区切り（.sec）と見出し */
.sec { padding: var(--sec) 0; position: relative; }
.sec + .sec { padding-top: var(--sec); }
.crumb + .sec, .sec.first { padding-top: 8px; }
/* 偶数番目の区切りは灰の帯にする（線を引かずに区切る）。帯は画面の端まで伸ばす */
.wrap:not(.narrow) > .sec:nth-of-type(even), .wrap:not(.narrow) > .page-main > .sec:nth-of-type(even) { isolation: isolate; }
.wrap:not(.narrow) > .sec:nth-of-type(even)::before, .wrap:not(.narrow) > .page-main > .sec:nth-of-type(even)::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -100vw; right: -100vw; background: var(--bg-alt);
}
.wrap:not(.narrow) > .sec:last-child, .page-main > .sec:last-child { padding-bottom: 80px; }
.sec h2, .grp h2, .wrap.narrow .sec h2 {
  position: relative; font-family: var(--mincho); font-size: 1.6em; letter-spacing: .06em; line-height: 1.5;
  margin: 0 0 32px; padding: 0 0 16px; border-bottom: 1px solid var(--line);
}
.sec h2::after, .grp h2::after, .art h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: var(--navy);
}
.wrap.narrow .sec h2 { margin-top: 56px; }
/* 1列の読みもののページは区切りの余白を見出しの上だけで取る（二重にしない） */
.wrap.narrow .sec, .wrap.narrow .sec + .sec { padding: 0; }
.wrap.narrow .crumb + .sec { padding-top: 8px; }
.wrap.narrow .sec h1 + h2, .wrap.narrow .sec .lead + h2 { margin-top: 16px; }
.sec h3, .box h3 { font-size: 1.17em; color: var(--navy); margin: 40px 0 12px; line-height: 1.55; }
.sec h2 + h3, .cols > div > h3:first-child, .box h3:first-child { margin-top: 0; }
.sec > :last-child, .box > :last-child, .warn > :last-child, .next > :last-child, .result > :last-child,
.cta > :last-child, .cols > div > :last-child, .side-box > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ 6. 表（縦の罫なし。上に紺の線、行の間に細い罫） */
table { border-collapse: collapse; width: 100%; margin: 0 0 1.6em; font-size: .94em; line-height: 1.75; border-top: 2px solid var(--navy); background: #fff; }
caption { text-align: left; font-size: .86em; color: var(--sub); padding: 0 0 8px; caption-side: top; line-height: 1.7; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 16px; vertical-align: top; text-align: left; }
thead th { background: var(--navy-50); color: var(--navy); font-weight: 500; font-size: .94em; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #c9d3e0; }
tbody th { font-weight: 700; }
.sec tbody th, .art tbody th { min-width: 6em; }
td small, th small { display: block; color: var(--sub); font-weight: 400; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.6em; }
.tscroll table { margin: 0; min-width: 560px; }
.price td.yen { font-weight: 700; font-size: 1.12em; white-space: nowrap; text-align: right; color: var(--ink); }
.price td.yen small { white-space: normal; font-weight: 400; font-size: .8em; text-align: right; line-height: 1.6; margin-top: 2px; max-width: 24em; margin-left: auto; }
.price tbody th { min-width: 11em; white-space: nowrap; }
.price thead th:last-child { text-align: right; }
.sec table.price { max-width: 760px; }

/* ------------------------------------------------------------------ 7. ボタンとリンク */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 32px;
  background: var(--navy); color: #fff !important; text-decoration: none; border: 1px solid var(--navy); border-radius: 2px;
  font: inherit; font-weight: 700; line-height: 1.5; letter-spacing: .06em; cursor: pointer; font-feature-settings: "palt";
}
.btn::after { content: ""; flex: none; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.btn:hover { background: var(--navy-deep); text-decoration: underline; }
.btn[disabled] { opacity: .6; cursor: wait; }
/* 主のボタンの横に並ぶリンクは、副のボタン（白地に紺の枠）にする */
.actions > a:not(.btn), .cta-links > a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 52px; padding: 10px 24px; border: 1px solid var(--navy); border-radius: 2px;
  background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; letter-spacing: .04em; font-feature-settings: "palt";
}
.actions > a:not(.btn):hover, .cta-links > a:not(.btn):hover { background: var(--navy-50); text-decoration: underline; }
.btn-plain {
  font: inherit; font-size: .92em; font-weight: 700; padding: 8px 20px; min-height: 48px; border: 1px solid var(--navy);
  background: #fff; color: var(--navy); border-radius: 2px; cursor: pointer;
}
.btn-plain:hover { background: var(--navy-50); }
.actions, .cta-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 1.4em; }
ul.links { list-style: none; padding: 0; margin: 0 0 1.4em; }
ul.links li { margin: 0; }
ul.links a { display: inline-flex; align-items: baseline; gap: 10px; padding: 7px 0; min-height: 44px; }
ul.links a::before { content: ""; flex: none; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); color: var(--navy); transform: translateY(-.15em) rotate(45deg); }
p.more { margin: 4px 0 0; }
p.more a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94em; }
p.more a { gap: 10px; }
p.more a::after { content: ""; flex: none; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* ------------------------------------------------------------------ 8. 囲み */
.box { border: 1px solid var(--line); padding: 28px 32px; background: #fff; margin: 0 0 1.6em; }
.box.paper { background: var(--paper); border-color: var(--paper-line); max-width: 42em; }
.next { background: var(--navy-50); padding: 16px 20px; margin: 0 0 1.4em; }
.warn { border-left: 3px solid var(--shu); background: var(--shu-50); padding: 16px 20px; margin: 0 0 1.4em; }
.result { border-top: 2px solid var(--navy); background: var(--navy-50); padding: 22px 24px; max-width: 42em; }
.result b.big { font-size: 1.5em; color: var(--navy); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; align-items: start; margin: 0 0 1.4em; }
.yes-h, .no-h { font-size: 1.1em; margin: 0 0 12px !important; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--navy); }
.no-h { color: var(--shu) !important; }
.plain-list { padding-left: 1.5em; }
.plain-list li { margin-bottom: 8px; }
.plain-list li::marker { color: var(--navy); font-weight: 700; }

/* 順番（番号つきの縦の流れ） */
.flow, .art .steps { list-style: none; padding: 0; margin: 0 0 1.6em; max-width: 42em; }
.flow { counter-reset: f; }
.flow > li, .art .steps > li { position: relative; padding: 2px 0 24px 56px; margin: 0; min-height: 44px; }
.flow > li { counter-increment: f; }
.art .steps { counter-reset: s; }
.art .steps > li { counter-increment: s; }
.art .steps > li::before { content: counter(s) !important; }
.flow > li::before, .art .steps > li::before {
  content: counter(f); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; background: var(--navy); color: #fff;
  font-weight: 700; font-size: .92em; display: flex; align-items: center; justify-content: center; border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.flow > li:not(:last-child)::after, .art .steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 44px; bottom: 6px; border-left: 1px solid #b9c3d0;
}
.flow > li > b:first-child, .art .steps > li > b:first-child { display: block; color: var(--ink); margin-bottom: 2px; }
.flow ul.links { margin: 4px 0 0; }

/* ------------------------------------------------------------------ 9. トップの入口（3つの客） */
.entry { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(5, auto); border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); margin: 40px 0 16px; }
.entry-box {
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 6px; padding: 28px 28px 24px; text-decoration: none; color: var(--ink);
  background: #fff; border-left: 1px solid var(--line);
}
.entry-box:first-child { border-left: 0; padding-left: 0; }
/* 見本の1枚目の右上の枠の切り抜き。小さい字まで読める高さにする */
.entry-pic { display: block; height: 100px; margin: 0 0 10px; }
.entry-pic img { display: block; height: 100px; width: auto; box-shadow: 0 0 0 1px var(--line); }
.entry-who { font-weight: 500; color: var(--navy); line-height: 1.55; font-size: 1.04em; align-self: end; }
.entry-price { font-size: 1.5em; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.entry-price .tax { font-size: .6em; font-weight: 500; margin-left: 2px; }
.entry-sub { font-size: .92em; color: var(--sub); line-height: 1.65; }
.entry-go {
  padding-top: 8px; color: var(--link); text-decoration: underline; text-underline-offset: .22em;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; align-self: end;
}
.entry-go::after { content: ""; flex: none; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.entry-box:hover .entry-go { text-decoration-thickness: 2px; }
.entry-box:hover .entry-who { text-decoration: underline; }
.nw { display: inline-block; }

/* ------------------------------------------------------------------ 9b. 最初の画面（見出し＋導入文＋右に見本の画像。ヒーローにはしない） */
.fv { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.fv-lp { grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
.fv .lead { margin-bottom: 24px; }
.fv-pic { margin: 28px 0 0; }
.fv-pic img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(20, 30, 45, .1); }
.fv-pic figcaption { font-size: .86em; color: var(--sub); margin-top: 10px; line-height: 1.6; }
a.fv-pic:hover img { box-shadow: 0 0 0 2px var(--navy); }

/* 決まりの表（LP の頭）。PC は2列にして高さを半分に */
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin: 8px 0 32px; border-top: 2px solid var(--navy); max-width: none !important; }
.facts > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94em; line-height: 1.7; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

/* 頼む・届く・見せるの3段 */
.sec h2.steps3-h { font-family: var(--font); font-size: 1.08em; letter-spacing: .04em; color: var(--navy); margin: 48px 0 16px; padding: 0; border: 0; }
.sec h2.steps3-h::after { display: none; }
.sec > .steps3 { max-width: none; }
.steps3 { list-style: none; counter-reset: s3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; margin: 0 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps3 li { counter-increment: s3; position: relative; padding: 24px 32px 24px 0; line-height: 1.8; }
.steps3 li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps3 li b { display: flex; align-items: center; gap: 12px; font-family: var(--mincho); font-size: 1.35em; color: var(--navy); margin-bottom: 8px; letter-spacing: .08em; }
.steps3 li b::before {
  content: counter(s3); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--navy); color: #fff;
  font-family: var(--font); font-size: .66em; border-radius: 2px; letter-spacing: 0;
}
.steps3 li:not(:last-child)::after {
  content: ""; position: absolute; right: -7px; top: 34px; width: 12px; height: 12px; background: #fff;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); z-index: 1;
}

/* シートの読み方：見本の該当部分の切り抜き（make_mihon_parts.py）と、横に短い説明。上から順に1行ずつ */
.mread { margin: 8px 0 32px; }
.mread-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
/* 切り抜きは本文の幅いっぱいに出す（横に説明を並べると、見本の字が小さくて読めない） */
.mread-list > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.mread-pg { font-size: .86em; color: var(--sub); line-height: 1.6; margin-right: 12px; }
.mread-txt b { font-weight: 700; color: var(--navy); line-height: 1.55; }
.mread-txt p { margin: 4px 0 0; font-size: .94em; line-height: 1.75; }
.mread-img { display: block; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(20, 30, 45, .1); }
.mread-img:hover { box-shadow: 0 0 0 2px var(--navy); }
.mread-img img { display: block; width: 100%; height: auto; }
.mread + .sp-only { margin-top: 0; }

/* 使いどころ（2×2） */

/* 料金の決まり：3つの組。細かい分は畳む */
.rules { max-width: 42em; }
.rules .rules-h { font-size: 1.04em; margin: 28px 0 8px; }
.fold { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0 1.4em; }
.fold summary {
  display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 700; color: var(--navy); list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "＋"; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--navy); border-radius: 2px; font-weight: 500; flex: none; }
.fold[open] summary::before { content: "−"; }
.fold > ul { margin-top: 4px; }

/* 申し込みの流れの中の「ここで線を引く」1行 */
.flow > li.cut { counter-increment: none; padding: 0 0 24px 56px; min-height: 0; color: var(--shu); font-weight: 700; font-size: .94em; }
.flow > li.cut::before { content: ""; width: auto; height: 0; left: 0; right: 0; top: -12px; background: none; border-top: 2px dashed var(--shu); border-radius: 0; }
.flow > li.cut::after { top: -12px !important; }

/* 管理会社の月の流れ：誰がするかの札 */
.flow-who > li > b { display: block; }
.who { display: inline-block; font-size: .8em; font-weight: 500; padding: 0 8px; margin-bottom: 4px; border-radius: 2px; background: var(--navy); color: #fff; line-height: 1.8; }
.who-us { background: var(--navy-50); color: var(--navy); box-shadow: 0 0 0 1px #c9d3e0 inset; }
.who-owner { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--field) inset; }
.flow-end { max-width: 42em; }

/* ------------------------------------------------------------------ 10. 記事のカード */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; margin: 0 0 8px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-height: 44px; }
.card img { display: block; width: 100%; aspect-ratio: 5 / 2; outline: 1px solid var(--line); outline-offset: -1px; }
.card-g { display: block; margin: 14px 0 4px; font-size: .78em; color: var(--sub); letter-spacing: .04em; line-height: 1.5; }
.card-t { display: block; font-weight: 500; line-height: 1.65; font-size: 1em; }
.card:hover .card-t { text-decoration: underline; color: var(--link); text-underline-offset: .22em; }
.card:hover img { outline-color: var(--navy); }
.sec h3 + .cards { margin-top: 16px; }
/* 分類の見出しの下に並ぶカードでは、分類名を出さない（続けて読む記事だけに出す） */
.grp .card-g, .sec .card-g { display: none; }
.grp .card-t, .sec .card-t { margin-top: 14px; }

/* 記事の一覧 */
.find { max-width: 42em; margin: 0 0 16px; }
.find label { display: block; font-weight: 700; margin-bottom: 8px; }
.find input { width: 100%; font: inherit; padding: 10px 14px; min-height: 52px; border: 1px solid var(--field); border-radius: 2px; background: #fff; color: var(--ink); }
.find-n { font-size: .9em; color: var(--sub); margin: 6px 0 0; min-height: 1.5em; line-height: 1.5; }
.jump { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0 0 56px; }
.jump a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; min-height: 52px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  background: #fff; font-size: .94em; font-weight: 500; line-height: 1.5;
}
.jump a small { color: var(--sub); font-weight: 400; white-space: nowrap; margin-left: auto; }
.jump a::after { content: ""; flex: none; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); color: var(--navy); }
/* 7つの分類で1マス空かないよう、最後の1つは2マス使う */
.jump a:last-child:nth-child(4n+3) { grid-column: span 2; }
.jump a:hover { background: var(--navy-50); color: var(--navy); }
.grp { margin: 0 0 64px; }
.grp h2 { position: relative; }
.card[hidden], .grp[hidden] { display: none; }

/* ------------------------------------------------------------------ 11. 記事のページ */
.art-grid, .page-grid { display: block; }
.page-main { min-width: 0; }
.art-main { max-width: var(--read); }
.art-side { display: none; }
.art { max-width: var(--read); }
.art h1 { margin-top: 20px; margin-bottom: 16px; }
.art .meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .84em; color: var(--sub); margin: 0 0 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.art .meta-g { color: var(--navy); font-weight: 700; text-decoration: none; }
.art .meta-g:hover { text-decoration: underline; }
.art h2 { position: relative; font-family: var(--mincho); font-size: 1.5em; letter-spacing: .05em; margin: 2.4em 0 .9em; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.art h3 { font-size: 1.17em; color: var(--navy); margin: 1.9em 0 .6em; }
.art ul, .art ol { padding-left: 1.5em; margin: 0 0 1.4em; }
.art li { margin-bottom: .5em; }
.art li::marker { color: var(--navy); }
.art b { font-weight: 700; }
.note { background: var(--bg-alt); padding: 20px 24px; margin: 0 0 1.6em; max-width: 42em; }
.note h3 { margin-top: 0 !important; }
.art .note { font-size: .92em; padding: 16px 20px; }
.note > :last-child { margin-bottom: 0; }
.wrap > .sec:nth-of-type(even) .note, .page-main > .sec:nth-of-type(even) .note { background: #fff; }
.art .sum { border-top: 2px solid var(--navy); margin: 0 0 2em; background: #fff; }
.art .sum::before { content: "要点"; display: block; color: var(--navy); font-weight: 700; padding: 10px 0 8px; font-size: .88em; letter-spacing: .1em; border-bottom: 1px solid var(--line); }
.art .sum table { margin: 0; border-top: 0; font-size: .94em; }
.art .sum th { width: 8.5em; padding-left: 0; color: var(--navy); }
.art .sum td { padding-right: 0; }
.toc { background: var(--bg-alt); padding: 20px 28px 12px; margin: 0 0 2em; font-size: .94em; }
.toc p { font-weight: 700; margin: 0 0 6px; color: var(--navy); font-size: .94em; letter-spacing: .06em; }
.toc ol { margin: 0 0 .6em; padding-left: 1.6em; }
.toc li { margin-bottom: 4px; }
.toc li::marker { color: var(--sub); font-variant-numeric: tabular-nums; }
.art .rei {
  font-family: var(--mincho); background: var(--paper); border: 1px solid var(--paper-line); padding: 24px 28px; margin: 0 0 1.6em;
  font-size: .98em; line-height: 2.05;
}
.art .rei::before { content: "文例（自分で書くときの例）"; display: block; font-family: var(--font); font-size: .8em; font-weight: 700; color: var(--sub); margin-bottom: 10px; letter-spacing: .06em; }
.art .rei p { margin: 0 0 .6em; }
.art .src { font-size: .84em; color: var(--sub); line-height: 1.75; }
.art .src li { margin-bottom: .5em; word-break: break-all; }
.art .src li::marker { color: var(--sub); }

/* 右の列（PC だけ） */
.side-in { position: sticky; top: 24px; }
.side-h { font-weight: 700; color: var(--navy); font-size: .84em; letter-spacing: .08em; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.side-toc { margin: 0 0 32px; font-size: .86em; line-height: 1.6; }
.side-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: st; max-height: 52vh; overflow-y: auto; }
.side-toc li { counter-increment: st; border-bottom: 1px solid var(--line); }
.side-toc a { display: flex; gap: 10px; padding: 10px 0; color: var(--ink); text-decoration: none; min-height: 44px; }
.side-toc a::before { content: counter(st); color: var(--sub); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.side-toc a:hover { color: var(--link); text-decoration: underline; }
.side-box { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--navy); padding: 20px 22px 22px; }
.side-box .side-h { border-bottom-color: var(--line); border-bottom-width: 1px; }
.side-p { margin: 0 0 4px; font-size: .9em; line-height: 1.6; }
.side-p b { display: block; font-size: 1.3em; margin-top: 2px; }
.side-p b small { font-size: .6em; font-weight: 500; margin-left: 2px; }
.side-p + .side-p { margin-top: 10px; }
.side-box .btn-sub { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 8px; border: 1px solid var(--navy); border-radius: 2px; color: var(--navy); font-weight: 700; font-size: .92em; text-decoration: none; }
.side-box .btn-sub:hover { background: var(--navy-50); text-decoration: underline; }
.side-k { margin: 14px 0 0 !important; }
.side-toc { background: #fff; }
.side-s { font-size: .8em; color: var(--sub); margin: 0 0 14px; line-height: 1.6; }
.side-box .btn { width: 100%; padding: 8px 16px; font-size: .92em; }

/* 記事の下の案内と、続けて読む記事 */
.cta { background: var(--bg-alt); border-top: 2px solid var(--navy); padding: 32px 36px; margin: 56px 0 48px; max-width: var(--read); }
.cta h2 { font-family: var(--mincho); font-size: 1.3em; margin: 0 0 14px; color: var(--navy); letter-spacing: .05em; line-height: 1.55; }
.cta .price-mini { font-size: .92em; margin: 4px 0 24px; border-top: 1px solid var(--navy); }
.cta .price-mini th { width: auto; }
.cta .price-mini td a { white-space: nowrap; }
.cta-links { margin: 0; }
.related { max-width: var(--read); margin-bottom: 16px; }
.related h2 { font-family: var(--mincho); font-size: 1.3em; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); letter-spacing: .05em; }
.related .cards { grid-template-columns: 1fr 1fr; }

/* ------------------------------------------------------------------ 12. 図（figures/*.svg をそのまま埋め込む） */
.fig { margin: 0 0 2em; border: 1px solid var(--line); background: #fff; padding: 24px 24px 8px; }
.fig svg, .fig-page svg { display: block; width: 100%; height: auto; max-width: 100%; }
.fig svg { max-width: 560px; margin: 0 auto; }
.fig-sp { display: none; }
.fig figcaption { font-size: .9em; color: var(--sub); margin: 10px 0 8px; line-height: 1.65; padding-top: 10px; border-top: 1px solid var(--line); }
.fig-page { margin: 0 0 1.4em; }
.fig-zoom { display: inline-flex; align-items: center; font-size: .84em; min-height: 44px; }
/* 記事の図は図の中に題があるので、上の題は読み上げ用にだけ残す */
.fig > b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ 13. 見本のシート（画面と印刷で共通） */
.sheet {
  background-color: #fff; border: 1px solid #c4c9cf; font-size: .84em; line-height: 1.7; max-width: 820px; position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='200'%3E%3Ctext x='40' y='130' font-size='72' font-weight='700' fill='%23a63a1d' fill-opacity='.07' transform='rotate(-18 150 100)'%3E%E8%A6%8B%E6%9C%AC%3C/text%3E%3C/svg%3E");
}
.sheet table { border-top: 1px solid var(--line); }
.sheet th, .sheet td { border: 1px solid var(--line); }
.sheet .pg { padding: 24px 28px; }
.sheet .pg + .pg { border-top: 2px dashed #bfc4ca; }
.sheet h3 { font-size: 1.2em; margin: 0 0 8px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; padding-right: 60px; color: var(--ink); }
.sheet h4 { font-size: 1em; margin: 18px 0 6px; background: var(--navy-50); padding: 3px 8px; }
.sheet table { font-size: .95em; margin-bottom: 8px; }
.sheet th, .sheet td { padding: 5px 8px; }
.sheet .head th { width: 6em; }
.sheet td.n { text-align: right; white-space: nowrap; }
.sheet .small, .sheet ol.small { font-size: .9em; color: var(--sub); }
.sheet ol.small { padding-left: 1.4em; }
.sheet .bar { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.sheet .bar > span:first-child { width: 7em; flex: none; }
.sheet .bar i { display: block; height: 14px; background: var(--navy); }
.sheet .bar i.me { background: var(--shu); }
.sheet .bar em { font-style: normal; white-space: nowrap; width: 5.5em; text-align: right; }
.sp-only { display: none; }

/* 見本の資料の画像（押すとPDFが開く） */
.mihon-pages { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; max-width: 1100px; margin: 0 0 16px; }
.mihon-pages a { display: block; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(20, 30, 45, .1); }
.mihon-pages a:hover { box-shadow: 0 0 0 2px var(--navy); }
.mihon-pages img { display: block; width: 100%; height: auto; }
.mihon-pages.big { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto 16px; }

/* 印刷用の見本のページ */
.print-page { background: #e9eaec; padding: 32px 0; }
.print-page .sheet { margin: 0 auto; }
.print-note { max-width: 820px; margin: 0 auto 16px; }

/* ------------------------------------------------------------------ 14. フォーム */
.form { max-width: 720px; }
.form h2 { margin: 40px 0 20px; }
.form .row { margin: 0 0 24px; }
.form fieldset.row { border: 0; padding: 0; min-width: 0; }
.form label, .form .lbl { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.form .req, .form .opt { white-space: nowrap; display: inline-block; }
.form .req { color: var(--shu); font-size: .78em; margin-left: 8px; font-weight: 700; border: 1px solid var(--shu); padding: 0 6px; border-radius: 2px; vertical-align: .1em; }
.form .opt { color: var(--sub); font-size: .78em; margin-left: 8px; font-weight: 400; border: 1px solid var(--line); padding: 0 6px; border-radius: 2px; vertical-align: .1em; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=number], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1em; padding: 10px 14px; border: 1px solid var(--field); border-radius: 2px; background: #fff; color: var(--ink);
  min-height: 52px;
}
.form textarea { min-height: 132px; line-height: 1.7; }
.form .hint { font-size: .86em; color: var(--sub); margin: 6px 0 0; line-height: 1.65; }
.form .choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(12em, 1fr)); gap: 8px 10px; }
.form input[type=number] { max-width: 10em; }
.form .ex-table input[type=number], .form .calc-in input[type=number] { max-width: none; }
.form #f-renew { max-width: 16em; }
.submit { margin-top: 8px; }
.submit .hint { margin-top: 8px !important; }
.form .choice label {
  font-weight: 400; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px;
  border: 1px solid var(--field); border-radius: 2px; min-height: 52px; background: #fff; cursor: pointer;
}
.form .choice label:has(input:checked) { border-color: var(--navy); background: var(--navy-50); color: var(--navy); font-weight: 700; box-shadow: 0 0 0 1px var(--navy) inset; }
.form .choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }
.form .agree { font-weight: 400; display: flex; gap: 12px; align-items: flex-start; }
.form .agree input { width: 24px; height: 24px; margin-top: 5px; flex: none; accent-color: var(--navy); }
.form [aria-invalid="true"], .form .choice.bad { outline: 2px solid var(--shu); outline-offset: 2px; }
.form-err { border-left: 3px solid var(--shu); background: var(--shu-50); padding: 14px 18px; }
.form-msg { padding: 16px 20px; border-top: 2px solid var(--navy); background: var(--navy-50); margin-top: 16px; }
.form-msg.err { border-top-color: var(--shu); background: var(--shu-50); }
.form .btn { min-width: 16em; }

/* 計算 */
.calc-in { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.ex-table input { min-height: 44px !important; padding: 6px 10px !important; }
.ex-table th, .ex-table td { vertical-align: middle; }
.ex-table td, .ex-table th { padding: 8px 10px; }
.ex-table tbody th { width: 3em; }

/* 値上げの効き目のスライダー */
.slider-calc { border: 1px solid var(--line); border-top: 2px solid var(--navy); background: #fff; padding: 24px 28px 8px; margin: 0 0 1.6em; max-width: 42em; }
.sl-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; margin: 0 0 14px; }
.sl-row label { font-weight: 700; font-size: 1em; }
.sl-val { font-weight: 700; font-size: 1.25em; color: var(--navy); }
.sl-ctl { grid-column: 1 / -1; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 12px; align-items: center; }
.sl-step { width: 48px; height: 48px; padding: 0; font: inherit; font-size: 1.3em; font-weight: 500; line-height: 1; color: var(--navy); background: #fff; border: 1px solid var(--navy); border-radius: 2px; cursor: pointer; }
.sl-step:hover { background: var(--navy-50); }
.sl-in { width: 100%; height: 48px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sl-in::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--navy) var(--p, 50%), #d5dae0 var(--p, 50%)); }
.sl-in::-moz-range-track { height: 6px; border-radius: 3px; background: #d5dae0; }
.sl-in::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--navy); }
.sl-in::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; margin-top: -15px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.sl-in::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.sl-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 8px 0 14px; border-top: 1px solid var(--line); }
.sl-out > div { padding: 14px 8px 10px 0; }
.sl-out > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.sl-out dt { font-size: .92em; color: var(--ink); }
.sl-out dd { margin: 2px 0 0; font-weight: 700; font-size: 1.15em; color: var(--navy); white-space: nowrap; }
.sl-out .sl-big dd { color: var(--shu); font-size: 1.3em; }

/* よくある質問 */
.qa-page dt { word-break: auto-phrase; }
.box a, .next a { white-space: nowrap; }
.qa-page dt, .art .qa dt { font-weight: 700; margin: 1.4em 0 .4em; padding-left: 2em; text-indent: -2em; }
.qa-page dt::before, .art .qa dt::before { content: "問　"; color: var(--navy); }
.qa-page dd, .art .qa dd { margin: 0 0 1em; padding: 0 0 1em 2em; text-indent: -2em; border-bottom: 1px solid var(--line); }
.qa-page dd::before, .art .qa dd::before { content: "答　"; color: var(--sub); font-weight: 700; }

/* ------------------------------------------------------------------ 15. 下の帯 */
footer.site { margin-top: 0; background: var(--navy-deep); color: #d5dce6; padding: 56px 0 48px; font-size: .9em; line-height: 1.8; }
main { display: block; padding-bottom: 72px; }
main:has(> .wrap:not(.narrow) > .sec:last-child:nth-of-type(even)) { padding-bottom: 0; }
footer.site a { color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.foot-name { display: flex; align-items: center; gap: 12px; font-family: var(--mincho); font-size: 1.4em; font-weight: 700; color: #fff; letter-spacing: .1em; margin: 0 0 12px; }
.foot-name .logo-mark { width: 36px; height: 36px; background-size: 36px 36px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.copy { margin: 16px 0 0; font-size: .86em; color: #c3ccd8; }
.cta-kanri { margin: 16px 0 0; font-size: .94em; }
.op { margin: 0; color: #d5dce6; }
.fnav { display: flex; flex-direction: column; align-items: flex-start; }
.fnav p { margin: 0 0 6px; font-weight: 700; color: #fff; font-size: .9em; letter-spacing: .08em; }
.fnav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration-color: rgba(255, 255, 255, .45); }
.fnav a:hover { text-decoration-color: #fff; }
.foot-note { margin: 24px 0 0; font-size: .92em; color: #c3ccd8; max-width: 52em; }

/* スマホの画面の下の帯 */
.mbar { display: none; }

/* 部品は約物を詰める（本文は詰めない） */
.gnav, .logo, .fs, .crumb, .entry-who, .entry-price, .card-t, .card-g, .jump, .mbar, th, caption, .toc, .side-toc, .fnav, .form label, .form .lbl { font-feature-settings: "palt"; }
.entry-who, .card-t, th { word-break: auto-phrase; }

/* ------------------------------------------------------------------ 16. PC の記事は2列 */
@media (min-width: 1080px) {
  .art-grid, .page-grid { display: grid; grid-template-columns: minmax(0, var(--read)) 272px; justify-content: space-between; gap: 64px; align-items: start; }
  .page-grid > .art-side { padding-top: 64px; }
  .art-side { display: block; padding-top: 28px; align-self: stretch; }
  .art-main .toc { display: none; }
}

/* ------------------------------------------------------------------ 17. 幅が狭いとき */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr; gap: 32px; }
  .entry { grid-template-columns: 1fr; grid-template-rows: none; }
  .entry-box { grid-row: auto; grid-template-rows: none; }
  .entry-box, .entry-box:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .entry-box:first-child { border-top: 0; }
  .fv, .fv-lp { grid-template-columns: 1fr; gap: 0; }
  .fv-pic { max-width: 300px; margin-top: 8px; }
  .fv-lp .fv-pic { max-width: 220px; margin-bottom: 24px; }
  .mread-list > li { padding: 20px 0; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 li, .steps3 li + li { padding: 20px 0; border-left: 0; }
  .steps3 li + li { border-top: 1px solid var(--line); }
  .steps3 li:not(:last-child)::after { right: auto; left: 10px; top: auto; bottom: -7px; transform: rotate(135deg); }
  .jump { grid-template-columns: 1fr 1fr; }
  .logo-sub { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-id { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --fs: 17px; --gap: 16px; --sec: 44px; }
  html[data-fs="l"] { --fs: 20px; }
  header.site { border-top-width: 3px; }
  .top { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .logo { gap: 10px; }
  .logo-mark { width: 36px; height: 36px; background-size: 36px 36px; }
  .logo-name { font-size: 1.28em; letter-spacing: .06em; }
  .fs span { margin-right: 6px; }
  .fs .pc { display: none; }
  .fs button { min-width: 48px; padding: 2px 8px; }
  /* スマホは画面の下の帯に申し込みがあるので、上の帯からは外す */
  .top-r .apply { display: none; }
  .gnav .wrap { padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .gnav a, .gnav a:first-child {
    padding: 6px 4px; min-height: 50px; font-size: .82em; line-height: 1.35; justify-content: center; text-align: center;
    border-bottom: 1px solid var(--line);
  }
  .gnav a:nth-last-child(-n+3) { border-bottom: 0; }
  .gnav a::after, .gnav a:first-child::after { left: 0; right: 0; bottom: 0; }
  .gnav a[aria-current="page"] { background: var(--navy-50); }
  .page-h, .art h1 { font-size: 1.5em; margin: 14px 0 16px; letter-spacing: .04em; }
  .lead { font-size: 1.02em; margin-bottom: 24px; }
  .sec h2, .grp h2, .wrap.narrow .sec h2 { font-size: 1.3em; margin-bottom: 24px; padding-bottom: 12px; }
  .wrap.narrow .sec h2 { margin-top: 44px; }
  .sec h3, .box h3 { margin-top: 32px; }
  .art h2 { font-size: 1.28em; margin-top: 2em; }
  .crumb { padding-top: 12px; }
  .entry { margin-top: 32px; }
  .entry-box { row-gap: 4px; padding: 20px 0; }
  .entry-pic, .entry-pic img { height: 84px; }
  .entry-pic-none { display: none; }
  .entry-price { font-size: 1.35em; }
  .box { padding: 20px 18px; }
  .cards { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  /* スマホの一覧は絵を出さず、字の一覧にする（小さな絵は何か分からないため） */
  .card { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .card img { display: none; }
  .card-g { width: 100%; margin: 0 0 2px; font-size: .88em; }
  .card-t, .grp .card-t, .sec .card-t { flex: 1; margin: 0; font-size: 1em; line-height: 1.6; }
  .card::after { content: ""; flex: none; width: 6px; height: 6px; border-top: 2px solid var(--navy); border-right: 2px solid var(--navy); transform: rotate(45deg); }
  .related .cards { grid-template-columns: 1fr; }
  .jump { grid-template-columns: 1fr; margin-bottom: 40px; }
  .calc-in { grid-template-columns: 1fr; }
  .btn { display: flex; width: 100%; text-align: center; padding: 10px 16px; letter-spacing: .02em; }
  .actions > a:not(.btn), .cta-links > a:not(.btn) { width: 100%; justify-content: center; text-align: center; }
  .form .btn { min-width: 0; }
  .flow > li, .art .steps > li { padding-left: 46px; }
  .flow > li::before, .art .steps > li::before { width: 32px; height: 32px; font-size: .88em; }
  .flow > li:not(:last-child)::after, .art .steps > li:not(:last-child)::after { left: 15px; top: 40px; }
  .cols { gap: 28px; }
  th, td { padding: 12px 10px; }
  tbody th { white-space: normal; }
  /* 見出しと中身の2列だけの表は、スマホでは見出しの下に中身を積む */
  :is(.sec, .art) table:not(.price, .price-mini, .sheet table, .sum table):not(:has(thead)):not(:has(tr > :nth-child(3))),
  :is(.sec, .art) table:not(.price, .price-mini, .sheet table, .sum table):not(:has(thead)):not(:has(tr > :nth-child(3))) :is(tbody, tr, th, td) { display: block; width: auto; }
  :is(.sec, .art) table:not(.price, .price-mini, .sheet table, .sum table):not(:has(thead)):not(:has(tr > :nth-child(3))) caption { display: block; }
  :is(.sec, .art) table:not(.price, .price-mini, .sheet table, .sum table):not(:has(thead)):not(:has(tr > :nth-child(3))) tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  :is(.sec, .art) table:not(.price, .price-mini, .sheet table, .sum table):not(:has(thead)):not(:has(tr > :nth-child(3))) :is(th, td) { border: 0; padding: 0; min-width: 0; }
  :is(.sec, .art) table:not(.price, .price-mini, .sheet table, .sum table):not(:has(thead)):not(:has(tr > :nth-child(3))) th { color: var(--navy); margin-bottom: 4px; }
  /* 料金の表は1行ずつ縦に積む */
  table.price, table.price tbody, table.price tr, table.price th, table.price td { display: block; width: auto; }
  table.price thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.price tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  table.price th, table.price td { border: 0; padding: 2px 0; }
  table.price tbody th { font-size: .9em; color: var(--sub); width: auto; }
  table.price td.yen, table.price td.yen small { text-align: left; white-space: normal; }
  table.price td.yen { font-size: 1.2em; }
  table.price caption { display: block; }
  /* 見本は紙の幅のまま横に動かす */
  .sp-only { display: block; }
  .mihon-pages { grid-template-columns: 1fr; }
  .fig { padding: 14px 8px 4px; margin-left: -8px; margin-right: -8px; }
  .fig-pc { display: none; }
  .fv-pic { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: end; max-width: none; margin: 4px 0 8px; }
  .fv-pic figcaption { margin: 0; }
  .fv-lp .fv-pic { max-width: 132px; }
  .fig-sp { display: block; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .crumb { font-size: .88em; }
  .price tbody th { min-width: 0; white-space: normal; }
  /* 頭のある表は1行ずつ縦に積み、各マスに列の名前を出す（site.js が data-label を付ける） */
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: auto; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack caption { display: block; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.stack th, table.stack td { border: 0; padding: 3px 0; min-width: 0; }
  table.stack tr > :first-child { font-weight: 700; color: var(--navy); }
  table.stack td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .86em; color: var(--sub); font-weight: 500; }
  .art .sum th { width: 6.2em; }
  .toc { padding: 16px 18px 8px; }
  .art .rei { padding: 18px 16px; }
  .cta { padding: 24px 18px; margin: 44px 0 40px; }
  .slider-calc { padding: 18px 16px 4px; }
  /* 結果は1行ずつ「名前 …… 額」で並べる */
  .sl-out { grid-template-columns: 1fr; }
  .sl-out > div, .sl-out > div + div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 12px; padding: 10px 0; border-left: 0; }
  .sl-out > div + div { border-top: 1px solid var(--line); }
  .sl-out dd { font-size: 1.1em; margin: 0; }
  .sl-out .sl-big dd { font-size: 1.4em; }
  /* 記事の下の案内の小さな料金表は、名前の下に値段とリンクを並べる */
  .cta .price-mini, .cta .price-mini tbody { display: block; }
  .cta .price-mini tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cta .price-mini th { grid-column: 1 / -1; border: 0; padding: 0 0 2px; }
  .cta .price-mini td { border: 0; padding: 0; }
  .cta .price-mini td a { display: inline-flex; min-height: 44px; align-items: center; }
  footer.site { padding: 40px 0 calc(32px + 72px); }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .fnav a { min-height: 44px; font-size: .94em; line-height: 1.5; padding: 4px 0; }
  main { padding-bottom: 56px; }
  /* 画面の下の帯 */
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 8px rgba(20, 30, 45, .08);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }
  .mbar a {
    display: flex; align-items: center; justify-content: center; min-height: 48px; font-weight: 700; text-decoration: none;
    font-size: .92em; border-radius: 2px; letter-spacing: .04em;
  }
  .mbar a:first-child { color: var(--navy); border: 1px solid var(--navy); background: #fff; }
  .mbar a:last-child { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
  .mbar.hide { display: none; }
}

/* ------------------------------------------------------------------ 18. 印刷 */
@page { size: A4; margin: 12mm; }
@media print {
  header.site, footer.site, .cta, .related, .toc, .mbar, .print-note, .no-print, .art-side { display: none !important; }
  body { padding: 0; font-size: 10.5pt; background: #fff; }
  main { padding: 0; }
  .print-page { background: #fff; padding: 0; }
  .sheet { border: 0; max-width: none; font-size: 9pt; line-height: 1.5; }
  .sheet th, .sheet td { padding: 2.5px 6px; }
  .sheet h4 { margin: 10px 0 4px; }
  .sheet p { margin: 0 0 5px; }
  .sheet .pg { padding: 0; }
  .sheet .pg + .pg { border-top: 0; break-before: page; }
}
