/* =================================================================
   ポップアップバナー（popbanner モジュール）
   設置先：https://gigaplus.makeshop.jp/swat/cm/css/popup.css
================================================================= */

.swatPopup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s ease;
}

.swatPopup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.swatPopup-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    transform: translateY(18px);
    transition: transform .5s ease;
}

.swatPopup-overlay.is-open .swatPopup-box {
    transform: none;
}

.swatPopup-box a {
    display: block;
}

.swatPopup-box img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.swatPopup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #555;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    -webkit-appearance: none;
    appearance: none;
}

.swatPopup-close:hover {
    color: #c8161d;
}

@media screen and (max-width: 768px) {
    .swatPopup-box {
        max-width: 88vw;
    }
    .swatPopup-close {
        top: -12px;
        right: -8px;
    }
}
