/*
 * 郵便番号欄共通スタイル
 * 1段目＝〒 3桁 - 4桁
 * 2段目＝住所自動入力ボタン
 */
.contact__zip-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
}

.contact__zip-box .mwform-zip-field {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    align-self: flex-start !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.contact__zip-box .mwform-zip-field input[type="text"] {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.contact__zip-box .mwform-zip-field input[type="text"]:nth-of-type(2) {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
}

.contact__zip-box .js-postal-search {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 250px !important;
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    align-self: flex-start !important;
    padding: 0 42px 0 16px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer !important;
}

.contact__zip-box .js-postal-search .tr-postal-search-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.contact__zip-box .js-postal-search::before,
.contact__zip-box .js-postal-search::after {
    flex: 0 0 auto !important;
}

@media screen and (max-width: 480px) {
    .contact__zip-box .mwform-zip-field {
        gap: 6px !important;
    }

    .contact__zip-box .mwform-zip-field input[type="text"] {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
    }

    .contact__zip-box .mwform-zip-field input[type="text"]:nth-of-type(2) {
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
    }

    .contact__zip-box .js-postal-search {
        width: 250px !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-right: 42px !important;
        padding-left: 16px !important;
    }
}
