/* ===================================
   ボードゲーム コレクション - スタイル
   =================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    --secondary: #0891b2;
    --accent: #06b6d4;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ===================================
   Navigation (共通ナビバー)
   =================================== */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 24px;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.nav-logo:hover { opacity: 0.8; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-menu > li > a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

/* ドロップダウン */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle .fa-chevron-down {
    font-size: 0.58rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 200px;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 500;
    list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: 8px;
    transition: all 0.15s;
    white-space: nowrap;
}

.nav-dropdown-menu li a::after { display: none !important; }

.nav-dropdown-menu li a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.nav-dropdown-menu li a.active {
    color: var(--primary);
    background: #eff6ff;
    font-weight: 600;
}

/* ハンバーガー */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
}

/* ===================================
   Hero
   =================================== */

.bg-hero {
    padding: 110px 0 56px;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    border-bottom: 1px solid var(--gray-200);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.bg-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 15px;
    color: var(--gray-500);
}

/* ===================================
   Game Grid
   =================================== */

.bg-main {
    padding: 48px 0 80px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 16px;
}

/* ===================================
   Game Card
   =================================== */

.game-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.game-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-info h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.game-info p {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature {
    display: inline-block;
    padding: 3px 9px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 0.72rem;
    color: var(--gray-600);
}

.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.game-card:hover .play-btn {
    background: var(--primary-dark);
}

/* ===================================
   Footer
   =================================== */

.bg-footer {
    text-align: center;
    padding: 28px 0;
    border-top: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-400);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 60px; left: 0; right: 0;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        max-height: 500px;
        padding: 12px 0;
    }

    .nav-menu > li { width: 100%; text-align: center; }
    .nav-menu > li > a { justify-content: center; padding: 12px 24px; width: 100%; }

    .nav-dropdown-menu {
        position: static;
        opacity: 1; visibility: visible;
        transform: none;
        box-shadow: none; border: none;
        border-top: 1px solid var(--gray-100);
        border-radius: 0;
        background: var(--gray-50);
        padding: 4px 0;
        min-width: unset;
    }

    .nav-dropdown:hover .nav-dropdown-menu { transform: none; }
    .nav-dropdown-menu li a { justify-content: center; }

    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .bg-hero {
        padding: 90px 0 40px;
    }

    .bg-hero h1 {
        font-size: 1.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        flex-wrap: wrap;
    }

    .play-btn {
        width: 100%;
    }
}
