/* 担当課向け詳細ページの共通スタイル（2日目5事業から使用）。
   体裁は親レポートと kacho/otaco の部品をそのまま持ち込み、class 名だけ dt-* に中立化した。
   ここで独自の様式を作らない。色・角丸・カードの言語、判定5区分の色 e1..e5 は親と同じ値。
   /ui.css はこのファイルより後に読まれる。同詳細度では ui.css が勝つため、
   ページ固有の上書きは .ota-ui を前置して詳細度で勝つ（repo の規約）。 */
:root {
  --page:#f9f9f7; --surface:#fcfcfb; --ink:#0b0b0b; --sec:#52514e; --muted:#898781;
  --grid:#e1e0d9; --line:#c3c2b7; --accent:#184f95; --bar:#0b0b0b; --filter-bg:#f0f3f7;
  --e1:#932427; --e2:#eb5f4d; --e3:#8a8880; --e4:#6da7ec; --e5:#1c5cab;
  --rad:6px; --rad-s:3px;
}
* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
html, body { background:var(--page); }
body { color:var(--ink); line-height:1.85;
  font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif; }
h1, h2, h3 { font-feature-settings:"palt"; letter-spacing:.01em; }
table, .fig text { font-variant-numeric:tabular-nums; }
a { color:var(--accent); text-underline-offset:3px; }
a:hover { color:var(--ink); }
button:focus-visible, a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* 上部の帯（親レポートと同じ） */
#bar { position:fixed; top:0; left:0; right:0; z-index:100; height:44px;
  display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 16px;
  background:var(--bar); color:#fff; font-size:14px; box-shadow:0 1px 4px rgba(0,0,0,.25); }
.bar-home { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none;
  font-weight:600; letter-spacing:.02em; }
.bar-home:hover { opacity:.8; }
.bar-sub { font-size:12px; color:#9d9a92; }
.pr-mark { width:22px; height:22px; flex:0 0 22px; display:block; }
.pr-mark g { fill:#fff; }

.wrap { max-width:820px; margin:0 auto; padding:64px 20px 90px; }

header { margin-bottom:18px; }
h1 { font-size:1.45rem; font-weight:700; line-height:1.4; margin-bottom:10px; }
/* 事業名・判定チップ・担当課を一つのブロックとして読む（otaco と同じ組み） */
.dt-page-title { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.dt-page-title h1 { margin-bottom:0; }
.dt-page-title .dt-verdict-chip { padding:3px 10px; font-size:.78rem; font-weight:700; }
.dt-page-title .to { margin:0 0 0 auto; color:var(--sec); font-size:.84rem; text-align:right; white-space:nowrap; padding:0; border:0; }
@media (max-width:560px) {
  .dt-page-title { display:grid; grid-template-columns:1fr auto; gap:6px 10px; }
  .dt-page-title h1 { grid-column:1 / -1; }
  .dt-page-title .dt-verdict-chips { justify-self:start; }
  .dt-page-title .to { grid-column:2; }
}
.dt-verdict-chips { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
body.off-cit .g-cit, body.off-ext .g-ext, body.off-onl .g-onl { display:none; }
/* フィルタは本文カラム内で完結するカード。背景をビューポート全幅へ広げない。 */
#fbar { position:sticky; top:44px; z-index:40; margin:12px 0 14px;
  padding:8px 14px 10px; background:var(--filter-bg);
  border:1px solid var(--grid); border-radius:var(--rad);
  box-shadow:0 1px 5px rgba(0,0,0,.05); }
.ota-ui.page-detail #fbar h2 { font-size:.72rem; color:var(--sec); font-weight:700;
  margin:0 0 2px !important; padding:0; border:0; letter-spacing:.04em; line-height:1.2; }
.filters { display:flex; flex-wrap:wrap; gap:4px 12px; align-items:center; }
.filters label { display:inline-flex; align-items:center; gap:5px; cursor:pointer;
  font-size:.78rem; user-select:none; }
.filters input { width:14px; height:14px; accent-color:var(--ink); cursor:pointer; }
.filters .np { color:var(--muted); font-size:.7rem; font-variant-numeric:tabular-nums; }
.filter-context { margin:3px 0 0; color:var(--muted); font-size:.68rem; line-height:1.45; }
@media (max-width:720px) { #fbar { position:static; } }

/* 親レポート冒頭の「このレポートから言えること」と同じラベルと箇条書き。 */
.pt { font-size:.72rem; font-weight:700; letter-spacing:.05em; }
.dt-takeaway-label { margin:14px 0 6px; color:var(--sec); }
.dt-takeaway { margin:0 0 4px; padding-left:1.35em; font-size:.86rem; line-height:1.85; }
.dt-takeaway li { margin:4px 0; }

h2 { font-size:1.12rem; font-weight:700; margin:52px 0 8px;
  padding-bottom:8px; border-bottom:2px solid var(--ink); }
h3 { font-size:.95rem; font-weight:700; margin:28px 0 4px; }
p { font-size:.88rem; margin:12px 0; }
ul, ol { font-size:.88rem; margin:12px 0 12px 1.4em; }
li { margin:6px 0; }

/* 発言原文 */
blockquote { margin:12px 0; padding:10px 14px; background:var(--surface);
  border:1px solid var(--grid); border-left:3px solid var(--line); border-radius:var(--rad); }
blockquote p { font-size:.84rem; color:var(--sec); margin:4px 0; }
a.attr { color:var(--muted); text-decoration:underline dotted; text-underline-offset:2px;
  white-space:nowrap; }
a.attr:hover { color:var(--ink); text-decoration:underline solid; }

/* 表 */
.tw { overflow-x:auto; }
.tw, table { border-radius:var(--rad); }
table { width:100%; border-collapse:collapse; font-size:.82rem; line-height:1.7;
  background:var(--surface); border:1px solid var(--grid); margin:14px 0; }
th, td { padding:9px 12px; border-bottom:1px solid var(--grid); text-align:left; vertical-align:top;
  word-break:normal; overflow-wrap:anywhere; }
thead th { font-size:.74rem; font-weight:700; color:var(--sec); background:var(--page);
  border-bottom:1px solid var(--line); white-space:nowrap; }
tbody tr:last-child td { border-bottom:none; }
td:first-child, th:first-child { min-width:11rem; }

/* 担当課ヒアリング（倍速アンケートの埋め込み） */
.survey-embed { margin:64px 0 24px; }
.survey-intro { max-width:48rem; }
.survey-frame { display:block; width:100%; height:78vh; min-height:680px; max-height:960px; border:1px solid var(--grid); border-radius:var(--rad); background:var(--surface); }
.survey-fallback { margin-top:12px; font-size:.82rem; color:var(--sec); }
.survey-fallback a { font-weight:700; }

.sh-breadcrumb { margin:0 0 10px; font-size:.78rem; }
.sh-breadcrumb ol { display:flex; flex-wrap:wrap; align-items:center; gap:7px; list-style:none; margin:0; padding:0; }
.sh-breadcrumb li { margin:0; }
.sh-breadcrumb li + li::before { margin-right:7px; color:var(--muted); content:"/"; }
.sh-breadcrumb a { color:var(--sec); text-decoration:none; }
.sh-breadcrumb a:hover { color:var(--ink); text-decoration:underline; }
.sh-breadcrumb [aria-current="page"] { color:var(--muted); }
.toc { margin:24px 0 0; padding:14px 18px; background:var(--surface); border:1px solid var(--grid); border-radius:var(--rad); }
.toc .toct { margin:0 0 6px; color:var(--muted); font-size:.72rem; font-weight:700; letter-spacing:.05em; }
.toc ol { margin:0; padding-left:1.35em; font-size:.86rem; }
.toc li { margin:3px 0; }
.toc a { text-decoration:none; }
.toc a:hover { text-decoration:underline; }
/* 全体レポート・otaco と同じ現在位置レール。本文幅の外に置ける画面だけで表示する。 */
#rail { display:none; }
@media (min-width:1160px) {
  #rail { display:block; position:fixed; top:96px; left:calc(50% - 410px - 166px); width:150px; z-index:70; }
  nav.toc { display:none; }
}
#rail .railt { margin:0 0 8px; color:var(--muted); font-size:.72rem; font-weight:700; letter-spacing:.05em; }
#rail ol { list-style:none; margin:0; padding:0; border-left:2px solid var(--grid); }
#rail li { margin:0; }
#rail a { display:block; margin-left:-2px; padding:5px 0 5px 10px; border-left:2px solid transparent; color:var(--sec); font-size:.76rem; line-height:1.4; text-decoration:none; }
#rail a:hover { color:var(--ink); }
#rail a.on { border-left-color:var(--ink); color:var(--ink); font-weight:700; }
h2 { scroll-margin-top:96px; }

hr { border:none; border-top:1px solid var(--line); margin:44px 0 16px; }
/* 出典の生URLは1語として折り返せず、モバイルのレイアウトビューポートを押し広げる。 */
hr ~ p { font-size:.75rem; color:var(--muted); line-height:1.8; margin:10px 0; overflow-wrap:anywhere; }
.foot-nav { margin-top:44px; padding-top:16px; border-top:1px solid var(--line); font-size:.82rem; }

/* 判定カード（円グラフ＋1マス=1人） */
.dt-verdict-card { margin:0 0 22px; padding:16px 18px; }
.dt-verdict-visual { display:grid; grid-template-columns:auto minmax(0,1fr); gap:0; align-items:stretch; }
.dt-verdict-summary { margin:0; padding-right:20px; border-right:1px solid var(--grid); }
.dt-verdict-summary-label, .dt-verdict-breakdown-title { margin:0 0 8px; color:var(--sec); font-size:.74rem; font-weight:700; }
.dt-verdict-pie { display:block; width:196px; height:196px; }
.dt-verdict-pie text { font-family:inherit; font-size:11px; font-weight:700; text-anchor:middle; dominant-baseline:middle; font-variant-numeric:tabular-nums; }
.dt-verdict-pie-n { font-size:20px; fill:var(--ink); }
.dt-verdict-pie-unit { font-size:10px; font-weight:600; fill:var(--muted); }
.dt-verdict-breakdown { margin:0; min-width:0; padding-left:20px; }
/* 凡例の見た目は ui.css の .legend/.chip 一種類。位置は常にチャートの上。 */
.ota-ui .dt-verdict-card .legend, .ota-ui .dt-flow .legend, .ota-ui .dt-butterfly .legend,
.ota-ui .dt-flow-chart .legend, .ota-ui .dt-chart-card .legend { margin:0 0 12px; }
.ota-ui .dt-verdict-card .legend { padding-bottom:12px; border-bottom:1px solid var(--grid); }
.ota-ui .dt-chart-heading .legend { margin:0; }
.dt-verdict-breakdown-title span { margin-left:6px; color:var(--muted); font-weight:400; }
.dt-verdict-row { margin-bottom:12px; }
.dt-verdict-row:last-of-type { margin-bottom:0; }
.dt-verdict-label { margin-bottom:4px; color:var(--sec); font-size:.78rem; font-weight:600; }
.dt-verdict-label span { color:var(--muted); font-weight:400; margin-left:6px; }
.dt-verdict-cells { display:flex; flex-wrap:wrap; gap:2px; }
.dt-verdict-cell { width:15px; height:15px; border-radius:3px; }

/* 2節: バタフライ図 */
.dt-butterfly { margin:20px 0 18px; padding:16px 0 18px; border-top:1px solid var(--line); border-bottom:1px solid var(--grid); }
.dt-butterfly-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.dt-butterfly svg { display:block; width:100%; height:auto; }
.dt-butterfly svg text { font-family:inherit; }
.dt-butterfly .bf-ax { font-size:11.5px; font-weight:600; fill:var(--sec); }
.dt-butterfly .bf-ax-c { font-size:11px; font-weight:400; fill:var(--muted); }
.dt-butterfly .bf-lb { font-size:12.5px; font-weight:700; fill:var(--ink); }
.dt-butterfly .bf-lb-n { font-size:10.5px; font-weight:400; fill:var(--muted); }
.dt-butterfly .bf-tot { font-size:11px; font-weight:700; fill:var(--sec); }
.dt-butterfly .bf-sub { opacity:.34; }
@media (max-width:760px) { .dt-butterfly svg { min-width:720px; } }

/* 2節: サンキー図 */
.dt-flow { margin:16px 0 12px; padding:16px 0 14px; background:transparent; border:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); border-radius:0; }
.dt-flow h3 { margin:0 0 3px; font-size:.96rem; }
.dt-flow > p { margin:3px 0 12px; color:var(--sec); font-size:.78rem; }
.dt-flow-chart { margin:0; overflow-x:auto; }
.dt-flow svg { display:block; width:100%; min-width:680px; height:auto; }
.dt-flow svg text { font-family:inherit; }
.dt-flow-label { fill:var(--sec); font-size:10px; font-weight:600; }
.dt-flow-node-label { fill:var(--sec); font-size:9px; }
.dt-flow-node-note { fill:var(--muted); font-size:8px; }
.dt-flow-band { fill-opacity:.82; transition:fill-opacity .15s ease; }
.dt-flow-band:hover { fill-opacity:1; }
.dt-flow-node { fill:var(--page); stroke:var(--line); stroke-width:1; }
/* 注意書き・読み方のブロックは一種類: 左の黒3pxラインと地の背景（判定色や青で目立たせない）。 */
.dt-flow-reading { margin:16px 0 0; padding:12px 14px; border-left:3px solid var(--ink); background:var(--page); }
.dt-flow-reading h4 { margin:0 0 7px; color:var(--sec); font-size:.78rem; }
.dt-flow-reading ul { margin:0; padding-left:1.25em; color:var(--sec); font-size:.78rem; line-height:1.72; }
.dt-flow-reading li { margin:4px 0; }
/* 2節: 論点カード（統合スレッド形式） */
.dt-issue-section { margin:18px 0 0; }
.dt-issue-list { display:grid; gap:16px; margin:10px 0 0; }
.dt-issue-card { padding:18px 20px; background:var(--surface); border:1px solid var(--grid); border-radius:var(--rad); }
.dt-issue-bar { display:flex; height:6px; gap:2px; margin:0 0 5px; align-items:stretch; border-radius:var(--rad-s); overflow:hidden; background:var(--page); }
.dt-issue-bar span { display:block; min-width:5px; border-radius:var(--rad-s); }
.ota-ui .dt-issue-counts { margin:0 0 10px; gap:6px; }
.ota-ui .dt-issue-counts .chip { font-size:.7rem; padding:1px 7px; }
.dt-issue-quotes { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:10px; margin:12px 0; }
.dt-issue-quotes blockquote { margin:0; padding:10px 12px; border:0; border-radius:var(--rad); background:var(--page); }
.dt-issue-quotes blockquote p { margin:0; font-size:.78rem; line-height:1.7; }
.dt-quote-meta { display:flex; align-items:center; gap:6px; margin:0 0 5px; color:var(--sec); font-size:.68rem; }
.dt-quote-chip { display:inline-block; padding:1px 7px; border-radius:99px; color:#fff; font-size:.62rem; line-height:1.45; }
.dt-issue-link { display:inline-block; margin-top:10px; color:var(--muted); font-size:.74rem; }
.dt-jhead { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin:0 0 10px; }
/* 後読みの ui.css の見出しルール（margin-top 30px・下線）をカード内で確実に打ち消す */
.ota-ui.page-detail .dt-jhead h3 { margin:0; padding:0; border:0; font-size:1.1rem; letter-spacing:-.01em; line-height:1.5; }
.dt-jaxis { display:flex; justify-content:space-between; color:var(--muted); font-size:.68rem; margin:0 0 6px; }
.dt-jslots { display:grid; margin:6px 0 0; border-top:1px solid var(--grid); }
.dt-jslots > div { display:grid; grid-template-columns:8.8rem 1fr; gap:14px; padding:10px 0; border-bottom:1px solid var(--grid); }
.dt-jslots dt { color:var(--muted); font-size:.72rem; font-weight:700; letter-spacing:.03em; padding-top:2px; }
.dt-jslots dd { margin:0; font-size:.8rem; color:var(--sec); line-height:1.8; }
.dt-jfold { border:1px solid var(--grid); border-radius:var(--rad); background:var(--page); margin:12px 0 0; }
.dt-jfold summary { display:flex; align-items:center; cursor:pointer; padding:8px 13px; font-size:.74rem; font-weight:600; color:var(--sec); list-style:none; }
.dt-jfold summary::-webkit-details-marker { display:none; }
.dt-jfold summary::after { content:"＋"; margin-left:auto; color:var(--muted); }
.dt-jfold[open] summary::after { content:"−"; }
.dt-jfold .dt-issue-quotes { margin:0; padding:2px 13px 6px; }
.dt-jfold .dt-issue-link { display:inline-block; margin:0 13px 12px; }
@media (max-width:640px) { .dt-jslots > div { grid-template-columns:1fr; gap:3px; } .dt-issue-quotes { grid-template-columns:1fr; } }

/* 1節: ヒーロー画像（市サイトからの引用掲載。otaco と同じ扱い） */
.dt-hero-figure { width:100%; max-width:none; margin:20px auto 24px; }
.dt-hero-figure img { display:block; width:100%; height:auto; border:1px solid var(--grid); border-radius:var(--rad); background:#fff; }
.dt-hero-figure figcaption { margin-top:7px; color:var(--muted); font-size:.72rem; line-height:1.6; }
.dt-hero-figure a { color:inherit; }
.dt-hero-figure a:hover { color:var(--accent); }

/* 1節: ケーススタディの導入。冒頭の一文は普通の段落（見出しにしない・区切り線も引かない）。 */
.dt-intro-grid { margin:18px 0 0; }
.dt-intro-card { min-width:0; padding:2px 0 0; }
.dt-intro-card p { margin:12px 0 0; font-size:.88rem; line-height:1.85; }
.dt-signal-list { display:grid; grid-template-columns:repeat(3,1fr); gap:0 18px; list-style:none; margin:18px 0 0; padding:0; }
.dt-signal-list li { margin:0; padding:0; color:var(--sec); font-size:.74rem; line-height:1.55; }
.dt-signal-list strong { display:block; margin-bottom:3px; color:var(--ink); font-size:.8rem; }

/* 1節: メトリクスとチャートカード */
.dt-metrics { margin:46px 0 0; }
.dt-section-heading { margin:0 0 12px; }
.dt-section-heading h3 { margin:0 0 4px; padding:0; border:0; font-size:1.04rem; letter-spacing:-.01em; }
.dt-section-heading p { margin:0; color:var(--muted); font-size:.8rem; line-height:1.72; text-wrap:pretty; }
.dt-chart-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0; }
.dt-chart-card { background:var(--surface); border:1px solid var(--grid); border-radius:var(--rad); padding:14px 16px; }
.dt-chart-card.wide { grid-column:1/-1; }
/* カードの頭は1行: 左にタイトルか凡例、右に単位。 */
.dt-chart-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px 14px; flex-wrap:wrap; margin-bottom:8px; }
.dt-chart-unit { color:var(--muted); font:600 .66rem/1.3 ui-monospace,"SF Mono",Menlo,monospace; letter-spacing:.04em; }
.dt-chart-heading .dt-chart-unit { margin-left:auto; }
.dt-chart-card > h3 { margin-top:0; }
/* カード内タイトルは後読みの ui.css の見出し線・余白を確実に打ち消す */
.ota-ui.page-detail .dt-chart-card h3 { margin:0 0 3px; padding:0; border:0; font-size:.94rem; }
.ota-ui.page-detail .dt-chart-heading h3 { margin:0; }
.dt-chart-card p { color:var(--sec); font-size:.76rem; margin:3px 0 10px; }
.dt-caveat { margin:10px 0 0; padding:9px 12px; border-left:3px solid var(--ink); background:var(--page); color:var(--sec); font-size:.76rem; line-height:1.7; }
.dt-source-note { color:var(--muted); font-size:.74rem; margin:8px 0 0; }
.dt-facts { display:grid; grid-template-columns:repeat(3,1fr); gap:0 18px; margin:14px 0 4px; }
.dt-facts > div { min-width:0; padding:7px 0; }
.dt-facts dt { color:var(--muted); font-size:.7rem; font-weight:700; letter-spacing:.03em; }
.dt-facts dd { margin:2px 0 0; font-size:.84rem; font-weight:600; }
.dt-facts dd small { color:var(--muted); font-weight:400; font-size:.72rem; }

/* 1節: 静的チャートの部品（数値表記は data.js を正本に check が照合する） */
.oc-svg { display:block; width:100%; height:auto; }
.oc-svg text { font-family:inherit; }
.oc-ax { font-size:10.5px; fill:var(--muted); }
.oc-xl { font-size:11px; fill:var(--sec); }
.oc-vl { font-size:11px; font-weight:700; fill:var(--sec); }
.oc-donut-grid { display:grid; grid-template-columns:200px 1fr; gap:26px; align-items:center; }
.oc-donut { max-width:200px; }
.oc-donut-n { font-size:26px; font-weight:700; fill:var(--ink); }
.oc-donut-u { font-size:10px; fill:var(--muted); }
.oc-donut-rows { display:grid; gap:8px; min-width:0; }
.oc-donut-row { display:flex; align-items:center; gap:8px; font-size:.8rem; }
.oc-donut-row i { width:10px; height:10px; border-radius:3px; flex:none; }
.oc-donut-row .oc-donut-name { font-weight:600; }
.oc-donut-row .oc-donut-val { margin-left:auto; color:var(--sec); font-variant-numeric:tabular-nums; white-space:nowrap; }
.oc-translate { display:grid; grid-template-columns:1.15fr 1fr; gap:26px; align-items:center; }
.oc-huge { font-size:1.66rem; font-weight:700; letter-spacing:-.02em; line-height:1.35; }
.oc-huge small { font-size:.95rem; font-weight:600; }
.oc-huge-sub { margin:8px 0 0; color:var(--sec); font-size:.8rem; line-height:1.8; }
.oc-waffle-grid { display:grid; grid-template-columns:auto 1fr; gap:28px; align-items:center; }
.oc-waffle { display:grid; grid-template-columns:repeat(10,16px); grid-auto-rows:16px; gap:3px; }
.oc-waffle i { border-radius:3px; background:var(--grid); }
.oc-waffle i.on { background:var(--e5); }
.oc-waffle-caption .oc-pct { font-size:1.9rem; font-weight:700; letter-spacing:-.02em; }
.oc-waffle-caption p { margin:6px 0 0; color:var(--sec); font-size:.8rem; }

/* 1節: 沿革タイムライン（線・黒丸・年度行は同じ中心値だけから配置する） */
.dt-timeline { --timeline-year-center:.6475rem; list-style:none; margin:14px 0 0; padding:0; }
.dt-timeline li { position:relative; margin:0; padding:0 0 20px 26px; }
.dt-timeline li:last-child { padding-bottom:0; }
.dt-timeline li::before { content:""; position:absolute; left:5px; top:var(--timeline-year-center); bottom:calc(0px - var(--timeline-year-center)); width:2px; background:var(--grid); }
.dt-timeline li:last-child::before { display:none; }
.dt-timeline li::after { content:""; position:absolute; left:0; top:calc(var(--timeline-year-center) - 6px); width:12px; height:12px; border-radius:999px; background:var(--ink); }
.dt-timeline .yr { color:var(--muted); font-size:.7rem; font-weight:700; line-height:1.85; letter-spacing:.04em; }
.dt-timeline .tt { margin:1px 0 0; font-size:.88rem; font-weight:700; }
.dt-timeline .tx { margin:2px 0 0; color:var(--sec); font-size:.8rem; line-height:1.75; max-width:46em; }

/* 1節: よくある質問 */
.dt-faq { display:grid; gap:10px; margin:14px 0 0; }
.dt-faq details { margin:0; }
.dt-faq details > p { color:var(--sec); font-size:.8rem; margin:0 0 13px; max-width:48em; }
.dt-details { margin:12px 0; padding:0 15px; }
.dt-details summary { display:flex; align-items:center; gap:12px; padding:13px 0; color:var(--ink); cursor:pointer; font-size:.82rem; font-weight:600; list-style:none; }
.dt-details summary::-webkit-details-marker { display:none; }
.dt-details summary::after { content:"＋"; margin-left:auto; color:var(--muted); font-size:.9rem; font-weight:400; line-height:1; flex:none; }
.dt-details[open] summary::after { content:"−"; }
.dt-details summary:hover::after { color:var(--ink); }

/* 3節: 関連する行政事業の記録（横送りカルーセル） */
.dt-related { margin:20px 0 28px; }
.dt-related-controls { display:flex; justify-content:flex-end; gap:6px; margin:0 0 8px; }
.dt-related-control { width:32px; height:32px; padding:0; font-size:1rem; line-height:1; }
.dt-related-viewport { position:relative; margin:0 -4px; }
.dt-related-track { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 28px) / 2.5); gap:14px; list-style:none; margin:0; padding:4px 4px 16px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory; scrollbar-color:var(--line) transparent; }
.dt-related-slide { min-width:0; scroll-snap-align:start; }
.dt-related-card { display:flex; min-height:100%; flex-direction:column; overflow:hidden; padding:0; background:var(--surface); border:1px solid var(--grid); border-radius:var(--rad); }
.dt-related-card:hover { border-color:var(--line); }
.dt-related-card-body { display:flex; flex:1; flex-direction:column; padding:16px 18px 0; }
.dt-related-card-header { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin:0; }
.dt-card-origin { display:inline-flex; align-items:center; width:max-content; padding:3px 9px; border:1px solid var(--grid); border-radius:var(--rad-s); background:var(--page); color:var(--sec); font-size:.67rem; line-height:1.3; white-space:nowrap; }
.dt-related-card h4 { margin:0; font-size:1.08rem; line-height:1.45; letter-spacing:-.01em; }
.dt-related-card-body > p { flex:1; margin:8px 0 0; color:var(--sec); font-size:.8rem; line-height:1.8; }
.dt-card-action-footer { margin-top:16px; padding:16px 18px 18px; border-top:1px solid var(--grid); background:var(--page); }
.sh-button { display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--grid); border-radius:var(--rad); background:var(--page); color:var(--ink); font-weight:500; text-decoration:none; transition:background .15s ease,border-color .15s ease; cursor:pointer; }
.sh-button:hover, .sh-button:focus-visible { border-color:var(--accent); background:var(--page); }
.sh-button.dt-card-action-link { gap:7px; width:100%; min-height:42px; padding:9px 12px; border-color:var(--ink); background:var(--ink); color:#fff; font-size:.76rem; line-height:1.45; text-align:center; }
.sh-button.dt-card-action-link:hover, .sh-button.dt-card-action-link:focus-visible { border-color:var(--ink); background:#2a2a28; color:#fff; }
/* 後読みの ui.css は .otaco-card-action-link というクラス名でだけ黒ボタンを定義する（0,4,0）。
   dt 側にも同じ詳細度で同値を書き、otaco と同じ黒ボタンにする。 */
.ota-ui.page-detail .sh-button.dt-card-action-link { border-color:var(--ink); background:var(--ink); color:#fff; }
.ota-ui.page-detail .sh-button.dt-card-action-link:hover,
.ota-ui.page-detail .sh-button.dt-card-action-link:focus-visible { border-color:var(--ink); background:#2a2a28; color:#fff; }
.dt-card-action-link svg { width:14px; height:14px; flex:0 0 14px; }
.dt-related-note { margin:10px 0 0; color:var(--muted); font-size:.74rem; line-height:1.7; }

/* ページ末尾の注・出典・元データ（hr 直後の一つのセクションに統合。中身は ul） */
.dt-appendix-links { margin:16px 0 0; color:var(--muted); font-size:.74rem; line-height:1.8; }
.dt-appendix-links ul { margin:8px 0 0; padding-left:1.25em; }
.dt-appendix-links li { margin:8px 0; }
.ota-ui .dt-appendix-links .dt-fn-n { font-size:inherit; }
.dt-appendix-links summary { display:inline-block; cursor:pointer; text-decoration:underline; text-underline-offset:2px; list-style:none; }
.dt-appendix-links summary::-webkit-details-marker { display:none; }
.dt-appendix-links p { margin:8px 0 0; }
.dt-appendix-links a { color:var(--muted); }
.dt-appendix-links .tw { margin:10px 0; color:var(--sec); }
.dt-sheet-table td:not(:first-child), .dt-sheet-table th:not(:first-child) { text-align:right; white-space:nowrap; }
.dt-sheet-table td small { color:var(--muted); font-size:.68rem; }

@media (max-width:680px) {
  .dt-chart-grid { grid-template-columns:1fr; }
  .dt-chart-card.wide { grid-column:auto; }
  .dt-facts { grid-template-columns:1fr 1fr; }
  .oc-donut-grid, .oc-translate, .oc-waffle-grid { grid-template-columns:1fr; }
  .oc-waffle-grid { justify-items:start; }
  .dt-signal-list { grid-template-columns:1fr 1fr 1fr; }
  .dt-related-track { grid-auto-columns:minmax(82%,1fr); }
}
@media (max-width:460px) {
  .dt-signal-list { grid-template-columns:1fr; gap:10px; }
}

/* 2節冒頭のAI要約（スパークルマーク + 1段落のメッセージだけ） */
.dt-review { margin:16px 0 24px; padding:18px 20px; }
.dt-review-label { margin:0 0 10px; color:var(--sec); display:flex; align-items:center; gap:7px; }
.dt-ai-mark { width:14px; height:14px; flex:none; color:var(--muted); }
.dt-review p { font-size:.85rem; margin:0 0 12px; line-height:1.95; }
.dt-review p:last-child { margin-bottom:0; }

/* shadcn/ui compatibility layer（親と同じ契約） */
:root {
  --sh-background:var(--page); --sh-foreground:var(--ink); --sh-card:var(--surface); --sh-card-foreground:var(--ink);
  --sh-muted:var(--page); --sh-muted-foreground:var(--muted); --sh-primary:var(--accent); --sh-primary-foreground:#fff;
  --sh-border:var(--grid); --sh-input:var(--line); --sh-ring:var(--accent); --sh-radius:var(--rad);
}
.sh-card, .dt-issue-card {
  background:var(--sh-card); color:var(--sh-card-foreground); border:1px solid var(--sh-border); border-radius:var(--rad);
}
.dt-issue-card:hover { border-color:var(--line); }
.dt-verdict-chip, .sh-badge {
  display:inline-flex; align-items:center; width:max-content; border:1px solid var(--sh-border); border-radius:var(--rad-s); background:var(--sh-muted);
  color:var(--sh-muted-foreground); font-size:.68rem; font-weight:500; line-height:1.3;
}
.sh-badge { padding:3px 8px; }
.dt-flow-reading { border-color:var(--sh-border); background:var(--sh-muted); border-left-color:var(--ink); }

.ota-ui .dt-fn-back { color:var(--sec); text-decoration:none; border-bottom:1px dotted var(--line); }
.ota-ui .dt-scope-note { margin:10px 0 0; padding:7px 11px; border-left:3px solid var(--ink); background:var(--page); color:var(--sec); font-size:.76rem; line-height:1.8; }
.ota-ui .dt-scope-note[hidden] { display:none; }
.ota-ui .dt-chart-note { margin:6px 0 0; color:var(--muted); font-size:.72rem; line-height:1.7; }
.ota-ui .dt-jroll { margin:2px 0 0; color:var(--sec); font-size:.74rem; line-height:1.6; }
.ota-ui .dt-fn-n { margin-right:6px; color:var(--muted); font-size:.7rem; }

@media (max-width:680px) {
  .dt-verdict-visual { grid-template-columns:1fr; }
  .dt-verdict-summary { padding-right:0; border-right:0; padding-bottom:14px; border-bottom:1px solid var(--grid); margin-bottom:14px; }
  .dt-verdict-breakdown { padding-left:0; }
  .dt-verdict-cell { width:22px; height:22px; border-radius:var(--rad); }
}

@media print {
  #bar, .foot-nav, .survey-embed, .dt-related-controls { display:none; }
  .wrap { padding:0; max-width:none; }
  body { font-size:10.5pt; line-height:1.7; background:#fff; }
  h2, h3 { break-after:avoid; }
  table, blockquote, .dt-issue-card, .dt-verdict-card, .dt-chart-card, .dt-related-card { break-inside:avoid; box-shadow:none; }
  .dt-related-track { grid-auto-flow:row; grid-template-columns:1fr 1fr; overflow:visible; padding:0; }
  .dt-related-slide { break-inside:avoid; }
  .dt-related-card { background:#fff; }
  a { color:inherit; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { scroll-behavior:auto !important; transition-duration:0.01ms !important; animation-duration:0.01ms !important; animation-iteration-count:1 !important; }
}
