/* リセットと基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #050505; /* 完全な黒より少し目に優しい黒 */
    overflow-x: hidden;
    color: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* ローディング画面 */
#loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 40px; height: 40px;
    border: 2px solid #333;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ロゴ (左上固定) */
.logo {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    width: 180px; /* サイズは画像に合わせて調整してください */
    height: auto;
    display: block;
}
.logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* フッター (下部固定・グラスモーフィズム風) */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 背景を少しぼかすスタイリッシュな表現 */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.copyright {
    display: none;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #888;
}

/* 全体のコンテナ */
.marquee-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px; /* フッターの分だけ余白 */
}

/* 行ごとのリンク・スタイル */
.marquee-row-link {
    display: block;
    width: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: #000;
    /* デフォルトは少し暗くする（ホバーで明るくするため） */
    filter: brightness(0.5) grayscale(30%);
    transition: filter 0.4s ease;
    cursor: pointer;
}

/* ホバー時の挙動 */
.marquee-row-link:hover {
    filter: brightness(1) grayscale(0%);
    z-index: 10; /* ホバーした行を少し強調 */
}

/* スクロールする中身 */
.marquee-track {
    display: flex;
    width: fit-content;
    will-change: transform; /* パフォーマンス向上 */
    /* アニメーション時間はJSで制御するため初期値は仮 */
    animation: scroll linear infinite; 
}

/* ホバー時にスクロールを止める（じっくり見たい・クリックしやすくするため） 
.marquee-row-link:hover .marquee-track {
    animation-play-state: paused;
}

/* 動画スタイル */
.marquee-track video {
    height: 40vh; 
    width: auto;
    object-fit: cover;
    display: block;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}