/* ===== Reset / Base ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:'Helvetica Neue',Arial,'Hiragino Kaku Gothic ProN','Hiragino Sans',Meiryo,sans-serif;
  background:#f5f5f5;
  color:#333;
  line-height:1.8;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:#000;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}

/* ===== Layout ===== */
.container{max-width:720px;margin:0 auto;padding:0 20px}
.site-header{background:#000;border-bottom:3px solid #FFD700;padding:14px 0}
.site-header .back-link{font-size:13px;color:#FFD700;font-weight:600}
.site-footer{text-align:center;padding:32px 0;color:#666;font-size:12px;background:#000;color:#FFD700;margin-top:40px}

/* ===== Card / Step ===== */
.card{
  background:#fff;
  border-radius:10px;
  padding:32px 26px;
  margin:24px 0;
  box-shadow:0 4px 6px rgba(0,0,0,0.1);
  display:none;
}
.step.active{display:block;animation:fadeIn .35s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ===== Hero (Intro) ===== */
#intro{
  background:linear-gradient(135deg,#FFD700 0%,#FFA500 100%);
  padding:48px 28px;
  border:none;
}
#intro .eyebrow{
  background:#000;
  color:#FFD700;
  border:2px solid #000;
}
#intro .title{
  color:#000;
  font-size:30px;
  text-shadow:2px 2px 4px rgba(255,255,255,.3);
  font-weight:bold;
  line-height:1.4;
}
#intro .title span{color:#000}
#intro .lead{color:#000;font-weight:500;font-size:16px}

/* ===== Typography ===== */
.eyebrow{
  display:inline-block;
  font-size:12px;
  letter-spacing:.08em;
  color:#000;
  background:#FFD700;
  padding:6px 14px;
  border-radius:5px;
  margin-bottom:16px;
  font-weight:700;
  box-shadow:0 2px 4px rgba(0,0,0,0.1);
}
.title{
  font-size:26px;
  font-weight:bold;
  line-height:1.4;
  margin-bottom:14px;
  color:#000;
}
.title span{color:#000}
.lead{font-size:15px;color:#333;margin-bottom:20px;line-height:1.8}
.lead.small{font-size:13px}
.qnum{
  display:inline-block;
  font-size:12px;
  color:#000;
  background:#FFD700;
  padding:5px 12px;
  border-radius:5px;
  font-weight:700;
  margin-bottom:12px;
  letter-spacing:.05em;
}
.question{
  font-size:20px;
  font-weight:bold;
  line-height:1.55;
  margin-bottom:22px;
  color:#000;
  border-left:5px solid #FFD700;
  padding-left:14px;
}

/* ===== Features list ===== */
.features{list-style:none;margin:20px 0 26px;display:grid;gap:10px}
.features li{
  display:flex;align-items:center;gap:12px;
  padding:12px 14px;
  background:rgba(0,0,0,.85);
  border:2px solid #000;
  border-radius:6px;
  font-size:14px;color:#FFD700;
  font-weight:500;
}
.features li span{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:50%;
  background:#FFD700;color:#000;font-size:13px;font-weight:bold;flex-shrink:0;
}

/* ===== Progress bar ===== */
.progress{
  height:8px;background:#eee;border-radius:99px;overflow:hidden;margin-bottom:20px;
  border:1px solid #ddd;
}
.progress span{
  display:block;height:100%;
  background:linear-gradient(90deg,#FFD700 0%,#FFA500 100%);
  transition:width .4s
}

/* ===== Choices ===== */
.choices{display:flex;flex-direction:column;gap:12px;margin-bottom:24px}
.choices label{
  display:flex;align-items:center;gap:14px;
  padding:18px 20px;
  border:3px solid #eee;
  border-radius:8px;
  cursor:pointer;
  transition:all .2s ease;
  background:#fff;
  font-size:15px;
  font-weight:500;
}
.choices label:hover{
  border-color:#FFD700;
  background:#fffbeb;
  transform:translateY(-2px);
  box-shadow:0 4px 8px rgba(255,215,0,.2);
}
.choices input[type=radio]{
  appearance:none;-webkit-appearance:none;
  width:24px;height:24px;border:3px solid #ccc;border-radius:50%;
  flex-shrink:0;position:relative;transition:all .2s;
  background:#fff;
}
.choices input[type=radio]:checked{
  border-color:#FFA500;
  background:#FFD700;
  box-shadow:inset 0 0 0 4px #fff;
}
.choices label:has(input:checked){
  border-color:#FFA500;
  background:#fffbeb;
  box-shadow:0 0 0 3px rgba(255,215,0,.3);
}

/* ===== Buttons ===== */
.btn{
  display:inline-block;
  padding:16px 24px;
  border-radius:8px;
  font-size:15px;
  font-weight:bold;
  transition:all .2s ease;
  text-align:center;
  width:100%;
  font-family:inherit;
}
.btn-primary{
  background:linear-gradient(90deg,#FFD700 0%,#FFA500 100%);
  color:#000;
  box-shadow:0 4px 6px rgba(0,0,0,0.15);
  border:2px solid #000;
}
.btn-primary:hover:not(:disabled){
  transform:translateY(-2px);
  box-shadow:0 6px 12px rgba(255,165,0,.4);
}
.btn-primary:disabled{
  background:#ddd;
  color:#999;
  border-color:#ccc;
  box-shadow:none;
  cursor:not-allowed;
}
.btn-ghost{
  background:#fff;
  color:#000;
  border:2px solid #000;
}
.btn-ghost:hover{background:#FFD700}
.btn-large{padding:20px 24px;font-size:17px}
.btn-row{display:flex;gap:12px;margin-top:10px}
.btn-row .btn-ghost{flex:0 0 38%}
.btn-row .btn-primary{flex:1}

/* ===== Result ===== */
#result{
  background:#000;
  color:#fff;
  padding:40px 26px;
}
#result .eyebrow{
  background:#FFD700;
  color:#000;
  display:block;
  text-align:center;
  margin:0 auto 18px;
  width:fit-content;
}
.score-wrap{display:flex;justify-content:center;margin:20px 0 26px}
.score-circle{
  width:180px;height:180px;border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#FFD700 0%,#FFA500 100%);
  color:#000;
  border:4px solid #FFD700;
  box-shadow:0 8px 24px rgba(255,215,0,.4);
}
.score-circle.warn{
  background:linear-gradient(135deg,#FFA500 0%,#FF6B00 100%);
  border-color:#FF6B00;
  color:#fff;
}
.score-circle.alert{
  background:linear-gradient(135deg,#dc2626 0%,#991b1b 100%);
  border-color:#dc2626;
  color:#fff;
  box-shadow:0 8px 24px rgba(220,38,38,.4);
}
.score-num{font-size:60px;font-weight:bold;line-height:1}
.score-unit{font-size:14px;opacity:.9;margin-top:6px;font-weight:600}
.result-title{
  font-size:22px;
  font-weight:bold;
  text-align:center;
  margin-bottom:14px;
  color:#FFD700;
  line-height:1.5;
}
.result-body{
  font-size:15px;
  color:#fff;
  text-align:center;
  margin-bottom:28px;
  padding:0 4px;
  line-height:1.8;
}

.cta-box{
  background:rgba(255,215,0,.1);
  border:2px solid #FFD700;
  border-radius:10px;
  padding:26px 20px;
  margin-bottom:20px;
  text-align:center;
}
.cta-box h3{
  font-size:18px;
  line-height:1.5;
  margin-bottom:12px;
  color:#FFD700;
  font-weight:bold;
}
.cta-box h3 span{color:#fff;display:block;margin-top:6px}
.cta-box p{font-size:13px;color:#fff;margin-bottom:18px;opacity:.9}

#result #retry{
  background:transparent;
  color:#FFD700;
  border:2px solid #FFD700;
  margin-top:6px;
}
#result #retry:hover{background:#FFD700;color:#000}

/* ===== Form ===== */
#form .title{
  background:linear-gradient(90deg,#FFD700 0%,#FFA500 100%);
  display:inline-block;
  padding:12px 22px;
  border-radius:5px;
  font-size:22px;
  box-shadow:0 2px 4px rgba(0,0,0,0.1);
}
.field{margin-bottom:20px}
.field > label{
  display:block;
  font-size:13px;
  font-weight:bold;
  margin-bottom:8px;
  color:#000;
}
.field input[type=text],
.field input[type=tel],
.field input[type=email],
.field textarea{
  width:100%;
  padding:14px 16px;
  border:2px solid #ddd;
  border-radius:6px;
  font-size:16px;
  font-family:inherit;
  background:#fff;
  transition:all .2s;
}
.field input:focus,.field textarea:focus{
  outline:none;
  border-color:#FFA500;
  box-shadow:0 0 0 3px rgba(255,215,0,.25);
}
.field textarea{resize:vertical}
.field .req{
  display:inline-block;
  font-size:10px;
  background:#000;
  color:#FFD700;
  padding:3px 8px;
  border-radius:3px;
  margin-left:6px;
  vertical-align:middle;
  font-weight:bold;
}
.field.check label{
  display:flex;align-items:center;gap:10px;
  font-size:13px;font-weight:500;cursor:pointer;
}
.field.check input{width:20px;height:20px;accent-color:#FFA500}
.field.check a{color:#FFA500;font-weight:bold;text-decoration:underline}

/* ===== Thanks ===== */
#thanks{
  text-align:center;
  background:#000;
  color:#fff;
  padding:48px 26px;
}
#thanks .title{color:#FFD700;font-size:24px}
#thanks .lead{color:#fff}
.check-mark{
  width:90px;height:90px;border-radius:50%;
  background:linear-gradient(135deg,#FFD700 0%,#FFA500 100%);
  color:#000;
  display:flex;align-items:center;justify-content:center;
  font-size:48px;font-weight:bold;
  margin:0 auto 22px;
  border:4px solid #FFD700;
  box-shadow:0 4px 12px rgba(255,215,0,.4);
}
#thanks .btn{max-width:320px;margin:8px auto 0}

/* ===== Mobile tweaks ===== */
@media (max-width:480px){
  .card{padding:26px 20px;margin:18px 0}
  #intro{padding:36px 22px}
  #intro .title{font-size:24px}
  .title{font-size:22px}
  .question{font-size:18px}
  .score-circle{width:150px;height:150px}
  .score-num{font-size:50px}
  .cta-box h3{font-size:16px}
  .features li{padding:10px 12px;font-size:13px}
}
