body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #c1c1c1;
    color: #6b6b6b;
    padding: 10px 20px;
    text-align: center;
}

/* グリッドレイアウト: デフォルトは「中」サイズ */
.video-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
}

/* 小サイズ */
.video-grid.small {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* 中サイズ（デフォルト） */
.video-grid.medium {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* 大サイズ */
.video-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}
/* 大サイズ */
.video-grid.movie {
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
}

/* iframeコンテナのスタイル */
.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* アスペクト比 16:9 */
    overflow: hidden;
    border-radius: 8px;
}

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

.video-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

.video-card img {
    width: 100%;
    height: auto;
}

.video-card h3 {
    margin: 10px 0;
    padding: 0 10px;
    font-size: 16px;
    color: #202020;
}

.video-card iframe {
    display: block;
    margin: 0 auto;
    border: none;
    border-radius: 8px;
}

.pagination {
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
}

.pagination a {
    text-decoration: none;
    color: #007bff;
    margin: 0 10px;
    font-weight: bold;
}

.pagination a:hover {
    text-decoration: underline;
}

.pagination span {
    margin: 0 10px;
    color: #333;
    font-weight: bold;
}



.title-container {
    display: flex;
    align-items: center;
    justify-content: center; /* 子要素を横方向で中央揃えにする */
}
.title-container h1 {
    margin: 0;
    font-size: 24px;
}
.title-container .close-icon {
    margin-left: 10px;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
}
