body {
    font-family: sans-serif;
    text-align: center;
    margin-top: 50px;
}
#quiz-container {
    max-width: 500px;
    margin: auto;
}
#choices-container {
    display: grid;
    /* 3つの均等な幅の列を作成します */
    grid-template-columns: 1fr 1fr 1fr;
    /* ボタン同士の上下左右の隙間を10pxに設定します */
    gap: 10px;
}
#choices-container button {
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
}
#play-question-button, #next-question-button {
    padding: 10px 20px;
    font-size: 16px;
    margin-bottom: 20px;
    cursor: pointer;
}
/* === ログ機能のスタイル (ここから追加) === */

/* リセットボタンのコンテナ */
.footer-actions {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* --- パターン3：白背景ボタン --- */
#reset-log-button {
    font-size: 12px;
    padding: 5px 10px;
    background-color: #f0f0f0; /* 薄いグレーの背景 */
    color: #333; /* 濃いグレーの文字 */
    border: 1px solid #ccc; /* 枠線で輪郭をハッキリさせる */
    border-radius: 5px;
}
#reset-log-button:hover {
    background-color: #e0e0e0; /* 少し濃いグレーの背景 */
}

/* ログ表示エリア */
#log-container {
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
}

#log-container h2 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
}

#log-list {
    list-style-type: none;
    padding: 0;
    font-size: 14px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

#log-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
#log-list li:last-child {
    border-bottom: none;
}

/* 正解・不正解でログの色分け */
#log-list .correct {
    color: green;
}
#log-list .incorrect {
    color: red;
}
#log-list .log-answer {
    font-weight: bold;
}