/* ベースのスタイル */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

.archive-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.archive-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* タイルレイアウト (CSS Grid) */
.video-grid {
    display: grid;
    /* 画面幅に合わせて自動でカラム数を調整。最小幅300px */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* 動画カードのデザイン */
.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* リンクの下線を消す */
    color: inherit;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* サムネイル（16:9の比率を維持） */
.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .thumbnail-wrapper img {
    transform: scale(1.05); /* ホバーで少しズーム */
}

/* 動画情報部分 */
.video-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-title {
    font-size: 1.7rem;
    font-weight: bold;
    line-height: 1.5;
    margin: 0 0 12px 0;
    /* 2行で収まらない場合は「...」にする */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    font-size: 0.85rem;
    color: #777;
    margin-top: auto; /* 日付をカードの下部に固定 */
}

/* ローディングインジケーターのスタイル */
.loading-indicator {
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
    width: 100%;
}

#loading-text {
    color: #666;
    font-size: 0.95rem;
    letter-spacing: 1px;
}