
:root {
  --bg: #07111f;
  --text: #f8fbff;
  --muted: #b8c7dd;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --pink: #fb3da4;
  --yellow: #facc15;
  --green: #00e632;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --danger: #ff8a8a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.22), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(251, 61, 164, 0.24), transparent 32%),
    radial-gradient(circle at 50% 95%, rgba(250, 204, 21, 0.16), transparent 34%),
    linear-gradient(180deg, #06101d 0%, #08162a 52%, #07111f 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
.page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 48px; }
.narrow-page { width: min(760px, calc(100% - 32px)); }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:10px 0 18px; }
.brand { display:inline-flex; align-items:center; opacity:.86; }
.brand-text { font-size:20px; line-height:1; font-weight:950; letter-spacing:-.055em; color:#f8fbff; text-shadow:0 0 18px rgba(255,255,255,.12); }
.brand-text span { color:inherit; }
.lang-link,.back-link { padding:8px 12px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:13px; background:rgba(255,255,255,.06); backdrop-filter:blur(12px); }
.hero { display:grid; grid-template-columns:1.03fr .97fr; gap:34px; align-items:center; padding:34px 0 28px; }
.badge { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background:rgba(34,211,238,.12); border:1px solid rgba(34,211,238,.32); color:#d9fbff; font-size:13px; font-weight:800; margin-bottom:18px; }
.badge span { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 18px var(--green); }
h1 { margin:0; font-size:clamp(34px,6vw,68px); line-height:1.02; letter-spacing:-.06em; }
.grad { background:linear-gradient(90deg,#ffffff,#a5f3fc 38%,#ff7ac3 78%,#fde68a); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lead { margin:20px 0 0; color:var(--muted); font-size:clamp(16px,2.5vw,19px); line-height:1.85; max-width:620px; }
.actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.primary-btn,.secondary-btn { min-height:54px; padding:0 24px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; font-weight:900; border:0; cursor:pointer; font-size:15px; }
.primary-btn { color:#06101d; background:linear-gradient(135deg,#67e8f9,#f9a8d4 55%,#fde047); box-shadow:0 16px 40px rgba(251,61,164,.24),0 0 0 1px rgba(255,255,255,.18) inset; }
.secondary-btn { color:var(--text); background:rgba(255,255,255,.08); border:1px solid var(--line); }
.keyword-line { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-top:22px; color:rgba(219,234,254,.86); font-size:13px; font-weight:800; }
.keyword-line span { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.keyword-line span::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--green); box-shadow:0 0 14px rgba(0,230,50,.65); }
.visual { position:relative; min-height:520px; }
.character-card { position:absolute; border-radius:30px; overflow:hidden; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); box-shadow:var(--shadow); backdrop-filter:blur(18px); }
.character-card img { position:absolute; top:0; left:0; display:block; width:100%; height:100%; object-fit:cover; }
.card-dark { width:62%; left:0; top:34px; transform:rotate(-4deg); }
.card-dark::before { content:""; display:block; padding-bottom:100%; }
.card-pop { width:58%; right:0; bottom:22px; transform:rotate(5deg); }
.card-pop::before { content:""; display:block; padding-bottom:100%; }
.glow-orb { position:absolute; width:240px; height:240px; border-radius:50%; background:radial-gradient(circle,rgba(34,211,238,.38),transparent 70%); filter:blur(4px); left:24%; top:32%; z-index:-1; }
.float-chip { position:absolute; z-index:3; padding:10px 14px; border-radius:999px; background:rgba(8,22,42,.82); border:1px solid rgba(255,255,255,.16); backdrop-filter:blur(16px); font-size:13px; font-weight:900; box-shadow:0 12px 34px rgba(0,0,0,.34); }
.chip-1 { top:6px; right:8%; } .chip-2 { left:4%; bottom:18px; }
.section { margin-top:26px; padding:26px; border-radius:30px; background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.055)); border:1px solid var(--line); box-shadow:0 18px 54px rgba(0,0,0,.22); }
.section-title { margin:0 0 14px; font-size:24px; letter-spacing:-.04em; }
.section-lead { margin:0; color:var(--muted); line-height:1.8; font-size:15px; max-width:800px; }
.route-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:18px; }
.route-card { padding:18px; border-radius:24px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); }
.route-card strong { display:block; font-size:17px; margin-bottom:7px; }
.route-card p { margin:0; color:var(--muted); line-height:1.7; font-size:14px; }
.type-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:18px; }
.type-chip { padding:16px 12px; min-height:86px; border-radius:22px; background:radial-gradient(circle at top right,rgba(251,61,164,.18),transparent 48%),rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); }
.type-chip b { display:block; font-size:13px; color:#a5f3fc; margin-bottom:6px; }
.type-chip span { display:block; font-size:14px; font-weight:900; line-height:1.45; }
.footer-cta { margin-top:26px; text-align:center; padding:30px 20px; border-radius:30px; background:radial-gradient(circle at 50% 0%,rgba(251,61,164,.22),transparent 42%),rgba(255,255,255,.08); border:1px solid var(--line); }
.footer-cta h2 { margin:0; font-size:clamp(26px,5vw,42px); letter-spacing:-.05em; }
.footer-cta p { margin:12px auto 22px; color:var(--muted); line-height:1.8; max-width:620px; }
/* start / quiz */
.intro { text-align:center; padding:18px 0 22px; }
.start-card,.question-card,.progress-card,.result-card { background:radial-gradient(circle at top left, rgba(56,189,248,.20), transparent 42%), radial-gradient(circle at bottom right, rgba(251,61,164,.16), transparent 44%), rgba(255,255,255,.085); border:1px solid rgba(255,255,255,.16); box-shadow:var(--shadow); backdrop-filter:blur(18px); }
.start-card { margin-top:18px; padding:24px; border-radius:32px; }
.block { padding:18px; border-radius:24px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.11); }
.block + .block { margin-top:16px; }
.label { margin:0 0 10px; color:#a5f3fc; font-size:13px; font-weight:900; }
.question { margin:0 0 14px; font-size:20px; font-weight:900; line-height:1.45; letter-spacing:-.03em; }
.sub { margin:-4px 0 14px; color:var(--muted); font-size:13px; line-height:1.6; }
.gender-row { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.gender-option input { position:absolute; opacity:0; pointer-events:none; }
.gender-option span { display:block; width:100%; padding:15px 14px; border-radius:18px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.075); color:var(--text); font-size:15px; font-weight:900; text-align:center; cursor:pointer; transition:background .18s,border-color .18s,box-shadow .18s,transform .18s,color .18s; }
.gender-option input:checked + span { color:#07111f; border-color:rgba(232,201,75,.9); background:linear-gradient(135deg,#9fdc6a,#e8c94b 52%,#5ccfe6); box-shadow:0 12px 28px rgba(232,201,75,.18),0 0 0 1px rgba(255,255,255,.28) inset; transform:translateY(-1px); }
.choices { display:grid; gap:10px; }
.choice { width:100%; text-align:left; padding:16px; border-radius:20px; border:1px solid rgba(255,255,255,.16); color:var(--text); background:rgba(255,255,255,.08); font-size:15px; font-weight:850; cursor:pointer; line-height:1.5; transition:background .18s,transform .18s,border-color .18s,box-shadow .18s,color .18s; }
.choice:hover { background:rgba(255,255,255,.13); border-color:rgba(255,255,255,.24); transform:translateY(-1px); }
.choice.selected { color:#07111f; border-color:rgba(232,201,75,.9); background:linear-gradient(135deg,#9fdc6a,#e8c94b 52%,#5ccfe6); box-shadow:0 12px 28px rgba(232,201,75,.18),0 0 0 1px rgba(255,255,255,.28) inset; }
.choice strong { display:block; font-size:16px; margin-bottom:3px; }
.choice span { display:block; color:var(--muted); font-size:13px; font-weight:700; line-height:1.55; }
.error { display:none; margin:14px 0 0; color:var(--danger); font-size:13px; font-weight:800; line-height:1.6; }
.note { margin:16px 0 0; color:var(--muted); font-size:12px; line-height:1.7; text-align:center; }
.progress-card { padding:18px; border-radius:28px; }
.step-dots { display:flex; align-items:center; justify-content:center; gap:8px; margin:4px 0 12px; }
.step-dot { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.075); color:var(--muted); font-size:14px; font-weight:950; }
.step-dot.active { color:#07111f; border-color:rgba(250,204,21,.9); background:linear-gradient(135deg,#9fdc6a,#e8c94b 52%,#5ccfe6); box-shadow:0 12px 28px rgba(232,201,75,.18),0 0 0 1px rgba(255,255,255,.28) inset; }
.step-line { flex:1; max-width:44px; height:1px; background:rgba(255,255,255,.16); }
.progress-text { text-align:center; color:var(--muted); font-size:13px; font-weight:800; }
.bar { height:8px; border-radius:999px; overflow:hidden; margin-top:14px; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.08); }
.bar-fill { height:100%; width:0%; border-radius:999px; background:linear-gradient(90deg,var(--cyan),var(--pink),var(--yellow)); transition:width .22s ease; }
.question-card { margin-top:18px; padding:24px; border-radius:32px; min-height:360px; display:flex; flex-direction:column; justify-content:center; }
.question-meta { margin:0 0 12px; color:#a5f3fc; font-size:13px; font-weight:900; letter-spacing:.02em; }
.question-title { margin:0 0 20px; font-size:clamp(22px,4.8vw,32px); line-height:1.35; letter-spacing:-.05em; font-weight:950; }
.nav-row { margin-top:18px; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.nav-btn { min-height:42px; padding:0 16px; border-radius:999px; border:1px solid rgba(255,255,255,.16); color:var(--text); background:rgba(255,255,255,.07); font-size:13px; font-weight:900; cursor:pointer; }
.nav-btn[disabled] { opacity:.35; cursor:not-allowed; }
.save-note { color:var(--muted); font-size:12px; line-height:1.6; }
.ad-section { margin-top:42px; padding-top:10px; }
.ad-label { margin-bottom:10px; text-align:center; color:rgba(216,231,255,.52); font-size:11px; letter-spacing:.08em; }
.ad-box { min-height:120px; border-radius:22px; background:rgba(255,255,255,.045); border:1px dashed rgba(255,255,255,.14); }
.result-card { margin-top:18px; padding:24px; border-radius:32px; }
.score-grid { display:grid; gap:14px; margin-top:20px; }
.score-row { padding:14px; border-radius:20px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.11); }
.score-head { display:flex; justify-content:space-between; gap:12px; font-weight:900; margin-bottom:10px; }
.score-bars { display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
.score-bar-label { font-size:12px; color:var(--muted); margin-bottom:5px; }
.score-track { height:10px; border-radius:999px; background:rgba(255,255,255,.09); overflow:hidden; }
.score-fill { height:100%; border-radius:999px; background:linear-gradient(90deg,var(--cyan),var(--pink),var(--yellow)); }
.site-footer { margin-top:30px; padding:22px 0 8px; color:rgba(216,231,255,.62); font-size:12px; display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; border-top:1px solid rgba(255,255,255,.12); }
.footer-links { display:flex; gap:14px; flex-wrap:wrap; }
.footer-links a { color:rgba(216,231,255,.72); }
@media (max-width:860px) {
  .page { width:min(100% - 24px, 640px); padding-top:14px; }
  .hero { grid-template-columns:1fr; gap:18px; padding-top:18px; }
  .visual { min-height:430px; order:-1; }
  .card-dark { width:63%; left:0; top:22px; }
  .card-pop { width:60%; right:0; bottom:8px; }
  .chip-1 { top:0; right:2%; } .chip-2 { left:0; bottom:0; }
  .route-grid,.type-strip { grid-template-columns:1fr; }
  .section { padding:18px; border-radius:24px; }
}
@media (max-width:520px) {
  .brand-text { font-size:18px; }
  .intro { padding-top:10px; }
  .start-card,.question-card,.result-card { padding:16px; border-radius:26px; }
  .block { padding:16px; border-radius:22px; }
  .gender-row { grid-template-columns:1fr; }
  .question { font-size:18px; }
  .progress-card { padding:16px; border-radius:24px; }
  .step-dot { width:31px; height:31px; font-size:13px; }
  .step-line { max-width:28px; }
  .question-card { min-height:350px; }
  .nav-row { align-items:flex-start; flex-direction:column; }
  .nav-btn { width:100%; }
  .save-note { text-align:center; width:100%; }
  .primary-btn,.secondary-btn { width:100%; }
  .keyword-line { justify-content:center; margin-top:20px; }
}

/* Temporary pre-AdSense release: hide empty ad placeholders. */
.ad-section { display: none !important; }
