/* ========================================
   水道料金シミュレーター
======================================== */

.wfs-simulator {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.4;
}


/* ========================================
   フォーム
======================================== */

.wfs-simulator-form {
    margin: 0;
    padding: 0;
}


/* ========================================
   水道・下水道 セクション
======================================== */

.wfs-section {
    margin: 0 0 10px;
    padding: 10px 14px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
}

.wfs-section-title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}


/* ========================================
   入力エリア
======================================== */

.wfs-form-grid {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.wfs-input-group {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.wfs-field {
    margin: 0;
}

.wfs-label {
    display: block;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}


/* ========================================
   ラジオボタン
======================================== */

.wfs-radio-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 36px;
}

.wfs-radio-group label {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    white-space: nowrap;
    cursor: pointer;
}

.wfs-radio-group input[type="radio"] {
    margin: 0;
}


/* ========================================
   セレクト・入力欄
======================================== */

.wfs-select,
.wfs-input {
    box-sizing: border-box;
    height: 36px;
    min-height: 36px;
    padding: 4px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    font-size: 15px;
    line-height: 1.2;
}

.wfs-select {
    width: 130px;
}

.wfs-input {
    width: 110px;
}

.wfs-input-unit {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wfs-unit {
    white-space: nowrap;
}


/* ========================================
   試算ボタン
======================================== */

.wfs-submit {
    margin: 10px 0;
    text-align: center;
}

.wfs-calculate-button {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    min-height: 42px;
    padding: 8px 20px;
    border: 0;
    border-radius: 5px;
    background: #2271b1;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.wfs-calculate-button:hover {
    opacity: 0.9;
}

.wfs-calculate-button:focus {
    outline: 2px solid #72aee6;
    outline-offset: 2px;
}


/* ========================================
   エラー
======================================== */

.wfs-error {
    margin: 8px 0;
    padding: 8px 10px;
    border: 1px solid #d63638;
    border-radius: 4px;
    background: #fcf0f1;
    color: #b32d2e;
    font-size: 13px;
}


/* ========================================
   試算結果
======================================== */

.wfs-result {
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
}


/* ========================================
   試算結果 見出し
======================================== */

.wfs-result-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.wfs-result-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.wfs-result-unit {
    color: #50575e;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}


/* ========================================
   試算結果 表
======================================== */

.wfs-result-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.wfs-result-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
}

.wfs-result-table th,
.wfs-result-table td {
    padding: 7px 6px;
    border: 1px solid #dcdcde;
    text-align: center;
    vertical-align: middle;
}

.wfs-result-table thead th {
    background: #f6f7f7;
    font-size: 14px;
    font-weight: 700;
}

.wfs-result-table tbody th {
    width: 34%;
    background: #f6f7f7;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.wfs-result-table td {
    width: 33%;
    font-size: 16px;
    white-space: nowrap;
}


/* ========================================
   改定後料金のみ赤
======================================== */

.wfs-revised-heading,
#wfs-revised-water,
#wfs-revised-sewer,
#wfs-revised-total {
    color: #d63638;
    font-weight: 700;
}


/* ========================================
   合計
======================================== */

.wfs-result-total th,
.wfs-result-total td {
    font-weight: 700;
}

.wfs-result-total td {
    font-size: 18px;
}


/* ========================================
   差額
======================================== */

.wfs-difference {
    margin-top: 4px;
    padding: 0;
    border: 0;
    color: #50575e;
    text-align: right;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

#wfs-difference {
    color: inherit;
    font-weight: inherit;
}


/* ========================================
   注意事項
======================================== */

.wfs-notice {
    margin-top: 10px;
    color: #50575e;
    font-size: 12px;
    line-height: 1.5;
}

.wfs-notice p {
    margin: 2px 0;
}


/* ========================================
   hidden
======================================== */

[hidden] {
    display: none !important;
}


/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 600px) {

    .wfs-simulator {
        padding: 4px 5px;
        font-size: 14px;
        line-height: 1.2;
    }


    /* 水道・下水道 */

    .wfs-section {
        margin-bottom: 4px;
        padding: 5px 7px;
        border-radius: 4px;
    }

    .wfs-section-title {
        margin-bottom: 4px;
        font-size: 15px;
        line-height: 1.2;
    }


    /* 入力 */

    .wfs-form-grid {
        display: flex;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 5px 10px;
    }

    .wfs-input-group {
        display: flex;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 5px 10px;
    }

    .wfs-label {
        margin-bottom: 2px;
        font-size: 12px;
    }


    /* ラジオ */

    .wfs-radio-group {
        gap: 7px;
        min-height: 32px;
        font-size: 12px;
    }

    .wfs-radio-group label {
        gap: 2px;
    }

    .wfs-radio-group input[type="radio"] {
        transform: scale(0.9);
    }


    /* 入力欄 */

    .wfs-select,
    .wfs-input {
        height: 32px;
        min-height: 32px;
        padding: 2px 5px;
        font-size: 13px;
    }

    .wfs-select {
        width: 100px;
    }

    .wfs-input {
        width: 78px;
    }

    .wfs-input-unit {
        gap: 2px;
    }

    .wfs-unit {
        font-size: 12px;
    }


    /* ボタン */

    .wfs-submit {
        margin: 5px 0;
    }

    .wfs-calculate-button {
        max-width: 240px;
        min-height: 36px;
        padding: 5px 12px;
        font-size: 14px;
    }


    /* エラー */

    .wfs-error {
        margin: 4px 0;
        padding: 5px 7px;
        font-size: 11px;
    }


    /* 試算結果 */

    .wfs-result {
        margin-top: 5px;
        padding: 5px 7px;
        border-radius: 4px;
    }

    .wfs-result-header {
        gap: 4px;
        margin-bottom: 3px;
    }

    .wfs-result-title {
        font-size: 15px;
    }

    .wfs-result-unit {
        font-size: 10px;
    }


    /* 結果表 */

    .wfs-result-table th,
    .wfs-result-table td {
        padding: 3px 2px;
    }

    .wfs-result-table thead th {
        font-size: 11px;
    }

    .wfs-result-table tbody th {
        font-size: 11px;
    }

    .wfs-result-table td {
        font-size: 12px;
    }

    .wfs-result-total td {
        font-size: 13px;
    }


    /* 差額 */

    .wfs-difference {
        margin-top: 2px;
        font-size: 10px;
        line-height: 1.2;
    }


    /* 注意事項 */

    .wfs-notice {
        margin-top: 5px;
        font-size: 10px;
        line-height: 1.3;
    }

    .wfs-notice p {
        margin: 1px 0;
    }

}