/* ============================================================
   technique-drill.css — テスト技法ドリル 固有スタイル
   共通変数は /style/common.css の --tp-* を流用
   ============================================================ */

.td-panel{background:#fff;border:1px solid var(--tp-border);border-radius:12px;padding:22px}

/* ====== メニュー ====== */
.td-menu{max-width:620px;margin:0 auto}
.td-group{margin-bottom:18px}
.td-group-title{font-size:12px;font-weight:700;color:var(--tp-text2);letter-spacing:.06em;margin:0 0 8px}
.td-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}
.td-choice{
  display:flex;flex-direction:column;gap:2px;align-items:flex-start;
  background:#fff;border:1px solid var(--tp-border2);border-radius:8px;padding:11px 14px;
  cursor:pointer;font-family:inherit;color:var(--tp-text);text-align:left;
  transition:border-color .12s,background .12s;
}
.td-choice:hover{border-color:var(--tp-orange)}
.td-choice.is-on{border-color:var(--tp-orange);background:var(--tp-orange-bg,#fdf0ec);border-width:2px;padding:10px 13px}
.td-choice-label{font-size:13px;font-weight:700}
.td-choice-note{font-size:11px;color:var(--tp-text3)}
.td-note{font-size:12px;color:var(--tp-text3);text-align:center;margin:0 0 14px}
.td-start{
  display:block;width:100%;background:var(--tp-orange);color:#fff;border:none;border-radius:2px;
  padding:14px;font-size:15px;font-weight:800;cursor:pointer;font-family:inherit;
}
.td-start:hover{background:#a9543f}

/* ====== 出題 ====== */
.td-play{max-width:680px;margin:0 auto}
.td-play-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;color:var(--tp-text2);margin-bottom:6px}
.td-bar{height:6px;background:var(--tp-cream2);border-radius:99px;overflow:hidden;margin-bottom:18px}
.td-bar-fill{height:100%;background:var(--tp-orange);border-radius:99px;transition:width .3s}

.td-tech{
  display:inline-block;font-size:11px;font-weight:800;letter-spacing:.06em;
  background:var(--tp-cream2);color:var(--tp-text2);border-radius:99px;padding:4px 12px;margin-bottom:10px;
}
.td-ask{
  font-size:15px;line-height:1.95;color:var(--tp-text);margin:0 0 18px;
  background:var(--tp-cream);border:1px solid var(--tp-border);border-radius:12px;padding:18px 20px;
}
.td-ask b{color:var(--tp-orange)}

.td-options{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.td-opt{
  background:#fff;border:1px solid var(--tp-border2);border-radius:8px;padding:14px 16px;
  font-size:14px;font-weight:700;cursor:pointer;font-family:inherit;color:var(--tp-text);
  text-align:center;transition:border-color .12s;
}
.td-opt:hover:not(:disabled){border-color:var(--tp-orange)}
.td-opt:disabled{cursor:default;opacity:.7}
.td-opt.is-correct{border-color:var(--tp-green,#2f7d55);background:#eef6f1;opacity:1;border-width:2px}
.td-opt.is-wrong{border-color:var(--tp-orange);background:#fdf0ec;opacity:1;border-width:2px}

.td-feedback:empty{display:none}
.td-feedback{margin-top:16px;background:var(--tp-cream);border-radius:10px;padding:16px 18px}
.td-fb-head{font-size:13.5px;font-weight:800;margin:0 0 8px}
.td-feedback.is-ok .td-fb-head{color:var(--tp-green,#2f7d55)}
.td-feedback.is-ng .td-fb-head{color:var(--tp-orange)}
.td-fb-why{font-size:13px;line-height:1.9;color:var(--tp-text2);margin:0}
.td-next{
  display:block;margin:14px auto 0;background:var(--tp-dark);color:#fff;border:none;border-radius:2px;
  padding:10px 28px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;
}
.td-next:hover{background:var(--tp-dark2)}

.td-back{
  display:block;margin:22px auto 0;background:none;border:none;
  font-size:12px;font-weight:700;color:var(--tp-text3);cursor:pointer;font-family:inherit;
}
.td-back:hover{color:var(--tp-orange)}

/* ====== 結果 ====== */
.td-result{max-width:680px;margin:0 auto;text-align:center}
.td-result-score{font-size:22px;font-weight:900;margin:6px 0 8px;color:var(--tp-text)}
.td-result-msg{font-size:13.5px;line-height:1.85;color:var(--tp-text2);margin:0 0 20px}
.td-missed{background:var(--tp-cream);border:1px solid var(--tp-border);border-radius:12px;padding:18px 20px;text-align:left;margin-bottom:18px}
.td-missed h3{font-size:13px;font-weight:800;margin:0 0 12px;color:var(--tp-text)}
.td-missed-item{padding:12px 0;border-top:1px solid var(--tp-border)}
.td-missed-item:first-of-type{border-top:none;padding-top:0}
.td-missed-tech{display:inline-block;font-size:10.5px;font-weight:800;background:#fff;border:1px solid var(--tp-border2);border-radius:99px;padding:2px 10px;color:var(--tp-text2);margin-bottom:6px}
.td-missed-ask{font-size:13px;line-height:1.85;color:var(--tp-text);margin:0 0 6px}
.td-missed-ask b{color:var(--tp-orange)}
.td-missed-why{font-size:12.5px;line-height:1.85;color:var(--tp-text2);margin:0}
.td-result-link{font-size:12.5px;line-height:1.9;color:var(--tp-text3);margin:0 0 18px}
.td-result-link a{color:var(--tp-orange);font-weight:700}

@media (max-width:640px){
  .td-options{grid-template-columns:1fr}
  .td-ask{font-size:14px;padding:15px 16px}
  .td-panel{padding:16px}
}
