  :root{
    --bg:#eef4fb;
    --surface:#ffffff;
    --surface-2:#cfe1f2;
    --accent:#ff9f1c;
    --accent-text:#a8540c;
    --accent-soft:rgba(255,159,28,0.16);
    --text:#1c2a38;
    --text-muted:#5b6b7c;
    --line:#aec7de;
    --radius:14px;
  }
  *{box-sizing:border-box;}
  /* applied briefly during restartQuiz() so any transition (current or future) jumps
     instantly to 0 instead of visibly animating backwards */
  .no-transition, .no-transition *{transition:none !important;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:'Noto Sans JP',sans-serif;
    line-height:1.7;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.disp{
    font-family:'Zen Kaku Gothic New',sans-serif;
    font-weight:900;
    letter-spacing:0.01em;
    margin:0;
  }
  .mono{font-family:'Zen Kaku Gothic New',sans-serif;}
  a{color:inherit;text-decoration:none;}
  .wrap{max-width:1040px;margin:0 auto;padding:0 24px;}

  /* road-dash divider — structural device echoing the car theme */
  .road{
    height:2px;
    background-image:repeating-linear-gradient(90deg, var(--line) 0 24px, transparent 24px 40px);
    margin:0;
  }

  header{
    position:sticky;top:0;z-index:50;
    background:rgba(238,244,251,0.86);
    backdrop-filter:blur(6px);
    border-bottom:1px solid var(--line);
  }
  .nav{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;max-width:1040px;margin:0 auto;}
  .logo{font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;font-size:17px;display:flex;align-items:center;gap:8px;}
  .logo .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);}
  .nav-links{display:flex;gap:28px;font-size:13px;color:var(--text-muted);}
  .nav-links a:hover{color:var(--text);}

  /* HERO */
  .hero{padding:72px 0 56px;position:relative;overflow:hidden;}
  .hero-grid{display:grid;grid-template-columns:1.1fr 0.9fr;gap:48px;align-items:center;}
  .eyebrow{
    display:inline-flex;align-items:center;gap:8px;
    font-size:12px;letter-spacing:0.08em;color:var(--accent-text);
    background:var(--accent-soft);border-radius:999px;padding:6px 14px;margin-bottom:20px;
  }
  .hero h1{font-size:clamp(28px,4vw,42px);line-height:1.35;margin-bottom:16px;}
  .hero p.lead{color:var(--text-muted);font-size:15.5px;margin-bottom:28px;max-width:480px;}
  .cta-row{display:flex;gap:14px;flex-wrap:wrap;}
  .btn{
    display:inline-flex;align-items:center;gap:8px;
    padding:13px 26px;border-radius:10px;
    font-size:14.5px;font-weight:700;cursor:pointer;border:none;
    transition:transform .15s ease, opacity .15s ease;
  }
  .btn:hover{transform:translateY(-1px);}
  .btn-primary{background:var(--accent);color:#1a1206;}
  .btn-ghost{background:transparent;color:var(--text);border:1px solid var(--text-muted);}
  .btn-block{width:100%;justify-content:center;}

  /* GAUGE — signature element */
  .gauge-wrap{display:flex;justify-content:center;}
  .gauge{width:280px;}
  .gauge-num{font-family:'Zen Kaku Gothic New',sans-serif;font-size:34px;font-weight:700;fill:var(--text);}
  .gauge-label{font-family:'Noto Sans JP',sans-serif;font-size:12px;fill:var(--text-muted);}

  /* STAT STRIP */
  .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin:40px 0;}
  .stat{background:var(--surface);padding:20px 18px;text-align:center;}
  .stat .v{font-family:'Zen Kaku Gothic New',sans-serif;font-size:22px;font-weight:700;color:var(--accent-text);}
  .stat .l{font-size:12px;color:var(--text-muted);margin-top:6px;}

  section{padding:64px 0;}
  .section-head{margin-bottom:36px;}
  .section-head .eyebrow{margin-bottom:14px;}
  .section-head h2{font-size:26px;}
  .section-head p{color:var(--text-muted);font-size:14.5px;margin-top:10px;}

  /* COMPARE CARDS */
  .compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
  .compare-grid-3{grid-template-columns:1fr 1fr 1fr;}
  .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;}
  .card .tag{font-size:11.5px;color:var(--accent-text);background:var(--accent-soft);display:inline-block;padding:4px 10px;border-radius:999px;margin-bottom:14px;width:fit-content;}
  .card h3{font-size:19px;margin-bottom:4px;}
  .card .since{font-size:12.5px;color:var(--text-muted);margin-bottom:18px;}
  .card ul{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-direction:column;gap:11px;}
  .card li{font-size:13.8px;color:var(--text);display:flex;gap:10px;align-items:flex-start;}
  .card li::before{content:"―";color:var(--accent-text);flex-shrink:0;}
  .card .btn{margin-top:auto;}
  .reassure{font-size:11.5px;color:var(--text-muted);text-align:center;margin:8px 0 0;}

  /* DIAGNOSIS */
  .diag-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:32px;max-width:600px;margin:0 auto;}
  .diag-progress{display:flex;align-items:center;gap:14px;margin-bottom:24px;}
  .diag-progress .track{flex:1;height:6px;background:var(--surface-2);border-radius:999px;overflow:hidden;}
  .diag-progress .fill{height:100%;background:var(--accent);width:0%;transition:width .35s ease;}
  .diag-progress .count{font-family:'Zen Kaku Gothic New',sans-serif;font-size:13px;color:var(--text-muted);white-space:nowrap;}
  .q-text{font-size:17px;font-weight:700;margin-bottom:20px;font-family:'Zen Kaku Gothic New',sans-serif;}
  .q-options{display:flex;flex-direction:column;gap:10px;}
  .opt-btn{
    text-align:left;background:var(--surface-2);border:1px solid var(--line);color:var(--text);
    padding:15px 18px;border-radius:10px;font-size:14px;cursor:pointer;transition:border-color .15s ease, background .15s ease;
  }
  .opt-btn:hover{border-color:var(--accent-text);background:#bdd6ec;}
  .opt-btn-primary{background:var(--accent-soft);border-color:var(--accent-text);font-weight:700;}
  .opt-btn-primary:hover{background:var(--accent);color:#1a1206;}
  .opt-btn-muted{background:transparent;border-color:var(--line);color:var(--text-muted);font-size:12.5px;padding:11px 18px;}
  .opt-btn-muted:hover{border-color:var(--text-muted);background:transparent;color:var(--text);}
  .result{display:none;}
  .result .tag{font-size:11.5px;color:var(--accent-text);background:var(--accent-soft);padding:4px 10px;border-radius:999px;display:inline-block;margin-bottom:14px;}
  .result h3{font-size:22px;margin-bottom:10px;}
  .result p.reason{color:var(--text);font-size:14.5px;font-weight:500;margin-bottom:22px;}
  .result .alt{margin-top:16px;font-size:13px;color:var(--text-muted);}
  .result .alt a{color:var(--accent-text);border-bottom:1px solid currentColor;}

  /* ranking bars */
  .rank-item{margin-bottom:18px;}
  .rank-item:last-child{margin-bottom:6px;}
  .rank-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;}
  .rank-head .name{font-size:14.5px;font-weight:700;margin:0;}
  .rank-head .name .medal{color:var(--accent-text);font-size:12px;font-weight:700;margin-right:6px;}
  .rank-head .pct{font-family:'Zen Kaku Gothic New',sans-serif;font-size:15px;font-weight:700;color:var(--accent-text);}
  .rank-track{height:10px;background:var(--surface-2);border-radius:999px;overflow:hidden;margin-bottom:8px;}
  .rank-fill{height:100%;background:var(--accent);width:0%;border-radius:999px;transition:width .5s ease;}
  .rank-item.is-top .rank-fill{background:var(--accent);}
  .rank-item:not(.is-top) .rank-fill{background:#93a4b8;}
  .rank-item:not(.is-top) .rank-head .pct{color:var(--text-muted);}
  .rank-cta{display:inline-flex;font-size:12.5px;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:7px 14px;}
  .rank-cta:hover{border-color:var(--accent-text);}
  .restart{margin-top:18px;font-size:12.5px;color:var(--accent-text);cursor:pointer;display:inline-block;}
  .restart:hover{color:var(--text);}

  /* FAQ */
  details{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px 18px;margin-bottom:10px;}
  summary{cursor:pointer;font-weight:700;font-size:14.5px;list-style:none;display:flex;justify-content:space-between;align-items:center;}
  summary::-webkit-details-marker{display:none;}
  summary::after{content:"+";color:var(--accent-text);font-size:18px;}
  details[open] summary::after{content:"–";}
  details p{color:var(--text-muted);font-size:13.8px;margin:12px 0 0;}

  footer{padding:36px 0 48px;}
  .footer-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--text-muted);}
  .footer-row a:hover{color:var(--accent-text);}
  .footer-note{font-size:12px;color:var(--text-muted);margin-top:14px;line-height:1.6;}

  @media (max-width: 760px){
    .hero-grid{grid-template-columns:1fr;}
    .gauge{width:200px;margin-top:20px;}
    .stats{grid-template-columns:repeat(2,1fr);}
    .compare-grid{grid-template-columns:1fr;}
    .compare-grid-3{grid-template-columns:1fr;}
    .nav-links{display:none;}
  }

  /* ---- Article pages ---- */
  .breadcrumb{font-size:12.5px;color:var(--text-muted);margin-bottom:18px;}
  .breadcrumb a{color:var(--text-muted);border-bottom:1px solid transparent;}
  .breadcrumb a:hover{color:var(--accent-text);border-bottom-color:currentColor;}
  .article-head{padding:48px 0 28px;}
  .article-head .eyebrow{margin-bottom:16px;}
  .article-head h1{font-size:clamp(24px,3.4vw,34px);line-height:1.4;margin-bottom:14px;}
  .article-meta{font-size:12.5px;color:var(--text-muted);}
  .prose{max-width:680px;padding:8px 0 48px;}
  .prose h2{font-size:20px;margin:36px 0 14px;}
  .prose h3{font-size:16.5px;margin:26px 0 10px;}
  .prose p{margin:0 0 16px;font-size:15px;color:var(--text);}
  .prose ul, .prose ol{margin:0 0 16px;padding-left:22px;font-size:15px;}
  .prose li{margin-bottom:8px;}
  .prose strong{color:var(--text);}
  .callout{background:var(--surface-2);border-radius:var(--radius);padding:18px 20px;margin:22px 0;font-size:14px;}
  .callout .callout-label{font-size:11.5px;color:var(--accent-text);font-weight:700;letter-spacing:0.04em;display:block;margin-bottom:6px;}
  .cta-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin:32px 0;text-align:center;}
  .cta-box p{margin:0 0 16px;font-size:14.5px;color:var(--text-muted);}
  .article-list{display:flex;flex-direction:column;gap:10px;margin:24px 0 48px;}
  .article-card{display:block;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;background:var(--surface);}
  .article-card:hover{border-color:var(--accent-text);}
  .article-card .cat{font-size:11px;color:var(--accent-text);font-weight:700;margin-bottom:4px;}
  .article-card .ttl{font-size:14.5px;font-weight:700;color:var(--text);margin-bottom:4px;}
  .article-card .desc{font-size:12.5px;color:var(--text-muted);}
