/**
 * Popup Tracking - ポップアップCSS（シンプル画像版）
 */

/* オーバーレイ */
.popup-tracking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

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

/* モーダル */
.popup-tracking-modal {
    position: relative;
    max-width: 500px;
    width: 100%;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 閉じるボタン（右上） */
.popup-tracking-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.popup-tracking-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* 画像リンク（全体クリック可能） */
.popup-tracking-link {
    display: block;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.popup-tracking-link:hover {
    transform: scale(1.02);
}

/* 画像 */
.popup-tracking-image {
    display: block;
    width: 100%;
    height: auto;
}

/* レスポンシブ */
@media (max-width: 540px) {
    .popup-tracking-overlay {
        padding: 16px;
    }
    
    .popup-tracking-modal {
        max-width: 100%;
    }
    
    .popup-tracking-close {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .popup-tracking-link {
        border-radius: 8px;
    }
}
