/* 投資ぬこ リニューアル試作 v2
   軸：「分けて見る」。ロゴ・図・答えの帯に、同じ3色の分割を使う。 */

:root {
  --paper: #ffffff;
  --ink: #1c2541;
  --ink-2: #4a536b;
  --ink-3: #5e6880;
  --line: #d8dde7;
  --band: #eff2f7;
  --band-2: #f6f8fb;
  --navy: #2c3a63;
  --peri: #9db0d6;
  --orange: #f28c28;
  --orange-ink: #a85300;
  --orange-pale: #fff3e6;
  --short: #b42335;
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --hand: "Klee One", "Zen Kaku Gothic New", serif;
  --split: linear-gradient(90deg, var(--navy) 0 30%, var(--peri) 30% 48%, var(--orange) 48% 100%);
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-feature-settings: "palt" 1; letter-spacing: .03em; word-break: auto-phrase; text-wrap: pretty; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
/* 大きな見出しの「、」「。」：後ろの半角分の空きを詰める */
.kp { letter-spacing: -.42em; }
/* 開き括弧：前の半角分の空きを詰める（行頭では半角始まりになる） */
.kp-o { margin-left: -.42em; }
/* 短い文は、文節の途中や1〜2文字だけの行で折り返さない */
.pillar-q, .hero-fig-title, .hero-row-label, .card-title { word-break: auto-phrase; text-wrap: pretty; }
/* 記事：見出しは行の長さをそろえ、表・目次・書き出し欄・図のボタンは文節で折り返す */
.h1-main, .ch-text, .article-body h3, .next-title, .toc-text { text-wrap: balance; }
.toc-text, .data-table th, .data-table td, .ws-text, .next-title, .today a, .case-title, .kpi dt, .panel-title { word-break: auto-phrase; }
.intro-copy p, .cover-deck, .hero-fig-foot p, .cover-cta span, .card-one, .next-reason, .premises li, .lead { text-wrap: pretty; }
/* 金額：数字を大きく、単位を小さく */
.amt-u { font-size: .56em; margin-left: .05em; letter-spacing: .02em; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.proto-bar { background: var(--band); color: var(--ink-2); font-size: 12.5px; text-align: center; padding: 6px var(--gutter); line-height: 1.6; }

/* ---------- ヘッダー ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-size: 22px; font-weight: 900; letter-spacing: .06em; }
.logo-room { font-size: 11.5px; font-weight: 500; color: var(--ink-2); letter-spacing: .12em; margin-top: 3px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a { display: block; padding: 8px 12px; font-size: 15px; font-weight: 700; text-decoration: none; border-radius: 4px; }
.site-nav a:hover { color: var(--ink); background: var(--band); }
.site-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .header-in { min-height: 60px; position: relative; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-name { font-size: 19px; }
  .logo-room { font-size: 10.5px; }
  .js .menu-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px; padding: 7px 12px; cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(28, 37, 65, .35); padding: 8px var(--gutter) 16px; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .no-js .header-in { flex-wrap: wrap; padding-block: 10px; }
}

/* ---------- 共通 ---------- */
.tag { font-size: 14px; font-weight: 700; color: var(--orange-ink); letter-spacing: .06em; }
.fig-kind { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--orange-ink); background: var(--orange-pale); padding: 2px 10px; border-radius: 3px; letter-spacing: .06em; }
.sec-title { font-size: clamp(24px, 3vw, 30px); font-weight: 900; }
.btn { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; padding: 14px 32px; border-radius: 4px; letter-spacing: .08em; }
.btn:hover { color: #fff; background: var(--navy); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 7px; }
.swatch.protect, .seg.protect { background: var(--navy); color: #fff; }
.swatch.planned, .seg.planned { background: var(--peri); color: var(--ink); }
.swatch.free, .seg.free { background: var(--orange); color: var(--ink); }

/* 分割バー */
.split-bar { display: flex; gap: 3px; height: 44px; }
.seg { display: flex; align-items: center; justify-content: center; min-width: 0; border-radius: 3px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; transition: flex-basis .45s cubic-bezier(.3, .7, .2, 1); overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- トップ ---------- */
.intro { padding-block: 40px 36px; }
.intro-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 56px; align-items: end; }
.intro h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; line-height: 1.15; letter-spacing: 0; }
.nb { display: inline-block; }
.intro-copy p { font-size: 16px; color: var(--ink-2); line-height: 1.85; max-width: 36em; padding-bottom: 4px; }
.pillars { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.pillar { padding: 16px 24px 0 0; scroll-margin-top: 16px; }
.pillar + .pillar { padding-left: 24px; border-left: 1px solid var(--line); }
.pillar-name { font-size: 18px; font-weight: 900; }
.pillar-q { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.pillar-list { margin-top: 8px; font-size: 14px; line-height: 1.6; }
.pillar-list li { padding: 3px 0; }
.pillar-list a { font-weight: 700; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.author-name { font-weight: 700; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }

.cover { background: var(--band); padding-block: 40px 72px; }
.cover-head { max-width: 880px; }
.cover-head h2 { margin-top: 8px; font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; line-height: 1.3; letter-spacing: .01em; }
.cover-head h2 a { text-decoration: none; }
.cover-head h2 a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.cover-deck { margin-top: 12px; font-size: 17px; color: var(--ink-2); line-height: 1.9; }
/* 棚の名前と書いた人を1行にまとめ、図を最初の画面に近づける */
.cover-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.cover-by { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.cover-by img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper); }
.cover-date { font-weight: 400; font-size: 13px; color: var(--ink-3); }

.hero-fig { margin-top: 28px; background: var(--paper); border-radius: 6px; padding: 24px 32px 22px; box-shadow: 0 1px 0 var(--line); }
.hero-fig-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hero-fig-title { font-size: 15px; font-weight: 700; }
.hero-bars { margin-top: 10px; }
.hero-row { display: grid; grid-template-columns: 250px minmax(0, 1fr) 170px; gap: 24px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line); }
.hero-row:last-child { border-bottom: 0; }
.hero-row-label { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; line-height: 1.55; }
.row-key { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; font-weight: 900; letter-spacing: 0; }
.split-bar.is-big { height: 68px; gap: 4px; }
.split-bar.is-big .seg { font-size: 20px; font-weight: 900; border-radius: 4px; }
.hero-row-result { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hero-row-result > span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.hero-row-result strong { font-size: 48px; font-weight: 900; line-height: 1.1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.hero-fig-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 32px; align-items: start; padding-top: 16px; border-top: 1px solid var(--line); }
.hero-fig-foot p { font-size: 13px; color: var(--ink-3); line-height: 1.7; }

.js .hero-bars .seg { transform: scaleX(0); transform-origin: left center; transition: transform .7s cubic-bezier(.2, .75, .2, 1); }
.js .hero-bars .seg-val, .js .hero-row-result strong { opacity: 0; transition: opacity .35s ease; }
.js .hero-bars .seg:nth-child(2) { transition-delay: .22s; }
.js .hero-bars .seg:nth-child(3) { transition-delay: .44s; }
.js .hero-bars .hero-row + .hero-row .seg:nth-child(1) { transition-delay: .5s; }
.js .hero-bars .hero-row + .hero-row .seg:nth-child(2) { transition-delay: .72s; }
.js .hero-bars .hero-row + .hero-row .seg:nth-child(3) { transition-delay: .94s; }
.js .hero-bars.is-split .seg { transform: none; }
.js .hero-bars.is-split .seg-val { opacity: 1; transition-delay: 1.1s; }
.js .hero-bars.is-split .hero-row-result strong { opacity: 1; transition-delay: 1.45s; }

.cover-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 14.5px; color: var(--ink-2); }

/* 記事カード：サムネイルは記事の図、図のない記事は問いの中心語 */
.recent { padding-block: 72px 80px; }
.card-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.card { position: relative; display: flex; flex-direction: column; }
.thumb { border-radius: 6px; overflow: hidden; line-height: 0; }
.thumb-svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.th-key { font-size: 15px; font-weight: 900; fill: var(--ink); }
.th-num { font-size: 23px; font-weight: 900; fill: var(--ink); }
.th-u { font-size: 13px; }
.th-cap { font-size: 11px; font-weight: 700; fill: var(--ink-2); }
.th-val { font-size: 12px; font-weight: 900; fill: var(--ink); }
.th-leg { font-size: 11px; font-weight: 700; fill: var(--ink-2); }
.th-word { font-size: 54px; font-weight: 900; fill: var(--ink); letter-spacing: .02em; }
.card-body { padding-top: 14px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.card-pillar { font-weight: 700; color: var(--orange-ink); }
.card-meta .status { margin-left: 0; }
.card-title { margin-top: 6px; font-size: 19px; font-weight: 900; line-height: 1.5; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-title a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-one { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
.card-date { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }

.status { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line); border-radius: 3px; padding: 0 7px; line-height: 1.7; vertical-align: 1px; white-space: nowrap; }
.status.is-draft { color: var(--orange-ink); border-color: #e9c39c; background: var(--orange-pale); }

.about { background: var(--ink); color: #fff; padding-block: 80px; }
.about :focus-visible { outline-color: #fff; }
.about-in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; }
.about-author img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); }
.about-author .sec-title { margin-top: 20px; }
.about-name { margin-top: 6px; font-size: 18px; font-weight: 900; }
.about-author p + p { margin-top: 8px; font-size: 15px; color: #c9d1e3; line-height: 1.9; }
.about-lead { margin-top: 10px; color: #c9d1e3; font-size: 16px; }
.steps { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); }
.steps li::before { content: counter(step); display: block; font-size: 40px; font-weight: 900; line-height: 1; color: var(--orange); margin-bottom: 12px; }
.steps h3 { font-size: 19px; font-weight: 900; }
.steps p { margin-top: 8px; font-size: 14.5px; color: #c9d1e3; line-height: 1.85; }
.policy { margin-top: 40px; display: grid; gap: 6px; font-size: 14.5px; color: #dfe4ef; padding: 20px 24px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; }
.policy li { padding-left: 1.2em; text-indent: -1.2em; }
.policy li::before { content: "・"; }

.archive { padding-block: 72px 88px; }
.archive > p { margin-top: 8px; color: var(--ink-2); }
.archive-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.archive-links a { display: inline-block; font-size: 17px; font-weight: 700; text-decoration: none; padding: 12px 22px; border: 1.5px solid var(--ink); border-radius: 4px; }
.archive-links a:hover { color: #fff; background: var(--ink); }

.site-footer { background: var(--band); padding-block: 40px 32px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-brand p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.footer-links a { text-underline-offset: 4px; }
.footer-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 960px) {
  .intro-copy { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillar, .pillar + .pillar { padding: 14px 0 10px; border-left: 0; border-top: 2px solid var(--ink); }
  .hero-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; }
  .hero-row-label { grid-column: 1 / -1; }
  .hero-row .split-bar { grid-column: 1 / -1; }
  .hero-row-result { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; text-align: left; }
  .hero-row-result > span { font-size: 13.5px; }
  .hero-row-result strong { font-size: 40px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-in { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .intro { padding-block: 36px 32px; }
  .intro h1 { font-size: clamp(34px, 10vw, 44px); }
  .intro-copy p { font-size: 15.5px; }
  .pillars { margin-top: 24px; }
  .pillar, .pillar + .pillar { padding: 10px 0 8px; border-top-width: 1px; }
  .pillar:first-child { border-top-width: 2px; }
  .pillar-name { font-size: 16px; }
  .pillar-q { font-size: 13.5px; margin-top: 2px; }
  .pillar-list { display: none; }
  .cover { padding-block: 44px 52px; }
  .cover-deck { font-size: 16px; }
  .hero-fig { padding: 20px 16px 18px; margin-inline: calc(-1 * var(--gutter) + 8px); }
  .hero-row { padding-block: 18px; }
  .split-bar.is-big { height: 52px; gap: 3px; }
  .split-bar.is-big .seg { font-size: 16px; }
  .hero-fig-foot { grid-template-columns: 1fr; }
  .recent { padding-block: 52px 60px; }
  .card-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li::before { font-size: 34px; }
  .about { padding-block: 56px; }
  .btn { width: 100%; text-align: center; }
}

/* ---------- 記事 ---------- */
.article-layout { padding-block: 24px 96px; }
.article { max-width: 680px; margin-inline: auto; }
.toc-rail { display: none; }
@media (min-width: 1240px) {
  .article-layout { display: grid; grid-template-columns: 200px 680px 200px; column-gap: 48px; justify-content: center; }
  .article { margin: 0; grid-column: 2; }
  .toc-rail { display: block; grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: 28px; margin-top: 240px; font-size: 13.5px; line-height: 1.6; }
  .toc-rail-title { font-weight: 700; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
  .toc-rail a { display: grid; grid-template-columns: 22px 1fr; padding: 7px 0 7px 10px; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-2); }
  .toc-rail a:hover { color: var(--ink); }
  .toc-rail a[aria-current] { color: var(--ink); font-weight: 700; border-left-color: var(--orange); }
  .toc-rail .toc-num { font-weight: 700; }
  .toc { display: none; }
  .chapter-bar { display: none !important; }
}

.crumbs ol { display: flex; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin: 0 8px; }
.crumbs a { text-underline-offset: 3px; }

.article-head { padding-top: 40px; }
.article-head h1 { margin-top: 10px; }
.h1-main { display: block; font-size: clamp(30px, 5vw, 44px); font-weight: 900; line-height: 1.3; letter-spacing: .01em; }
.h1-sub { display: block; margin-top: 12px; font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; color: var(--ink-2); line-height: 1.55; }
.byline { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.byline p { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: baseline; }
.by-name { font-weight: 700; font-size: 15px; }
.by-date { font-size: 13px; color: var(--ink-3); }
.pr-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); }

.lead { margin-top: 32px; font-size: 18px; line-height: 1.95; }
.lead.is-more { margin-top: 16px; }

.premises { margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px 16px; }
.premises-title { font-size: 14px; font-weight: 900; color: var(--ink-2); letter-spacing: .06em; }
.premises ul { margin-top: 8px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.premises li { position: relative; padding-left: 1.1em; }
.premises li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--peri); }
.today { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.today-label { font-size: 13px; font-weight: 900; color: var(--orange-ink); letter-spacing: .06em; }
.today a { font-weight: 700; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.today-ch { font-size: 12.5px; color: var(--ink-3); }
.answer { position: relative; margin-top: 28px; background: var(--band-2); padding: 30px 28px 26px; border-radius: 0 0 6px 6px; }
.answer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--split); }
.answer-label { font-size: 14px; font-weight: 900; color: var(--orange-ink); letter-spacing: .1em; }
.answer-main { margin-top: 8px; font-size: 20px; font-weight: 700; line-height: 1.75; word-break: auto-phrase; }
.answer p + p { margin-top: 12px; font-size: 16px; line-height: 1.9; color: var(--ink-2); }

.toc { margin-top: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 20px 24px; }
.toc-title { font-size: 15px; font-weight: 900; }
.toc ol { margin-top: 10px; display: grid; gap: 2px; }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 6px 0; text-decoration: none; font-size: 15px; line-height: 1.65; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.toc .toc-num { font-weight: 900; color: var(--orange-ink); }

.article-body { font-size: 17px; line-height: 1.95; }
.article-body p { margin-bottom: 1.35em; }
.article-body a { text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.article-body strong { font-weight: 700; }
.chapter { margin-top: 80px; }
.chapter h2 { display: flex; gap: 16px; align-items: flex-start; padding-top: 22px; border-top: 2px solid var(--ink); font-size: clamp(22px, 3vw, 27px); font-weight: 900; line-height: 1.45; margin-bottom: 24px; scroll-margin-top: 64px; }
.ch-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-top: 2px; background: var(--ink); color: #fff; font-size: 17px; border-radius: 4px; letter-spacing: 0; }
.article-body h3 { margin: 52px 0 16px; font-size: 20.5px; font-weight: 900; line-height: 1.5; scroll-margin-top: 64px; }
.formula { background: var(--band-2); border-radius: 6px; padding: 16px 20px; margin-block: 8px 1.6em !important; }
.formula-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .08em; }
.formula-body { display: block; font-size: 17px; line-height: 1.8; }
.article-body .note { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); margin-top: -4px; }
.assumption { border: 1.5px dashed #c5cde0; border-radius: 6px; padding: 16px 20px; scroll-margin-top: 80px; }

.table-wrap { margin: 8px 0 20px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(90deg, var(--paper) 30%, rgba(255, 255, 255, 0)), linear-gradient(270deg, var(--paper) 30%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0 50%, rgba(28, 37, 65, .18), transparent), radial-gradient(farthest-side at 100% 50%, rgba(28, 37, 65, .18), transparent) 100% 0;
  background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.data-table.is-wide { min-width: 600px; }
.data-table th, .data-table td { padding: 12px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { font-size: 13.5px; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.data-table tbody th { font-weight: 700; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.has-bar { position: relative; min-width: 150px; vertical-align: middle; }
.cell-bar { position: absolute; left: 12px; top: 50%; height: 12px; transform: translateY(-50%); width: calc(var(--w) * 1.2); background: #cfd8ea; border-radius: 0 2px 2px 0; }
.cell-num { position: relative; font-weight: 700; }
.data-table.is-ratio td.has-bar { width: 40%; }
.data-table.is-compare td, .data-table.is-compare th { vertical-align: middle; }
.data-table.is-compare tbody td { white-space: nowrap; }
.data-table.is-compare tr > :first-child { width: 42%; }
.data-table.is-compare strong { font-size: 17px; }

.ordered { margin: 0 0 1.4em; counter-reset: o; }
.ordered li { counter-increment: o; padding-left: 2em; position: relative; margin-bottom: .5em; }
.ordered li::before { content: counter(o) "."; position: absolute; left: 0; font-weight: 700; }

.worksheet { margin: 12px 0 32px; counter-reset: ws; border-top: 2px solid var(--ink); }
.worksheet li { counter-increment: ws; display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px; gap: 8px 16px; align-items: end; padding: 18px 0 16px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.8; }
.worksheet li::before { content: counter(ws); align-self: start; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); font-weight: 900; font-size: 15px; letter-spacing: 0; }
.ws-blank { display: flex; align-items: flex-end; gap: 6px; font-size: 14px; color: var(--ink-3); }
.ws-blank span { flex: 1; height: 1.6em; border-bottom: 1.5px dashed #9aa5bd; }

/* 仮定例の図 */
.scenario { position: relative; margin: 48px 0 56px; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 8px 8px; padding: 34px 32px 26px; scroll-margin-top: 64px; }
.scenario::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 6px; background: var(--split); }
@media (min-width: 760px) and (max-width: 1239px) {
  .wide { width: min(928px, calc(100vw - 48px)); margin-left: calc((100% - min(928px, calc(100vw - 48px))) / 2); }
}
@media (min-width: 1240px) { .wide { width: 928px; } }
/* 本文の p・h3 の余白を図の中へ持ち込まない */
.article-body .scenario p, .article-body .scenario h3, .article-body .scenario h4 { margin: 0; }
.article-body .scenario .fig-title { margin-top: 10px; font-size: clamp(20px, 2.6vw, 25px); font-weight: 900; line-height: 1.45; }
.article-body .scenario .fig-cond { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.75; min-height: 3.5em; }
.article-body .scenario .panel-title { margin-bottom: 14px; }
.article-body .scenario .fig-insight { margin-top: 16px; }
.article-body .scenario .fig-note { margin-top: 14px; }
.case-switch { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.case-switch[hidden] { display: none; }
.case-btn { display: flex; gap: 10px; align-items: flex-start; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px; padding: 11px 12px; cursor: pointer; line-height: 1.45; letter-spacing: .02em; }
.case-btn:hover { border-color: var(--ink-3); }
.case-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.case-key { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 13px; font-weight: 900; letter-spacing: 0; }
.case-btn[aria-pressed="true"] .case-key { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.case-text { display: flex; flex-direction: column; }
.case-title { font-size: 14.5px; font-weight: 700; }
.case-sub { font-size: 12px; opacity: .82; margin-top: 2px; }
.scenario-grid { margin-top: 24px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; }
.panel-title { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; line-height: 1.6; }
.split-list { margin-top: 14px; font-size: 14.5px; }
.split-list div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.split-list dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline-box { width: 100%; min-height: 250px; }
.timeline { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.tl-grid { stroke: var(--line); stroke-width: 1; }
.tl-axis { fill: var(--ink-3); font-size: 12px; }
.tl-area { fill: var(--peri); fill-opacity: .5; }
.tl-line { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.tl-target { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 5; }
.tl-label { fill: var(--ink); font-size: 12.5px; font-weight: 700; }
.tl-pay { stroke: var(--ink-2); stroke-width: 1; }
.tl-hand { font-family: var(--hand); font-weight: 600; font-size: 17px; fill: var(--navy); }
.tl-hand.is-short { fill: var(--short); }
.tl-short { stroke: var(--short); stroke-width: 2.5; }
.tl-dot { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.tl-value { fill: var(--ink); font-size: 14px; font-weight: 900; }
.tl-small { fill: var(--ink-2); font-size: 11.5px; font-weight: 700; }
.tl-halo { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.kpis { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.kpi { padding: 16px 16px 4px 0; }
.kpi + .kpi { padding-left: 16px; border-left: 1px solid var(--line); }
.kpi dt { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; min-height: 3.1em; }
.kpi dd { margin-top: 4px; font-size: 30px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi.is-short dd { color: var(--short); }
.fig-insight { margin-top: 16px; background: var(--band-2); border-radius: 6px; padding: 14px 18px; font-size: 15.5px; font-weight: 700; line-height: 1.8; }
.fig-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.75; }
.fig-note a, .fig-note-short a { color: var(--ink); text-underline-offset: 3px; }
.fig-note-short { display: none; }

@media (max-width: 900px) {
  .case-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .scenario-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .article-head { padding-top: 28px; }
  .lead { font-size: 16.5px; }
  .answer { padding: 26px 18px 20px; }
  .answer-main { font-size: 18px; }
  .article-body { font-size: 16px; line-height: 1.9; }
  .chapter { margin-top: 64px; }
  .chapter h2 { gap: 12px; }
  .ch-num { width: 30px; height: 30px; font-size: 15px; }
  .article-body h3 { font-size: 18.5px; margin-top: 44px; }
  .scenario { padding: 28px 16px 20px; margin-inline: calc(-1 * var(--gutter) + 6px); }
  .case-btn { padding: 9px 10px; }
  .case-sub { display: none; }
  .kpis { grid-template-columns: 1fr; }
  .kpi, .kpi + .kpi { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .kpi dt { min-height: 0; }
  .kpi dd { font-size: 22px; white-space: nowrap; }
  .fig-cond { min-height: 0; }
  .worksheet li { grid-template-columns: 34px minmax(0, 1fr); }
  .ws-blank { grid-column: 2; width: 70%; }
  .data-table th, .data-table td { padding: 10px 8px; }
  .data-table.is-compare tr > :first-child { width: 44%; }
}

.sources { margin-top: 80px; padding-top: 22px; border-top: 2px solid var(--ink); }
.sources h2 { font-size: 20px; font-weight: 900; }
.sources > p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.sources ol { margin-top: 14px; counter-reset: src; font-size: 14px; line-height: 1.7; }
.sources li { counter-increment: src; display: grid; grid-template-columns: 28px 1fr; padding: 6px 0; }
.sources li::before { content: counter(src); color: var(--ink-3); font-weight: 700; }
.sources a { text-underline-offset: 3px; }

.author-box { margin-top: 48px; display: flex; gap: 20px; align-items: flex-start; background: var(--band-2); border-radius: 8px; padding: 24px; font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--paper); }
.author-box a { display: inline-block; margin-top: 6px; color: var(--ink); font-weight: 700; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.next { margin-top: 48px; }
.next h2 { font-size: 18px; font-weight: 900; }
.next ul { margin-top: 12px; border-top: 1px solid var(--line); }
.next a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; line-height: 1.6; }
.next a:hover { color: var(--ink); background: var(--band-2); }
.next-shelf { display: block; font-size: 12.5px; color: var(--orange-ink); font-weight: 700; }
.next-title { display: block; }
.next-reason { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.75; }

.bullets { margin: 0 0 1.4em; display: grid; gap: .55em; }
.bullets li { position: relative; padding-left: 1.2em; }
.bullets li::before { content: ""; position: absolute; left: .15em; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* 第3章：PCでは図を右に固定し、読んでいる節に合わせて条件を切り替える */
@media (min-width: 1240px) and (min-height: 840px) {
  .scrolly { display: grid; grid-template-columns: 500px 400px; column-gap: 28px; width: 928px; align-items: start; margin-top: 8px; }
  .scrolly-text { grid-column: 1; grid-row: 1; }
  .scrolly-fig { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
  .scrolly .scenario.wide { width: auto; margin: 0; padding: 22px 20px 14px; }
  .scrolly .scenario-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
  .scrolly .fig-insight, .scrolly .fig-note { display: none; }
  /* 追従中も、帯の3区分の名前と金額を対応させる。 */
  .scrolly .split-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; font-size: 12px; line-height: 1.5; letter-spacing: 0; }
  .scrolly .split-list div { display: block; padding: 0; border-bottom: 0; }
  .scrolly .split-list dt { white-space: nowrap; }
  .scrolly .split-list .swatch { width: 8px; height: 8px; margin-right: 4px; }
  .scrolly .split-list dd { margin-top: 1px; font-size: 13px; line-height: 1.4; }
  .article-body .scrolly .fig-note-short { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
  .scrolly-text { padding-bottom: 140px; }
  .scrolly .case-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; gap: 6px; }
  .scrolly .case-btn { padding: 8px 10px; }
  .scrolly .case-sub { display: none; }
  .scrolly .panel-title { font-size: 13px; }
  .article-body .scrolly .panel-title { margin-bottom: 6px; }
  .article-body .scrolly .fig-cond { min-height: 0; font-size: 14px; }
  .article-body .scrolly .fig-title { font-size: 19px; }
  .scrolly .split-bar { height: 36px; }
  .scrolly .timeline-box { min-height: 0; }
  .scrolly .kpis { grid-template-columns: 1fr; margin-top: 10px; }
  .scrolly .kpi, .scrolly .kpi + .kpi { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .scrolly .kpi dt { min-height: 0; }
  .scrolly .kpi dd { font-size: 19px; margin: 0; white-space: nowrap; }
  .scrolly .kpi .amt-u { font-size: .7em; }
  .scrolly .kpi dt { font-size: 12px; }
  .article-body .scrolly .fig-note { font-size: 11.5px; line-height: 1.65; margin-top: 10px; }
  .scrolly-text > h3:first-child { margin-top: 0; }
  .scrolly .data-table { font-size: 14px; }
}

.chapter-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px -14px rgba(28, 37, 65, .5); }
.chapter-bar[hidden] { display: none; }
.chapter-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 13.5px; }
.chapter-bar p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.chapter-bar a { flex: none; font-weight: 700; padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 4px; text-decoration: none; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
