/* 全体の背景調整 */
body {
    background: linear-gradient(to bottom right, #f0f4f8, #d9e6f6);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

/* セクション共通スタイル */
#dialogue-section,
#questions-section,
#conversation-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;
}

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

/* ラジオボタンとラベル */
input[type="radio"] {
    transform: scale(1.2);
    margin-right: 8px;
    accent-color: #007bff;
}

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

/* 質問表示 */
.question-block p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* 選択肢 */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 12px;
}

/* モダンな送信ボタン */
#submit-btn {
    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;
}

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

#submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* 再生ボタン */
#playAudioBtn {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

#playAudioBtn:hover {
    background-color: #0056b3;
}

/* 解説の表示スタイル */
.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 {
    text-align: center;
    margin: 30px 0;
}

.pagination button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 16px;
    margin: 0 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.pagination button:hover {
    background-color: #0056b3;
}

#page-indicator {
    font-size: 1rem;
    font-weight: bold;
}

/* 範囲選択リンク */
#range-selector {
    text-align: center;
    margin-bottom: 20px;
}

.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;
}
#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);
}

/* Select ドロップダウンのスタイル */
#conversationSelect.styled-select {
    padding: 10px 16px;
    font-size: 1rem;
    border: 2px solid #007bff;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s;
    margin-left: 10px;
}

#conversationSelect.styled-select:hover {
    border-color: #0056b3;
}

/* ラベルとのレイアウト調整 */
#conversation-selector {
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
}

#conversation-selector label {
    font-weight: bold;
    font-size: 1rem;
    margin-right: 8px;
}