/* ED診断チェックコンテナ */
.ed-check-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ed-check-wrapper {
    padding: 20px;
}

/* ヘッダー */
.ed-check-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.ed-check-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.ed-check-header p {
    color: #666;
    font-size: 16px;
}

/* 年齢選択 */
.age-selection {
    text-align: center;
}

.age-selection h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.age-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.age-btn {
    padding: 12px 30px;
    background: #fff;
    border: 2px solid #007bff;
    color: #007bff;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-btn:hover {
    background: #007bff;
    color: #fff;
}

/* プログレスバー */
.progress-bar-container {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* 質問エリア */
.question-container {
    margin: 30px 0;
}

.question-slide {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-title {
    color: #007bff;
    font-size: 18px;
    margin-bottom: 15px;
}

.question-text {
    color: #333;
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 回答オプション */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.answer-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 結果エリア */
.result-container {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.result-content h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.result-score {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.score-label {
    font-size: 18px;
    color: #666;
}

.score-value {
    font-size: 48px;
    font-weight: bold;
    color: #007bff;
    margin: 0 10px;
}

.score-max {
    font-size: 18px;
    color: #666;
}

/* 結果タイプ */
.result-type {
    text-align: center;
    margin-bottom: 20px;
}

.result-label {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 20px;
    font-weight: bold;
}

.result-label.normal {
    background: #28a745;
    color: #fff;
}

.result-label.mild {
    background: #ffc107;
    color: #333;
}

.result-label.mild-moderate {
    background: #fd7e14;
    color: #fff;
}

.result-label.moderate {
    background: #dc3545;
    color: #fff;
}

.result-label.severe {
    background: #721c24;
    color: #fff;
}

/* 結果説明 */
.result-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

/* CTA部分 */
.clinic-recommendation {
    margin-top: 30px;
}

.recommendation-title {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

.clinic-info-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.clinic-name {
    color: #007bff;
    font-size: 20px;
    margin-bottom: 20px;
}

.clinic-features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-icon {
    color: #28a745;
    margin-right: 10px;
    font-size: 18px;
}

.feature-text {
    font-size: 16px;
    color: #333;
}

/* 価格情報 */
.price-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-info h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.price-list {
    list-style: none;
    padding: 0;
}

.price-list li {
    padding: 5px 0;
    color: #666;
}

/* アクションボタン */
.clinic-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cta-button {
    flex: 1;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-primary {
    background: #007bff;
    color: #fff;
    border: none;
}

.cta-primary:hover {
    background: #0056b3;
}

.cta-secondary {
    background: #fff;
    color: #007bff;
    border: 2px solid #007bff;
}

.cta-secondary:hover {
    background: #007bff;
    color: #fff;
}

/* ナビゲーションボタン */
.navigation-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.nav-btn {
    padding: 12px 30px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #5a6268;
}

.restart-btn {
    background: #28a745;
}

.restart-btn:hover {
    background: #218838;
}

/* 注意事項 */
.consultation-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.consultation-note p {
    margin: 5px 0;
    color: #856404;
    font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    
    .ed-check-wrapper {
        padding: 15px;
    }
    
    .ed-check-header h2 {
        font-size: 24px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .score-value {
        font-size: 36px;
    }
    
    .clinic-actions {
        flex-direction: column;
    }
    
    .age-options {
        flex-direction: column;
        align-items: center;
    }
    
    .age-btn {
        width: 200px;
    }
}