/* 削減額クイック計算機のスタイル */

.quick-calculator {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 80px 0;
}

.calculator-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.calculator-box input {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.calculator-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calculator-box button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    transition: all 0.3s;
}

.calculator-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.calculator-box button:active {
    transform: translateY(0);
}

#result {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    border: 2px solid #3b82f6;
    animation: fadeIn 0.5s ease-in;
}

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

#result a.btn {
    display: block;
    text-align: center;
    padding: 18px;
    background: #f97316;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transition: all 0.3s;
}

#result a.btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .quick-calculator {
        padding: 60px 0;
    }
    
    .quick-calculator h2 {
        font-size: 28px !important;
        line-height: 1.3;
    }
    
    .calculator-box {
        padding: 30px 20px;
    }
    
    .calculator-box input {
        font-size: 18px;
        padding: 15px;
    }
    
    .calculator-box button {
        font-size: 18px;
        padding: 18px;
    }
    
    #result {
        padding: 20px;
    }
    
    #result p[style*="font-size: 48px"] {
        font-size: 36px !important;
    }
}

@media (max-width: 480px) {
    .quick-calculator h2 {
        font-size: 24px !important;
    }
    
    .calculator-box {
        padding: 25px 15px;
    }
    
    #result p[style*="font-size: 48px"] {
        font-size: 32px !important;
    }
}
