/* ===== 共通 ===== */
.drgc-popup {
    display: none;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
    color: #333;
    line-height: 1.6;
}
.drgc-popup.drgc-popup-open {
    display: block;
}
.drgc-popup .drgc-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.06);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}
.drgc-popup .drgc-popup-close:hover {
    background: rgba(0,0,0,0.12);
}
.drgc-popup .drgc-popup-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}
.drgc-popup .drgc-popup-heading {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: bold;
}
.drgc-popup .drgc-popup-body {
    margin: 0 0 12px;
    font-size: 14px;
}
.drgc-popup .drgc-popup-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--drgc-popup-color, #0073aa);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}
.drgc-popup .drgc-popup-btn:hover {
    opacity: 0.9;
}

/* ===== モーダル ===== */
.drgc-popup-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    animation: drgc-fade-in 0.2s ease-out;
}
.drgc-popup-modal-overlay.drgc-popup-open {
    display: flex;
    align-items: center;
    justify-content: center;
}
.drgc-popup-modal {
    position: relative;
    background: #fff;
    padding: 32px 24px 24px;
    border-radius: 8px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 99999;
    animation: drgc-pop-in 0.25s ease-out;
}

/* ===== バナー ===== */
.drgc-popup-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 20px 60px 20px 24px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
    z-index: 99998;
    animation: drgc-slide-up 0.3s ease-out;
}
.drgc-popup-banner .drgc-popup-img {
    max-height: 80px;
    width: auto;
    float: left;
    margin-right: 16px;
    margin-bottom: 0;
}

/* ===== スライドイン ===== */
.drgc-popup-slidein {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #fff;
    padding: 24px 20px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 320px;
    z-index: 99998;
    animation: drgc-slide-in-right 0.3s ease-out;
}

/* ===== モバイル ===== */
@media (max-width: 640px) {
    .drgc-popup-slidein {
        right: 10px;
        left: 10px;
        bottom: 10px;
        max-width: none;
    }
    .drgc-popup-banner {
        padding: 16px 50px 16px 16px;
    }
    .drgc-popup-banner .drgc-popup-img {
        max-height: 60px;
    }
}

/* ===== アニメーション ===== */
@keyframes drgc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes drgc-pop-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes drgc-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes drgc-slide-in-right {
    from { transform: translateX(120%); }
    to { transform: translateX(0); }
}
