body {
    font-family: sans-serif;
    background-color: #e0f7fa; /* 薄い青 */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 上部に寄せる */
    min-height: 100vh;
    margin: 0;
    padding: 20px; /* 全体のパディング */
    box-sizing: border-box;
}

.quiz-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 700px; /* 最大幅 */
    width: 100%; /* レスポンシブ対応 */
    margin-top: 20px; /* 上部のマージン */
}

.quiz-title {
    color: #0277bd; /* 濃い青 */
    margin-bottom: 30px;
    font-size: 24px;
}

#question-text {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: left; /* 左寄せ */
    white-space: pre-wrap; /* 改行を有効にする */
}

.options-area {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    gap: 10px; /* ボタン間のスペース */
}

.option-button {
    background-color: #039be5; /* 標準の青 */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    text-align: left; /* 左寄せ */
}

.option-button:hover {
    background-color: #0288d1; /* ホバー時の色 */
}

.result-area {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    min-height: 30px; /* 結果表示エリアの最小高さ */
}

.result-area.correct {
    color: #4caf50; /* 緑 */
}

.result-area.incorrect {
    color: #f44336; /* 赤 */
}

.end-message {
    margin-top: 20px;
    font-size: 20px;
    color: #0277bd;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .quiz-container {
        padding: 20px;
    }

    .quiz-title {
        font-size: 20px;
    }

    #question-text {
        font-size: 16px;
    }

    .option-button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .result-area {
        font-size: 20px;
    }

    .end-message {
        font-size: 18px;
    }
}
