body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  text-align: center;
  font-size: 1.6rem;
  margin: 16px 0;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.card.center {
  text-align: center;
}

.progress {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.question {
  font-size: 1.1rem;
  margin: 12px 0 16px;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.choice input[type="radio"] {
  transform: scale(1.2);
}

.choice span {
  font-size: 0.98rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  border: none;
  border-radius: 9999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: #3b82f6;
  color: #ffffff;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
  margin-top: 8px;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.block {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
}

.hint {
  display: none;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #1d4ed8;
}

.score {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
}

.table th {
  background: #f9fafb;
}

.table-actions {
  display: flex;
  gap: 4px;
}

input[type="text"],
textarea,
select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  box-sizing: border-box;
  font-size: 0.9rem;
}

textarea {
  min-height: 80px;
}

.form-group {
  margin-bottom: 10px;
}

label span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* モバイル調整 */
@media (max-width: 480px) {
  .card {
    padding: 14px;
  }
  h1 {
    font-size: 1.4rem;
  }
}

.quiz-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto 12px;
}
