/* 学習マップのスタイル。外部のフォントや画像は使わない。
   色は :root の変数で持ち、暗い画面では上書きする。職種の群の色は .g1〜.g5 が --g に入れる。 */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --bg-sub: #eef1f7;
  --ink: #141a2b;
  --sub: #5a6478;
  --line: #dde2ec;
  --accent: #4338ca;
  --accent-ink: #ffffff;
  --hot: #ff6b35;
  --chip: #eef1f7;
  --chip-on: #4338ca;
  --note: #fff7e0;
  --note-line: #e8b93c;
  --hero-a: #0c1230;
  --hero-b: #2a1f6b;
  --hero-ink: #f4f6ff;
  --hero-sub: #b9c0e4;
  --on-g: #ffffff;
  --shadow: 0 1px 2px rgba(20, 26, 43, .06), 0 8px 24px rgba(20, 26, 43, .07);
  --shadow-up: 0 2px 4px rgba(20, 26, 43, .08), 0 16px 36px rgba(20, 26, 43, .14);
  --radius: 16px;
  --l1: #2f8a4a; --l1-bg: #e4f4e9;
  --l2a: #2f66b8; --l2a-bg: #e5eefb;
  --l2b: #7447b5; --l2b-bg: #f0e9fb;
  --l3: #c2661a; --l3-bg: #fdeedd;
  --lx: #667085; --lx-bg: #eef0f3;
  --g1: #2563eb; --g2: #059669; --g3: #7c3aed; --g4: #e11d48; --g5: #d97706;
  --g: var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f1d; --surface: #141a2e; --bg-sub: #1a2138; --ink: #e8ecf8; --sub: #9aa5c0; --line: #2a3350;
    --accent: #8f8cff; --accent-ink: #0b0f1d; --chip: #1f2740; --chip-on: #8f8cff;
    --note: #2b2410; --note-line: #8a6d1e;
    --hero-a: #070b1e; --hero-b: #1d1650; --on-g: #0b0f1d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-up: 0 2px 4px rgba(0, 0, 0, .5), 0 16px 36px rgba(0, 0, 0, .5);
    --l1: #6fcf8d; --l1-bg: #13301d; --l2a: #7fb0f5; --l2a-bg: #14233d; --l2b: #b99af0; --l2b-bg: #251a3d;
    --l3: #f0a765; --l3-bg: #3a2512; --lx: #a3acbd; --lx-bg: #212839;
    --g1: #6ea0ff; --g2: #34d399; --g3: #b392ff; --g4: #fb7185; --g5: #fbbf24;
  }
}
.g1 { --g: var(--g1); } .g2 { --g: var(--g2); } .g3 { --g: var(--g3); } .g4 { --g: var(--g4); } .g5 { --g: var(--g5); }

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  line-height: 1.8; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.4; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.sub { color: var(--sub); font-size: .9rem; }
.hint, .count { font-size: .88rem; color: var(--sub); margin: 6px 0 0; }
.note { border-left: 4px solid var(--note-line); background: var(--note); padding: 10px 14px; margin: 10px 0; font-size: .93rem; border-radius: 0 10px 10px 0; }

/* ---------- アルファ版の帯(content/site.md の stage: alpha のときだけ出る) ---------- */
.stage-bar { background: var(--note); border-bottom: 1px solid var(--note-line); color: var(--ink); font-size: .86rem; line-height: 1.6; }
.stage-bar .wrap { padding-top: 6px; padding-bottom: 6px; }
.stage-bar strong { display: inline-block; margin-right: 10px; padding: 0 8px; border-radius: 999px; background: var(--note-line); color: #1d1606; font-size: .75rem; letter-spacing: .04em; }

/* ---------- ページの上の帯 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .bar { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 22px; margin-left: auto; }
.nav-group { display: flex; align-items: center; gap: 2px; }
.nav-label { font-size: .7rem; font-weight: 700; color: var(--sub); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; margin-right: 4px; line-height: 1.7; white-space: nowrap; }
.nav a { padding: 5px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .93rem; font-weight: 600; white-space: nowrap; }
.nav a:hover { background: var(--bg-sub); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--surface); }
@media (max-width: 760px) {
  .nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; gap: 14px; }
  .nav-group { flex: none; }
  .nav a { padding: 4px 8px; }
}

/* ---------- ボタン、札、印 ---------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--hot); color: #1a0d05; box-shadow: 0 8px 24px rgba(255, 107, 53, .35); }
.btn.ghost { border: 1.5px solid rgba(255, 255, 255, .45); color: var(--hero-ink); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--chip); border-radius: 999px; padding: 2px 12px; font-size: .9rem; font-weight: 600; }
.badge { display: inline-block; border-radius: 999px; padding: 0 8px; font-size: .75rem; font-weight: 600; margin-left: 6px; vertical-align: middle; line-height: 1.7; }
.badge.l1 { background: var(--l1-bg); color: var(--l1); }
.badge.l2a { background: var(--l2a-bg); color: var(--l2a); }
.badge.l2b { background: var(--l2b-bg); color: var(--l2b); }
.badge.l3 { background: var(--l3-bg); color: var(--l3); }
.badge.lx { background: var(--lx-bg); color: var(--lx); }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 3px 14px; font-size: .9rem; cursor: pointer; line-height: 1.7; font-family: inherit;
}
.chip[aria-pressed="true"] { background: var(--chip-on); color: var(--accent-ink); border-color: var(--chip-on); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- トップのヒーロー ---------- */
.hero, .page-hero {
  color: var(--hero-ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1px, transparent 0) 0 0 / 26px 26px,
    radial-gradient(900px 480px at 85% 10%, rgba(255, 107, 53, .22), transparent 60%),
    linear-gradient(135deg, var(--hero-a), var(--hero-b));
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 84px; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 2px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--hot); border: 1px solid rgba(255, 107, 53, .55); }
.hero h1 span, .hero h1 em { display: inline-block; }
.hero h1 { margin: 0 0 18px; font-size: clamp(1.7rem, 4.3vw, 3rem); font-weight: 900; line-height: 1.25; letter-spacing: .01em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffb347, #ff6b35 60%, #ff5c8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 0 0 10px; color: var(--hero-sub); font-size: 1.02rem; max-width: 38em; }
.hero-lead.strong { color: var(--hero-ink); font-weight: 700; font-size: 1.12rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-map { width: 100%; height: auto; display: block; }
.hero-map .ring { fill: none; stroke: rgba(255, 255, 255, .07); }
.hero-map .route { fill: none; stroke: var(--hot); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; }
.hero-map .route-glow { fill: none; stroke: rgba(255, 107, 53, .18); stroke-width: 18; stroke-linecap: round; }
.hero-map .pin { fill: var(--hero-a); stroke: var(--hot); stroke-width: 3; }
.hero-map .pin.goal { fill: var(--hot); }
.hero-map .pin-num { fill: #fff; font-size: 17px; font-weight: 800; text-anchor: middle; }
.hero-map .pin-label { fill: var(--hero-ink); font-size: 16px; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .hero-map .route { animation: march 1.6s linear infinite; }
}
@keyframes march { to { stroke-dashoffset: -28; } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; }
  .hero-art { max-width: 420px; }
}

/* ---------- トップの各ブロック ---------- */
.block { padding-top: 56px; }
.block-head { margin-bottom: 20px; }
.block-head h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 900; }
.block-head h2::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--hot); margin-bottom: 12px; }
.block-head p { margin: 6px 0 0; color: var(--sub); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -40px; position: relative; }
.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.stat b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; line-height: 1.1; color: var(--accent); }
.stat span { font-size: .9rem; color: var(--sub); font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: -28px; } }

.audience-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.audience { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 20px; position: relative; overflow: hidden; }
.audience::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--accent), var(--hot)); }
.audience .no { display: block; font-size: 2.2rem; font-weight: 900; line-height: 1; color: color-mix(in srgb, var(--accent) 25%, transparent); }
.audience h3 { font-size: 1.08rem; margin: 6px 0 8px; font-weight: 800; }
.audience p { margin: 0; font-size: .95rem; }
.audience a { font-weight: 700; }

.group-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.group-tile { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border-top: 5px solid var(--g); }
.group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.group-mark {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 900; color: var(--on-g); background: var(--g);
}
.group-head h2, .group-head h3 { margin: 0; font-size: 1.12rem; font-weight: 800; }
.group-head .concern { margin: 0; font-size: .85rem; color: var(--sub); }
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.role-chips a {
  display: block; padding: 3px 12px; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600;
  color: var(--ink); background: color-mix(in srgb, var(--g) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--g) 30%, transparent);
  transition: background .15s, color .15s;
}
.role-chips a:hover, .role-chips a[aria-current="page"] { background: var(--g); color: var(--on-g); }

.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; counter-reset: flow; }
.flow-steps li { counter-increment: flow; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.flow-steps li::before { content: counter(flow); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 800; margin-bottom: 8px; }
.flow-steps strong { display: block; font-size: 1rem; }
.flow-steps span { font-size: .82rem; color: var(--sub); line-height: 1.6; display: block; margin-top: 2px; }
.more { margin: 18px 0 0; font-weight: 700; }
.more a { text-decoration: none; }
.more a::after { content: " →"; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cards a {
  display: block; height: 100%; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.cards a:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cards strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.cards strong::after { content: " →"; color: var(--hot); }
.cards span { font-size: .9rem; color: var(--sub); }

.mission { margin-top: 64px; padding: 56px 0; color: var(--hero-ink); background: linear-gradient(135deg, var(--hero-b), var(--hero-a)); }
.mission .wrap { max-width: 820px; text-align: center; }
.mission h2 { margin: 0 0 14px; font-size: .9rem; letter-spacing: .12em; color: var(--hot); }
.mission p { margin: 0 0 20px; font-size: clamp(1.1rem, 2.6vw, 1.45rem); font-weight: 700; line-height: 1.8; }

/* ---------- トップ以外のページの見出しの帯 ---------- */
.page-hero { padding: 36px 0 40px; }
.page-hero h1 { margin: 0; font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 900; }
.page-hero .hero-sub { margin: 10px 0 0; color: var(--hero-sub); max-width: 46em; }
.role-hero { background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1px, transparent 0) 0 0 / 26px 26px,
    radial-gradient(800px 420px at 90% 0%, color-mix(in srgb, var(--g) 55%, transparent), transparent 65%),
    linear-gradient(135deg, var(--hero-a), var(--hero-b)); }
.role-hero .group-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 3px 14px 3px 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .88rem; font-weight: 700; color: var(--hero-ink); text-decoration: none; }
.role-hero .group-pill .group-mark { width: 28px; height: 28px; border-radius: 50%; font-size: .9rem; }
.role-hero .tags { margin-top: 18px; }
.role-hero .tag { background: rgba(255, 255, 255, .12); color: var(--hero-ink); }
.role-hero .layers { margin: 14px 0 0; font-size: .85rem; color: var(--hero-sub); }

/* ---------- 職種の一覧 ---------- */
.list-page { padding-top: 28px; padding-bottom: 64px; }
.filters { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 28px; }
.search input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font-size: 1rem; font-family: inherit;
}
.search input:focus { outline: none; border-color: var(--accent); }
.filter-row { margin-top: 12px; }
.filter-label { display: block; font-size: .8rem; font-weight: 700; color: var(--sub); margin-bottom: 6px; }
.group-block { margin-bottom: 36px; }
.group-block .group-head { margin-bottom: 14px; }
.role-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.role-card {
  display: block; height: 100%; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  border-left: 5px solid var(--g); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.role-card strong { display: block; font-size: 1.05rem; }
.role-card span { display: block; font-size: .85rem; color: var(--sub); line-height: 1.6; margin-top: 2px; }

/* ---------- 職種のページ ---------- */
.role-body { padding-top: 32px; padding-bottom: 72px; }
.role-body .journey { max-width: 920px; }
.role-body > section { margin-bottom: 48px; }
.role-body h2 { font-size: 1.4rem; font-weight: 900; margin: 0 0 10px; }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.intro-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.intro-card h2 { font-size: 1rem; font-weight: 800; margin: 0 0 8px; color: var(--g); }
.intro-card p { margin: 0 0 8px; font-size: .96rem; }
.intro-card p:last-child { margin-bottom: 0; }
.intro-card.lead-card { grid-column: 1 / -1; border-left: 6px solid var(--g); }
.intro-card.lead-card p { font-size: 1.05rem; }

.timeline { list-style: none; margin: 22px 0 0; padding: 0; }
.tl-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; position: relative; padding-bottom: 22px; }
.tl-step::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 3px; background: repeating-linear-gradient(var(--g) 0 6px, transparent 6px 12px); }
.tl-step:last-child { padding-bottom: 0; }
.tl-step:last-child::before { display: none; }
.tl-num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; font-weight: 900; background: var(--g); color: var(--on-g); box-shadow: 0 6px 16px color-mix(in srgb, var(--g) 40%, transparent); }
.tl-body { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px 20px; }
.tl-body h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.tl-body .hint { margin: 2px 0 12px; }
.tl-body h4 { font-size: .8rem; font-weight: 700; color: var(--sub); margin: 14px 0 6px; }
.tl-body ul { margin: 0; padding: 0; list-style: none; }
.tl-body li { padding: 8px 0; border-top: 1px solid var(--line); }
.tl-body li:first-child { border-top: none; padding-top: 0; }
.tl-body li > a:first-child { font-weight: 700; }
@media (max-width: 560px) {
  .tl-step { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .tl-num { width: 38px; height: 38px; font-size: 1.05rem; }
  .tl-step::before { left: 18px; top: 38px; }
  .tl-body { padding: 14px 16px 16px; }
}

/* ---------- 案内のページ(このサイトについて、学び方) ---------- */
.guide { padding-top: 28px; padding-bottom: 72px; }
.guide > * { max-width: 800px; }
.guide h2 { font-size: 1.35rem; font-weight: 900; margin: 44px 0 10px; display: flex; align-items: center; gap: 12px; }
.guide h2:first-child { margin-top: 8px; }
.guide h2 .num { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); font-size: 1.15rem; }
.guide p { margin: 10px 0; }
.guide ul, .guide ol { margin: 12px 0; padding: 16px 20px 16px 40px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.guide li { margin: 6px 0; }
.guide li::marker { color: var(--accent); font-weight: 800; }
.guide ol.flow { list-style: none; padding: 0; background: none; box-shadow: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: flow; }
.guide ol.flow li { counter-increment: flow; margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 14px 58px; position: relative; font-size: .92rem; }
.guide ol.flow li::before { content: counter(flow); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--hot); color: #1a0d05; font-weight: 800; }
.guide ol.flow strong { display: block; font-size: 1rem; }

/* ---------- 資料のページ(知識体系、資格、分野)。文書の形のまま整える ---------- */
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.layout .side { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
.layout .side .filters { box-shadow: none; padding: 0; margin-bottom: 14px; background: none; }
.layout .detail { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .layout .detail { order: -1; padding: 22px 20px; }
  .layout .side { position: static; max-height: none; }
}
.detail h1 { margin: 0 0 6px; font-size: 1.7rem; font-weight: 900; }
.detail .meta { color: var(--sub); margin: 0 0 14px; font-size: .95rem; }
.detail section { margin: 24px 0; }
.detail h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.detail ul { margin: 0; padding-left: 1.3em; }
.detail li { margin: 4px 0; }
.detail .prose h3 { border-bottom: none; padding-bottom: 0; color: var(--accent); font-size: .95rem; }
.detail .prose p { margin: 4px 0 10px; }
.ref-list { margin: 0; padding-left: 1.3em; }
.stage-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stage-table th, .stage-table td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.stage-table th { color: var(--sub); font-weight: 700; white-space: nowrap; width: 5em; }

.role-list { display: flex; flex-direction: column; gap: 18px; }
.role-group h2 { font-size: .9rem; margin: 0 0 4px; font-weight: 800; }
.role-group .concern { font-size: .8rem; color: var(--sub); margin: 0 0 6px; }
.role-group ul { list-style: none; margin: 0; padding: 0; }
.role-group .sub-head { font-size: .78rem; font-weight: 700; color: var(--sub); margin: 8px 0 2px; }
.role-group li .list-link { display: block; color: var(--ink); text-decoration: none; padding: 4px 10px; border-radius: 8px; font-size: .93rem; }
.role-group li .list-link:hover { background: var(--bg-sub); }
.role-group li .list-link[aria-current="page"] { background: var(--ink); color: var(--surface); font-weight: 700; }
/* 一覧のページでは、名前を札として並べる */
.list-page .role-list { gap: 20px; }
.list-page .role-list .role-group { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.list-page .role-list .role-group h2 { font-size: 1.05rem; }
.list-page .role-list .role-group ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.list-page .role-list .role-group li .list-link { border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; font-weight: 600; }
.list-page .role-list .role-group li .list-link:hover { border-color: var(--accent); color: var(--accent); background: none; }
.list-page .role-list .role-group .sub-head { flex-basis: 100%; margin: 6px 0 0; }
.list-columns { display: flex; flex-direction: column; gap: 20px; }

/* ---------- 層の図 ---------- */
.figures { padding-top: 28px; padding-bottom: 64px; }
.figure-block { margin: 0 0 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.figure-block h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 10px; }
.figure-scroll { overflow-x: auto; }
.figure-svg { display: block; width: 100%; height: auto; min-width: 720px; }
.figure-svg a { cursor: pointer; }
.figure-svg a:hover, .figure-svg a:focus { text-decoration: underline; }
.figure-svg text a { fill: inherit; text-decoration: underline; text-decoration-color: var(--line); }
.figure-svg text a:hover { text-decoration-color: currentColor; }

/* ---------- ページの下 ---------- */
.site-footer { background: var(--hero-a); color: var(--hero-sub); padding: 36px 0 40px; font-size: .88rem; }
.site-footer .foot-brand { color: var(--hero-ink); font-weight: 800; font-size: 1.05rem; margin: 0 0 4px; }
.site-footer .foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; }
.site-footer a { color: var(--hero-ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 4px 0; }
