/* 借金減額シミュレーター - シンプル版スタイル（青系） */

.saimu-calc-wrapper {
    max-width: 600px;
    margin: 32px auto;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    color: #222;
}

.saimu-calc-wrapper *,
.saimu-calc-wrapper *::before,
.saimu-calc-wrapper *::after {
    box-sizing: border-box;
}

.saimu-calc-inputs {
    background: #f3f6fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.saimu-calc-title {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

.saimu-calc-row {
    margin-bottom: 18px;
}

.saimu-calc-row:last-child {
    margin-bottom: 0;
}

.saimu-calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.saimu-calc-label-row label {
    font-size: 14px;
    color: #555;
    font-weight: 400;
}

.saimu-calc-section-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.saimu-calc-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.saimu-calc-range {
    width: 100%;
    height: 24px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.saimu-calc-range::-webkit-slider-runnable-track {
    height: 4px;
    background: #d0d8e0;
    border-radius: 2px;
}

.saimu-calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1a5fa8;
    margin-top: -7px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.saimu-calc-range::-moz-range-track {
    height: 4px;
    background: #d0d8e0;
    border-radius: 2px;
}

.saimu-calc-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1a5fa8;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    cursor: pointer;
}

.saimu-calc-btn-group {
    display: flex;
    gap: 8px;
}

.saimu-calc-btn {
    flex: 1;
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #555;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    line-height: 1.4;
}

.saimu-calc-btn:hover {
    border-color: #1a5fa8;
    color: #1a5fa8;
}

.saimu-calc-btn.is-active {
    background: #e7f0fa;
    color: #1a5fa8;
    border-color: #1a5fa8;
}

/* 結果表示 */
.saimu-calc-results {
    background: linear-gradient(135deg, #e7f0fa 0%, #d8e6f4 100%);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #b8cce6;
}

.saimu-calc-results-label {
    margin: 0 0 8px;
    font-size: 13px;
    color: #154d88;
    font-weight: 500;
}

.saimu-calc-results-main {
    margin: 0 0 16px;
    line-height: 1.2;
}

.saimu-calc-results-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a5fa8;
    font-family: "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.01em;
}

.saimu-calc-results-diff {
    background: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.saimu-calc-diff-label {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.saimu-calc-diff-value {
    font-size: 18px;
    font-weight: 700;
    color: #1d6e3d;
    font-family: "Roboto Condensed", Arial, sans-serif;
}

.saimu-calc-results-total {
    background: #fff8e6;
    border: 1px solid #f5e3a8;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.saimu-calc-total-label {
    font-size: 12px;
    color: #8a6d1a;
    font-weight: 500;
}

.saimu-calc-total-value {
    font-size: 18px;
    font-weight: 700;
    color: #8a6d1a;
    font-family: "Roboto Condensed", Arial, sans-serif;
}

.saimu-calc-overpaid {
    margin: 12px 0 0;
    padding: 10px 14px;
    background: #fef0eb;
    border: 1px solid #f5c4b3;
    border-radius: 8px;
    font-size: 12px;
    color: #c8451f;
    text-align: left;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.saimu-calc-overpaid-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #c8451f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.saimu-calc-overpaid strong {
    font-weight: 700;
}

.saimu-calc-cta {
    margin-top: 16px;
    text-align: center;
}

.saimu-calc-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(180deg, #1a5fa8 0%, #154d88 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(26, 95, 168, 0.2);
}

.saimu-calc-cta-btn:hover {
    background: linear-gradient(180deg, #154d88 0%, #103e6d 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(26, 95, 168, 0.3);
}

.saimu-calc-cta-btn strong {
    font-weight: 700;
}

.saimu-calc-note {
    margin: 14px 0 0;
    font-size: 11px;
    color: #999;
    line-height: 1.5;
    text-align: center;
}

@media screen and (max-width: 480px) {
    .saimu-calc-inputs {
        padding: 16px;
    }
    .saimu-calc-results-value {
        font-size: 26px;
    }
    .saimu-calc-cta-btn {
        width: 100%;
        font-size: 13px;
        padding: 12px 16px;
    }
}
