/* 手取り計算ツール用CSS */

.salary-calc-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヒーローセクション */
.salary-calc-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    margin-bottom: 40px;
    border-radius: 12px;
    text-align: center;
}

.salary-calc-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.salary-calc-subtitle {
    font-size: 1.3rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.salary-calc-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* イントロ */
.salary-calc-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

/* 計算セクション */
.calc-section {
    margin-bottom: 80px;
}

.calc-step-badge {
    background: #0066cc;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 20px;
}

.calc-section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.calc-section-desc {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* フォームコンテナ */
.calc-form-container {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
}

/* フォーム */
.calc-form {
    max-width: 600px;
    margin: 0 auto 40px;
}

.form-row {
    margin-bottom: 25px;
}

.form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.1rem;
}

.form-row input[type="number"],
.form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.form-row input[type="number"]:focus,
.form-row select:focus {
    outline: none;
    border-color: #0066cc;
}

/* 計算ボタン */
.calc-button {
    width: 100%;
    background: #0066cc;
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.calc-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

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

/* 計算結果 */
.calc-result {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

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

.result-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* 結果テーブル */
.result-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-table thead {
    background: #0066cc;
    color: white;
}

.result-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 1.1rem;
}

.result-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.result-table tbody tr:last-child td {
    border-bottom: none;
}

.result-table tbody tr:hover {
    background: #f8f9fa;
}

.result-highlight {
    background: #e3f2fd !important;
}

.result-net {
    background: #c8e6c9 !important;
    font-size: 1.1rem;
}

.result-net td {
    font-weight: bold;
}

/* FAQ */
.faq-section {
    margin-bottom: 80px;
}

.faq-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background: #0066cc;
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.faq-answer {
    padding: 20px;
    margin: 0;
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* 逆早見表の結果表示 */
.reverse-result-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reverse-result-text {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.reverse-result-values {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.reverse-result-item {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.reverse-label {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.reverse-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

/* 早見表 */
.quick-reference-table {
    margin-top: 30px;
}

.quick-reference-table .result-table th {
    text-align: center;
}

.quick-reference-table .result-table td {
    text-align: center;
    font-size: 1.05rem;
}

/* 年収別早見表 */
.annual-reference-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.annual-reference-table tbody tr:hover {
    background: #e3f2fd !important;
}

/* 注釈 */
.reference-note {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
}

.reference-note p {
    margin: 8px 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 年収別詳細解説 */
.income-explanation-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 40px;
    border-radius: 12px;
}

.income-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.income-detail-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.income-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.income-detail-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0066cc;
}

.income-detail-amounts {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.amount-item {
    flex: 1;
    min-width: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.amount-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.amount-value {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
}

.income-detail-desc {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

/* CTAセクション */
.calc-cta-section {
    margin-bottom: 60px;
}

.calc-cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
}

.calc-cta-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.calc-cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.calc-cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calc-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .salary-calc-title {
        font-size: 1.8rem;
    }
    
    .salary-calc-subtitle {
        font-size: 1.1rem;
    }
    
    .salary-calc-hero {
        padding: 40px 20px;
    }
    
    .calc-form-container {
        padding: 25px 20px;
    }
    
    .calc-section-title {
        font-size: 1.5rem;
    }
    
    .result-table {
        font-size: 0.9rem;
    }
    
    .result-table th,
    .result-table td {
        padding: 10px 8px;
    }
    
    .reverse-result-box {
        padding: 25px;
    }
    
    .reverse-result-text {
        font-size: 1.1rem;
    }
    
    .reverse-value {
        font-size: 1.6rem;
    }
    
    .calc-cta-box {
        padding: 35px 25px;
    }
    
    .calc-cta-title {
        font-size: 1.6rem;
    }
    
    .income-explanation-section {
        padding: 40px 25px;
    }
    
    .income-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .income-detail-card {
        padding: 25px;
    }
    
    .income-detail-title {
        font-size: 1.3rem;
    }
    
    .amount-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .salary-calc-wrapper {
        padding: 0 15px;
    }
    
    .salary-calc-title {
        font-size: 1.5rem;
    }
    
    .calc-form-container {
        padding: 20px 15px;
    }
    
    .result-table {
        font-size: 0.85rem;
    }
    
    .result-table th,
    .result-table td {
        padding: 8px 5px;
    }
    
    .reverse-result-box {
        padding: 20px;
    }
    
    .reverse-result-text {
        font-size: 1rem;
    }
    
    .reverse-result-values {
        gap: 15px;
    }
    
    .reverse-result-item {
        padding: 20px;
    }
    
    .reverse-value {
        font-size: 1.4rem;
    }
    
    .calc-cta-box {
        padding: 30px 20px;
    }
    
    .calc-cta-title {
        font-size: 1.4rem;
    }
    
    .calc-cta-button {
        font-size: 1.1rem;
        padding: 12px 30px;
    }
    
    .income-explanation-section {
        padding: 30px 20px;
    }
    
    .income-detail-card {
        padding: 20px;
    }
    
    .income-detail-title {
        font-size: 1.2rem;
    }
    
    .income-detail-amounts {
        gap: 10px;
    }
    
    .amount-item {
        padding: 12px;
    }
    
    .amount-value {
        font-size: 1.1rem;
    }
    
    .reference-note {
        padding: 15px;
    }
    
    .reference-note p {
        font-size: 0.85rem;
    }
}
