/* ========================================
   料金シミュレーションセクション
   ======================================== */

.simulation {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.simulation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

/* 計算機エリア */
.simulation-calculator {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calculator-input-group {
    margin-bottom: 30px;
}

.calculator-input-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit input {
    flex: 1;
    padding: 15px 60px 15px 20px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-with-unit input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.input-with-unit .unit {
    position: absolute;
    right: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-medium);
}

.btn-calculate {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #fcd34d 0%, #f97316 50%, #c2410c 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 50%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.6);
}

.btn-calculate i {
    font-size: 20px;
}

/* シミュレーション結果 */
.simulation-result {
    margin-top: 30px;
    animation: fadeInUp 0.5s ease;
}

.result-highlight {
    background: linear-gradient(135deg, #fcd34d 0%, #f97316 50%, #c2410c 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.result-header i {
    font-size: 24px;
}

.result-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.result-amount {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1px;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.result-detail-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.detail-label {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.result-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
}

.result-note i {
    color: #ffc107;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.result-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #856404;
}

/* 削減事例 */
.simulation-examples {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.simulation-examples h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.example-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.example-card:last-child {
    margin-bottom: 0;
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.example-industry {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(231, 76, 60, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.example-capacity {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
}

.example-data {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.example-before,
.example-after {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.example-before .label,
.example-after .label {
    font-size: 12px;
    color: var(--text-medium);
    margin-bottom: 5px;
}

.example-before .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.example-after .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-green);
}

.example-data i {
    color: var(--primary-color);
    font-size: 20px;
}

.example-savings {
    text-align: center;
    font-size: 16px;
    color: var(--text-dark);
    padding-top: 15px;
    border-top: 2px solid rgba(231, 76, 60, 0.1);
}

.example-savings strong {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 900;
}

/* CTA */
.simulation-cta {
    margin-top: 50px;
    text-align: center;
}

.simulation-cta .cta-text {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

/* レスポンシブ対応 */
@media (max-width: 968px) {
    .simulation-wrapper {
        grid-template-columns: 1fr;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .result-amount {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .simulation {
        padding: 50px 0;
    }
    
    .simulation-calculator,
    .simulation-examples {
        padding: 25px;
    }
    
    .example-data {
        flex-direction: column;
        gap: 10px;
    }
    
    .example-data i {
        transform: rotate(90deg);
    }
}
