/* 交通事故 慰謝料計算機 - スタイル */

.isharyo-calc-wrapper {
    max-width: 600px;
    margin: 24px 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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.isharyo-calc-btn:hover {
    border-color: #c8451f;
    color: #c8451f;
}

.isharyo-calc-btn.is-active {
    background: #fef0eb;
    color: #c8451f;
    border-color: #c8451f;
}

.isharyo-calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.isharyo-calc-result-card {
    background: #f7f7f5;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
}

.isharyo-calc-result-card.is-highlight {
    background: #fef0eb;
}

.isharyo-calc-result-label {
    margin: 0 0 4px;
    font-size: 13px;
    color: #777;
    font-weight: 400;
}

.isharyo-calc-result-card.is-highlight .isharyo-calc-result-label {
    color: #c8451f;
}

.isharyo-calc-result-value {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #222;
    line-height: 1.2;
    word-break: keep-all;
}

.isharyo-calc-result-card.is-highlight .isharyo-calc-result-value {
    color: #c8451f;
}

.isharyo-calc-diff {
    background: #e8f5ed;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.isharyo-calc-diff-label {
    font-size: 13px;
    color: #1d6e3d;
    font-weight: 400;
}

.isharyo-calc-diff-value {
    font-size: 18px;
    font-weight: 600;
    color: #1d6e3d;
}

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

.isharyo-calc-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #c8451f;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.isharyo-calc-cta-btn:hover {
    background: #a63818;
    color: #fff;
    text-decoration: none;
}

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

/* スマホ向け調整 */
@media screen and (max-width: 480px) {
    .isharyo-calc-inputs {
        padding: 16px;
    }
    .isharyo-calc-result-value {
        font-size: 19px;
    }
    .isharyo-calc-diff {
        flex-direction: column;
        gap: 4px;
    }
    .isharyo-calc-btn {
        font-size: 13px;
        padding: 9px 8px;
    }
}
