/* ================================
   診断ページ専用スタイル
   ================================ */

body {
    background: linear-gradient(135deg, #F7FBFF 0%, #E8F4FF 100%);
    min-height: 100vh;
    padding-bottom: 50px;
}

.diagnosis-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ================================
   戻るボタン
   ================================ */
.back-button {
    background: white;
    border: 2px solid #4A90E2;
    color: #4A90E2;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    background: #4A90E2;
    color: white;
    transform: translateX(-5px);
}

.back-button:active {
    transform: scale(0.95);
}

/* ================================
   プログレスバー
   ================================ */
.progress-wrapper {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.1);
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.progress-text {
    font-size: 18px;
    font-weight: 700;
    color: #2E7FD9;
}

.progress-percentage {
    font-size: 18px;
    font-weight: 700;
    color: #FF8C42;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #E8F4FF;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4A90E2 0%, #2E7FD9 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 5%;
}

/* ================================
   質問カード
   ================================ */
.question-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.15);
    animation: fadeIn 0.5s ease;
}

.question-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: center;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-button {
    background: linear-gradient(135deg, #F7FBFF 0%, #E8F4FF 100%);
    border: 3px solid #E8F4FF;
    padding: 25px 30px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.5s ease;
}

.option-button:hover {
    border-color: #4A90E2;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.2);
}

.option-button:hover:before {
    left: 100%;
}

.option-button:active {
    transform: scale(0.98);
}

.option-label {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #4A90E2 0%, #2E7FD9 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: 700;
    margin-right: 15px;
}

/* ================================
   ローディング画面
   ================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4A90E2 0%, #2E7FD9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
}

/* ================================
   アニメーション
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   レスポンシブデザイン
   ================================ */
@media (max-width: 768px) {
    .question-card {
        padding: 30px 20px;
    }

    .question-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .option-button {
        padding: 20px 20px;
        font-size: 16px;
    }

    .option-label {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
        margin-right: 10px;
    }

    .progress-wrapper {
        padding: 15px 20px;
    }

    .progress-text,
    .progress-percentage {
        font-size: 16px;
    }

    .loading-title {
        font-size: 24px;
    }

    .loading-text {
        font-size: 16px;
    }
}