/* 離脱防止ポップアップのスタイル */
.exit-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.exit-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: slideUp 0.3s ease-in-out;
}

.exit-popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exit-popup-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.exit-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.exit-popup-close:hover {
    background-color: #f44336;
    color: #fff;
    transform: rotate(90deg);
}

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

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

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .exit-popup-content {
        max-width: 95%;
        max-height: 80%;
    }

    .exit-popup-image {
        border-radius: 4px;
    }

    .exit-popup-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: -10px;
        right: -10px;
    }
}
