/* 動画セクションのスタイル */
.video-section {
    position: relative;
    width: 100%;
    background-color: #ECF5B8;
    padding: 40px 20px; /* 60pxから40pxに減らして間隔を調整 */
}

.fullvideo-section {
    position: relative;
    width: 100%;
    background-color: #f8f9fa;
    padding: 40px 20px; /* 60pxから40pxに減らして間隔を調整 */
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* 最大幅を制限 */
    margin: 20px auto 0; /* 上部マージンを追加してタイトルとの間隔を調整 */
    padding: 0 20px;
}

/* 動画要素のスタイル - 全体表示バージョン */
.background-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

/* 音声ONボタン */
.unmute-btn {
    display: block;
    margin: 20px auto 0;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.unmute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.unmute-btn:active {
    transform: translateY(0);
}

.unmute-btn.muted {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.unmute-btn.unmuted {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* 動画の上に表示するオーバーレイテキスト（オプション） */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3); /* 半透明の黒背景 */
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
    pointer-events: none; /* クリックを動画に通す */
    border-radius: 10px;
}

.video-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #21cbf3;
}

.video-subtitle {
    font-size: 1.3em;
    font-weight: 400;
    
}

/* モバイル対応 */
@media (max-width: 768px) {
    .video-section {
        padding: 1px 15px;
    }

    .fullvideo-section {
        padding: 1px 15px;
    }
    
    .video-container {
        padding: 0 10px;
    }
    
    .unmute-btn {
        font-size: 0.9em;
        padding: 10px 25px;
    }
    
    .video-title {
        font-size: 1.5em;
    }
    
    .video-subtitle {
        font-size: 1.1em;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .video-section {
        padding: 50px 20px;
    }

    .fullvideo-section {
        padding: 50px 20px;
    }
    
    .video-container {
        max-width: 800px;
    }
    
    .video-title {
        font-size: 2.2em;
    }
}

/* デスクトップ大画面 */
@media (min-width: 1400px) {
    .video-container {
        max-width: 1000px;
    }
}

/* オーバーレイなしバージョン（動画のみ表示したい場合） */
.video-section .fullvideo-section .no-overlay .video-overlay {
    display: none;
}

/* セクションタイトルがある場合の調整 */
.section-title + .video-section .fullvideo-section,
h2 + .video-section .fullvideo-section,
h3 + .video-section .fullvideo-section {
    margin-top: -20px; /* タイトルとの間隔を詰める */
}