/* 火災保険診断フォーム */
.kasai-shindan-wrapper {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* タイトル（h2を使わない） */
.kasai-shindan-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.4;
}

/* ステップインジケーター */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 10px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s;
}

.step-dot.active {
    width: 40px;
    border-radius: 6px;
    background: #ff6b6b;
}

.step-dot.completed {
    background: #4caf50;
}

/* 質問エリア */
.kasai-question {
    display: none;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
    min-height: 300px;
    animation: fadeIn 0.4s ease-in;
}

.kasai-question.active {
    display: block;
}

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

.question-number {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.kasai-question p {
    font-weight: bold;
    margin-bottom: 25px;
    font-size: 20px;
    color: #333;
    line-height: 1.6;
}

.kasai-question label {
    display: block;
    padding: 18px 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.kasai-question label:hover {
    border-color: #ff6b6b;
    background: #fff5f5;
    transform: translateX(5px);
}

.kasai-question input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.kasai-question label:has(input:checked) {
    border-color: #ff6b6b;
    background: #fff5f5;
    font-weight: bold;
}

/* ボタンエリア */
/* ボタンエリア */
.button-area {
    display: flex;
    justify-content: center; /* 中央揃えに変更 */
    margin-top: 30px;
    gap: 15px;
}

.btn-back,
.btn-next {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back {
    background: #fff;
    color: #666;
    border: 2px solid #ddd;
}

.btn-back:hover {
    background: #f5f5f5;
    border-color: #999;
}

.btn-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 戻るボタンが非表示のときの調整 */
.btn-back[style*="display: none"] + .btn-next {
    margin: 0 auto;
}

.btn-next {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 診断結果エリア */
#shindan-result {
    display: none;
    margin-top: 40px;
}

.result-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 結果タイトル（h2を使わない） */
.result-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.result-subtitle {
    text-align: center;
    font-size: 20px;
    margin-bottom: 25px;
    color: #666;
    font-weight: normal;
}

/* プログレスバー */
.progress-bar {
    width: 100%;
    height: 50px;
    background: #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    margin: 30px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 50%, #ff9800 75%, #ff6b6b 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    transition: width 1.5s ease-out;
    position: relative;
}

.percentage {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.result-message {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #ff6b6b;
    margin: 20px 0;
}

/* 診断内訳 */
.breakdown {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.breakdown-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
}

.breakdown p {
    margin-bottom: 12px;
    padding-left: 10px;
    font-size: 15px;
    line-height: 1.8;
}

/* アラートボックス */
.alert-box {
    background: #fff3cd;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #ffc107;
}

.alert-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #856404;
    text-align: left;
}

.alert-box p {
    margin-bottom: 8px;
    color: #856404;
    font-size: 15px;
}

.alert-box strong {
    color: #d32f2f;
    font-size: 18px;
}

/* CTAボタン */
.cta-buttons {
    margin-top: 40px;
    text-align: center;
}

.btn-primary,
.btn-line {
    display: inline-block;
    padding: 16px 40px;
    margin: 10px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: #fff;
}

.btn-line {
    background: #38c556;
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 197, 86, 0.3);
}

.btn-line:hover {
    background: #2da944;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 197, 86, 0.4);
    color: #fff;
}

.note {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .kasai-shindan-wrapper {
        padding: 30px 20px;
    }
    
    .kasai-shindan-title {
        font-size: 24px;
    }
    
    .kasai-question {
        padding: 25px 20px;
        min-height: 280px;
    }
    
    .kasai-question p {
        font-size: 18px;
    }
    
    .kasai-question label {
        padding: 15px;
        font-size: 15px;
    }
    
    .button-area {
        flex-direction: column;
    }
    
    .btn-back {
        order: 2;
    }
    
    .btn-next {
        order: 1;
    }
    
    .result-box {
        padding: 30px 20px;
    }
    
    .result-title {
        font-size: 26px;
    }
    
    .btn-primary,
    .btn-line {
        display: block;
        margin: 10px auto;
        width: 100%;
        max-width: 300px;
    }
    
    .progress-bar {
        height: 40px;
    }
    
    .percentage {
        font-size: 20px;
        padding-right: 10px;
    }
}