:root {
  --bg: #f6f1e8;
  --paper: #fffaf2;
  --paper-strong: #ffffff;
  --ink: #243126;
  --muted: #6b756a;
  --line: #d9cfbf;
  --accent: #0f766e;
  --accent-strong: #0b5d57;
  --accent-soft: #dff4ee;
  --warm: #a85b31;
  --shadow: 0 18px 40px rgba(65, 52, 36, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-body: "Yu Gothic UI", "Hiragino Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(168, 91, 49, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f3eb 0%, #f4eee4 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.sub-hero,
.note-panel,
.status-bar,
.question-card {
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(217, 207, 191, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero,
.sub-hero {
  padding: 36px;
  border-radius: var(--radius-lg);
}

.eyebrow,
.card-kicker,
.status-label {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  color: var(--accent-strong);
  background: transparent;
  border-color: rgba(15, 118, 110, 0.3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.info-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(217, 207, 191, 0.9);
  border-radius: var(--radius-md);
}

.info-card-featured {
  background: linear-gradient(145deg, rgba(223, 244, 238, 0.92), rgba(255, 255, 255, 0.9));
}

.text-link,
.back-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.note-panel {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.note-panel ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
  color: var(--muted);
}

.quiz-shell {
  padding-bottom: 72px;
}

.status-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
  padding: 18px 22px;
  border-radius: var(--radius-md);
}

.status-bar strong {
  font-size: 1.05rem;
}

.quiz-list {
  display: grid;
  gap: 18px;
}

.question-card {
  padding: 26px;
  border-radius: var(--radius-md);
}

.question-meta {
  margin-bottom: 12px;
  color: var(--warm);
  font-size: 0.92rem;
  font-weight: 700;
}

.question-text {
  margin-bottom: 18px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-item {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-strong);
  transition: border-color 160ms ease, background-color 160ms ease;
  cursor: pointer;
}

.choice-item:hover {
  border-color: rgba(15, 118, 110, 0.45);
  background: #fcfffe;
}

.choice-item input {
  margin-right: 10px;
}

.choice-item.correct {
  border-color: rgba(15, 118, 110, 0.5);
  background: var(--accent-soft);
}

.choice-item.incorrect {
  border-color: rgba(168, 91, 49, 0.45);
  background: rgba(168, 91, 49, 0.08);
}

.result-panel {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
}

.result-panel.visible {
  display: block;
}

.result-label {
  margin-bottom: 8px;
  font-weight: 700;
}

.result-label.correct {
  color: var(--accent-strong);
}

.result-label.incorrect {
  color: var(--warm);
}

.result-explanation {
  margin-bottom: 0;
  line-height: 1.75;
  color: var(--muted);
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
  }

  .hero,
  .sub-hero,
  .note-panel,
  .question-card {
    padding: 24px;
  }

  .status-bar {
    grid-template-columns: 1fr;
  }
}
