* { box-sizing: border-box; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  margin: 0;
  background: #f5f6f8;
  color: #1a1a1a;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #232f3e;
  color: #fff;
}
.topbar a { color: #fff; margin-left: 16px; text-decoration: none; }
.topbar nav a { margin-left: 16px; }
main { max-width: 900px; margin: 24px auto; padding: 0 16px; }
.score-table { width: 100%; border-collapse: collapse; background: #fff; }
.score-table th, .score-table td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
.auth-page { display: flex; align-items: center; justify-content: center; height: 100vh; }
.auth-box { background: #fff; padding: 32px; border-radius: 8px; width: 320px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.auth-box label { display: block; margin-bottom: 12px; font-size: 14px; }
.auth-box input { width: 100%; padding: 8px; margin-top: 4px; }
.auth-box button { width: 100%; padding: 10px; background: #ff9900; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.error { color: #c0392b; }
.question-card { background: #fff; border-radius: 6px; padding: 16px 20px; margin-bottom: 16px; }
.choice-list { list-style: none; padding: 0; }
.choice-list li { padding: 6px 0; }
.choice-list li.correct { color: #1e7e34; font-weight: bold; }
.choice-list li.selected::before { content: "選択: "; color: #555; }
.exam-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  flex-wrap: wrap;
  gap: 8px;
}
.exam-header .timer { font-size: 20px; font-weight: bold; }
#finish-btn { background: #ff9900; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-weight: bold; }
#pause-btn { background: #546373; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-weight: bold; }
.save-status { font-size: 13px; color: #cfd6de; min-width: 110px; display: inline-block; }
.save-status.saving { color: #ffd580; }
.save-status.saved { color: #7ee787; }
.save-status.error { color: #ff6b6b; font-weight: bold; }
.result-page { text-align: center; }
.result-page button { background: #ff9900; border: none; padding: 10px 24px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 16px; }
.score-big { font-size: 48px; font-weight: bold; color: #ff9900; }
