/* ========================================
   質問ページ専用スタイル
======================================== */

/* プログレスバーコンテナ */
.progress-container {
    position: relative;
    width: 100%;
    height: 40px;
    background-color: #ECF0F1;
    border-radius: 20px;
    margin-bottom: 50px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #E74C3C 0%, #F39C12 25%, #3498DB 50%, #27AE60 75%, #9B59B6 100%);
    border-radius: 20px;
    transition: width 0.5s ease;
    width: 10%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
    z-index: 10;
}

/* 質問カード */
.question-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease;
}

.question-title {
    font-size: 24px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: center;
}

/* 回答コンテナ */
.answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 回答ボタン */
.answer-button {
    background: #FFFFFF;
    border: 2px solid #E0E6ED;
    border-radius: 12px;
    padding: 20px 25px;
    font-size: 16px;
    color: #34495E;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.6;
    
    /* iOS対策 */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

.answer-button:hover {
    border-color: #3498DB;
    background-color: #EBF5FB;
    transform: translateX(5px);
}

.answer-button:active {
    transform: scale(0.98);
}

/* iOSでのフォーカス状態をリセット */
.answer-button:focus {
    outline: none;
    border-color: #E0E6ED;
    background: #FFFFFF;
}

/* 選択後の一時的なスタイル */
.answer-button.clicked {
    border-color: #3498DB;
    background-color: #EBF5FB;
    transform: scale(0.98);
}

/* 選択された回答 */
.answer-button.selected {
    border-color: #3498DB;
    background-color: #EBF5FB;
    font-weight: 600;
}

/* ナビゲーション */
.navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button {
    background-color: #ECF0F1;
    color: #5D6D7E;
}

.back-button:hover {
    background-color: #D5DBDB;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .question-card {
        padding: 40px 25px;
    }

    .question-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .answer-button {
        padding: 18px 20px;
        font-size: 15px;
    }

    .progress-text {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .question-card {
        padding: 30px 20px;
    }

    .question-title {
        font-size: 18px;
    }

    .answer-button {
        padding: 15px 18px;
        font-size: 14px;
    }
}