@charset "UTF-8";

/* :root {
    --button_area_65: max(55px, 4.76vw);
} */

.popup-banner {
    position: fixed; /* ①固定 */
    right: 20px;
    bottom: 20px;
    z-index: 100;
    max-width: 310px;
    width: 100%;
    border: solid 1px #000000;
    background: #ffffff;
    border-radius: .5rem;

    /* スクロールでふわっと出すための設定 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    /* 表示された時のクラス */
    &.is-active {
        opacity: 1;
        visibility: visible;
    }
    
    .popup-banner-inner {
        position: relative;
    }
    

    .close-btn {
        position: absolute;
        top: 5px; 
        right: 5px;
        width: 24px;
        height: 24px;
        z-index: 120; /* バナーのコンテンツより手前に表示 */
        
        /* ×印の作成 */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 1pxの線で×を作る */
    .close-btn::before, .close-btn::after {
        content: "";
        position: absolute;
        width: 12px;
        height: 1px;
        background: #000000;
    }
    .close-btn::before { transform: rotate(45deg); }
    .close-btn::after { transform: rotate(-45deg); }
    

    a {
        padding: 35px 0 25px;
        display: block;
    }
    .popup-title-wrap {
        /* display: flex;
        gap: 3px;
        justify-content: center; */
        line-height: 1.5;
        text-align: center;
    }
    .popup-title {
        font-size: 15px;
        display: inline;
    }
    svg {
        width: 16px;
        object-fit: cover;
        display: inline-block;
        padding-top: 9px;
    }
    .detail {
        display: flex;
        align-items: end;
        justify-content: flex-end;
        padding-right: 20px;
    }
    .detail span {
        font-size: 13px;
        display: block;
    }
    .arrow {
        /* position: absolute;
        bottom: 0px;
        right: -75px;
        height: auto; */
        display: block;
        margin-left: 3px;
    }
    img {
        /* width: var(--button_area_65); */
        width: max(50px, 4vw);
        object-fit: contain;
        transition: opacity 0.35s ease;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 770px) {
    .popup-banner {
        right: 10px;
        bottom: 10px;
        width: clamp(14.375rem, 12.143rem + 11.16vw, 17.5rem);
        padding: 0 20px;

        .close-btn {
            right: -10px;
        }

        a {
            padding: 20px 0 15px;
        }
        .popup-title-wrap {
            text-align: justify;
            line-height: 0.9;
        }
        .detail {
            padding: 0;
            margin-top: 10px;
        }
    }
}