:root {
  --bg: #0b0f1a;
  --bg-2: #111827;
  --card: #151c2c;
  --card-2: #1b2437;
  --line: #273246;
  --text: #e8ecf5;
  --muted: #98a3b8;
  --accent: #7c5cff;
  --accent-2: #2bd4ff;
  --danger: #ff5c7a;
  --ok: #3ddc97;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  --font-disp: 'Orbitron', 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(124, 92, 255, .25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(43, 212, 255, .18), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
}

a { color: var(--accent-2); }
h1, h2, h3 { line-height: 1.3; margin: 0; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 960px; margin: 0 auto;
}
.logo {
  color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px;
}
.logo-mark {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 12px;
}

#app { max-width: 960px; margin: 0 auto; padding: 8px 16px 64px; }
.view { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- スタート ---------- */
.hero { text-align: center; padding: 48px 8px 40px; }
.hero-kicker { font-family: var(--font-disp); color: var(--accent-2); letter-spacing: .3em; font-size: 12px; margin-bottom: 14px; }
.hero-title { font-size: clamp(38px, 8vw, 68px); font-weight: 900; letter-spacing: .02em; }
.grad {
  background: linear-gradient(90deg, #a78bfa, #2bd4ff 50%, #3ddc97);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { max-width: 560px; margin: 22px auto 30px; color: var(--muted); font-size: 16px; }
.hero-lead strong { color: var(--text); }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 13px; }

.btn {
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(124, 92, 255, .4);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(124, 92, 255, .55); transform: translateY(-1px); }
.btn-lg { padding: 18px 46px; font-size: 18px; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-x { background: #000; color: #fff; border: 1px solid #333; }
.btn-line { background: #06c755; color: #fff; }
.btn-copy { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }

.section-title { font-size: 20px; font-weight: 900; margin: 40px 0 18px; text-align: center; }

.axes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.axis-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.axis-chip b { display: block; font-size: 15px; }
.axis-chip span { color: var(--muted); font-size: 12.5px; line-height: 1.5; display: block; margin-top: 2px; }
.axis-chip.style b { color: var(--accent-2); }

.types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.type-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px;
  text-align: center; transition: transform .15s, border-color .15s;
}
.type-tile:hover { transform: translateY(-2px); border-color: var(--tc, var(--accent)); }
.type-tile .ic { font-size: 28px; display: block; }
.type-tile .nm { font-weight: 900; font-size: 15px; display: block; margin-top: 4px; }
.type-tile .en { font-family: var(--font-disp); font-size: 10px; letter-spacing: .1em; color: var(--tc, var(--muted)); display: block; }
.type-tile .tag { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }

/* ---------- 質問 ---------- */
.quiz-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 20px; margin: 24px auto; max-width: 640px; box-shadow: var(--shadow);
}
.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.progress-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s ease; }
.progress-text { font-family: var(--font-disp); font-size: 12px; color: var(--muted); white-space: nowrap; }
.q-label { font-family: var(--font-disp); color: var(--accent-2); font-size: 13px; letter-spacing: .15em; }
.q-text { font-size: clamp(18px, 3.2vw, 22px); font-weight: 700; margin: 8px 0 24px; min-height: 3.2em; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 14px; padding: 14px 16px; font-size: 15px; font-weight: 500;
  transition: border-color .15s, background .15s, transform .1s;
}
.choice:hover { border-color: var(--accent); background: #202a40; }
.choice.selected { border-color: var(--accent-2); background: rgba(43, 212, 255, .12); }
.choice .dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 900;
}
.choice[data-v="-2"] .dot { border-color: #ff5c7a; color: #ff5c7a; }
.choice[data-v="-1"] .dot { border-color: #ff9d7a; color: #ff9d7a; }
.choice[data-v="0"]  .dot { border-color: #98a3b8; color: #98a3b8; }
.choice[data-v="1"]  .dot { border-color: #7fd7ff; color: #7fd7ff; }
.choice[data-v="2"]  .dot { border-color: #3ddc97; color: #3ddc97; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 18px; }

/* ---------- 結果 ---------- */
.result-hero {
  position: relative; overflow: hidden; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 20px 30px; margin-top: 20px; box-shadow: var(--shadow);
}
.result-hero::before {
  content: ''; position: absolute; inset: -40% -20% auto; height: 120%;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--tc) 40%, transparent), transparent 65%);
  pointer-events: none;
}
.result-hero > * { position: relative; }
.result-kicker { font-family: var(--font-disp); font-size: 12px; letter-spacing: .3em; color: var(--muted); }
.result-icon { font-size: 64px; line-height: 1; margin: 12px 0 6px; }
.result-name { font-size: clamp(32px, 7vw, 46px); font-weight: 900; letter-spacing: .02em; }
.result-en { font-family: var(--font-disp); font-size: 13px; letter-spacing: .25em; color: var(--tc); margin-top: 2px; }
.result-catch { margin-top: 14px; font-size: 17px; font-weight: 700; color: var(--text); }
.result-summary { margin: 8px auto 0; max-width: 520px; color: var(--muted); font-size: 14.5px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.badge {
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
}
.badge.main { border-color: var(--tc); color: var(--tc); }

.share-box { text-align: center; margin: 22px 0 8px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.share-row .btn { padding: 12px 20px; font-size: 14px; }
.share-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; margin-top: 16px;
}
.card h3 { font-size: 17px; font-weight: 900; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h3::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--tc, var(--accent)); }
.card p + p { margin-top: 12px; }
.card .lead { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* レーダー */
.radar-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: center; }
@media (max-width: 720px) { .radar-wrap { grid-template-columns: 1fr; } }
.radar { width: 100%; max-width: 320px; margin: 0 auto; display: block; }
.radar .ring { fill: none; stroke: var(--line); }
.radar .spoke { stroke: var(--line); }
.radar .area { fill: color-mix(in srgb, var(--tc) 30%, transparent); stroke: var(--tc); stroke-width: 2.5; stroke-linejoin: round; }
.radar .pt { fill: var(--tc); }
.radar .lbl { fill: var(--text); font-size: 13px; font-weight: 700; text-anchor: middle; }
.radar .val { fill: var(--muted); font-size: 10px; text-anchor: middle; }
.drive-list { display: grid; gap: 8px; }
.drive-row { display: grid; grid-template-columns: 52px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.drive-row .nm { font-weight: 700; }
.drive-row .bar { height: 10px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.drive-row .bar i { display: block; height: 100%; border-radius: 99px; background: var(--tc, var(--accent)); opacity: .55; }
.drive-row.top .bar i { opacity: 1; }
.drive-row .v { text-align: right; font-family: var(--font-disp); font-size: 12px; color: var(--muted); }

/* スタイル軸 */
.style-list { display: grid; gap: 16px; }
.style-row .labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.style-row .labels .on { color: var(--accent-2); }
.style-row .track { position: relative; height: 12px; border-radius: 99px; background: var(--bg-2); margin: 6px 0 4px; }
.style-row .track::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--line); }
.style-row .knob {
  position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 4px rgba(43,212,255,.18);
}
.style-row .desc { color: var(--muted); font-size: 12.5px; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.plain li { padding-left: 22px; position: relative; font-size: 14.5px; }
ul.plain li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; }
ul.plain.good li::before { background: var(--ok); }
ul.plain.badl li::before { background: var(--danger); }

.compat { display: grid; gap: 10px; }
.compat-item {
  display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px;
}
.compat-item .ic { font-size: 26px; }
.compat-item .nm { font-weight: 900; }
.compat-item .sub { font-size: 12.5px; color: var(--muted); }
.compat-item.bad { border-color: rgba(255, 92, 122, .4); }

.advice { font-size: 16px; font-weight: 700; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border-left: 4px solid var(--tc); }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }

.site-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px 40px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700;
  opacity: 0; transition: .25s; pointer-events: none; z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 追加: モデル別 ---------- */
.q-part { font-family: var(--font-disp); font-size: 11px; letter-spacing: .2em; color: var(--muted); margin-bottom: 6px; }
.choices.compact { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .choices.compact { grid-template-columns: 1fr; } }
.choices.compact .choice { padding: 11px 12px; font-size: 14px; }
.choice.multi .dot { border-radius: 6px; }
.choice.multi.selected .dot { background: var(--accent-2); color: #0b0f1a; border-color: var(--accent-2); }
.axis-chip span { margin-top: 6px; }
.drive-row .nm small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; line-height: 1.2; }
.drive-row { grid-template-columns: 96px 1fr 40px; }
.bartle-map { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.bartle-map .q { font-size: 12px; font-weight: 700; text-anchor: middle; }
.bartle-map .ax { font-size: 10px; fill: var(--muted); text-anchor: middle; }
ul.plain.reads li::before { background: var(--accent-2); }
ul.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.sources li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
ul.sources li a { font-weight: 700; display: block; }
ul.sources li span { color: var(--muted); font-size: 12.5px; }
.card ul.sources li { background: var(--bg-2); }

ol.q-list { list-style: none; padding: 0; margin: 0 auto; max-width: 640px; display: grid; gap: 8px; counter-reset: q; }
ol.q-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; display: flex; gap: 12px; align-items: baseline; }
ol.q-list li b { font-family: var(--font-disp); color: var(--accent-2); font-size: 12px; min-width: 30px; }
.card p b { color: var(--text); }
.card p { font-size: 15px; line-height: 1.9; }

/* ---------- 24資質版 ---------- */
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 12px 0 18px; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } .pair-vs { display: none; } }
.pair-card { position: relative; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 16px; font-size: 15.5px; font-weight: 700; line-height: 1.7; display: flex; align-items: center; }
.pair-card p { margin: 0; }
.pair-card .pair-tag { position: absolute; top: -10px; left: 12px; font-family: var(--font-disp); font-size: 11px; padding: 2px 8px; border-radius: 999px; color: #0b0f1a; }
.pair-card.a { border-color: rgba(43,212,255,.5); } .pair-card.a .pair-tag { background: var(--accent-2); }
.pair-card.b { border-color: rgba(255,138,212,.5); } .pair-card.b .pair-tag { background: #ff8ad4; }
.pair-vs { align-self: center; font-family: var(--font-disp); color: var(--muted); font-size: 12px; }
.scale-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 560px) { .scale-row { grid-template-columns: 1fr; } }
.scale { background: var(--card-2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px 6px; font-size: 12.5px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: .15s; cursor: pointer; }
.scale .k { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 11px; }
.scale.a { border-color: rgba(43,212,255,.35); } .scale.a .k { border-color: var(--accent-2); color: var(--accent-2); }
.scale.b { border-color: rgba(255,138,212,.35); } .scale.b .k { border-color: #ff8ad4; color: #ff8ad4; }
.scale:hover { background: #202a40; }
.scale.selected { background: rgba(124,92,255,.2); border-color: var(--accent); }
@media (max-width: 560px) { .scale { flex-direction: row; justify-content: flex-start; padding: 12px 14px; font-size: 14px; } }
ol.top5 { list-style: none; padding: 0; margin: 18px auto 0; max-width: 520px; display: grid; gap: 8px; }
ol.top5 li { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--tc); border-radius: 12px; padding: 10px 14px; text-align: left; }
ol.top5 .rank { font-family: var(--font-disp); font-weight: 800; font-size: 18px; color: var(--tc); }
ol.top5 .nm { font-size: 20px; font-weight: 900; }
ol.top5 .en { font-family: var(--font-disp); font-size: 10px; letter-spacing: .12em; color: var(--muted); }
ol.top5 .dom { font-size: 12px; color: var(--tc); font-weight: 700; }
.theme-card .theme-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.theme-card .theme-head .rank { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-disp); font-weight: 800; font-size: 18px; color: #0b0f1a; flex: none; }
.theme-card h3::before { display: none; }
.theme-card h3 small { font-family: var(--font-disp); font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-left: 6px; }
.theme-card .dom { font-size: 12.5px; font-weight: 700; }
.theme-card .theme-tag { font-weight: 700; font-size: 15.5px; margin-bottom: 10px; color: var(--text); }
.theme-card h4 { font-size: 13.5px; margin: 0 0 8px; color: var(--muted); }
ul.plain li::before { background: var(--tc, var(--accent)); }

.site-nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.site-nav a:hover { color: var(--text); border-color: var(--muted); }
.card p a { color: var(--accent-2); text-decoration: none; }
