* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

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

/* ヘッダー */
.header {
    text-align: center;
    padding: 40px 20px 30px;
    margin-bottom: 30px;
}

.site-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(79, 172, 254, 0.3);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease-out;
}

.site-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 0.2em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ゲームグリッド */
.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

/* ゲームカード */
.game-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out backwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }

.game-card.active:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 172, 254, 0.3);
    box-shadow: 0 20px 60px rgba(79, 172, 254, 0.2);
}

.game-card.active:active {
    transform: translateY(-4px);
}

.game-card.disabled {
    cursor: not-allowed;
}

.game-card.disabled:hover {
    transform: none;
}

/* ゲームサムネイル */
.game-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 正方形 1:1 - どんな画像サイズでも正方形になる */
    overflow: hidden;
    background: #000;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をトリミングして正方形に収める */
    object-position: center; /* 画像の中央を表示 */
    transition: transform 0.4s ease;
    display: block; /* 余計な隙間を防ぐ */
}

.game-card.active:hover .game-image {
    transform: scale(1.05);
}

.game-card.disabled .game-image {
    filter: grayscale(100%) brightness(0.4);
}

/* ゲームオーバーレイ */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.8) 0%, rgba(0, 242, 254, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card.active:hover .game-overlay {
    opacity: 1;
}

.game-overlay.coming-soon-overlay {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

/* ゲームステータスバッジ */
.game-status {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: rgba(255, 255, 255, 0.95);
    color: #0a0e27;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.game-status.coming-soon {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ゲーム情報 */
.game-info {
    padding: 20px;
}

.game-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.game-card.disabled .game-title {
    color: rgba(255, 255, 255, 0.5);
}

.game-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

/* フッター */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: 20px;
}

/* アニメーション */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* タブレット */
@media (min-width: 600px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* デスクトップ */
@media (min-width: 900px) {
    .container {
        padding: 40px;
    }
    
    .header {
        padding: 60px 20px 40px;
    }
    
    .site-title {
        font-size: 4rem;
    }
    
    .site-subtitle {
        font-size: 1.2rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .game-info {
        padding: 24px;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
}

/* 大画面 */
@media (min-width: 1200px) {
    .game-grid {
        gap: 35px;
    }
}

/* スマホ最適化 */
@media (max-width: 599px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 15px 20px;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    .site-subtitle {
        font-size: 0.9rem;
    }
    
    .game-grid {
        gap: 20px;
    }
    
    .game-info {
        padding: 18px;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
    
    .game-description {
        font-size: 0.85rem;
    }
}