@charset "UTF-8";

/* --- Swiper全体の調整 --- */
        .youtube-swiper { 
            padding: 50px 0; 
            overflow: hidden; 
        }
        
        /* カードのスタイル */
        .video-card { 
            cursor: pointer; 
            border: none; 
            position: relative;
            transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
            transform: scale(0.85);
            opacity: 0.5;
            filter: grayscale(100%);
            backface-visibility: hidden;
        }
        
        /* 中央（アクティブ）時のスタイル */
        .swiper-slide-active .video-card {
            transform: scale(1.1);
            opacity: 1;
            filter: grayscale(0%);
            z-index: 10;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            border-radius: 16px;
        }

        .thumbnail-wrapper {
            position: relative;
            padding-top: 56.25%;
            overflow: hidden;
            border-radius: 16px;
            background-color: #000;
        }

        /* 静止画サムネイル */
        .thumb-img {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            object-fit: cover;
            transition: opacity 0.4s;
            z-index: 5;
        }

        /* 動画プレビューコンテナ */
        .preview-container {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 1;
        }

        /* 操作用透明レイヤー */
        .click-layer {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 20;
            background: transparent;
        }

        /* 再生中クラス */
        .video-card.is-playing .thumb-img { opacity: 0; }
        .video-card.is-playing .preview-container { z-index: 10; }

        .video-title {
            font-size: 0.9rem;
            font-weight: bold;
            margin-top: 20px;
            text-align: center;
            opacity: 0;
            transition: opacity 0.4s;
            color: #333;
        }
        .swiper-slide-active .video-title { opacity: 1; }

        /* --- モーダル調整（Bootstrap4対応版） --- */
        /* 背景を透明にして枠線を消す */
        .video-modal-content {
            background-color: transparent;
            border: none;
            box-shadow: none;
        }
        
        /* iframeを囲むラッパーで角丸を指定 */
        .video-wrapper {
            border-radius: 16px;
            overflow: hidden;
            background-color: #000;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }

        /* 閉じるボタンのホバー（マウスオーバー）時の挙動 */
        #videoModal .close:hover {
            opacity: 1 !important;
        }

        /* PC閲覧時にモーダルをさらに大きく表示するための調整 */
        @media (min-width: 992px) {
            #videoModal .modal-lg {
                max-width: 65vw;
            }
        }