/* 
 * Video Detail Page Styles
 * 動画詳細ページ専用CSS
 */

/* フォント設定 */
.video-detail-container,
.video-detail-container * {
    font-family: 游明朝, YuMincho, 'ヒラギノ明朝 Pro W3', 'Hiragino Mincho Pro', 'ＭＳ Ｐ明朝', 'MS PMincho', serif;
}

/* コンテナスタイル */
.video-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ナビゲーション */
.video-detail-nav {
    margin-bottom: 30px;
    text-align: center;
}

.video-detail-nav a {
    opacity: 1;
}

.back-to-list {
    display: inline-flex;
    align-items: center;
    color: #171c60;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border: 1px solid #171c60;
    transition: all 0.3s ease;
}

.back-to-list:hover {
    background-color: #171c60;
    color: white;
}

/* ヘッダー部分 */
.video-detail-header {
    margin-bottom: 30px;
    text-align: center;
}

.video-detail-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
    text-align: left;
}

.video-detail-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

/* 動画プレイヤー */
.video-detail-player {
    margin-bottom: 60px;
}

.video-embed-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 動画の説明文 */
.video-detail-description {
    margin-bottom: 40px;
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-detail-description h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #171c60;
    padding-bottom: 8px;
}

.video-description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* 関連動画 */
.video-detail-related {
    margin-bottom: 40px;

}

.video-detail-related h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #171c60;
    padding-bottom: 8px;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.related-video-item {
    overflow: hidden;
}

.related-video-item a {
    text-decoration: none;
    display: block;
}

.related-video-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.related-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-video-title {
    padding: 15px 0;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
}

.related-video-item a:hover .related-video-title {
    color: #171c60;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .video-detail-container {
        padding: 15px;
        margin-top: 40px;
    }
    
    .video-detail-title {
        font-size: 24px;
    }
    
    .video-detail-tags {
        justify-content: flex-start;
    }

    .video-detail-header {
        margin-bottom: 20px;
    }
    
    .video-detail-player,
    .video-detail-description,
    .video-detail-related {
        padding: 0;
    }
    
    .related-videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .related-video-title {
        font-size: 13px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .video-detail-container {
        padding: 10px;
        margin-top: 40px;
    }
    
    .video-detail-title {
        font-size: 20px;
    }
    
    .back-to-list {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .video-detail-player,
    .video-detail-description,
    .video-detail-related {
        padding: 0;
    }
    
    .video-detail-description h3,
    .video-detail-related h3 {
        font-size: 18px;
    }
    
    .related-videos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .related-video-title {
        font-size: 12px;
        padding: 10px;
    }
} 