@charset "UTF-8";
/* 動画配置再生用 */

/* 全体のセクション（PCでの左右の空きを確保） */
.video-list-section {
    max-width: 900px; /* 動画の最大幅（お好みで調整してください） */
    margin: 4rem auto;
    padding: 0 2rem;   /* PC表示時の左右の余白 */
}

/* 各動画アイテムの間隔 */
.video-item {
    margin-bottom: 4rem; /* 動画ごとの上下の間隔 */
}

/* タイトルを上部に配置 */
.video-title {
    font-size: 1.4rem;
    font-weight: bold;
    text-align: left;    /* 左寄せ（中央にしたい場合は c または center に変更） */
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* 動画コンテナ */
.video-container {
    width: 100%;
    background: #000;    /* 読み込み中の背景色 */
    border-radius: 4px;  /* お好みで角丸 */
    overflow: hidden;
}

/* 動画本体のレスポンシブ化 */
.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- スマホ表示（画面幅768px未満）の場合の調整 --- */
@media screen and (max-width: 767px) {
    .video-list-section {
        padding: 0; /* 左右の余白をゼロにして画面一杯にする */
        margin: 2rem 0;
    }
    
    .video-title {
        padding: 0 1rem; /* タイトルだけは端に寄りすぎないよう少し内側に余白を入れると綺麗です */
    }
    
    .video-container {
        border-radius: 0; /* スマホで端から端まで一杯にする場合は角丸をなくすときれいに収まります */
    }
}

/* サムネイル部分のスタイル */
.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}
.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}
.video-thumbnail:hover img {
    opacity: 0.8;
}
/* 再生マークのデザイン */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}
.video-thumbnail:hover .play-icon {
    background: var(--primary-color, #2b5796);
}

/* ポップアップ（モーダル）全体の初期状態：非表示 */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* 周りを暗くする */
    align-items: center;
    justify-content: center;
}

/* ポップアップの中身（動画と閉じるボタン） */
.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    padding: 2rem 1rem 1rem 1rem;
    border-radius: 6px;
}
.modal-content video {
    width: 100%;
    height: auto;
    display: block;
}

/* 閉じるボタン（×） */
.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover {
    color: #ccc;
}
