/* 動画ページ用レイアウト */
.video-page-main {
    padding: 88px 16px 32px;
    max-width: 1400px;
    /* 動画がたくさん入るため広めに確保 */
    margin: 0 auto;
}

/* 4列のグリッドレイアウト (指定された |動画|動画|動画|動画| の枠組み) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* 動画ごとの枠 (Cards) */
.video-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
        0 2px 2px 0 rgba(0, 0, 0, 0.14),
        0 1px 5px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
        0 8px 10px 1px rgba(0, 0, 0, 0.14),
        0 3px 14px 2px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    z-index: 1;
}

/* 動画部分のコンテナ保持(16:9) */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: #000;
}

/* タイトルエリア */
.video-title-area {
    padding: 12px 16px;
}

.video-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    /* 長いタイトルを省略(...)するための設定 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* iframeの絶対配置設定 */
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* レスポンシブ対応 - 画面幅が狭い場合の列数自動調整 */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}