/* 日本と世界のMOUマップ — 共通スタイル
   白基調・ターコイズブルー（#007f93）の操作ボタン・大きめの文字。サイトの色はここの変数だけで調整できます。
   --brand 系はサイトの顔の色（ヘッダー・見出し・ボタン・選択中の項目）。
   有効性・事業の実施状況・地図の件数などの「意味のある色」は、ここの変数を使わずに個別に決めています（テーマの色を変えても意味が変わらないように）。 */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #17262b;
  --muted: #4f646a;
  --line: #d4e2e5;
  --soft: #f1f7f8;
  --brand: #007f93;
  --brand-dark: #005f6e;
  --brand-soft: #e3f3f6;
  --brand-line: #9bd0d9;
  --brand-tint: #f3fafb;
  --warn: #8a4b00;
  --warn-soft: #fff5e0;
  --info-soft: #eef4fb;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --focus: #f0a500;
  --radius: 12px;
  --font: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.8;
}
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.2em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.nowrap { white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-mark { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 22px; display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-title { font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.brand-sub { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.header-search { display: flex; gap: 6px; flex: 0 1 380px; }
.header-search input { flex: 1; min-width: 0; }
.site-nav { border-top: 1px solid var(--line); background: var(--soft); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.nav-inner a { flex: none; padding: 10px 12px; text-decoration: none; color: var(--text); font-weight: 700; font-size: .95rem; border-bottom: 3px solid transparent; }
.nav-inner a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand-dark); }

/* ---------- フォーム・ボタン ---------- */
input[type="search"], input[type="text"], select {
  font: inherit; font-size: 1rem; padding: 10px 12px; border: 1.5px solid #a8c2c7; border-radius: 10px; background: #fff; color: var(--text);
}
select { padding-right: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.3;
  background: var(--brand); color: #fff; border: 2px solid var(--brand);
  border-radius: 12px; padding: 10px 18px; cursor: pointer; text-decoration: none; min-height: 48px;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--brand-dark); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-small { padding: 7px 14px; font-size: .95rem; min-height: 44px; }
.btn[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.linklike { background: none; border: none; padding: 0; font: inherit; color: var(--brand-dark); text-decoration: underline; cursor: pointer; }

/* 切替ボタン（地図の表示モード等） */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  font: inherit; font-weight: 700; font-size: .95rem; background: #fff; color: var(--brand-dark);
  border: 2px solid var(--brand-line); border-radius: 12px; padding: 7px 14px; cursor: pointer; min-height: 44px;
}
.seg button:hover { border-color: var(--brand); }

/* 条件チップ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-dark); border-radius: 999px; padding: 4px 6px 4px 12px; font-weight: 700; font-size: .92rem; }
.chip button { border: none; background: transparent; color: var(--brand-dark); font-size: 1.2rem; line-height: 1; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.chip button:hover { background: #fff; }
.chip-plain { padding: 4px 12px; text-decoration: none; }

/* ---------- 共通部品 ---------- */
.loading { padding: 48px 0; color: var(--muted); }
.page-head { padding: 22px 0 6px; }
.lead { font-size: 1.05rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.card + .card { margin-top: 12px; }
.panel { background: var(--soft); border-radius: var(--radius); padding: 16px 18px; }
.note { background: var(--warn-soft); border-left: 5px solid #e0a43a; border-radius: 8px; padding: 12px 16px; margin: 12px 0; font-size: .95rem; }
.info { background: var(--info-soft); border-left: 5px solid #6b93c4; border-radius: 8px; padding: 12px 16px; margin: 12px 0; font-size: .95rem; }
.error { background: var(--danger-soft); border-left: 5px solid var(--danger); border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.section { margin: 28px 0; }
.term { border-bottom: 1.5px dotted var(--muted); cursor: help; }

/* 数字のタイル */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #fff; }
.stat .label { font-size: .88rem; color: var(--muted); font-weight: 700; }
.stat .value { font-size: 2rem; font-weight: 700; line-height: 1.2; }
.stat .value small { font-size: 1rem; margin-left: 2px; }
.stat .sub { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* バッジ */
.badge { display: inline-block; font-size: .85rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid transparent; line-height: 1.6; white-space: nowrap; }
.b-field { background: #eef6f1; color: #24543a; border-color: #cfe5d8; }
.b-status-signed { background: #eef2ff; color: #2c3e8f; }
.b-status-in_progress { background: #e3f5ea; color: #145c36; }
.b-status-completed { background: #e8f1fa; color: #1e4f7f; }
.b-status-expired { background: #f0f0f0; color: #4a4a4a; }
.b-status-unknown, .b-status-planned { background: #fff3db; color: #7a4600; }
.b-news { background: #fdecea; color: #8e1b12; }
.b-doc { background: #f3f3f3; color: #333; border-color: #ddd; }
.b-level { background: #fff; color: var(--muted); border-color: var(--line); }


/* ---------- 地図 ---------- */
.map-layout3 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "map controls" "map extras"; gap: 0 20px; align-items: start; }
.map-layout3 .map-main { grid-area: map; }
.map-layout3 .map-controls { grid-area: controls; }
.map-layout3 .map-extras { grid-area: extras; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.map-box { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-tint); overflow: hidden; }
.map-box svg { display: block; width: 100%; height: auto; touch-action: pan-y; user-select: none; }
.map-box.zoomed svg { touch-action: none; cursor: grab; }
.map-box .pref { stroke: #7f8c85; stroke-width: .6; cursor: pointer; vector-effect: non-scaling-stroke; }
.map-box .pref:hover, .map-box .pref.hover { stroke: #1c2621; stroke-width: 1.6; }
.map-box .pref.selected { stroke: #000; stroke-width: 3.2; filter: drop-shadow(0 0 3px rgba(240,165,0,.9)); }
.map-box .pref:focus { outline: none; stroke: var(--focus); stroke-width: 3; }
.map-box .inset-frame { fill: none; stroke: #9aa8a0; stroke-dasharray: 4 3; }
.map-box .inset-label { font-size: 11px; fill: var(--muted); }
.map-label { font-size: 11px; font-weight: 700; fill: #1c2621; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; text-anchor: middle; dominant-baseline: middle; }
.map-label.on-dark { fill: #fff; stroke: rgba(0,0,0,.55); }
.map-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.map-zoom button { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--brand-line); background: #fff; color: var(--brand-dark); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.map-zoom button.reset { font-size: .72rem; }
.map-tip { position: absolute; pointer-events: none; background: #1c2621; color: #fff; padding: 8px 11px; border-radius: 8px; font-size: .9rem; line-height: 1.5; max-width: 260px; z-index: 5; display: none; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.map-tip b { font-size: 1rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .95rem; margin: 10px 0; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.legend .sw { display: inline-block; width: 28px; height: 20px; border-radius: 4px; border: 1px solid #9aa8a0; vertical-align: -5px; margin-right: 6px; }
.legend-title { font-weight: 700; width: 100%; font-size: 1rem; }
.map-caption { font-size: .85rem; color: var(--muted); margin: 6px 2px 0; }
.control-group { margin-bottom: 16px; }
.control-group > .label { font-weight: 700; margin-bottom: 6px; display: block; }
.national-box { border: 2px solid var(--brand-line); border-radius: var(--radius); padding: 12px 14px; background: #fff; }
.national-box .n { font-size: 1.7rem; font-weight: 700; }

/* 操作結果 */
.result-bar { border: 2px solid var(--brand); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0 12px; background: var(--brand-soft); }
.result-bar .now { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.result-summary { font-size: 1.05rem; margin: 10px 0; }

/* MOUカード */
.mou-list { display: grid; gap: 12px; }
.mou-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.mou-card .who { font-weight: 700; color: var(--muted); font-size: .92rem; }
.mou-card h3, .mou-card h4 { font-size: 1.07rem; margin: 4px 0 6px; }
.mou-card h3 a, .mou-card h4 a { color: var(--text); text-decoration: none; }
.mou-card h3 a:hover, .mou-card h4 a:hover { text-decoration: underline; color: var(--brand-dark); }
.mou-card .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; }
.mou-card .purpose { margin: 8px 0 0; font-size: .97rem; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; margin: 10px 0; background: #fff; }
details > summary { cursor: pointer; font-weight: 700; padding: 11px 0; list-style-position: inside; }
details[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
details > *:last-child { margin-bottom: 12px; }

/* 表 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; }
th, td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); font-weight: 700; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td, tr.is-selected td { background: #edf7f9; }
.kv th { width: 30%; white-space: normal; }

/* 影響分析の表（6分野×3段階） */
.impact-grid { display: grid; grid-template-columns: 170px repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.impact-grid > div { padding: 10px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: .93rem; }
.impact-grid .h { background: var(--soft); font-weight: 700; }
.impact-grid .cat { font-weight: 700; background: var(--brand-tint); }
.impact-grid .empty { color: #8a968f; font-size: .85rem; }
.impact-grid ul { margin: 0; padding-left: 1.1em; }
.impact-grid li + li { margin-top: 6px; }
.stage-tag { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 6px; padding: 0 6px; margin-right: 4px; }
.st-agreed { background: #eef2ff; color: #2c3e8f; }
.st-implemented { background: #e3f5ea; color: #145c36; }
.st-observed { background: #fff0db; color: #7a4600; }
.causal { display: inline-block; font-size: .85rem; color: #7a4600; font-weight: 700; }

/* グラフ */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .bar { fill: var(--brand); }
.chart .bar:hover, .chart .bar.active { fill: var(--brand-dark); }
.chart .axis text { font-size: 12px; fill: var(--muted); font-family: var(--font); }
.chart .axis path, .chart .axis line { stroke: #c9d3cd; }
.chart .vlabel { font-size: 12px; fill: var(--text); font-weight: 700; font-family: var(--font); }
.chart .clabel { font-size: 13px; fill: var(--text); font-family: var(--font); }
.chart-caption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.chart-tip { position: absolute; pointer-events: none; background: #1c2621; color: #fff; padding: 6px 10px; border-radius: 7px; font-size: .88rem; display: none; z-index: 5; white-space: nowrap; }

/* 調査状況の県タイル */
.pref-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.pref-tile { border-radius: 8px; padding: 6px 8px; font-size: .85rem; font-weight: 700; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.pref-tile small { display: block; font-weight: 400; font-size: .82rem; color: inherit; }
.ps-found { background: #d5ecdf; border-color: #9fceb3; }
.ps-none_confirmed { background: #eceeed; }
.ps-not_found { background: repeating-linear-gradient(135deg, #fff 0 5px, #e9ecea 5px 7px); }
.ps-not_surveyed { background: #fff; border-style: dashed; color: var(--muted); }
.ps-list_checked { background: #d5ecdf; border-color: #9fceb3; }
.ps-partial { background: #fff3db; border-color: #f0cf8f; }

/* 国の検索候補 */
.suggest { position: relative; max-width: 520px; }
.suggest input { width: 100%; }
.suggest ul { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.08); max-height: 320px; overflow: auto; }
.suggest li button { width: 100%; text-align: left; font: inherit; border: none; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.suggest li button:hover, .suggest li button.active { background: var(--brand-soft); }
.country-list { display: flex; flex-wrap: wrap; gap: 8px; }
.country-list a { text-decoration: none; }
.country-btn { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; border: 1.5px solid var(--brand-line); border-radius: 12px; padding: 6px 14px; color: var(--brand-dark); font-weight: 700; background: #fff; }
.country-btn:hover { background: var(--brand-soft); }
.country-btn .c { font-size: .85rem; color: var(--muted); font-weight: 400; }

.source-list { padding-left: 1.2em; }
.source-list li { margin-bottom: 8px; word-break: break-all; }
.source-list .src-title { word-break: normal; }

/* フッター */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--soft); padding: 22px 0 32px; font-size: .88rem; color: var(--muted); }
.site-footer p { margin: 0 0 .6em; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1c2621; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; }

/* ---------- スマートフォン ---------- */
@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-layout3 { grid-template-columns: 1fr; grid-template-areas: "controls" "map" "extras"; }
  .map-layout3 .map-extras { margin-top: 12px; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 1.5rem; }
  .site-header { position: static; }
  .header-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .header-search { flex-basis: auto; }
  .brand-sub { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-grid .h:not(:first-child) { display: none; }
  .impact-grid .h:first-child { display: none; }
  .impact-grid .cat { background: var(--brand-soft); }
  .impact-grid .cell::before { content: attr(data-stage); display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
  .kv th { width: 38%; }
  .stat .value { font-size: 1.7rem; }
}
@media print {
  .site-header, .site-nav, .map-zoom, .btn, .seg { display: none !important; }
}

/* =====================================================================
   2026年10月の改修で追加：入口・まず3分でわかる・有効性・文書の種類・課題
   ===================================================================== */
.ill { width: 100%; height: 100%; display: block; }
.h-sm { font-size: 1.1rem; margin: 18px 0 8px; }
.tight { margin: 0; padding-left: 1.1em; }
.tight li + li { margin-top: 4px; }

/* トップ：題名 */
.hero2 { padding: 26px 0 6px; display: grid; gap: 6px; }
.hero2 h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.5rem); margin: 0; line-height: 1.3; }
.catch { margin: 0; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); font-weight: 700; color: var(--brand-dark); line-height: 1.6; }
.catch span { display: inline-block; }
.hero-desc { margin: 0; font-size: 1.05rem; line-height: 1.85; max-width: 44em; }
.asof { margin: 0; font-size: .9rem; color: var(--muted); }

/* トップ：2つの入口 */
.gates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; margin: 16px 0 8px; }
.gate-k { margin: 0; font-size: .95rem; font-weight: 700; }
.gate-a { display: grid; justify-items: start; align-content: center; gap: 6px; padding: 16px 20px; border-radius: 20px; background: var(--brand); color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 95, 110, .22); }
.gate-a:hover, .gate-a:focus-visible { background: var(--brand-dark); color: #fff; }
.gate-a .gate-k { padding: 1px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.gate-illu { width: 92px; height: 72px; padding: 8px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); justify-self: center; }
.gate-a b { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.25; }
.gate-d { font-size: 1rem; line-height: 1.6; }
.gate-go { font-size: 1rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; background: #fff; color: var(--brand-dark); }
.gate-b { display: grid; gap: 8px; padding: 14px; border-radius: 20px; border: 2px solid var(--brand-line); background: var(--soft); }
.gate-b .gate-k { color: var(--brand-dark); }
.doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.door { position: relative; display: grid; gap: 6px; align-content: start; height: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--text); text-decoration: none; }
.door:hover, .door:focus-visible { border-color: var(--brand); box-shadow: 0 4px 14px rgba(0, 70, 85, .12); color: var(--text); }
.door-n { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; }
.door .illu { display: block; height: 64px; padding: 6px 30px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); }
.door b { font-size: 1.05rem; line-height: 1.4; }
.door-d { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* 区切りの帯 */
.home-sec { margin: 34px 0; }
.band { display: grid; gap: 4px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 3px solid var(--brand); }
.band-k { justify-self: start; padding: 2px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .9rem; }
.band h2 { margin: 0; font-size: clamp(1.3rem, 1.15rem + .7vw, 1.7rem); }

/* まず3分でわかる */
.s3-toc { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.s3-toc a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--brand-line); border-radius: 12px; background: #fff; color: var(--brand-dark); font-weight: 700; text-decoration: none; font-size: .95rem; }
.s3-toc a span { font-size: .8rem; color: var(--muted); }
.s3-toc a:hover { background: var(--brand-soft); }
.s3-list { display: grid; padding: 4px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.s3 { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "h fig" "lead fig" "desc fig" "note fig"; grid-template-rows: auto auto auto 1fr; column-gap: 32px; row-gap: 10px; padding: 26px 0 26px 58px; }
.s3 + .s3 { border-top: 1px solid var(--line); }
.s3-no { position: absolute; left: 0; top: 26px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.3rem; }
.s3 h3 { grid-area: h; margin: 0; font-size: clamp(1.35rem, 1.15rem + .9vw, 1.75rem); line-height: 1.4; }
.s3-lead { grid-area: lead; margin: 0; font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); font-weight: 700; line-height: 1.65; }
.s3-fig { grid-area: fig; align-self: start; min-width: 0; margin: 0; }
.s3-fig figure { margin: 0; }
.s3-desc { grid-area: desc; font-size: 1rem; line-height: 1.8; }
.s3-note { grid-area: note; margin: 0; font-size: .875rem; line-height: 1.7; color: var(--muted); }
.s3-end { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--soft); font-weight: 700; }

/* STEP1：MOUの図 */
.fig-mou { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 18px; border-radius: 16px; background: var(--soft); }
.fm-side { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 8px; border-radius: 14px; background: #fff; border: 2px solid var(--brand-line); }
.fm-side b { font-size: 1.05rem; line-height: 1.4; }
.fm-side small { font-size: .85rem; color: var(--muted); }
.fm-ic { width: 54px; height: 54px; color: var(--brand-dark); }
.fm-mid { display: flex; align-items: center; gap: 6px; }
.fm-arrow { font-size: 1.7rem; font-weight: 700; color: var(--brand); }
.fm-doc { display: grid; justify-items: center; gap: 2px; width: 104px; padding: 12px 8px; border-radius: 12px; background: #fff7e3; border: 2px solid #e6c46e; color: #7a5300; text-align: center; }
.fm-doc .ill { width: 44px; height: 44px; }
.fm-doc b { font-size: 1rem; line-height: 1.3; color: var(--text); }
.fm-cap { grid-column: 1 / -1; margin-top: 4px; font-size: .92rem; color: var(--muted); text-align: center; }

/* STEP2：だれとだれ */
.fig-who { display: grid; gap: 12px; }
.who-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.who-row { display: grid; grid-template-columns: minmax(0, 9fr) 28px minmax(0, 14fr); align-items: center; }
.who-jp { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 1rem; }
.who-jp .ill { width: 30px; height: 30px; flex: none; }
.who-jp.is-nat { background: var(--brand); color: #fff; }
.who-jp.is-pref { background: var(--brand-soft); color: var(--brand-dark); border: 1.5px solid var(--brand-line); }
.who-line { height: 3px; background: var(--brand-line); position: relative; }
.who-line::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left-color: var(--brand-line); }
.who-pt { display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; line-height: 1.45; }
.who-pt small { font-size: .82rem; color: var(--muted); }
.who-pt b { font-size: .98rem; }

/* STEP3：分野のカード */
.field-cards { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field-cards li { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 12px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
.fc-ic { width: 46px; height: 46px; color: var(--brand-dark); }
.field-cards b { font-size: 1.05rem; }
.fc-n { font-size: 1.3rem; font-weight: 700; color: var(--brand-dark); }
.fc-n small { font-size: .8rem; margin-left: 1px; }

/* STEP4：3段階 */
.fig-tiers { display: grid; gap: 4px; }
.tier { padding: 12px 14px; border-radius: 14px; border: 2px solid var(--c); background: #fff; }
.tier-1 { --c: #2b6cb0; }
.tier-2 { --c: #1d7347; }
.tier-3 { --c: #b7791f; }
.tier-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; font-size: 1.08rem; color: var(--c); }
.tier-h span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--c); color: #fff; font-size: .95rem; }
.tier-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tier-chips li { display: grid; gap: 1px; padding: 7px 10px; border-radius: 10px; background: var(--soft); line-height: 1.4; font-size: .95rem; }
.tier-chips li > a { display: grid; gap: 1px; margin: -7px -10px; padding: 7px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.tier-chips li > a:hover { background: var(--brand-soft); }
.tier-chips li > a b { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.tier-chips small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.tier-arrow { margin: 0; text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--muted); line-height: 1.2; }
.tier-p { margin: 0; font-size: .95rem; }

/* STEP5：6つの影響 */
.flow3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.flow3 > li { position: relative; display: grid; gap: 4px; align-content: start; padding: 10px 12px; border-radius: 12px; border-top: 5px solid var(--c); background: var(--bgc); }
.flow3 > li:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 700; color: var(--muted); }
.flow3 .st-agreed { --c: #2b6cb0; --bgc: #eef4fb; }
.flow3 .st-implemented { --c: #1d7347; --bgc: #e8f5ec; }
.flow3 .st-observed { --c: #b7791f; --bgc: #fdf3e1; }
.flow-k { font-weight: 700; font-size: 1rem; }
.flow3 p { margin: 0; font-size: .92rem; line-height: 1.6; }
.flow-ex-t { margin: 0 0 6px; font-weight: 700; }
.flow3-ex { margin-bottom: 12px; }
.flow-n { font-size: 1.5rem; }
.flow-n small { font-size: .85rem; font-weight: 400; margin-left: 4px; }

/* 詳しく調べる（トップ） */
.explore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ex-card { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.ex-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.15rem; }
.ex-map { grid-column: 1 / -1; }
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--brand-line); color: var(--brand-dark); font-weight: 700; text-decoration: none; background: #fff; }
.chip-link b { font-size: .95rem; color: var(--text); }
.chip-link:hover { background: var(--brand-soft); }
.more-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.more-link { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); text-decoration: none; color: var(--text); background: #fff; }
.more-link b { color: var(--brand-dark); }
.more-link span { font-size: .9rem; color: var(--muted); }
.more-link:hover { border-color: var(--brand); }

/* 制度の課題を考える */
.qa { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.qa details { margin: 0; border-radius: 14px; border: 1.5px solid var(--line); }
.qa summary { display: flex; align-items: center; gap: 12px; padding: 12px 0; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "開く ＋"; margin-left: auto; font-size: .9rem; color: var(--brand-dark); white-space: nowrap; }
.qa details[open] summary::after { content: "閉じる －"; }
.qa-q { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.qa-t { font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.qa-body p { margin: 0 0 8px; }
.qa-links { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--brand-line); text-decoration: none; font-weight: 700; font-size: .92rem; }
.qa-links a:hover { background: var(--brand-soft); }

/* 数え方の切り替え */
.scope-bar { display: grid; gap: 8px; margin: 10px 0 16px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--brand-line); background: var(--brand-tint); }
.scope-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.scope-k { font-weight: 700; font-size: .95rem; min-width: 7em; }
.seg-sm button { font-size: .95rem; padding: 6px 14px; min-height: 44px; }
.seg button[aria-pressed="true"]::before { content: "✓ "; }

/* 有効性の5区分 */
.vtiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.vt { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--c, var(--line)); background: #fff; }
.vt-k { font-size: .82rem; font-weight: 700; color: var(--c, var(--muted)); line-height: 1.35; }
.vt-n { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.vt-n small { font-size: .8rem; margin-left: 1px; }
.vt-valid_confirmed { --c: #1d7347; background: #eef8f1; }
.vt-unconfirmed { --c: #8a5a00; }
.vt-ended_confirmed { --c: #5b6470; }
.vt-signed_not_started { --c: #2b6cb0; }
.vt-total { --c: var(--text); background: var(--soft); }
.vb { border: 1.5px solid currentColor; background: #fff; }
.vb-valid_confirmed { color: #145c36; background: #e3f5ea; }
.vb-unconfirmed { color: #7a4f00; background: #fff7e0; border-style: dashed; }
.vb-ended_confirmed { color: #4b5563; background: #f1f2f4; }
.vb-signed_not_started { color: #1e4f8f; background: #eaf2fb; }
.vb-planned { color: #6b7280; background: #fff; border-style: dotted; }
.b-cat { background: #eef2ff; color: #2c3e8f; border-color: #cdd6f7; }
.b-cat-epa_treaty { background: #e8f1fa; color: #1e4f7f; }
.b-rel { background: #fff; color: var(--muted); border-color: var(--line); }
.b-rel-direct { color: #145c36; border-color: #9fceb3; }
.vsplit h2 { margin-top: 6px; }

/* 人数の意味 */
.num-box { margin: 12px 0; padding: 14px 16px; border-radius: 14px; border: 2px solid #e6c46e; background: #fffaf0; }
.num-title { margin: 0 0 8px; font-size: 1.1rem; }
.num-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.num-item { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #f0dfb5; }
.num-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.num-kind { display: inline-block; padding: 1px 10px; border-radius: 999px; background: #f6e7bf; color: #6b4a00; font-weight: 700; font-size: .85rem; }
.num-val { font-size: 1.35rem; }
.num-label { font-weight: 700; margin: 2px 0; }

/* 協定の詳細ページ（6つの区分） */
.ds-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.ds-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--brand-line); text-decoration: none; font-weight: 700; font-size: .9rem; background: #fff; }
.ds-toc a:hover { background: var(--brand-soft); }
.ds { margin: 22px 0; }
.ds > h2 { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--brand-line); }
.ds-n { color: var(--brand); font-size: 1.4rem; }
.imp-sum { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.imp-sum li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); }
.imp-sum li span { font-size: .85rem; color: var(--muted); }
.imp-sum li.has { border-color: #9fceb3; background: #eef8f1; }
.imp-sum li.agreed { background: #eef4fb; }

/* 地域への影響：要点のカード */
.imp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.imp-card { display: grid; gap: 2px; align-content: start; padding: 14px; border-radius: 14px; border: 2px solid var(--brand-line); background: #fff; text-decoration: none; color: var(--text); }
.imp-card:hover { border-color: var(--brand); color: var(--text); }
.imp-k { font-weight: 700; color: var(--brand-dark); }
.imp-n { font-size: 2rem; font-weight: 700; line-height: 1.15; }
.imp-n small { font-size: .9rem; }
.imp-d { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.flow3-big { margin: 6px 0 14px; }
.flow3-big > li { padding: 14px; }
.pay-table th[scope="row"] { width: 40%; }
.legend-words { margin-top: 6px; }

/* 上に戻る */
.to-top { position: fixed; right: 16px; bottom: 18px; z-index: 30; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--brand); background: #fff; color: var(--brand-dark); font: inherit; font-weight: 700; font-size: .95rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--brand-soft); }
main [id] { scroll-margin-top: 130px; }
@media (max-width: 640px) { main [id] { scroll-margin-top: 10px; } }

@media (max-width: 999px) {
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .more-links { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .gates { grid-template-columns: 1fr; }
  .s3 { grid-template-columns: 1fr; grid-template-areas: "h" "lead" "fig" "desc" "note"; grid-template-rows: auto; padding: 20px 0; }
  .s3 h3 { padding-left: 50px; min-height: 40px; display: flex; align-items: center; }
  .s3-no { top: 20px; width: 38px; height: 38px; font-size: 1.15rem; }
  .flow3 { grid-template-columns: 1fr; gap: 24px; }
  .flow3 > li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); }
  .explore { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero2 { padding-top: 12px; }
  .hero-desc { font-size: 1rem; }
  .gate-a { grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 12px 14px; }
  .gate-a .gate-k { grid-column: 1 / -1; }
  .gate-illu { grid-row: 2 / span 3; width: 76px; height: 64px; }
  .gate-a b, .gate-d, .gate-go { grid-column: 2; }
  .gate-a b { font-size: 1.45rem; }
  .gate-go { justify-self: start; font-size: .9rem; }
  .door { grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; row-gap: 0; padding: 8px; min-height: 64px; align-items: center; }
  .door .illu { grid-row: 1 / span 2; height: 46px; padding: 6px; }
  .door-n { width: 1.25rem; height: 1.25rem; font-size: .75rem; top: 4px; left: 4px; }
  .door b { font-size: .95rem; align-self: end; }
  .door-d { font-size: .8rem; align-self: start; }
  .s3-list { padding: 0 14px; }
  .fig-mou { grid-template-columns: 1fr; padding: 12px; }
  .fm-mid { justify-content: center; }
  .fm-arrow { transform: rotate(90deg); }
  .fm-side { grid-template-columns: 48px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 10px; }
  .fm-side .fm-ic { grid-row: 1 / span 2; width: 44px; height: 44px; }
  .who-row { grid-template-columns: 1fr; gap: 0; }
  .who-line { width: 3px; height: 14px; margin-left: 24px; }
  .who-line::after { right: -5px; top: auto; bottom: -8px; border-left-color: transparent; border-top-color: var(--brand-line); }
  .vtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt-total { grid-column: 1 / -1; }
  .imp-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-k { min-width: 0; width: 100%; }
  .qa-t { font-size: 1rem; }
  .qa summary::after { content: "＋"; }
  .qa details[open] summary::after { content: "－"; }
  .to-top { right: 10px; bottom: 12px; padding: 8px 12px; }
}

/* 長いURLや表で画面の横幅を押し広げない */
.site-footer a, main p a { overflow-wrap: anywhere; }
.s3, .s3 > *, .ex-card, .explore > * { min-width: 0; }
@media (max-width: 640px) { .tier-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tier-chips li { font-size: .9rem; } }

/* =====================================================================
   2026年10月28日の改修：メニュー・登録状況・5区分・3分でわかるの読みやすさ・一覧
   ===================================================================== */
/* メニュー：パソコンは1行、スマートフォンは「メニュー」ボタンで2列の一覧を開く */
.menu-btn { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 12px; border: 2px solid var(--brand-line); background: #fff; color: var(--brand-dark); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.nav-inner { overflow-x: visible; flex-wrap: nowrap; justify-content: space-between; gap: 2px; }
.nav-inner a { padding: 12px 10px; font-size: 1rem; min-height: 48px; display: inline-flex; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* 登録状況（トップ） */
.status { margin: 18px 0 8px; padding: 18px 20px; border-radius: 20px; border: 2px solid var(--brand); background: var(--brand-tint); }
.status-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.status-head h2 { margin: 0; font-size: clamp(1.35rem, 1.2rem + .8vw, 1.8rem); }
.status-asof { margin: 0; font-weight: 700; color: var(--brand-dark); }
.status-lead { margin: 6px 0 12px; font-size: 1.02rem; }
.status .scope-bar { margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 12px 0 6px; }
.facts > div { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.facts dt { font-size: .9rem; font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; font-size: 1rem; line-height: 1.5; }
.facts dd b { font-size: 1.5rem; }
.facts dd small { display: block; font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* 有効性の5区分（タイル） */
.vtiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vtiles > div { display: grid; }
.vt { display: grid; align-content: start; gap: 4px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--c, var(--line)); background: #fff; color: var(--text); text-decoration: none; }
a.vt:hover { box-shadow: 0 4px 14px rgba(0, 70, 85, .14); color: var(--text); }
.vt-k { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .95rem; font-weight: 700; color: var(--c, var(--muted)); line-height: 1.35; }
.vt-on { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--c); color: #fff; font-size: .8rem; }
.vt-n { font-size: 1.7rem; font-weight: 700; line-height: 1.15; }
.vt-n small { font-size: .85rem; margin-left: 2px; }
.vt-split { display: grid; gap: 0; font-size: .95rem; line-height: 1.5; }
.vt-split b { font-size: 1.45rem; }
.vt-d { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.vt.is-on { box-shadow: inset 0 0 0 1px var(--c); }
.vt-valid_confirmed { --c: #1d7347; }
.vt-valid_confirmed.is-on { background: #eef8f1; }
.vt-unconfirmed { --c: #8a5a00; }
.vt-ended_confirmed { --c: #5b6470; }
.vt-signed_not_started { --c: #2b6cb0; }
.vt-planned { --c: #7b8794; border-style: dashed; }
.vt-total { margin: 8px 0 0; font-size: 1rem; }
.vt-total b { font-size: 1.2rem; }
.vt-total .small { display: block; }

/* 数え方の説明（件数・地図のそば） */
.scope-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); border-left: 5px solid var(--brand); font-weight: 700; font-size: .98rem; line-height: 1.6; }
.scope-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .95rem; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); }
.scope-k { font-size: 1rem; }

/* 長い注意書きは必要なときだけ開く */
.note-d { background: var(--warn-soft); border-color: #f0d9a8; }
.note-d > summary { font-size: .98rem; }

/* まず3分でわかる：見出しと図を大きく、文章は短く */
.s3 { padding-top: 30px; padding-bottom: 30px; row-gap: 12px; }
.s3 h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); }
.s3-lead { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); color: var(--brand-dark); }
.s3-desc { font-size: 1.12rem; line-height: 1.9; }
.s3-desc p { margin: 0; }
.s3-note { font-size: .92rem; }
.s3-toc a span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; }
.fig-fields figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.field-cards li { padding: 14px 8px; }
.field-cards b { font-size: 1.12rem; }
.fc-n { font-size: 1.5rem; }
.who-pt b { font-size: 1.05rem; }
.who-pt small { font-size: .88rem; }
.tier-chips li { font-size: 1rem; }
.tier-chips small { font-size: .85rem; }
.tier-h { font-size: 1.12rem; }
.tier-p { font-size: 1rem; }
.fig-flow { margin: 0; }
.flow-no { margin-right: 4px; }
.flow3 p { font-size: 1rem; }
.flow-k { font-size: 1.05rem; }

/* 詳しく調べる */
.big-num { margin: 0 0 8px; font-size: 1.05rem; }
.big-num b { font-size: 1.9rem; margin: 0 2px; }
.big-num small { display: block; font-size: .88rem; color: var(--muted); }
.chip-h { margin: 6px 0 4px; font-weight: 700; font-size: .95rem; }
.ex-card h3 { font-size: 1.2rem; }

/* 地図ページ */
.map-title { margin: 0 0 6px; font-weight: 700; font-size: 1.15rem; }
.map-title small { display: block; font-size: .9rem; font-weight: 400; color: var(--muted); }
#map-note .scope-note { margin-bottom: 8px; }
.sel-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0; padding: 10px 14px; border-radius: 12px; border: 2px solid #f0a500; background: #fff8e6; }
.sel-box b { font-size: 1.2rem; }
.sel-k { padding: 1px 10px; border-radius: 999px; background: #f0a500; color: #fff; font-weight: 700; font-size: .85rem; }
.sel-hint { margin: 8px 0; font-size: .95rem; color: var(--muted); }
.sw-inline { display: inline-block; width: 26px; height: 18px; border-radius: 4px; border: 1px solid #9aa8a0; vertical-align: -4px; margin-right: 8px; }

/* 分野・省庁 */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pick-card { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--text); text-decoration: none; }
.pick-card:hover { border-color: var(--brand); color: var(--text); }
.pick-t { font-size: 1.15rem; }
.pick-d { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.pick-n { font-size: 1rem; }
.pick-n b { font-size: 1.25rem; }
.pick-go { font-weight: 700; color: var(--brand-dark); }

/* 地域への影響：要約カード */
.imp-card { gap: 6px; }
.imp-k { font-size: 1.05rem; }
.imp-unk { color: #8a5a00; font-size: 1.6rem; }
.imp-card.is-empty { border-style: dashed; border-color: #e0c27a; background: #fffcf3; }
.imp-items { margin: 0; padding-left: 1.1em; font-size: .9rem; line-height: 1.55; }
.imp-items li + li { margin-top: 3px; }

/* 有効性の区分で探す：一覧 */
.lrows { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.lrow { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.lrow-t { font-weight: 700; font-size: 1.05rem; }
.lrow-who { font-size: .92rem; color: var(--muted); font-weight: 700; }
.lrow-meta { font-size: .92rem; }
.lrow-why { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* 項目ごとの調査状況 */
.rs { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.rs-confirmed { background: #e3f5ea; color: #145c36; }
.rs-not_found { background: #fff3db; color: #7a4600; }
.rs-not_surveyed { background: #f1f2f4; color: #4b5563; border: 1px dashed #9aa3ad; }
.research td { font-size: .92rem; }

/* STEP5の流れの図は縦に並べる（狭い列でも読みやすく） */
.fig-flow .flow3 { grid-template-columns: 1fr; gap: 24px; }
.fig-flow .flow3 > li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -25px; transform: translateX(-50%); }
.fig-flow .flow3 > li { padding: 10px 14px; }
/* トップの入口は3列×2段、調査状況は4列 */
.doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts dd b.fd-date { font-size: 1.1rem; }
@media (max-width: 640px) { .doors, .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 999px) {
  .vtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* スマートフォン：メニューはボタンで開閉。開いたときは2列の大きなボタン */
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
  .header-search { grid-column: 1 / -1; }
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; border-top: none; }
  .menu-open .site-nav { display: block; border-top: 1px solid var(--line); }
  .nav-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; padding-bottom: 12px; }
  .nav-inner a { justify-content: center; text-align: center; border: 1.5px solid var(--brand-line); border-bottom-width: 1.5px; border-radius: 12px; background: #fff; font-size: 1rem; padding: 10px 8px; }
  .nav-inner a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }
}
@media (max-width: 640px) {
  .status { padding: 14px 12px; border-radius: 16px; }
  .vtiles { grid-template-columns: 1fr 1fr; }
  .vtiles > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .vt-split b { font-size: 1.3rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts dd b { font-size: 1.3rem; }
  .doors { grid-template-columns: 1fr 1fr; }
  .field-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s3-desc { font-size: 1.06rem; }
  .s3-toc { display: grid; grid-template-columns: 1fr; }
  .imp-cards { grid-template-columns: 1fr; }
  .map-title { font-size: 1.05rem; }
}

/* 一覧のカードが長いバッジで横にはみ出さないように */
.mou-list > *, .lrows > * { min-width: 0; }
.mou-card .badge, .lrow .badge { white-space: normal; }

/* ---------- トップの並び替え（2026-10-28 第3次改修） ---------- */
.mini-status { display: inline-block; font-size: .95rem; color: var(--muted); }
.mini-status b { color: var(--text); }
/* 入口は8つ：広い画面は4列×2段 */
.doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 999px) { .doors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr 1fr; } }
.home-sec.status { margin: 34px 0; }
.status-head h2 .band-k { display: block; width: fit-content; margin-bottom: 4px; font-size: .9rem; }
.explore-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ex-search { grid-column: 1 / -1; }
.ef-nums { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ef-nums li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.ef-nums span { font-size: .92rem; font-weight: 700; color: var(--muted); line-height: 1.4; }
.ef-nums b { font-size: 1.6rem; line-height: 1.15; }
.ef-nums b.imp-unk { font-size: 1.2rem; }
.ef-nums small { font-size: .85rem; color: var(--muted); margin-left: 2px; }
.ef-links { margin: 6px 0 12px; padding-left: 1.2em; }
.ef-links li { margin: 4px 0; }
/* 3分でわかる：読みやすさの調整（説明・注記の文字を少し大きく、余白を広く） */
.s3 { padding-top: 30px; padding-bottom: 30px; }
.s3-note { font-size: .92rem; }
.flow3 p { font-size: .95rem; }
@media (max-width: 899px) { .explore-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ef-nums { grid-template-columns: 1fr 1fr; } .door-d { font-size: .85rem; } }

/* ---------- 締結主体・当事者の組み合わせのバッジ ---------- */
.b-actor { background: #f5f0ff; color: #4b2d83; border-color: #dccff5; }
.b-pair { background: #fff7e6; color: #7a4a00; border-color: #f2d9a6; }

/* ---------- サイト内検索 ---------- */
.sr-form { display: flex; gap: 8px; max-width: 760px; margin: 4px 0 8px; }
.sr-form input { flex: 1; min-width: 0; font-size: 1.05rem; }
.sr-hint { font-size: .95rem; margin: 0 0 6px; max-width: 60em; }
.sr-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.sr-examples .chip-link { font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; min-height: 40px; padding: 4px 12px; }
.sr-target { margin: 0 0 8px; font-size: .95rem; }
.sr-narrow { color: #7a4a00; }
.sr-layout { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 20px; align-items: start; }
.sr-facets { position: sticky; top: 130px; max-height: calc(100vh - 140px); overflow: auto; padding: 4px 4px 12px 0; }
.sr-facets > details > summary { font-weight: 700; font-size: 1.05rem; padding: 6px 0; cursor: pointer; }
.facet { border: none; margin: 0 0 14px; padding: 0; min-width: 0; }
.facet legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.facet-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.facet-opts button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .9rem; font-weight: 700; min-height: 40px; padding: 4px 10px; border-radius: 10px; border: 1.5px solid var(--brand-line); background: #fff; color: var(--brand-dark); cursor: pointer; text-align: left; line-height: 1.35; }
.facet-opts button:hover { border-color: var(--brand); }
.facet-opts button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.facet-opts button[aria-pressed="true"] .fc { background: #fff; color: var(--brand-dark); }
.facet-opts button:disabled { opacity: .45; cursor: default; }
.facet-opts .fc { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .82rem; text-align: center; }
.facet details summary { font-size: .9rem; cursor: pointer; margin: 6px 0; color: var(--brand-dark); }
.facet-year { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.facet-year select { font-size: .92rem; padding: 6px 28px 6px 8px; }
.sr-count { margin: 0 0 2px; }
.sr-count b { font-size: 1.5rem; }
.sr-vc { margin: 0 0 8px; }
.sr-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.sr-tools select { font-size: .95rem; padding: 8px 30px 8px 10px; }
.sr-hit { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #fffbea; border: 1px solid #f2e2a8; font-size: .92rem; line-height: 1.6; }
.sr-hit-k { display: inline-block; font-weight: 700; color: #7a5a00; margin-right: 6px; }
.sr-hit ul { margin: 2px 0 0; padding-left: 1.2em; }
.sr-snip { display: block; color: var(--muted); }
mark { background: #ffe37a; color: inherit; padding: 0 1px; border-radius: 2px; }
.zero { padding: 14px 16px; border-radius: 12px; margin: 8px 0 16px; }
.zero-h { margin: 0 0 6px; font-weight: 700; font-size: 1.2rem; }
.zero-none { background: var(--info-soft); border-left: 6px solid #6b93c4; }
.zero-unknown { background: var(--warn-soft); border-left: 6px solid #e0a43a; }
.zero-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) {
  .sr-layout { grid-template-columns: 1fr; }
  .sr-facets { position: static; max-height: none; overflow: visible; padding: 10px 12px; border: 1.5px solid var(--brand-line); border-radius: 12px; background: var(--soft); }
}
@media (max-width: 640px) { .sr-form .btn { padding: 10px 14px; } }
/* メニューの項目が増えたので、広い画面でも1行に収める */
.nav-inner a { padding-left: 8px; padding-right: 8px; }
@media (min-width: 761px) and (max-width: 1199px) {
  /* 中くらいの画面ではメニューを2段に折り返す（横にはみ出さない） */
  .nav-inner { flex-wrap: wrap; justify-content: flex-start; }
  .nav-inner a { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
}
/* 検索条件のキーワードは、別名の説明が長くなるので折り返す */
#sr-cond .chip-plain { display: inline-block; border-radius: 14px; line-height: 1.6; }
#sr-cond .chip-plain .small { font-weight: 400; margin-left: 4px; }
/* 3分でわかる：図の中の小さな文字を、参考サイトの注記（14px）より小さくしない */
.fm-side small, .who-pt small, .tier-chips small { font-size: .84rem; line-height: 1.5; }
.fig-flow .causal { font-size: .84rem; }
.fm-cap, .fig-fields figcaption { font-size: .86rem; }

/* ===== 2026-10-29 改修：有効性の内訳・入口・締結主体・CLAIR照合 ===== */
/* トップ：詳しく調べたい方の入口（主な3つを大きく、ほかは小さく） */
.gate-b-t { margin: -2px 0 2px; font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); font-weight: 700; line-height: 1.4; }
.doors.doors-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doors-main .door b { font-size: 1.15rem; }
.gate-more-h { margin: 6px 0 0; font-size: .9rem; font-weight: 700; color: var(--muted); }
.gate-more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gate-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px 6px 8px; border: 1.5px solid var(--brand-line); border-radius: 12px; background: #fff; color: var(--brand-dark); font-weight: 700; text-decoration: none; font-size: .95rem; }
.gate-more a:hover, .gate-more a:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.gate-more a svg { width: 28px; height: 28px; flex: none; }
.band-sub { margin: 0; color: var(--muted); font-weight: 700; }
@media (max-width: 640px) { .doors.doors-main { grid-template-columns: 1fr; gap: 8px; } .doors-main .door { min-height: 58px; } .doors-main .door b { font-size: 1.05rem; } .doors-main .door-n { display: none; } }
.t3-line { margin: 4px 0 10px; font-size: .95rem; }

/* 有効性の内訳（表示中・非表示） */
.scope-counts { margin: 10px 0 14px; padding: 10px 14px; border: 1.5px solid var(--brand-line); border-radius: 12px; background: #fff; }
.sc-h { margin: 0 0 6px; font-size: .95rem; }
.sc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sc-i { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 10px; border-radius: 10px; font-size: .95rem; border: 1px solid var(--line); }
.sc-i.is-on { background: var(--brand-soft); border-color: var(--brand-line); }
.sc-i.is-off { background: #f6f6f4; color: #4b5563; border-style: dashed; }
.sc-i b { font-size: 1.05rem; }
.sc-s { font-size: .78rem; font-weight: 700; padding: 0 6px; border-radius: 999px; margin-left: 2px; }
.sc-i.is-on .sc-s { background: var(--brand); color: #fff; }
.sc-i.is-off .sc-s { background: #e5e7eb; color: #374151; }
.sc-x { margin: 6px 0 0; }
.sc-btns { margin: 8px 0 0; }
.scope-default { margin: 8px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* 検索：組織名として一致・情報源の行 */
.org-notice { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #6b93c4; background: var(--info-soft); }
.org-notice-h { margin: 0 0 4px; font-weight: 700; }
.org-notice ul { margin: 0 0 4px; padding-left: 1.2em; }
.org-notice li { margin: 4px 0; line-height: 1.6; }
.src-line { margin: 6px 0 0; font-size: .9rem; line-height: 1.6; }
.src-k { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 999px; background: #eef2f7; color: #334e68; font-weight: 700; font-size: .8rem; }
.sr-range { margin: 0 0 8px; }

/* 締結主体から探す */
.actor-step { margin: 18px 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.actor-step h2 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 1.25rem; }
.step-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.05rem; flex: none; }
.actor-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.actor-type { display: grid; gap: 2px; text-align: left; font: inherit; padding: 10px 12px; min-height: 64px; border: 2px solid var(--brand-line); border-radius: 12px; background: #fff; color: var(--text); cursor: pointer; }
.actor-type b { color: var(--brand-dark); font-size: 1rem; }
.actor-type span { font-size: .9rem; }
.actor-type small { color: var(--muted); }
.actor-type:hover { border-color: var(--brand); }
.actor-type[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.actor-type[aria-pressed="true"] b, .actor-type[aria-pressed="true"] small { color: #fff; }
.org-hits { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.org-hits li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); line-height: 1.6; }
.oh-name { font-weight: 700; font-size: 1.05rem; }
.oh-parts { display: grid; gap: 2px; margin-top: 4px; font-size: .92rem; }
.oh-src { color: #334e68; }
.actor-detail { margin: 18px 0; padding: 14px 16px; border: 2px solid var(--brand); border-radius: 16px; background: #fff; scroll-margin-top: 90px; }
.actor-detail h2 { margin-top: 0; }
.ver-list { margin: 6px 0 2px; padding-left: 1.3em; font-size: .9rem; }
.ver-list li { margin: 2px 0; }
.org-table td { min-width: 90px; }

/* CLAIRの照合：2020年の資料と2026年の調査を分ける */
.two-src { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.src-box { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); }
.src-box p { margin: 4px 0; }
.src-box .src-k { font-size: .85rem; }
.src-old { background: #f6f6f4; }
.src-new { background: var(--brand-soft); border-color: var(--brand-line); }
.src-new .src-k { background: var(--brand); color: #fff; }
.clair-tree { line-height: 1.9; }
.clair-tree b { font-size: 1.1rem; }
@media (max-width: 640px) { .two-src { grid-template-columns: 1fr; } }
/* データ：集計表 */
.agg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.agg h3 { margin: 6px 0; font-size: 1.05rem; }
.agg .table-wrap { max-height: 360px; overflow: auto; }
.agg th { white-space: normal; background: #fff; font-weight: 400; }
/* 長い英字の名称・URLでスマートフォンの画面が横にはみ出さないように */
.mou-card .who, .lrow-who, .kv td, .org-hits li, .src-line { overflow-wrap: anywhere; }

/* =====================================================================
   2026年10月28日 UI全面改善：①探す → ②結果を見る → ③詳しく調べる
   ===================================================================== */
/* ---------- メニュー：「協定を探す」「3分でわかる」と、3つのグループ（押して開く。マウスを重ねるだけでは開かない） ---------- */
.nav-inner { justify-content: flex-start; gap: 4px; flex-wrap: wrap; overflow: visible; }
.nav-inner > a, .nav-group > summary { padding: 12px 12px; font-size: 1rem; min-height: 48px; display: inline-flex; align-items: center; font-weight: 700; color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; }
.nav-inner > a.nav-main { color: var(--brand-dark); }
.nav-group { position: relative; }
.nav-group > summary { list-style: none; cursor: pointer; gap: 6px; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 4px; }
.nav-group[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-group.is-current > summary { border-bottom-color: var(--brand); color: var(--brand-dark); }
.nav-pop { position: absolute; left: 0; top: 100%; z-index: 30; min-width: 280px; display: grid; padding: 8px; border-radius: 12px; border: 1.5px solid var(--brand-line); background: #fff; box-shadow: 0 10px 28px rgba(0, 70, 85, .16); }
.nav-pop a { padding: 10px 12px; min-height: 44px; display: flex; align-items: center; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: .98rem; }
.nav-pop a:hover { background: var(--brand-soft); }
.nav-pop a[aria-current="page"] { background: var(--brand); color: #fff; }
.nav-group:not([open]) > .nav-pop { display: none; }
@media (max-width: 760px) {
  .nav-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .nav-inner > a { justify-content: center; text-align: center; border: 1.5px solid var(--brand-line); border-radius: 12px; background: #fff; }
  .nav-inner > a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }
  .nav-group { grid-column: 1 / -1; }
  .nav-group > summary { display: none; }
  .nav-group::before { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); margin: 6px 2px 4px; }
  .nav-group[data-group="more"]::before { content: "詳しく調べる"; }
  .nav-group[data-group="stats"]::before { content: "統計・分析"; }
  .nav-group[data-group="docs"]::before { content: "資料・出典"; }
  /* スマートフォンでは、メニューを開いたときにグループの中身を一覧で見せる */
  .nav-pop, .nav-group:not([open]) > .nav-pop { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; box-shadow: none; border: none; padding: 0; background: none; }
  .nav-pop a { justify-content: center; text-align: center; border: 1.5px solid var(--brand-line); background: #fff; font-size: .95rem; line-height: 1.4; }
}

/* ---------- トップ ---------- */
.hero3 { padding: 28px 0 8px; }
.hero3 h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin: 0 0 6px; }
.hero3-lead { font-size: 1.15rem; margin: 0; }
.home-kpi { margin: 18px 0 8px; padding: 16px 18px; border-radius: 18px; border: 2px solid var(--brand-line); background: var(--brand-tint); }
.kpi-h { font-size: 1.1rem; margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.kpi-asof { font-size: .9rem; font-weight: 400; color: var(--muted); }
.kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--c, var(--line)); background: #fff; color: var(--text); text-decoration: none; min-height: 88px; align-content: center; }
.kpi a:hover { box-shadow: 0 4px 14px rgba(0, 70, 85, .14); color: var(--text); }
.kpi-k { font-weight: 700; color: var(--c, var(--muted)); font-size: .98rem; }
.kpi-n b { font-size: 2rem; line-height: 1.1; margin-right: 2px; }
.kpi-total { --c: #1c2621; }
.kpi-valid { --c: #1d7347; }
.kpi-unk { --c: #8a5a00; }
.kpi-ended { --c: #5b6470; }
.kpi-sub { margin: 10px 0 0; font-size: .95rem; }
.howcount { margin-top: 8px; }
.howcount > summary, .ex-vd > summary, .ex-adv > summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); min-height: 44px; display: flex; align-items: center; }
.howcount ul { margin: 4px 0 0; padding-left: 1.3em; font-size: .97rem; }
.howcount li { margin: 4px 0; }
.home-entry h2 { margin-top: 1.4em; }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.entry-card { padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; display: grid; align-content: start; gap: 8px; min-width: 0; }
.entry-card h3 { margin: 0; font-size: 1.12rem; display: flex; align-items: center; gap: 8px; }
.entry-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.entry-card select, .entry-card input { width: 100%; min-height: 48px; }
.entry-q { display: flex; gap: 6px; }
.entry-q input { flex: 1; min-width: 0; }
.entry-alt { margin: 0; font-size: .95rem; line-height: 1.9; }
.intent-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.intent { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--brand-line); background: #fff; color: var(--text); text-decoration: none; }
.intent b { font-size: 1.12rem; color: var(--brand-dark); }
.intent b::after { content: " →"; }
.intent span { font-size: .95rem; color: var(--muted); line-height: 1.6; }
.intent:hover { background: var(--brand-soft); color: var(--text); }
.home-guide { margin: 22px 0; }
.guide-link { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--brand); color: #fff; text-decoration: none; }
.guide-link:hover { background: var(--brand-dark); color: #fff; }
.guide-k { font-size: .9rem; font-weight: 700; opacity: .9; }
.guide-link b { font-size: 1.25rem; }
.guide-link b::after { content: " →"; }
.home-more .more-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-more h3 { margin: 0 0 4px; font-size: 1.05rem; }
.home-more ul { margin: 0; padding-left: 1.2em; line-height: 2; }
@media (max-width: 860px) {
  .entry-grid, .intent-grid, .home-more .more-cols { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}

/* ---------- 協定を探す ---------- */
.ex-head { margin-bottom: 8px; }
.ex-head .lead { margin-bottom: 0; }
.ex-panel { margin: 12px 0; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--brand-line); background: var(--brand-tint); }
.ex-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ex-panel-h { margin: 0; font-size: 1.1rem; }
.ex-panel-toggle { display: none; }
.ex-label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.ex-q { margin: 10px 0 6px; }
.ex-q-row { display: flex; gap: 6px; }
.ex-q-row input { flex: 1; min-width: 0; min-height: 48px; }
.ex-q-ex { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ex-q-ex .linklike { min-height: 36px; }
.ex-basic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; margin-top: 8px; }
.ex-field { min-width: 0; }
.ex-field select { width: 100%; min-height: 48px; }
.ex-wide { grid-column: span 2; }
.seg .fc, .ex-tabs .fc, .check .fc { display: inline-block; min-width: 1.7em; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .82rem; text-align: center; line-height: 1.6; }
.seg button[aria-pressed="true"] .fc, .ex-tabs button[aria-pressed="true"] .fc { background: #fff; }
.ex-v-note { align-self: center; }
.ex-adv { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.ex-fs { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 10px 0 0; background: #fff; }
.ex-fs legend { font-weight: 700; font-size: .95rem; padding: 0 4px; }
.ex-cks { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ex-years { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ex-now { margin: 10px 0; }
.ex-now-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.ex-now-k { font-weight: 700; font-size: .95rem; }
.ex-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin: 6px 0; }
.ex-count-main { margin: 0; font-size: 1.1rem; font-weight: 700; }
.ex-count-main b { font-size: 2rem; margin: 0 2px 0 8px; color: var(--brand-dark); }
.ex-count-sub { margin: 0; font-size: .97rem; }
.ex-vd { margin: 4px 0 6px; }
.ex-vd-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.ex-vd-h { margin: 4px 0; font-weight: 700; font-size: .95rem; }
.ex-vlist, .ex-slist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-vlist li, .ex-slist li { padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: .93rem; }
.ex-vlist li.is-off { background: #f6f6f4; color: var(--muted); border-style: dashed; }
.ex-slist .linklike { font-weight: 700; }
.ex-slist .linklike[aria-pressed="true"] { text-decoration: none; background: var(--brand); color: #fff; padding: 0 6px; border-radius: 6px; }
.sc-s { margin-left: 6px; font-size: .8rem; color: var(--muted); }
.ex-widen { margin: 6px 0; }
/* 分野別の内訳（地域を選んだとき）。外国人材・労働の棒は橙（意味のある色なので変数を使わない） */
.ex-fb { margin: 6px 0 8px; padding: 6px 14px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ex-fb > summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
.ex-fb-sum { font-weight: 400; color: var(--text); font-size: .95rem; }
.ex-fb-sum b { font-size: 1.1rem; }
.ex-fb-list { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 2px; }
.ex-fb-row { display: grid; grid-template-columns: 10.5em 1fr 3.8em; align-items: center; gap: 0 10px; }
.ex-fb-name { text-align: left; font-weight: 700; font-size: .93rem; }
.ex .ex-fb-row .ex-fb-name { min-height: 36px; }
.ex-fb-name[aria-pressed="true"] { text-decoration: none; background: var(--brand); color: #fff; padding: 0 6px; border-radius: 6px; }
.ex-fb-bar { height: 14px; border-radius: 7px; background: #eef2f3; overflow: hidden; }
.ex-fb-bar > span { display: block; height: 100%; min-width: 4px; border-radius: 7px; background: var(--brand); }
.ex-fb-row.is-labor .ex-fb-bar > span { background: #c4621a; }
.ex-fb-n { text-align: right; font-size: .93rem; white-space: nowrap; }
.ex-fb-n b { font-size: 1.05rem; }
.ex-fb-multi { grid-column: 2 / -1; margin: -6px 0 4px; font-size: .8rem; color: var(--muted); }
.ex-fb-sub { margin: 10px 0 2px; padding-top: 8px; border-top: 1px dashed var(--line); font-weight: 700; font-size: .93rem; }
.ex-cover { margin: 6px 0; padding: 6px 10px; border-left: 4px solid #d6b46a; background: var(--warn-soft); }
.ex-wait { padding: 14px 16px; border-radius: 12px; background: var(--info-soft); font-weight: 700; }
.ex-wait .small { display: block; font-weight: 400; }
.ex-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; margin-top: 10px; }
.ex-mapcol { position: sticky; top: 118px; }
.ex-map-h { font-size: 1.05rem; margin: 0 0 6px; }
.ex-legend-note { margin: -4px 0 8px; }
.sel-hint { margin: 8px 0; color: var(--muted); font-size: .95rem; }
.sel-n { flex: 1 1 260px; font-size: .97rem; }
.sel-btns { display: flex; flex-wrap: wrap; gap: 6px; }
#ex-nat .national-box { display: grid; gap: 2px; margin: 8px 0; }
.ex-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; }
.ex-tabs-k { font-weight: 700; font-size: .92rem; }
.ex-tabs button { font: inherit; font-weight: 700; font-size: .93rem; background: #fff; color: var(--brand-dark); border: 1.5px solid var(--brand-line); border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: 40px; }
.ex-tabs button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.ex-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; }
.ex-tools select { min-height: 44px; }
.ex-range { margin: 10px 0 4px; }
.ex-more-btn { width: 100%; }
@media (max-width: 999px) {
  .ex-basic { grid-template-columns: 1fr 1fr; }
  .ex-body { grid-template-columns: 1fr; }
  .ex-mapcol { position: static; }
}
@media (max-width: 760px) {
  .ex-panel { padding: 12px; }
  .ex-panel-toggle { display: inline-flex; }
  .ex-panel.is-closed .ex-panel-body { display: none; }
  .ex-basic { grid-template-columns: 1fr; }
  .ex-wide { grid-column: auto; }
  .ex-vd-in { grid-template-columns: 1fr; }
  .ex-count-main b { font-size: 1.7rem; }
  .ex-fb { padding: 4px 10px 8px; }
  .ex-fb-row { grid-template-columns: 8.5em 1fr 3.4em; gap: 0 6px; }
  .ex-fb-name { font-size: .88rem; }
}

/* ---------- 一覧のカード（簡潔版） ---------- */
.rc { display: grid; gap: 6px; padding: 14px 16px; }
.rc > * { margin: 0; min-width: 0; }
.rc-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-weight: 700; font-size: .98rem; color: var(--text); overflow-wrap: anywhere; }
.rc-lv { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 700; vertical-align: 2px; }
.rc-arrow { color: var(--muted); }
.rc-role { font-size: .88rem; font-weight: 700; color: #7a4f00; }
.mou-card .rc-title { font-size: 1.04rem; font-weight: 400; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.mou-card .rc-title a { color: var(--brand-dark); text-decoration: underline; text-decoration-thickness: 1px; }
.rc-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: .95rem; }
.rc-facts > div { display: flex; gap: 6px; align-items: baseline; }
.rc-facts dt { color: var(--muted); font-size: .88rem; font-weight: 700; }
.rc-facts dt::after { content: "："; }
.rc-facts dd { margin: 0; }
.rc-blurb { font-size: .97rem; line-height: 1.65; }
.rc-note { font-size: .88rem; color: #6a4a00; background: #fff8e6; border-radius: 8px; padding: 4px 10px; }
.rc-news { color: var(--danger); background: var(--danger-soft); }
.rc-go { text-align: right; }
.rc-more { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--brand-line); font-weight: 700; text-decoration: none; background: #fff; }
.rc-more::after { content: " →"; white-space: pre; }
.rc-more:hover { background: var(--brand-soft); }
.vb, .st { display: inline-block; font-size: .88rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; line-height: 1.6; }
.st { border: 1.5px solid currentColor; }
.st-in_progress { color: #145c36; background: #e3f5ea; }
.st-completed { color: #1e4f7f; background: #e8f1fa; }
.st-expired { color: #4a4a4a; background: #f0f0f0; }
.st-signed, .st-unknown { color: #6a4a00; background: #fff; border-style: dashed; }
.st-planned { color: #6b7280; background: #fff; border-style: dotted; }

/* ---------- 協定の詳細 ---------- */
.back-row { margin: 4px 0 8px; }
.d-who { font-weight: 700; color: var(--muted); margin: 0 0 4px; overflow-wrap: anywhere; }
.d-title { overflow-wrap: anywhere; }
.d-orig { margin-top: -6px; overflow-wrap: anywhere; }
.d-key { margin: 8px 0 14px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--brand-line); background: var(--brand-tint); }
.d-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.d-facts > div { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.d-facts dt { font-size: .85rem; font-weight: 700; color: var(--muted); }
.d-facts dd { margin: 2px 0 0; line-height: 1.5; }
.d-blurb { margin: 10px 0 0; }
.d-keynote { margin: 6px 0 0; }
.d-hist li { margin: 4px 0; }
.h-sm { font-size: 1.05rem; }
@media (max-width: 760px) { .d-facts { grid-template-columns: 1fr 1fr; } }
/* 指で押しやすい大きさ（文中のリンク風のボタンも44px以上の高さ） */
.ex .linklike, .ex-slist .linklike { min-height: 44px; display: inline-flex; align-items: center; }
.rc-lv { font-size: .82rem; }
/* メニューのグループは、ほかの折りたたみ（枠付き）と見た目を分ける */
details.nav-group { border: none; border-radius: 0; padding: 0; margin: 0; background: none; }
details.nav-group > summary { padding: 12px 12px; border-bottom: 3px solid transparent; margin: 0; }
details.nav-group[open] > summary { border-bottom-color: transparent; margin-bottom: 0; }
details.nav-group.is-current > summary { border-bottom-color: var(--brand); }
details.nav-group > *:last-child { margin-bottom: 0; }
@media (max-width: 760px) { details.nav-group { padding: 0; } }

/* =====================================================================
   2026年10月29日 テーマ色をターコイズブルー（#007f93）に／トップページをグラフィカルに作り直し
   ①3分でわかる → ②2つの入口（日本の地域から・相手国と協定から）→ ③協定をどう見る？ → ④さらに詳しく調べる
   ===================================================================== */
/* ---------- ヘッダー：ターコイズの帯に白い文字（タブやほかのサイトと見分けやすく） ---------- */
.site-header { background: var(--brand); border-bottom: none; color: #fff; }
.header-inner { padding-top: 12px; padding-bottom: 12px; }
.brand, .brand:hover { color: #fff; }
.brand-mark { background: #fff; color: var(--brand); padding: 5px; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-sub { color: #fff; }
.header-search input { border-color: #fff; }
.header-search .btn { background: #fff; color: var(--brand-dark); border-color: #fff; }
.header-search .btn:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-dark); }
.menu-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.menu-btn[aria-expanded="true"] { background: #fff; color: var(--brand-dark); border-color: #fff; }
.site-nav { background: #fff; border-top: none; border-bottom: 1px solid var(--line); }
.site-header :focus-visible { outline-color: #ffc94d; }

/* ---------- ① 3分でわかる MOU・協定（大きな横長の帯） ---------- */
.gb-wrap { margin: 20px 0 6px; }
.guide-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 12px 28px; padding: 22px 30px; border-radius: 24px; border: 2px solid var(--brand-line); background: linear-gradient(115deg, #eef8fa 0%, #dcf1f5 100%); color: var(--text); text-decoration: none; }
.guide-banner:hover, .guide-banner:focus-visible { border-color: var(--brand); box-shadow: 0 8px 24px rgba(0, 70, 85, .14); color: var(--text); }
.gb-text { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.gb-h { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.3; color: var(--brand); }
.gb-3 { display: inline-block; margin-right: .12em; padding: 0 .28em; border-radius: .3em; background: var(--brand); color: #fff; }
.gb-mou { display: inline-block; margin-left: .3em; color: var(--brand-dark); }
.gb-d { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); font-weight: 700; line-height: 1.6; }
.gb-d span { display: inline-block; }
.gb-go { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 4px; padding: 8px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.05rem; }
.guide-banner:hover .gb-go { background: var(--brand-dark); }
.arw { width: 22px; height: 22px; flex: none; }
.gb-art svg { display: block; width: 100%; height: auto; }

/* ---------- ② 2つの大きな入口（同じ大きさ・同じ重み） ---------- */
.gates2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0 8px; }
.gate2 { display: grid; grid-template-rows: auto minmax(254px, 1fr) auto auto auto; align-content: start; gap: 14px; min-width: 0; padding: 20px 22px 22px; border-radius: 24px; border: 2px solid var(--brand-line); background: #fff; box-shadow: 0 4px 18px rgba(0, 70, 85, .06); }
.g2-head h2 { margin: 0; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.8rem); line-height: 1.35; color: var(--brand-dark); }
.g2-head p { margin: 4px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.g2-art { display: grid; place-items: center; min-height: 254px; padding: 12px; border-radius: 18px; background: radial-gradient(circle at 50% 45%, #e3f4f7 0%, var(--brand-tint) 70%); }
.g2-art img { display: block; width: 100%; height: 230px; object-fit: contain; }
.g2-q { display: flex; gap: 8px; }
.g2-q-in { position: relative; display: flex; flex: 1; min-width: 0; }
.g2-q-in svg { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--brand); pointer-events: none; }
.g2-q-in input { width: 100%; min-height: 54px; padding-left: 46px; font-size: 1.05rem; border: 2px solid var(--brand-line); border-radius: 14px; }
.g2-q-in input:focus { border-color: var(--brand); }
.g2-q .btn { min-height: 54px; padding: 10px 20px; }
.g2-btns { display: grid; gap: 10px; }
.g2-btns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btn-big { width: 100%; min-height: 60px; padding: 12px 18px; border-radius: 14px; font-size: 1.12rem; gap: 10px; }
.btn-big .ill { width: 30px; height: 30px; flex: none; }
.g2-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: .98rem; }
.g2-alt label { font-weight: 700; color: var(--brand-dark); }
.g2-alt select { flex: 1 1 180px; min-height: 48px; }

/* ---------- ③ 協定をどう見る？（約束 → 実施 → 影響）と、有効・終了・確認中の件数 ---------- */
.look { margin: 30px 0 8px; padding: 24px 22px 20px; border-radius: 24px; border: 1px solid var(--line); background: var(--brand-tint); }
.look > h2 { margin: 0 0 18px; text-align: center; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.8rem); color: var(--brand-dark); }
.look3 { list-style: none; counter-reset: l3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; max-width: 920px; margin: 0 auto; padding: 0; }
.look3 > li { position: relative; min-width: 0; }
.look3 > li:not(:last-child)::after { content: ""; position: absolute; top: 58px; right: -33px; width: 16px; height: 16px; border-top: 5px solid var(--brand); border-right: 5px solid var(--brand); transform: rotate(45deg); }
.look3 a { display: grid; justify-items: center; align-content: start; gap: 6px; height: 100%; padding: 18px 12px 16px; border-radius: 20px; border: 2px solid var(--brand-line); background: #fff; color: var(--text); text-align: center; text-decoration: none; }
.look3 a:hover, .look3 a:focus-visible { border-color: var(--brand); box-shadow: 0 6px 18px rgba(0, 70, 85, .12); color: var(--text); }
.l3-ic { position: relative; display: block; width: 88px; height: 88px; padding: 19px; border-radius: 50%; background: var(--brand); color: #fff; }
.l3-ic::before { counter-increment: l3; content: counter(l3); position: absolute; top: -4px; left: -6px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--brand); background: #fff; color: var(--brand-dark); font-size: .95rem; font-weight: 700; line-height: 1; }
.look3 b { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); line-height: 1.4; color: var(--brand-dark); }
.l3-d { font-size: .95rem; line-height: 1.5; color: var(--muted); }
/* 有効性の件数（色の意味は地図・一覧と同じ：有効確認＝緑、有効性未確認＝茶・点線、終了確認＝灰） */
.vsbox { max-width: 920px; margin: 20px auto 0; padding: 14px 16px 4px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.vs-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 10px; font-weight: 700; font-size: 1.05rem; }
.vs-asof { font-weight: 400; font-size: .9rem; color: var(--muted); }
.vs-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.vs { display: grid; align-content: center; min-height: 66px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--c); background: #fff; color: var(--text); text-decoration: none; }
.vs:hover { box-shadow: 0 4px 14px rgba(0, 70, 85, .14); color: var(--text); }
.vs-k { display: flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 700; line-height: 1.4; color: var(--c); }
.vs-k::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.vs-n b { margin-right: 2px; font-size: 1.6rem; line-height: 1.15; }
.vs-valid { --c: #1d7347; }
.vs-unk { --c: #8a5a00; border-style: dashed; }
.vs-ended { --c: #5b6470; }
.vs-total { --c: var(--brand-dark); background: var(--brand-soft); }
.vs-total .vs-k::before { display: none; }
.vsbox .howcount { margin: 4px 0 6px; padding: 0; border: none; background: none; }
.vsbox .howcount[open] > summary { border-bottom: none; margin-bottom: 0; }

/* ---------- ④ さらに詳しく調べる（控えめなリンクの帯） ---------- */
.more4 { margin: 30px 0 8px; }
.more4 > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 1.2rem; color: var(--brand-dark); }
.more4 > h2::after { content: ""; flex: 1; height: 2px; background: var(--brand-line); }
.m4 { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.m4 > li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
.m4-ic { flex: none; width: 42px; height: 42px; padding: 8px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); }
.m4-b { display: grid; min-width: 0; }
.m4-t { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 1.04rem; line-height: 1.4; color: var(--brand-dark); }
.m4-s { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: .9rem; }
.m4-s a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); }
.m4-s a:hover { color: var(--brand-dark); }

@media (max-width: 999px) {
  .m4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .gates2 { grid-template-columns: 1fr; }
  .gate2 { grid-template-rows: auto auto auto auto auto; }
  .guide-banner { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); padding: 18px 20px; }
}
@media (max-width: 760px) {
  .look3 { grid-template-columns: 1fr; gap: 30px; max-width: 520px; }
  .look3 > li:not(:last-child)::after { top: auto; right: auto; bottom: -24px; left: calc(50% - 10px); transform: rotate(135deg); }
  .look3 a { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; align-items: center; column-gap: 14px; row-gap: 0; padding: 12px 14px; text-align: left; }
  .l3-ic { grid-row: 1 / span 2; width: 72px; height: 72px; padding: 15px; }
  .l3-ic::before { width: 26px; height: 26px; font-size: .85rem; }
  .look3 b { align-self: end; }
  .l3-d { align-self: start; }
  .vs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gb-wrap { margin-top: 12px; }
  .guide-banner { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px 12px; padding: 16px 14px 16px 18px; border-radius: 20px; }
  .gb-art { align-self: start; }
  .gb-go { min-height: 44px; padding: 6px 16px; font-size: 1rem; }
  .gate2 { padding: 16px 14px 18px; border-radius: 20px; gap: 12px; }
  .g2-art { min-height: 0; padding: 10px; }
  .g2-art img { height: 170px; }
  .g2-q .btn { padding: 10px 14px; }
  .g2-btns-2 { grid-template-columns: 1fr; }
  .btn-big { min-height: 54px; font-size: 1.05rem; }
  .look { padding: 18px 12px 14px; border-radius: 20px; }
  .vsbox { padding: 12px 12px 2px; }
  .vs-n b { font-size: 1.4rem; }
  .m4 { grid-template-columns: 1fr; }
}
