/* ===== ポップアップオーバーレイ ===== */
#dap-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: dapFadeIn 0.3s ease;
}

#dap-popup-overlay.dap-visible {
    display: flex;
}

@keyframes dapFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== ポップアップボックス ===== */
#dap-popup-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 36px 16px 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    max-width: 640px;
    width: 100%;
    animation: dapSlideUp 0.35s ease;
    text-align: center;
}

@keyframes dapSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ===== 閉じるボタン ===== */
#dap-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
#dap-popup-close:hover {
    background: #d63638;
}

/* ===== バナーラップ ===== */
#dap-popup-banner-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}
#dap-popup-banner-wrap ins {
    display: block;
}

/* ===== 注記 ===== */
#dap-popup-note {
    font-size: 10px;
    color: #aaa;
    margin: 6px 0 0;
}

/* ===== オーバーレイクリックで閉じる ===== */
#dap-popup-overlay.dap-closing {
    animation: dapFadeOut 0.2s ease forwards;
}
@keyframes dapFadeOut {
    to { opacity: 0; }
}

/* ===== モバイル調整 ===== */
@media (max-width: 480px) {
    #dap-popup-box {
        padding: 32px 8px 10px;
    }
}
