:root{
  --bg:#0b1220;
  --card:#121a2b;
  --text:#e8eefc;
  --muted:#b8c3e6;
  --primary:#4ea1ff;
  --danger:#ff5b6b;
  --line:#26314d;
}

*{box-sizing:border-box}
body {
  margin: 0;
  font-family:
    "Zen Old Mincho",
    "Noto Sans JP",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;

  color: var(--text);
  background: linear-gradient(
    180deg,
    #1f2937 0%,
    #1b2431 100%
  );
}

.question .text {
  font-size: 1.5rem;
  line-height: 2;
  letter-spacing: 0.08em;
}
h1.title {
  font-family: "Shippori Mincho", serif;
  font-size: 2.6rem;
  letter-spacing: 0.18em;   /* ← 少し広げる */
  font-weight: 400;         /* ← 軽くする */
  line-height: 1.4;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.04),
    0 6px 18px rgba(0,0,0,0.35);
}

h1, h2, .label {
  margin-bottom: 16px;
  font-family: "Shippori Mincho", serif;
  letter-spacing: 0.05em;
}
hr {
  border: none;
  border-top: 1px solid rgba(191,161,109,0.3);
}

.wrap{max-width:980px;margin:0 auto;padding:16px}
h1{margin:6px 0 0;font-size:28px}
.sub{margin:6px 0 0;color:var(--muted)}
.card {
  padding: 16px;
  background: #273449;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.row{display:flex;gap:10px;align-items:center;margin-top:12px;flex-wrap:wrap}
label{min-width:180px;color:var(--muted)}
input,select{
  flex:1;
  min-width:220px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#0c1426;
  color:var(--text);
}
button{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#0c1426;
  color:var(--text);
  cursor:pointer;
}
button.primary{background:var(--primary);border-color:transparent;color:#081022;font-weight:700}
button.danger{background:var(--danger);border-color:transparent;color:#081022;font-weight:700}
.hidden{display:none}

.status{display:flex;justify-content:space-between;color:var(--muted);margin-bottom:10px}
.question{border:1px solid var(--line);border-radius:12px;padding:12px;background:#0c1426}
.question .label{color:var(--muted);font-size:13px;margin-bottom:6px}
.question .text{font-size:20px;line-height:1.5}

.choices{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}
@media (min-width:720px){.choices{grid-template-columns:repeat(3,1fr)}}
.choiceBtn{
  text-align:left;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0c1426;
}
.choiceBtn:hover{outline:2px solid rgba(78,161,255,.35)}
.foot{color:var(--muted)}
.stats{color:var(--text);line-height:1.8}
/* ②の表示部分：パートごとに色を変える */
.poemLine { line-height: 1.9; font-size: 1.25rem; }
.part { padding: 0 .1em; border-radius: 6px; }
.part.ok { color: #ffffff; }
.part.ng { color: #ff5a5a; font-weight: 700; }

/* 正解/不正解リアクション */
.feedback {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 800;
}
.feedback.ok { color: #7CFF9B; }
.feedback.ng { color: #FF6B6B; }
/* ①用：正解の選択肢を一瞬目立たせる */
.choiceBtn.correctFlash {
  outline: 2px solid rgba(124,255,155,.8);
  box-shadow: 0 0 0 4px rgba(124,255,155,.18);
}




