#scroll-popup-overlay.scroll-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    animation: scroll-popup-fade-in 0.25s ease;
}

#scroll-popup-overlay.scroll-popup-overlay[hidden] {
    display: none;
}

@keyframes scroll-popup-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body.scroll-popup-open {
    overflow: hidden;
}

#scroll-popup-overlay .scroll-popup-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/*
 * Elementorのグローバルキット（例: .elementor-kit-6 button {...}）が
 * button要素を汎用セレクタで上書きしてくるため、#scroll-popup-overlayを
 * 付けたIDベースの詳細度で確実に勝てるようにしている。
 */
#scroll-popup-overlay .scroll-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #999;
    font-weight: normal;
    padding: 0;
    cursor: pointer;
}

#scroll-popup-overlay .scroll-popup-close:hover {
    color: #333;
    background: transparent;
}

#scroll-popup-overlay .scroll-popup-image {
    margin: 0 auto 16px;
    max-width: 140px;
}

#scroll-popup-overlay .scroll-popup-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

#scroll-popup-overlay .scroll-popup-kicker {
    margin: 0 0 8px;
    font-size: 0.85em;
    font-weight: bold;
    color: #06C755;
}

#scroll-popup-overlay .scroll-popup-title {
    margin: 0 0 12px;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

#scroll-popup-overlay .scroll-popup-description {
    margin: 0 0 20px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
}

#scroll-popup-overlay .scroll-popup-button {
    display: inline-block;
    width: 100%;
    background-color: #06C755;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    padding: 14px;
    border-radius: 6px;
    transition: opacity 0.3s ease;
}

#scroll-popup-overlay .scroll-popup-button:hover {
    opacity: 0.85;
    color: #fff;
}

@media (max-width: 480px) {
    #scroll-popup-overlay .scroll-popup-card {
        padding: 28px 20px;
    }

    #scroll-popup-overlay .scroll-popup-title {
        font-size: 1.15em;
    }
}
