:root {
  --bg: #06080d;
  --ink: #eef2f7;
  --ink-2: #a7b0bf;
  --ink-3: #6b7486;
  --line: rgba(255, 255, 255, .08);
  --glass: rgba(255, 255, 255, .04);
  --glass-2: rgba(255, 255, 255, .07);
  --c1: #5eead4;
  --c2: #818cf8;
  --c3: #f472b6;
  --lime: #d9f99d;
  --hot: #fb7185;
  --warm: #fbbf24;
  --grad: linear-gradient(100deg, var(--c1), var(--c2) 55%, var(--c3));
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --num: "Space Grotesk", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--c1); }

/* ---- 背景 ---- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 24s var(--ease) infinite alternate; }
.aurora span:nth-child(1) { background: var(--c1); top: -25vmax; left: -15vmax; }
.aurora span:nth-child(2) { background: var(--c2); top: 10vmax; right: -25vmax; animation-delay: -8s; }
.aurora span:nth-child(3) { background: var(--c3); bottom: -35vmax; left: 20vmax; opacity: .12; animation-delay: -16s; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.1); } }
.gridlines { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); opacity: .5; }

.brand { color: inherit; text-decoration: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .04em; font-size: 15px; }
.brand .ai { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--num); margin-right: 1px; }
.brand-text { white-space: nowrap; }
.mark { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); box-shadow: 0 0 24px rgba(129, 140, 248, .6); position: relative; }
.mark::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: var(--bg); }
.eyebrow { font-family: var(--num); font-size: 12px; letter-spacing: .22em; color: var(--c1); margin: 0 0 10px; font-weight: 700; }
.display { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.12; margin: 0; font-weight: 900; letter-spacing: -.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--ink-2); font-size: 16px; margin: 18px 0 0; }

/* ---- オンボーディング ---- */
.screen { min-height: 100vh; min-height: 100dvh; }
.ob-head { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(16px, 4vw, 48px); }
.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.steps li { font-size: 12px; color: var(--ink-3); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); transition: all .4s var(--ease); }
.steps li b { font-family: var(--num); margin-right: 6px; }
.steps li.on { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.steps li.done { color: var(--c1); border-color: rgba(94, 234, 212, .4); }

.step { padding: 0 clamp(16px, 4vw, 48px) 40px; animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
/* 地図は画面いっぱい。見出しは地図の空き（日本海側）に重ねる */
.map-wrap { position: relative; width: 100%; max-width: calc((100dvh - 190px) * 1.18); min-width: min(100%, 640px); margin: 0 auto; }
.map-copy { position: absolute; top: 0; left: 0; width: 62%; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.map-copy .display { font-size: clamp(30px, 4.6vw, 64px); }
.map-copy .lead { font-size: clamp(13px, 1.3vw, 16px); }
#step-map.zoomed .map-copy { opacity: 0; transform: translateY(-12px); pointer-events: none; }
#japan { width: 100%; height: auto; display: block; overflow: visible; }
.tile rect { fill: color-mix(in srgb, var(--rc) 13%, transparent); stroke: color-mix(in srgb, var(--rc) 40%, transparent); stroke-width: 1; transition: fill .35s var(--ease), stroke .35s, opacity .35s, filter .35s; }
.tile text { fill: color-mix(in srgb, var(--rc) 55%, var(--ink)); font-size: 12px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; pointer-events: none; transition: fill .3s, opacity .3s; font-family: var(--font); }
.tile text.n { font-family: var(--num); font-size: 9.5px; font-weight: 500; opacity: 0; }
.tile { cursor: pointer; }
#japan.hovering .tile:not(.hl) rect, #japan.zoomed .tile:not(.in) rect { opacity: .25; }
#japan.zoomed .tile:not(.in) text { opacity: 0; }
.tile.hl rect, .tile.in rect { fill: color-mix(in srgb, var(--rc) 28%, transparent); stroke: var(--rc); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--rc) 70%, transparent)); }
.tile.hl text, .tile.in text { fill: var(--ink); }
#japan.zoomed .tile.in text.n { opacity: .85; }
.tile.in:hover rect { fill: color-mix(in srgb, var(--rc) 55%, transparent); }
.tile.sel rect { fill: var(--rc); stroke: #fff; stroke-width: 1.5; animation: pulse 1.2s var(--ease) infinite; }
.tile.sel text { fill: var(--bg) !important; }
@keyframes pulse { 50% { filter: drop-shadow(0 0 22px var(--rc)); } }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.map-legend button { border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 6px 12px; font-size: 13px; display: flex; align-items: center; gap: 6px; transition: all .25s var(--ease); }
.map-legend button i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.map-legend button:hover, .map-legend button.on { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }

.pref-panel { max-width: 980px; margin: 22px auto 0; animation: rise .5s var(--ease); }
.pref-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pref-panel h2 { font-size: 22px; margin: 0; }
.back-link { background: none; border: 0; color: var(--ink-3); padding: 0; font-size: 13px; }
.back-link:hover { color: var(--ink); }
.pref-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pref-btn { text-align: left; border: 1px solid var(--line); background: var(--glass); border-radius: 14px; padding: 12px 14px; transition: all .25s var(--ease); position: relative; overflow: hidden; }
.pref-btn b { display: block; font-size: 16px; }
.pref-btn small { color: var(--ink-3); font-size: 11.5px; }
.pref-btn small em { font-family: var(--num); font-style: normal; color: var(--rc); font-weight: 700; font-size: 13px; }
.pref-btn:hover { border-color: var(--rc); transform: translateY(-2px); background: color-mix(in srgb, var(--rc) 10%, transparent); }
.pref-btn.sel { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 22%, transparent); }

.center-col { max-width: 880px; margin: 0 auto; padding-top: clamp(16px, 6vh, 64px); }
.pill-mini { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip { border: 1px solid var(--line); background: var(--glass); border-radius: 14px; padding: 13px 18px; font-size: 15px; font-weight: 500; transition: all .25s var(--ease); }
.chip:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); }
.chip.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 0 10px 40px rgba(129, 140, 248, .35); }
.chip.any { border-style: dashed; color: var(--ink-2); }
.chip.any.sel { color: var(--bg); border-style: solid; }
.chips.small { margin-top: 18px; }
.chips.small .chip { padding: 8px 14px; font-size: 13px; font-family: var(--num); }

.emp-meter { display: flex; align-items: baseline; gap: 10px; margin-top: 30px; }
.emp-meter output { font-family: var(--num); font-size: clamp(80px, 14vw, 160px); font-weight: 700; line-height: 1; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.emp-meter span { font-size: 28px; font-weight: 900; color: var(--ink-2); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; margin-top: 24px;
  background: linear-gradient(90deg, var(--c1), var(--c2) var(--p, 40%), rgba(255, 255, 255, .1) var(--p, 40%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(129, 140, 248, .35), 0 6px 20px rgba(0, 0, 0, .5); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(129, 140, 248, .35); }

.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 44px; flex-wrap: wrap; }
.ghost { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; color: var(--ink-2); }
.ghost:hover { color: var(--ink); border-color: rgba(255, 255, 255, .3); }
.cta { border: 0; border-radius: 999px; padding: 16px 28px; font-weight: 900; font-size: 16px; color: var(--bg); background: var(--grad);
  box-shadow: 0 12px 50px rgba(129, 140, 248, .45); display: inline-flex; gap: 12px; align-items: center; transition: transform .25s var(--ease), box-shadow .25s; }
.cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 60px rgba(244, 114, 182, .45); }
.cta .arrow { transition: transform .25s var(--ease); }
.cta:hover .arrow { transform: translateX(4px); }

/* ---- 結果 ---- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px clamp(16px, 4vw, 48px); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(6, 8, 13, .7); border-bottom: 1px solid var(--line); }
.profile { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 8px 8px 8px 14px; font-size: 13.5px; font-weight: 700; min-width: 0; transition: border-color .2s; }
.profile:hover { border-color: rgba(255, 255, 255, .3); }
.profile .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); flex: none; }
#profile-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile .edit { flex: none; font-size: 12px; background: var(--ink); color: var(--bg); padding: 3px 10px; border-radius: 999px; }

.feed { max-width: 980px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.hero { padding: clamp(32px, 7vh, 72px) 0 28px; animation: rise .7s var(--ease); }
.hero-title { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.hero-title .count { font-family: var(--num); font-size: clamp(88px, 16vw, 180px); font-weight: 700; line-height: .9; letter-spacing: -.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .unit { font-size: 32px; font-weight: 900; color: var(--ink-2); }
.hero-sub { font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; margin: 10px 0 0; }
.hero-sub .updated { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 8px; font-family: var(--num); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 28px; }
.stat { border: 1px solid var(--line); background: var(--glass); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-family: var(--num); font-size: 28px; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--ink-2); }
.stat.hot b { color: var(--hot); }
.stat.c1 b { color: var(--c1); }
.stat.c2 b { color: var(--c2); }

/* 普段は背景なし。上に貼り付いたときだけ、すりガラスの帯にする */
.toolbar { position: sticky; top: 62px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 0;
  border-radius: 0 0 20px 20px; transition: background .3s, box-shadow .3s, padding .3s; }
.toolbar.stuck { background: rgba(10, 13, 20, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35), inset 0 -1px 0 var(--line); padding: 10px 12px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 0 16px; }
.search:focus-within { border-color: var(--c2); box-shadow: 0 0 0 4px rgba(129, 140, 248, .15); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; background: none; border: 0; color: var(--ink); font: inherit; padding: 11px 0; outline: none; min-width: 0; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--glass); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); transition: all .2s; }
.seg button.on { background: var(--ink); color: var(--bg); font-weight: 700; }
.toggle { flex: none; white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle span { width: 38px; height: 22px; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; transition: background .25s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.toggle input:checked + span { background: var(--c1); }
.toggle input:checked + span::after { transform: translateX(16px); }

.list { display: grid; gap: 10px; padding-bottom: 40px; }
.card { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; text-align: left; width: 100%;
  border: 1px solid var(--line); background: var(--glass); border-radius: var(--radius); padding: 16px 18px;
  transition: transform .3s var(--ease), border-color .3s, background .3s; animation: rise .5s var(--ease) both; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .22); background: var(--glass-2); }
.ring { position: relative; width: 64px; height: 64px; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: rgba(255, 255, 255, .08); }
.ring .fg { stroke: var(--rc, var(--c1)); stroke-linecap: round; filter: drop-shadow(0 0 6px var(--rc, var(--c1))); }
.ring div { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring b { font-family: var(--num); font-size: 19px; display: block; }
.ring small { font-size: 9.5px; color: var(--ink-3); display: block; margin-top: 2px; }
.card h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-2); white-space: nowrap; }
.tag.money { background: rgba(217, 249, 157, .12); color: var(--lime); font-family: var(--num); font-weight: 700; }
.tag.local { background: rgba(94, 234, 212, .12); color: var(--c1); font-weight: 700; }
.tag.new { background: rgba(244, 114, 182, .14); color: var(--c3); font-weight: 700; }
.card .go { font-size: 22px; color: var(--ink-3); transition: transform .3s var(--ease), color .3s; }
.card:hover .go { transform: translateX(4px); color: var(--ink); }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius); }
.skeleton { height: 96px; border-radius: var(--radius); background: linear-gradient(90deg, var(--glass) 0%, var(--glass-2) 50%, var(--glass) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.foot { color: var(--ink-3); font-size: 12px; text-align: center; padding: 20px 16px 40px; }
.foot a { color: inherit; }

/* ---- ドロワー ---- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); z-index: 20; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; z-index: 21; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #0b0f17; border-left: 1px solid var(--line);
  transform: translateX(105%); transition: transform .45s var(--ease); overflow-y: auto; padding: 28px clamp(18px, 4vw, 32px) 40px; }
.drawer.open { transform: none; }
.close { position: sticky; top: 0; float: right; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #0b0f17; font-size: 20px; line-height: 1; z-index: 1; }
.drawer h2 { font-size: 21px; line-height: 1.45; margin: 8px 48px 18px 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--glass); }
.fact span { font-size: 11.5px; color: var(--ink-3); display: block; }
.fact b { font-size: 15px; display: block; margin-top: 2px; line-height: 1.45; }
.fact.wide { grid-column: 1 / -1; }
.drawer { overflow-x: hidden; }
/* ---- 確認ダイアログ ---- */
.confirm { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); animation: fade .2s; }
.confirm-box { width: min(420px, 100%); background: #0d1220; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: rise .3s var(--ease); }
.confirm-box p { margin: 0 0 20px; font-size: 16px; font-weight: 700; line-height: 1.6; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.confirm-actions .cta { padding: 12px 22px; font-size: 14px; }

/* ---- AI補助金診断 ---- */
.diag-cta { margin-top: 14px; width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid transparent; background: linear-gradient(#0d1220, #0d1220) padding-box, var(--grad) border-box; transition: transform .3s var(--ease), box-shadow .3s; }
.diag-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(129, 140, 248, .3); }
.diag-badge { flex: none; font-size: 12px; font-weight: 900; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: var(--bg); }
.diag-copy { flex: 1; min-width: 0; }
.diag-copy b { display: block; font-size: 16px; }
.diag-copy small { color: var(--ink-2); font-size: 12.5px; }
.diag-cta .arrow { font-size: 22px; color: var(--ink-2); transition: transform .3s var(--ease); }
.diag-cta:hover .arrow { transform: translateX(4px); color: var(--ink); }

.diag { position: fixed; z-index: 21; inset: 0; margin: auto; width: min(720px, calc(100% - 24px)); height: min(860px, calc(100dvh - 32px)); overflow-y: auto; overflow-x: hidden;
  background: #0b0f17; border: 1px solid var(--line); border-radius: 24px; padding: 32px clamp(18px, 4vw, 40px) 40px;
  opacity: 0; transform: translateY(24px) scale(.98); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.diag.open { opacity: 1; transform: none; pointer-events: auto; }
.diag-title { font-size: clamp(26px, 4vw, 36px); line-height: 1.25; margin: 0 48px 10px 0; font-weight: 900; }
.diag-lead { color: var(--ink-2); margin: 0 0 18px; font-size: 14.5px; }
.diag-profile { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 8px 14px; margin-bottom: 18px; }
.diag-profile .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.diag-profile small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diag label, .diag-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.diag-field { margin-top: 16px; }
.diag select, .diag textarea, .diag input { font: inherit; font-weight: 400; color: var(--ink); background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
.diag select option { background: #0b0f17; }
.diag textarea { resize: vertical; }
.diag select:focus, .diag textarea:focus, .diag input:focus { outline: none; border-color: var(--c2); box-shadow: 0 0 0 4px rgba(129, 140, 248, .15); }
.diag .chips.small { margin-top: 4px; }
.diag .chips.small .chip { font-family: var(--font); }
.cta.wide { width: 100%; justify-content: center; margin-top: 22px; }
.cta:disabled { opacity: .55; cursor: default; transform: none; }
.diag-small { font-size: 11.5px; color: var(--ink-3); margin: 12px 0 0; line-height: 1.6; }
.diag-error { color: var(--hot); font-size: 14px; margin: 14px 0 0; }
.diag-loading { text-align: center; padding: 60px 0; }
.orb { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; background: var(--grad); filter: blur(2px); animation: orb 2.4s var(--ease) infinite; box-shadow: 0 0 60px rgba(129, 140, 248, .6); }
@keyframes orb { 0%, 100% { transform: scale(.9) rotate(0); border-radius: 50%; } 50% { transform: scale(1.08) rotate(180deg); border-radius: 42% 58% 55% 45%; } }
.diag-loading h3 { margin: 0 0 18px; font-size: 20px; }
.diag-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 420px; text-align: left; display: grid; gap: 10px; }
.diag-steps li { font-size: 14px; color: var(--ink-3); padding-left: 26px; position: relative; transition: color .3s; }
.diag-steps li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-3); }
.diag-steps li.on { color: var(--ink); }
.diag-steps li.on::before { border-color: var(--c1); border-top-color: transparent; animation: spin .8s linear infinite; }
.diag-steps li.done { color: var(--ink-2); }
.diag-steps li.done::before { background: var(--c1); border-color: var(--c1); }
.diag-sub { font-size: 14px; color: var(--ink-2); margin: 8px 0 10px; letter-spacing: .04em; }
.diag-cards { display: grid; gap: 10px; }
.diag-card { text-align: left; width: 100%; border: 1px solid var(--line); background: var(--glass); border-radius: var(--radius); padding: 14px 16px; transition: border-color .3s, transform .3s var(--ease); }
.diag-card:hover { border-color: rgba(255, 255, 255, .25); transform: translateY(-2px); }
.diag-card-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.diag-card h4 { margin: 8px 0 6px; font-size: 16px; line-height: 1.5; }
.diag-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.diag-card p b { color: var(--c1); font-weight: 700; }
.fit { font-size: 12px; font-weight: 900; padding: 3px 10px; border-radius: 999px; }
.fit.high { background: var(--grad); color: var(--bg); }
.fit.mid { background: rgba(255, 255, 255, .1); color: var(--ink); }
.diag-none { color: var(--ink-2); font-size: 14px; }
.locked { position: relative; margin-top: 22px; border-radius: var(--radius); padding: 20px; border: 1px solid rgba(129, 140, 248, .35);
  background: radial-gradient(120% 120% at 0% 0%, rgba(94, 234, 212, .12), transparent 50%), radial-gradient(120% 120% at 100% 100%, rgba(244, 114, 182, .12), transparent 50%), #0d1220; }
.locked-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.locked-stats.two { grid-template-columns: repeat(2, 1fr); margin: 6px 0 4px; }
/* 結果カードはぼかして、上に「近日公開予定」を重ねる */
.teaser { position: relative; }
.diag-card.blurred { filter: blur(5px); user-select: none; pointer-events: none; }
.teaser-lock { position: absolute; inset: 0; display: grid; place-items: center; }
.teaser-lock span { font-weight: 900; font-size: 15px; padding: 10px 20px; border-radius: 999px; background: rgba(11, 15, 23, .82);
  border: 1px solid rgba(129, 140, 248, .5); box-shadow: 0 10px 40px rgba(129, 140, 248, .3); backdrop-filter: blur(4px); }
.locked .diag-sub { margin: 20px 0 0; }
.locked-stats b { display: block; font-family: var(--num); font-size: 40px; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.locked-stats span { font-size: 12px; color: var(--ink-2); line-height: 1.4; display: block; }
.months { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 14px; }
.months span { font-family: var(--num); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.months small { color: var(--ink-3); font-size: 12px; }
.ghosts { display: grid; gap: 8px; margin-top: 16px; filter: blur(3px); opacity: .6; }
.ghost { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.ghost i { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.ghost i:nth-child(1) { width: 30%; } .ghost i:nth-child(2) { width: 85%; height: 14px; } .ghost i:nth-child(3) { width: 60%; }
.locked-cta { text-align: center; margin-top: 16px; }
.locked-cta p { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.locked-cta p b { color: var(--ink); }
.ghost-link { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--c1); font-size: 14px; text-decoration: underline; }
@media (max-width: 560px) {
  .diag { border-radius: 22px 22px 0 0; inset: auto 0 0 0; width: 100%; height: 92dvh; }
  .diag-grid { grid-template-columns: 1fr; }
  .diag-cta { flex-wrap: wrap; }
  .locked-stats b { font-size: 30px; }
}

/* ---- やさしい版 ---- */
.official { margin: -4px 0 8px; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.card .official { margin: -4px 0 8px; }
.drawer .official { margin: -10px 0 16px; }
.tag.warn { background: rgba(251, 113, 133, .15); color: var(--hot); font-weight: 700; }
.one-liner { font-size: 16px; font-weight: 700; margin: 0 0 14px; line-height: 1.6; }
.warn-box { border: 1px solid rgba(251, 113, 133, .45); background: rgba(251, 113, 133, .1); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.warn-box b { color: var(--hot); font-size: 14px; }
.warn-box p { margin: 4px 0 0; font-size: 14px; }
.pref-page { display: inline-block; font-family: var(--num); font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; }
.check { border-radius: var(--radius); padding: 1px; background: var(--grad); margin-bottom: 14px; }
.check > * { background: #0d1220; }
.check { display: flex; flex-direction: column; overflow: hidden; }
.check h4 { margin: 0; padding: 14px 16px 6px; font-size: 13px; letter-spacing: .06em; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.check label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 16px; font-size: 14.5px; cursor: pointer; }
.check input { display: none; }
.check .box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink-3); margin-top: 2px; transition: all .2s var(--ease); position: relative; }
.check input:checked + .box { background: var(--c1); border-color: var(--c1); }
.check input:checked + .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.check-result { margin: 0; padding: 8px 16px 14px; font-size: 13px; color: var(--ink-2); border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }
.check-result.ok { color: var(--lime); font-weight: 700; }
.money-box, .steps-box, .use { border: 1px solid var(--line); background: var(--glass); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.money-box h4, .steps-box h4, .use h4 { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-2); letter-spacing: .04em; }
.money-box p { margin: 0; font-size: 15px; font-weight: 700; color: var(--lime); }
.money-box p.sub { font-size: 13px; color: var(--ink-2); font-weight: 400; margin-top: 4px; }
.use-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.use ul, .steps-box ol { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.75; }
.use.ok h4 { color: var(--c1); }
.use.ng h4 { color: var(--hot); }
.ai-note { font-size: 11.5px; color: var(--ink-3); margin: 14px 0 0; line-height: 1.6; }
.easy-loading { margin-bottom: 14px; }
.easy-loading p { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.easy-loading .shim { height: 14px; border-radius: 6px; margin: 8px 0; background: linear-gradient(90deg, var(--glass) 0%, var(--glass-2) 50%, var(--glass) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.orig { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.orig summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.orig .detail-text { border-top: 0; padding-top: 0; margin-top: 10px; }
@media (max-width: 560px) { .use-grid { grid-template-columns: 1fr; } }
.detail-text { overflow-wrap: anywhere; margin-top: 18px; white-space: pre-wrap; color: var(--ink-2); font-size: 14px; line-height: 1.8; border-top: 1px solid var(--line); padding-top: 18px; }
.drawer .cta { margin-top: 22px; text-decoration: none; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; background: var(--bg); transition: opacity .4s; }
.boot.gone { opacity: 0; pointer-events: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .1); border-top-color: var(--c1); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .map-wrap { min-width: 0; max-width: none; }
  .map-copy { position: static; width: auto; margin-bottom: 8px; }
  #step-map.zoomed .map-copy { display: none; }
  .lead br { display: none; }
}
@media (max-width: 560px) {
  .steps li { padding: 5px 9px; font-size: 11px; }
  .steps li b { margin-right: 3px; }
  .brand { font-size: 14px; gap: 8px; }
  .card { grid-template-columns: 52px 1fr; gap: 12px; padding: 14px; }
  .ring, .ring svg { width: 52px; height: 52px; }
  .ring b { font-size: 16px; }
  .card .go { display: none; }
  .drawer { top: auto; height: 90dvh; width: 100%; border-left: 0; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; transform: translateY(105%); }
  .toolbar { top: 58px; }
  .seg button { padding: 7px 10px; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
