/*
 * Hephaestusによるクイズ神殿の美の法典 Ver. 2.0 (真・完全無欠・自己完結版)
 */

/* ============================================= */
/* 0. ジャンル選択画面                          */
/* ============================================= */
#genre-selection-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
#genre-selection-buttons .feature-button {
    font-size: 1.2em;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background-color: #f7fafc;
    color: #4a5568;
    transition: all 0.2s ease;
}
#genre-selection-buttons .feature-button:hover {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.2);
}

/* ============================================= */
/* 1. 質問画面                                 */
/* ============================================= */
#quiz-question-screen h3#quiz-genre-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8em;
}

#progress-container {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #cbd5e0;
}
#progress-bar {
    height: 15px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    border-radius: 7px 0 0 7px;
}
#question-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 5px solid var(--secondary-color);
}
#question-number {
    font-size: 2em;
    color: var(--secondary-color);
    font-weight: bold;
    line-height: 1;
}
#question-title {
    font-size: 1.4em;
    font-weight: bold;
    line-height: 1.6;
    color: #2d3748;
}
#quiz-answers-list {
    display: grid;
    gap: 15px;
}
#quiz-answers-list .feature-button { /* gacha-style から継承し、微調整 */
    text-align: left;
    width: 100%;
}
#quiz-answers-list .feature-button:hover {
    transform: none; /* ホバー時の拡大は不要 */
}


/* ============================================= */
/* 2. フィードバック・モーダル                  */
/* ============================================= */
.modal-overlay { /* info-style から継承 */ }
.modal-content.quiz-feedback {
    max-width: 700px;
    width: 95%;
    text-align: center;
}
#feedback-title {
    font-size: 4.5em;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1;
    font-family: 'Impact', sans-serif;
    letter-spacing: 2px;
}
#feedback-text {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: left;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    margin-top: 25px;
    border: 1px solid #e2e8f0;
}
#feedback-text h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: var(--primary-color);
    border-bottom: 2px solid #eaf2fa;
    padding-bottom: 8px;
}

/* ============================================= */
/* 3. 最終結果画面                             */
/* ============================================= */
#quiz-result-screen h3 { font-size: 1.5em; color: #4a5568; margin-top:0; }
#quiz-result-screen h2 { font-size: 1.8em; margin-top: 5px; color: var(--primary-color);}
.final-score { font-size: 5em; color: var(--primary-color); font-weight: bold; margin: 10px 0 20px 0; line-height: 1; }
.final-score span { font-size: 0.5em; color: #4a5568; font-weight: normal; }

/* SNSシェアボタンエリア (診断画面と共通化) */
#sns-share-area { margin-top:40px; padding-top:30px; border-top:1px solid #e2e8f0; text-align: center; }
#sns-share-area p { font-weight:bold; font-size: 1.1em; margin-bottom: 15px; }
#sns-share-buttons .feature-button { font-size:1em; padding:12px 20px; border:none; color:#fff; text-decoration:none; min-width:140px; transition:transform .2s,opacity .2s; border-radius: 8px; }
#sns-share-buttons .feature-button:hover { transform: scale(1.05); opacity: 0.9; }

/* ( commentary 関連のスタイルは gacha-style.css で定義済みのため、ここには不要 ) */