/**
 * パーソナリティ診断ツール - フロントエンド用CSS
 * Version: 2.0
 */

.personality-diagnosis-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.diagnosis-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.diagnosis-title {
    font-size: 1.2em;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.diagnosis-description {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.question-item {
    background: linear-gradient(135deg, #FFF0F5 0%, #F0F8FF 100%);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid #DDA0DD;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.option-label:hover {
    border-color: #DDA0DD;
    background-color: #FFF0F5;
}

.option-label input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.option-label input[type="radio"]:checked + .option-text {
    font-weight: 600;
    color: #9370DB;
}

.option-label:has(input[type="radio"]:checked) {
    border-color: #DDA0DD;
    background-color: #FFF0F5;
}

.option-text {
    flex: 1;
    line-height: 1.4;
}

.progress-container {
    margin-bottom: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #FFB6C1 0%, #E6E6FA 30%, #F0E68C 60%, #98FB98 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    color: #666;
    font-weight: 500;
}

.diagnosis-actions {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.diagnosis-submit-btn, .diagnosis-retry-btn, .diagnosis-prev-btn {
    color: #777;
    border: none;
    padding: 5px 20px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.diagnosis-prev-btn {
    box-shadow: 0 4px 15px rgba(108,117,125,0.3);
}

.diagnosis-submit-btn:hover, .diagnosis-retry-btn:hover, .diagnosis-prev-btn:hover {
    transform: translateY(-2px);
}

.diagnosis-prev-btn:hover {
    box-shadow: 0 6px 20px rgba(108,117,125,0.4);
}

.diagnosis-result {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-top: 30px;
}

.result-title {
    font-size: 17px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.score-display {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.score-label {
    color: #666;
    font-weight: 500;
}

.score-value {
    font-size: 36px;
    font-weight: 700;
    color: #9370DB;
    margin: 0 5px;
}

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

.result-text {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.result-actions {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .personality-diagnosis-form {
        margin: 10px;
        padding: 15px;
    }
    
    .question-item {
        padding: 20px;
    }
    
    .option-label {
        padding: 12px;
        font-size: 14px;
    }
    
    .diagnosis-title {
        font-size: 20px;
    }
    
    .question-title {
        font-size: 16px;
    }
} 