@charset "UTF-8";
/* ==========================================================================
   郵便番号で対応地域を調べるウィジェット（処分方法の記事本文に埋め込み）
   入力欄 #post-search と、結果を出すポップアップ #popup のスタイル
   表示切り替えは本文内のスクリプトが .is-show を付け外しする
   ========================================================================== */

/* --- 入力エリア --- */
.postal {
    padding: 28px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f1fd 0%, #f5f9ff 100%);
}

#post-search {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 24px 18px;
    border-top: 5px solid #1565c0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(21, 101, 192, .12);
}

.step_head {
    margin: 0 0 16px;
    color: #12355b;
    font-size: clamp(17px, 2.4vw, 22px);
    font-weight: 800;
    text-align: center;
}

#inputarea {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 0 auto;
}

#postalcode {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .08em;
}

#postalcode:focus {
    border-color: #1565c0;
    outline: none;
}

#show-btn {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 10px;
    background: #eb6100;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease;
}

#show-btn:hover,
#show-btn:focus {
    background: #c85300;
}

#note {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

/* --- ポップアップ --- */
.popup {
    position: fixed;
    inset: 0;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.popup.is-show {
    opacity: 1;
    visibility: visible;
    z-index: 999999;
}

.popup-bg-cover {
    position: fixed;
    inset: 0;
    background: rgba(15, 47, 87, .55);
}

.popup-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92%, 560px);
    padding: 36px 28px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
    transform: translate(-50%, -50%);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 16px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}

.zipcode {
    color: #1565c0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: center;
}

.popup-inner .text {
    margin: 8px 0 20px;
    text-align: center;
}

.addresstext {
    color: #12355b;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.contact_text {
    padding: 14px 16px;
    border-radius: 10px;
    background: #eef4fd;
    color: #334155;
    font-size: 15px;
    text-align: center;
}

.contact_text p {
    margin: 0;
}

@media (max-width: 575.98px) {
    #post-search {
        padding: 18px 14px 14px;
    }

    #inputarea {
        flex-direction: column;
    }

    /* 縦並びでは flex: 1 だと高さが0になるので固定する */
    #postalcode {
        flex: none;
        width: 100%;
    }

    #show-btn {
        height: 48px;
    }

    .popup-inner {
        padding: 32px 18px 20px;
    }
}
