:root {
  --ink: #17243c;
  --muted: #6b7890;
  --blue: #3264df;
  --blue-soft: #eaf0ff;
  --line: #e4e9f1;
  --bg: #f4f6fa;
  --green: #087f6b;
  --green-soft: #e3f5ef;
  --red: #c44052;
  --red-soft: #fdebed;
  --gold: #d59320;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif; font-size: 15px; line-height: 1.7; }
a { color: var(--blue); }
[hidden] { display: none !important; }

.qz { max-width: 860px; margin: 0 auto; padding: 28px 20px 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; margin-bottom: 18px; }

/* ===== Buttons ===== */
.btn { display: inline-block; border: none; border-radius: 10px; padding: 10px 18px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2453c8; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid #cfd8e6; }
.btn-outline:hover { background: #f4f7fc; }
.btn-lg { padding: 14px 30px; font-size: 17px; }
.btn-cta { background: linear-gradient(180deg, #ffb238, #f08a00); color: #fff; box-shadow: 0 4px 0 #b86a00; white-space: nowrap; }
.btn-cta:hover { transform: translateY(2px); box-shadow: 0 2px 0 #b86a00; }

/* ===== Start ===== */
.hero {
  text-align: center; padding: 40px 24px 34px; margin-bottom: 18px; border-radius: 18px;
  background: linear-gradient(135deg, #e3ebfd 0%, #f7f9fd 55%, #e8f6f1 100%); border: 1px solid #d9e3f7;
}
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: 1.6px; color: var(--blue); margin: 0 0 8px; }
.eyebrow span { margin-left: 8px; padding: 2px 8px; background: #fff; border-radius: 4px; letter-spacing: 0; }
.hero h1 { font-size: 40px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -.5px; }
.lead { font-size: 17px; margin: 0 0 20px; }
.lead b { color: var(--blue); }
.hero-points { list-style: none; padding: 0; margin: 0 auto 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 600px; }
.hero-points li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; }
.hero-points b { display: block; font-size: 20px; }
.hero-points small { display: block; font-size: 12px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin: 12px 0 0; min-height: 1.4em; }
.note.error { color: var(--red); }

/* ===== Quiz ===== */
.q-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.q-no { font-weight: 800; font-size: 14px; white-space: nowrap; }
.progress { flex: 1; height: 8px; background: #edf1f7; border-radius: 4px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 4px; transition: width .3s; }
.q-score { font-size: 13px; color: var(--muted); white-space: nowrap; }
.q-title { font-size: 22px; margin: 0; line-height: 1.4; }
.q-title .dir { display: inline-block; font-size: 14px; padding: 1px 10px; border-radius: 12px; margin-left: 6px; vertical-align: 3px; }
.q-title .dir.up { background: var(--green-soft); color: var(--green); }
.q-title .dir.down { background: var(--red-soft); color: var(--red); }
.q-meta { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }

.chart { width: 100%; height: 320px; position: relative; }
.chart svg { display: block; width: 100%; height: 100%; }
.chart .loading { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 14px; }
.legend { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg-line { width: 22px; height: 0; border-top: 2px dashed var(--gold); }
.lg-line.target { border-top: 2px dotted #8f9bb0; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }

.ask { margin-top: 18px; text-align: center; }
.ask-q { font-weight: 800; font-size: 17px; margin: 0 0 12px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  font: inherit; cursor: pointer; border-radius: 14px; padding: 16px 10px; border: 2px solid; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .1s, background .1s;
}
.choice b { font-size: 22px; }
.choice small { font-size: 12px; color: var(--muted); }
.choice.up { border-color: var(--green); color: var(--green); }
.choice.up:hover { background: var(--green-soft); }
.choice.down { border-color: var(--red); color: var(--red); }
.choice.down:hover { background: var(--red-soft); }
.choice:active { transform: scale(.98); }
.choice:disabled { cursor: default; opacity: .5; }

.answer { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; text-align: center; }
.verdict { font-size: 26px; font-weight: 900; margin: 0; }
.verdict.ok { color: var(--green); }
.verdict.ng { color: var(--red); }
.explain { margin: 6px 0 12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.facts div { background: #f7f9fc; border-radius: 10px; padding: 8px 6px; }
.facts dt { font-size: 11px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }

/* ===== Result ===== */
.result { text-align: center; }
.r-score { font-size: 44px; margin: 0; line-height: 1.3; }
.r-score small { font-size: 20px; color: var(--muted); }
.r-comment { font-size: 16px; margin: 6px 0 18px; }
.r-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 440px; margin: 0 auto 18px; }
.r-split div { background: #f7f9fc; border-radius: 12px; padding: 10px; }
.r-split small { display: block; font-size: 12px; color: var(--muted); }
.r-split b { font-size: 20px; }
.r-data { text-align: left; background: var(--blue-soft); border-radius: 12px; padding: 14px 18px; margin: 0 auto 20px; max-width: 600px; }
.r-data h3 { font-size: 15px; margin: 0 0 6px; }
.r-data ul { margin: 0; padding-left: 20px; font-size: 14px; }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.review { text-align: left; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.review li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.review .mk { font-size: 18px; font-weight: 900; text-align: center; }
.review .mk.ok { color: var(--green); }
.review .mk.ng { color: var(--red); }
.review small { color: var(--muted); display: block; }
.review .st { font-weight: 700; white-space: nowrap; }
.review .st.continued { color: var(--green); }
.review .st.fake { color: var(--red); }

/* ===== Guide ===== */
.guide h2 { font-size: 19px; margin: 6px 0 10px; }
.guide h2 + p, .guide p { font-size: 14px; }
.guide h2:not(:first-child) { margin-top: 26px; }
.rule-list dt { font-weight: 800; font-size: 14px; margin-top: 10px; }
.rule-list dd { margin: 2px 0 0; font-size: 14px; }
.tips { padding-left: 20px; font-size: 14px; }
.tips li { margin-bottom: 8px; }
.cta { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #232838; color: #fff; border-radius: 12px; padding: 18px 22px; }
.cta p { margin: 4px 0 0; color: #c9cedb; font-size: 13px; }
.disclaimer { font-size: 12px !important; color: var(--muted); margin-top: 20px; }

.ea-footer { background: #202533; color: #aeb5c3; text-align: center; padding: 22px 20px; font-size: 12px; }
.ea-footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 12px; }
.ea-footer-nav a { color: #d9dde5; text-decoration: none; }

@media (max-width: 600px) {
  .qz { padding: 16px 12px 36px; }
  .card { padding: 16px 14px; }
  .hero { padding: 28px 14px 24px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 15px; }
  .pc { display: none; }
  .hero-points b { font-size: 16px; }
  .hero-points small { font-size: 11px; }
  .q-title { font-size: 18px; }
  .chart { height: 260px; }
  .choice { padding: 12px 6px; }
  .choice b { font-size: 19px; }
  .choice small { font-size: 11px; }
  .verdict { font-size: 22px; }
  .facts dd { font-size: 15px; }
  .r-score { font-size: 36px; }
  .btn-lg { width: 100%; }
}
