/**
 * SENSE 2025 - 動画・メディア遅延読み込みスタイル
 */

/* 動画コンテナのスタイル */
.lazy-video-container {
    position: relative;
    width: 100%;
    cursor: pointer;
    background-color: #f8f9fa;
    overflow: hidden;
}

/* プレイボタンのスタイル */
.video-play-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.video-play-button svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.lazy-video-container:hover .video-play-button {
    background-color: rgba(0, 0, 0, 0.4);
}

.lazy-video-container:hover .video-play-button svg {
    transform: scale(1.1);
}

/* iframeコンテナのスタイル */
.lazy-iframe-container {
    position: relative;
    width: 100%;
    cursor: pointer;
}

/* iframeプレースホルダーのスタイル */
.iframe-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iframe-play-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.iframe-play-button svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.lazy-iframe-container:hover .iframe-play-button {
    background-color: rgba(0, 0, 0, 0.4);
}

.lazy-iframe-container:hover .iframe-play-button svg {
    transform: scale(1.1);
}

/* 読み込み中インジケーター */
.lazy-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Google Map marker icon */
.iframe-map-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(139, 115, 85, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(139, 115, 85, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(139, 115, 85, 0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .video-play-button svg,
    .iframe-play-button svg {
        width: 48px;
        height: 48px;
    }
    
    .iframe-map-indicator {
        width: 60px;
        height: 60px;
    }
    
    .iframe-map-indicator svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .video-play-button svg,
    .iframe-play-button svg {
        width: 36px;
        height: 36px;
    }
    
    .iframe-map-indicator {
        width: 50px;
        height: 50px;
    }
    
    .iframe-map-indicator svg {
        width: 28px;
        height: 28px;
    }
}
