:root {
  --brand: #005931;
  --brand-ink: #ffffff;
  --bg: #f7f8f9;
  --surface: #ffffff;
  --surface-soft: #f0f4f2;
  --ink: #1e2a24;
  --muted: #5c6b63;
  --line: #e2e8e4;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  line-height: 1.65;
}

.app-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 14px 20px; }
.logo {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; letter-spacing: 1px;
  box-shadow: var(--shadow);
}
.title { font-weight: 700; font-size: 18px; }

.container { width: min(960px, 90vw); margin: 32px auto; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card.soft { background: var(--surface-soft); }
.card-title { margin: 0 0 8px 0; font-weight: 700; }
.card-header { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

/* header右側に進捗をまとめる */
.row-split { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.progress-wrap { display: grid; gap: 6px; width: 240px; }
.progress { height: 10px; background: #e7edea; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress-bar { height: 100%; background: var(--brand); width: 0%; transition: width 0.3s ease; }
.progress-label { text-align: right; font-size: 13px; color: var(--muted); }
.progress-pct { margin-left: 6px; }

.question-area { display: grid; gap: 16px; }
.question-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.question-card h3 { margin: 0 0 8px 0; font-size: 16px; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; }
.option:hover { background: #f6faf7; border-color: #e2efe8; }
.option input { margin-top: 3px; }

.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.score-cards { display: grid; gap: 12px; }
.score-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.score-card .label { color: var(--muted); font-size: 14px; }
.score-card .value { font-size: 20px; font-weight: 700; }

.app-footer { text-align: center; color: var(--muted); padding: 24px 0 40px; }

.hidden { display: none; }
.appear { animation: fadeInUp 420ms ease both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
  .row-split { grid-template-columns: 1fr; }
  .progress-wrap { width: 100%; }
}


.btn.outlined {
  background: #fff;
  border: 2px solid var(--brand);
  color: var(--brand);
}
.btn.outlined:hover {
  background: var(--brand);
  color: #fff;
}
