:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --gold-color: #ffd700;
    --card-bg: #1a1a1a;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-title: 'Orbitron', sans-serif;
}
body { background-color: var(--bg-color); color: var(--text-color); font-family: var(--font-main); margin: 0; overflow-x: hidden; }
/* Opening Animation (変更なし) */
.opening-animation { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-color); display: flex; justify-content: center; align-items: center; z-index: 9999; animation: fadeOutOpening 1s ease-in-out 2.5s forwards; }
.opening-title { font-family: var(--font-title); font-size: clamp(2rem, 8vw, 5rem); color: var(--gold-color); text-shadow: 0 0 20px var(--gold-color); opacity: 0; animation: fadeInTitle 1.5s ease-out 0.5s forwards; }
@keyframes fadeInTitle { to { opacity: 1; } }
@keyframes fadeOutOpening { to { opacity: 0; visibility: hidden; } }
/* Header, Main Content, Hero (変更なし) */
.site-header { position: absolute; top: 20px; left: 20px; z-index: 1000; }
.site-header img { height: 40px; }
.main-content { opacity: 0; animation: fadeInContent 1s ease-out 2.5s forwards; }
@keyframes fadeInContent { to { opacity: 1; } }
.hero-section { text-align: center; padding: 120px 20px 60px; }
.main-title { font-family: var(--font-title); font-size: 3rem; font-weight: 900; color: #fff; margin: 0; }
.subtitle { font-family: var(--font-title); font-size: 2rem; color: var(--gold-color); text-shadow: 0 0 15px var(--gold-color); margin: 10px 0; }
.description { font-size: 1.1rem; max-width: 600px; margin: 20px auto 0; line-height: 1.8; }

/* ★★★ 作品表示エリアのスタイルを全面的に差し替え ★★★ */
.finalists-section {
    padding: 60px 0;
}
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    max-width: 1020px; /* カルーセルの最大幅を設定 */
    margin: 0 auto; /* ★★★ この1行を追記 ★★★ */
}
.card-carousel {
    display: flex;
    gap: 30px;
    padding: 20px;
    width: max-content; /* スクロールできるように */
    transition: transform 0.5s ease-in-out;
}
.finalist-card {
    width: 300px;
    background-color: var(--card-bg);
    border-radius: 15px;
    border: 1px solid #333;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0; /* カードが縮まないように */
}
.finalist-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    border-color: var(--gold-color);
}
.card-thumbnail { width: 100%; height: 180px; background-size: cover; background-position: center; position: relative; }
.card-thumbnail::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,1) 0%, rgba(26,26,26,0) 60%); }
.card-content { padding: 20px; text-align: center; }
.card-new-no { font-family: var(--font-title); font-size: 1.2rem; color: var(--gold-color); }
.card-title { font-size: 1.2rem; font-weight: bold; margin: 10px 0; height: 3.6rem; /* 3行分の高さを確保 */ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-creator { font-size: 0.9rem; opacity: 0.8; }
.carousel-nav {
    text-align: center;
    margin-top: 30px;
}
.carousel-nav button {
    background: transparent;
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s, color 0.3s;
}
.carousel-nav button:hover {
    background-color: var(--gold-color);
    color: #000;
}
/* ★★★ ここまでが差し替え箇所 ★★★ */

/* Vote Section (変更なし) */
.vote-section { text-align: center; padding: 80px 20px; background-color: #050505; }
.vote-section h2 { font-family: var(--font-title); font-size: 2rem; color: var(--gold-color); }
.vote-section p { max-width: 600px; margin: 20px auto 40px; line-height: 1.8; }
.vote-btn { display: inline-block; background: var(--gold-color); color: #000; padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1.2rem; transition: transform 0.3s, box-shadow 0.3s; }
.vote-btn:hover { transform: scale(1.1); box-shadow: 0 0 20px var(--gold-color); }
/* Modal (変更なし) */
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.modal-content { position: relative; margin: 5% auto; padding: 20px; width: 90%; max-width: 960px; }
.close-button { position: absolute; top: 0; right: 10px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }
#modal-player-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
#modal-player-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#modal-info-container { padding: 20px; }
#modal-info-container h3 { font-family: var(--font-title); font-size: 1.8rem; color: var(--gold-color); }
#modal-info-container h4 { font-size: 1.2rem; margin: 5px 0 15px; }
#modal-info-container p { line-height: 1.8; }
/* Responsive */
@media (max-width: 1024px) {
    .card-carousel { justify-content: flex-start; }
}
@media (max-width: 768px) {
    .carousel-wrapper { overflow-x: auto; /* スマホではスワイプスクロール */ }
    .carousel-nav { display: none; /* スマホではナビボタンを非表示 */ }
    .card-carousel { padding: 20px 20px 20px 0; /* 左の余白をなくす */ }
    .finalist-card { width: 250px; }
    .card-title { font-size: 1.1rem; height: 3.3rem; }
}

