/* ヘッダーの固定解除（スクロールをスムーズにするため） */
.header {
    position: relative !important; 
    width: 100%;
}

/* 〇×のポップアップ演出 */
.quiz-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 200px;
    font-weight: bold;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.overlay-show { transform: translate(-50%, -50%) scale(1); }

/* クイズ全体のコンテナ */
.quiz-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* ほんの少し影をつけて高級感を */
}

/* カテゴリー（【憲法】など）の装飾 */
.quiz-category {
    display: inline-block;
    color: #e63946;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1rem;
}

/* 選択肢ボタン */
.choice-item {
    display: block; 
    width: 100%; 
    margin-bottom: 15px; 
    padding: 22px;
    border: 1px solid #dcdcdc; 
    border-radius: 12px; 
    background: #fff;
    cursor: pointer; 
    text-align: left; 
    font-size: 1.1rem;
    line-height: 1.6;
    transition: all 0.2s ease;
}

/* 選択肢をマウスで触れた時の動き（追加） */
.choice-item:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    transform: translateX(5px); /* 少し右に動いて「押せる感」を出す */
}

/* 解説カードの「正解」部分 */
.correct-card {
    border: 2px solid #007bff !important;
    background: #e7f3ff !important;
    position: relative;
}

/* 結果画面のボタン */
.retry-btn {
    display: block; 
    width: 100%; 
    border: none; 
    padding: 20px;
    border-radius: 12px; 
    font-weight: bold; 
    font-size: 1.1rem; 
    cursor: pointer;
    transition: opacity 0.2s;
}
.retry-btn:hover {
    opacity: 0.85;
}

/* サンプル問題タイトルの装飾 */
.quiz-section-title {
    margin-bottom: 30px;
    padding-left: 18px;
    border-left: 5px solid #e63946; 
}

.quiz-section-title .label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.quiz-section-title h2 {
    font-size: 1.8rem;
    margin: 0;
    font-family: serif;
    color: #333;
}

/* レスポンシブ対応（スマホで見やすくする） */
@media (max-width: 600px) {
    .quiz-container {
        padding: 20px;
        margin: 20px 10px;
    }
    .choice-item {
        padding: 16px;
        font-size: 1rem;
    }
    .quiz-overlay {
        font-size: 120px;
    }
}