body {
  background: linear-gradient(to bottom right, #f0f4f8, #d9e6f6);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
}

#questions-section,
#range-selector {
  background: #fff;
  padding: 20px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-panel {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
  border: 1px solid #dce7fb;
}

.progress-head,
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #4f5f7b;
  font-size: 0.92rem;
}

.progress-head {
  margin-bottom: 10px;
  font-weight: 700;
  color: #24324a;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #dbe5f5;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4e54c8, #58b3ff);
}

.progress-focus {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f1ff;
  color: #275485;
  font-weight: 700;
}

#questions-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.question-block p {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

input[type="radio"] {
  transform: scale(1.2);
  margin-right: 8px;
  accent-color: #007bff;
}

label {
  font-size: 1rem;
  color: #555;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 12px;
}

#submitAnswersBtn {
  display: inline-block;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  color: #fff;
  padding: 14px 24px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  margin-top: 20px;
}

#submitAnswersBtn:hover {
  background: linear-gradient(90deg, #0056b3, #0090cc);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.result {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95rem;
}

.correct {
  background-color: #e6ffed;
  color: #2c662d;
}

.incorrect {
  background-color: #ffeaea;
  color: #b30000;
}

.pagination,
#range-selector {
  text-align: center;
  margin: 30px 0;
}

.page-link {
  display: inline-block;
  margin: 5px 8px;
  padding: 8px 14px;
  border-radius: 5px;
  background-color: #f0f4f8;
  border: 1px solid #ccc;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}

.page-link:hover {
  background-color: #007bff;
  color: white;
}

.page-link.active {
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
}
.audio-btn {
  padding: 6px 12px;
  background-color: #007bff;
  color: #fff;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.audio-btn:hover {
  background-color: #0056b3;
}

#range-selector {
  margin: 20px 0;
  text-align: center; /* ← 中央揃え */
}

.page-link {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 10px;
  background-color: #eee;
  border-radius: 4px;
  cursor: pointer;
}

.page-link:hover {
  background-color: #ccc;
}

.page-link.active {
  background-color: #4285f4;
  color: white;
}

@media (max-width: 640px) {
  .progress-head,
  .progress-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}