@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #14213d;
  --muted: #65718a;
  --paper: #f6f8fc;
  --surface: #ffffff;
  --line: #dce3ee;
  --navy: #101d38;
  --blue: #2962ff;
  --cyan: #3bd3c6;
  --yellow: #ffd557;
  --pink: #ff7a9a;
  --purple: #7567ee;
  --shadow: 0 18px 50px rgba(16, 29, 56, 0.1);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(41, 98, 255, .35); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 74px; padding: 13px clamp(20px, 5vw, 72px); color: #fff;
  background: rgba(16, 29, 56, .96); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0; color: #fff; font-weight: 700; background: none; border: 0; cursor: pointer; text-align: left; }
.brand-mark { position: relative; display: block; width: 35px; height: 29px; flex: 0 0 auto; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; height: 2px; background: rgba(255,255,255,.45); transform-origin: left center; }
.brand-mark::before { width: 25px; left: 5px; top: 7px; transform: rotate(31deg); }
.brand-mark::after { width: 26px; left: 6px; top: 22px; transform: rotate(-28deg); }
.brand-mark i { position: absolute; z-index: 1; width: 9px; height: 9px; border: 2px solid var(--navy); border-radius: 50%; background: var(--yellow); }
.brand-mark i:nth-child(1) { left: 0; top: 1px; } .brand-mark i:nth-child(2) { right: 0; top: 11px; background: var(--cyan); } .brand-mark i:nth-child(3) { left: 2px; bottom: 0; background: var(--pink); }
.header-search { position: relative; width: min(360px, 38vw); }
.header-search svg { position: absolute; left: 15px; top: 12px; width: 20px; fill: none; stroke: #9caccc; stroke-width: 2; }
.header-search input { width: 100%; height: 44px; padding: 0 18px 0 44px; color: #fff; background: #1b2b4c; border: 1px solid #314261; border-radius: 13px; }
.header-search input::placeholder { color: #aeb9ce; }
.search-results { position: absolute; top: 52px; right: 0; width: min(420px, 90vw); max-height: 360px; overflow: auto; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.search-result { display: block; width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid #edf0f5; background: #fff; text-align: left; cursor: pointer; }
.search-result:hover { background: #f2f6ff; }
.search-result small { display: block; margin-top: 3px; color: var(--muted); }

main { min-height: calc(100vh - 140px); }
.loading-state { display: grid; place-items: center; gap: 16px; min-height: 70vh; color: var(--muted); }
.loading-orbit { width: 38px; height: 38px; border: 3px solid #dce4f2; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.map-stage { padding: clamp(38px, 6vw, 72px) clamp(20px, 5vw, 72px) clamp(52px, 7vw, 84px); background: #edf2f9; }
.map-stage-heading { display: flex; align-items: end; justify-content: space-between; gap: 34px; max-width: 1500px; margin: 0 auto 22px; }
.map-stage-heading .eyebrow { color: var(--blue); }
.map-stage-heading h1 { margin: 0; font-size: clamp(2.1rem, 4.4vw, 4.2rem); line-height: 1.16; letter-spacing: -.045em; }
.map-stage-heading h1 em { color: var(--blue); font-style: normal; }
.map-stage-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: 1500px; margin: 0 auto 28px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--kind-color); }
[data-kind="school"] { --kind-color: #2962ff; }
[data-kind="academic"] { --kind-color: #7567ee; }
[data-kind="technology"] { --kind-color: #07998e; }
[data-kind="interest"] { --kind-color: #df8b00; }
[data-kind="career"] { --kind-color: #e34f78; }
.overview-maps { display: grid; gap: 18px; max-width: 1500px; margin: 0 auto; }
.overview-map { overflow: hidden; background: #fff; border: 1px solid #d9e1ee; border-radius: 21px; box-shadow: 0 10px 34px rgba(16,29,56,.06); }
.overview-map-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 15px; padding: 18px 22px; border-bottom: 1px solid #e7ebf2; }
.overview-map-heading > span { color: var(--blue); font-family: Manrope, sans-serif; font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.overview-map-heading h2 { margin: 0; font-size: 1.1rem; }
.overview-map-heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.map-flow { display: flex; align-items: stretch; gap: 0; padding: 22px; overflow-x: auto; scrollbar-color: #afbad0 transparent; }
.map-node-card { position: relative; flex: 0 0 178px; min-height: 155px; padding: 17px; border: 1px solid #dce3ee; border-top: 4px solid var(--kind-color); border-radius: 14px; background: #fff; }
.map-node-card small { display: block; overflow: hidden; color: var(--muted); font-size: .68rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.map-node-card h3 { margin: 9px 0 7px; font-size: 1.05rem; }
.map-node-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: .76rem; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.map-node-card a { position: absolute; left: 17px; bottom: 13px; color: var(--blue); font-size: .72rem; font-weight: 700; text-decoration: none; }
.map-node-card a:hover { text-decoration: underline; }
.map-connector { position: relative; flex: 0 0 142px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 12px 10px; text-align: center; }
.map-connector > span { position: relative; width: calc(100% + 20px); height: 2px; margin-bottom: 10px; background: #b8c4d8; }
.map-connector > span::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid #7e8da7; border-right: 2px solid #7e8da7; transform: rotate(45deg); }
.map-connector strong { color: var(--blue); font-size: .7rem; }
.map-connector p { margin: 5px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.map-branches { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; padding: 0 22px 22px; }
.map-branches-title { align-self: center; max-width: 80px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.map-branch-group { position: relative; display: flex; flex-wrap: wrap; gap: 8px; padding: 26px 12px 12px; background: #f5f7fb; border-radius: 13px; }
.map-branch-group::before { content: ""; position: absolute; left: 22px; top: 0; height: 18px; border-left: 2px solid #b8c4d8; }
.map-branch-source { position: absolute; left: 12px; top: 6px; color: var(--blue); font-size: .68rem; font-weight: 800; }
.map-branch-source::after { content: " から"; color: var(--muted); font-weight: 500; }
.map-branch-card { flex: 1 1 125px; min-width: 0; padding: 10px 11px; background: #fff; border-left: 4px solid var(--kind-color); border-radius: 9px; }
.map-branch-card b { display: block; font-size: .83rem; }
.map-branch-card small { display: block; margin-top: 3px; color: var(--blue); font-size: .62rem; font-weight: 700; }
.map-branch-card p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: .65rem; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.path-tool-section { padding: clamp(52px, 7vw, 86px) clamp(20px, 7vw, 112px); background: var(--navy); }
.path-tool-section .route-finder { width: min(820px, 100%); margin: 0 auto; }

.intro-shell { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(34px, 6vw, 90px); padding: clamp(56px, 8vw, 108px) clamp(20px, 7vw, 112px) 80px; overflow: hidden; background: var(--navy); color: #fff; }
.intro-shell::after { content: ""; position: absolute; width: 480px; height: 480px; right: -170px; top: -260px; border: 1px solid rgba(59,211,198,.25); border-radius: 50%; box-shadow: 0 0 0 80px rgba(59,211,198,.035), 0 0 0 160px rgba(59,211,198,.025); pointer-events: none; }
.intro-copy { position: relative; z-index: 1; }
.eyebrow, .micro-label { margin: 0 0 12px; font-family: Manrope, sans-serif; font-size: .75rem; font-weight: 800; letter-spacing: .18em; color: var(--cyan); }
.intro-copy h1 { margin: 0; max-width: 700px; font-size: clamp(2.25rem, 5vw, 4.7rem); line-height: 1.18; letter-spacing: -.04em; }
.intro-copy h1 em { color: var(--yellow); font-style: normal; }
.intro-text { max-width: 610px; margin: 27px 0 0; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.9; color: #bdc9de; }
.featured-paths { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.path-chip { padding: 10px 14px; color: #eef3ff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; cursor: pointer; }
.path-chip:hover { border-color: var(--cyan); background: rgba(59,211,198,.1); }

.route-finder { position: relative; z-index: 1; align-self: center; padding: clamp(24px, 3vw, 38px); background: #fff; color: var(--ink); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.route-finder::before { content: ""; position: absolute; width: 13px; height: 13px; left: -7px; top: 42px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 7px rgba(255,122,154,.14); }
.route-heading { display: flex; align-items: center; gap: 14px; }
.route-heading .micro-label { color: var(--blue); margin-bottom: 4px; }
.route-heading h2 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.route-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #eaf0ff; color: var(--blue); font-size: 1.5rem; }
.route-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; margin: 25px 0 18px; }
.route-controls label { display: grid; gap: 7px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.route-controls select { width: 100%; min-width: 0; height: 46px; padding: 0 36px 0 12px; color: var(--ink); background: #f7f9fc; border: 1px solid var(--line); border-radius: 11px; }
.route-arrow { margin-bottom: 12px; color: var(--blue); font-weight: 800; }
.primary-button { width: 100%; min-height: 48px; padding: 12px 20px; color: #fff; font-weight: 700; background: var(--blue); border: 0; border-radius: 12px; cursor: pointer; box-shadow: 0 9px 22px rgba(41,98,255,.24); }
.primary-button:hover { background: #164ee5; }
.path-result { margin-top: 18px; }
.path-result:empty { display: none; }
.path-trail { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding: 14px; background: #f5f8ff; border-radius: 12px; scrollbar-width: thin; }
.path-trail button { flex: 0 0 auto; padding: 6px 9px; color: var(--ink); background: #fff; border: 1px solid #d7e0f1; border-radius: 8px; cursor: pointer; font-size: .84rem; font-weight: 600; }
.path-trail span { flex: 0 0 auto; color: var(--blue); }
.path-note { margin: 9px 0 0; color: var(--muted); font-size: .8rem; }

.entry-section, .browse-section { padding: clamp(58px, 8vw, 96px) clamp(20px, 7vw, 112px); }
.section-heading, .browse-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading h2, .browse-heading h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.7rem); letter-spacing: -.035em; }
.section-heading .micro-label, .browse-heading .micro-label { color: var(--blue); }
.section-heading > p { max-width: 470px; margin: 0; line-height: 1.8; color: var(--muted); }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.entry-card { position: relative; min-height: 242px; padding: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.entry-card::after { content: attr(data-number); position: absolute; right: -6px; bottom: -33px; font-family: Manrope, sans-serif; font-size: 7rem; font-weight: 800; color: rgba(20,33,61,.045); }
.entry-card .entry-symbol { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 16px; font-family: Manrope, sans-serif; font-size: 1.25rem; font-weight: 800; }
.entry-card:nth-child(1) .entry-symbol { background: #e9efff; color: var(--blue); }
.entry-card:nth-child(2) .entry-symbol { background: #e3faf7; color: #087e76; }
.entry-card:nth-child(3) .entry-symbol { background: #fff3c9; color: #8a6500; }
.entry-card h3 { margin: 22px 0 10px; font-size: 1.35rem; }
.entry-card p { margin: 0; line-height: 1.7; color: var(--muted); }
.entry-card .entry-link { position: absolute; left: 26px; bottom: 24px; color: var(--blue); font-size: .9rem; font-weight: 700; }

.browse-section { background: #edf2f9; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter-button { padding: 9px 14px; color: #526078; background: transparent; border: 1px solid #cbd5e4; border-radius: 999px; cursor: pointer; font-size: .87rem; font-weight: 600; }
.filter-button.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.node-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.node-card { position: relative; min-height: 155px; padding: 20px; background: #fff; border: 1px solid transparent; border-radius: 16px; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.node-card:hover { transform: translateY(-2px); border-color: #aebbd1; }
.node-kind { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .74rem; font-weight: 700; }
.node-kind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--blue)); }
.node-card h3 { margin: 13px 0 8px; font-size: 1.05rem; }
.node-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: .85rem; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.mindmap-page { display: flex; flex-direction: column; height: calc(100dvh - 74px); min-height: 520px; padding: 14px clamp(14px, 2.5vw, 38px) 18px; overflow: hidden; background: #edf2f9; }
.mindmap-toolbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 58px; }
.mindmap-back { padding: 9px 12px; color: #41506a; background: #fff; border: 1px solid #d7dfeb; border-radius: 10px; cursor: pointer; font-size: .8rem; font-weight: 700; }
.mindmap-toolbar > div { min-width: 0; }
.mindmap-toolbar span { display: block; color: var(--blue); font-size: .66rem; font-weight: 800; letter-spacing: .08em; }
.mindmap-toolbar h1 { overflow: hidden; margin: 2px 0 0; font-size: clamp(1.05rem, 1.8vw, 1.55rem); letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.mindmap-toolbar > p { margin: 0; color: var(--muted); font-size: .75rem; }
.mindmap-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; flex: 1; min-height: 0; }
.mindmap-canvas-wrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mindmap-canvas { position: relative; flex: 1; min-height: 410px; overflow: hidden; background: radial-gradient(circle at center, rgba(255,255,255,.98) 0 7%, rgba(255,255,255,.72) 32%, rgba(255,255,255,.35) 58%, transparent 75%), radial-gradient(#b9c5d7 1px, transparent 1px); background-size: auto, 22px 22px; border: 1px solid #d5deeb; border-radius: 20px; box-shadow: inset 0 0 80px rgba(52,79,125,.06); }
.mindmap-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mindmap-line { vector-effect: non-scaling-stroke; stroke: #8393ad; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: drawMapLine .65s cubic-bezier(.22,.8,.32,1) var(--delay) forwards; }
.mindmap-line.level-2 { stroke: #b9c4d5; stroke-width: 1.1; }
.mindmap-node { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 106px; max-width: 138px; min-height: 42px; padding: 9px 12px; color: var(--ink); background: rgba(255,255,255,.97); border: 1px solid #cfd9e8; border-radius: 999px; box-shadow: 0 7px 20px rgba(16,29,56,.1); cursor: pointer; transform: translate(-50%, -50%); opacity: 0; animation: mapNodeIn .5s cubic-bezier(.17,.84,.3,1.16) var(--delay) forwards; }
.mindmap-node:hover { z-index: 4; border-color: var(--kind-color); box-shadow: 0 9px 26px rgba(16,29,56,.18); }
.mindmap-node i { width: 9px; height: 9px; flex: 0 0 auto; background: var(--kind-color); border-radius: 50%; }
.mindmap-node strong { font-size: .79rem; line-height: 1.3; text-align: center; }
.mindmap-node.is-outer { min-width: 92px; min-height: 35px; padding: 7px 10px; box-shadow: 0 4px 13px rgba(16,29,56,.07); }
.mindmap-node.is-outer strong { font-size: .7rem; }
.mindmap-node.is-root { z-index: 3; flex-direction: column; gap: 3px; min-width: 150px; min-height: 72px; padding: 13px 18px; color: #fff; background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--kind-color) 45%, transparent), 0 12px 30px rgba(16,29,56,.25); cursor: default; }
.mindmap-node.is-root i { display: none; }
.mindmap-node.is-root strong { max-width: 180px; font-size: 1.03rem; }
.mindmap-node.is-root small { color: #aebbd0; font-size: .62rem; }
.mindmap-edge-label { position: absolute; z-index: 1; max-width: 96px; padding: 2px 6px; color: #5d6a80; background: rgba(247,249,252,.9); border-radius: 5px; font-size: .56rem; font-weight: 700; line-height: 1.25; text-align: center; transform: translate(-50%, -50%); opacity: 0; animation: fadeMapLabel .35s ease calc(var(--delay, 120ms) + 300ms) forwards; }
.mindmap-legend { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 7px 6px 0; color: var(--muted); font-size: .62rem; font-weight: 700; }
.mindmap-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mindmap-legend span::before { content: ""; width: 7px; height: 7px; background: var(--kind-color); border-radius: 50%; }
.mindmap-inspector { min-height: 0; overflow: hidden; padding: 20px; background: var(--navy); color: #fff; border-radius: 20px; }
.inspector-kind { display: inline-flex; align-items: center; gap: 7px; color: var(--kind-color); font-size: .68rem; font-weight: 800; }
.inspector-kind::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 50%; }
.mindmap-inspector h2 { margin: 7px 0 9px; font-size: 1.35rem; letter-spacing: -.03em; }
.inspector-summary { margin: 0; color: #bcc8dc; font-size: .78rem; line-height: 1.65; }
.mindmap-inspector dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 15px 0; }
.mindmap-inspector dl div { padding: 9px; background: rgba(255,255,255,.07); border-radius: 9px; }
.mindmap-inspector dt { color: #91a0ba; font-size: .58rem; }
.mindmap-inspector dd { margin: 3px 0 0; font-size: .7rem; font-weight: 700; }
.mindmap-inspector h3 { margin: 16px 0 8px; color: #aebbd0; font-size: .68rem; }
.inspector-relations { display: grid; gap: 6px; max-height: calc(100% - 250px); overflow: auto; scrollbar-width: thin; scrollbar-color: #53617a transparent; }
.inspector-relations button { padding: 9px 10px; color: #fff; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.09); border-radius: 9px; cursor: pointer; text-align: left; }
.inspector-relations button:hover { background: rgba(59,211,198,.11); border-color: rgba(59,211,198,.35); }
.inspector-relations span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inspector-relations b { font-size: .72rem; }
.inspector-relations small { color: var(--cyan); font-size: .55rem; }
.inspector-relations p { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: #aebbd0; font-size: .63rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
body:has(.mindmap-page) footer { display: none; }
@keyframes drawMapLine { to { stroke-dashoffset: 0; } }
@keyframes mapNodeIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.38); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes fadeMapLabel { to { opacity: 1; } }
.error-card { max-width: 650px; margin: 80px auto; padding: 35px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }

footer { padding: 28px clamp(20px, 7vw, 112px); color: #8995aa; background: var(--navy); font-size: .8rem; }
footer p { margin: 0; display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 980px) {
  .intro-shell { grid-template-columns: 1fr; }
  .intro-copy { max-width: 750px; }
  .route-finder { max-width: 720px; width: 100%; }
  .node-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mindmap-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 122px; align-items: stretch; flex-direction: column; gap: 12px; padding: 14px 18px; }
  .brand { font-size: .9rem; }
  .header-search { width: 100%; }
  .search-results { left: 0; right: auto; width: 100%; }
  .map-stage { padding: 34px 16px 52px; }
  .map-stage-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .map-stage-heading h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .map-stage-heading > p { font-size: .92rem; }
  .overview-map-heading { grid-template-columns: 1fr; gap: 5px; }
  .overview-map-heading p { line-height: 1.6; }
  .map-flow { flex-direction: column; overflow: visible; padding: 18px; }
  .map-node-card { flex: auto; min-height: 145px; width: 100%; }
  .map-connector { flex: auto; min-height: 112px; width: 100%; padding: 14px 18px; }
  .map-connector > span { width: 2px; height: 34px; margin: 0 0 9px; background: #b8c4d8; }
  .map-connector > span::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
  .map-connector p { max-width: 330px; font-size: .72rem; }
  .map-branches { grid-template-columns: 1fr; padding: 0 16px 18px; }
  .map-branches-title { max-width: none; }
  .map-branch-group { padding-top: 30px; }
  .intro-shell { padding-top: 46px; }
  .intro-copy h1 { font-size: clamp(2.1rem, 10.5vw, 3.4rem); }
  .route-controls { grid-template-columns: 1fr; }
  .route-arrow { display: none; }
  .section-heading, .browse-heading { align-items: flex-start; flex-direction: column; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-card { min-height: 210px; }
  .filter-row { justify-content: flex-start; }
  .node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mindmap-page { height: auto; min-height: calc(100dvh - 122px); padding: 8px 10px 18px; overflow: visible; }
  .mindmap-toolbar { grid-template-columns: auto minmax(0, 1fr); gap: 8px; min-height: 62px; }
  .mindmap-toolbar > p { display: none; }
  .mindmap-back { padding: 8px 9px; font-size: .68rem; }
  .mindmap-toolbar h1 { font-size: .96rem; }
  .mindmap-layout { display: flex; flex-direction: column; }
  .mindmap-canvas { flex: none; height: min(62dvh, 520px); min-height: 390px; border-radius: 16px; }
  .mindmap-node { min-width: 82px; max-width: 100px; min-height: 36px; padding: 7px 8px; gap: 5px; }
  .mindmap-node strong { font-size: .66rem; }
  .mindmap-node.is-outer { min-width: 70px; max-width: 88px; min-height: 30px; padding: 5px 7px; }
  .mindmap-node.is-outer strong { font-size: .58rem; }
  .mindmap-node.is-root { min-width: 112px; min-height: 60px; padding: 10px 13px; }
  .mindmap-node.is-root strong { max-width: 135px; font-size: .83rem; }
  .mindmap-edge-label { display: none; }
  .mindmap-legend { justify-content: center; }
  .mindmap-inspector { padding: 16px; border-radius: 16px; }
  .inspector-relations { max-height: 260px; }
}

@media (max-width: 430px) {
  .node-grid { grid-template-columns: 1fr; }
  .node-card { min-height: 135px; }
  .intro-text { line-height: 1.75; }
  footer p { flex-direction: column; }
}

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