.headcontainer {
    width: 800px;
    max-width: 800px;
}

/* セクションの縦並びを確保 */
.topcontainer {
    display: block;
    /* 横並びを防ぐためにflexをblockに変更 */
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    max-width: 800px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 40px;
    /* セクション間の余白を設定 */
}

.genre-buttons {
    margin-top: 20px;
}

.bannercontainer {
    display: block;
    /* 横並びを防ぐためにflexをblockに変更 */
    width: 100%;
    margin: 0 auto;
    max-width: 800px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* バナー全体のスタイル */
.banner {
    position: relative;
    width: 100%;
    /* 横幅を画面幅に合わせる */
    padding-bottom: 40%;
    /* 高さを1280×512の比率(40%)に保つ */
    width: 100%;
    /* 幅を画面いっぱいに */
    background-image: url('/images/banner.jpg');
    /* バナー画像を指定 */
    background-size: cover;
    /* 画像をコンテナ全体にフィット */
    background-size: contain;
    background-repeat: no-repeat;
    /* 画像が繰り返されないように */
}



/* ジャンルごとに異なる色 */
.murder-mystery i {
    color: #e57373;
}

.puzzle i {
    color: #64b5f6;
}

.trpg i {
    color: #81c784;
}

.immersive i {
    color: #ffd54f;
}

.story-playing i {
    color: #4fc3f7;
}

.haggle i {
    color: #ba68c8;
}

.larp i {
    color: #ffb74d;
}

.board-game i {
    color: #90a4ae;
}

.others i {
    color: #f06292;
}


.region {
    margin-bottom: 10px;
}

.region-content {
    display: none;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.region-content a {
    display: block;
    margin: 5px 0;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.region-content a:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* 軽い影を追加 */
}

.hokkaido i {
    color: #e57373;
}

.tohoku i {
    color: #64b5f6;
}

.kanto i {
    color: #81c784;
}

.chubu i {
    color: #ffd54f;
}

.kinki i {
    color: #4fc3f7;
}

.chugoku i {
    color: #ba68c8;
}

.shikoku i {
    color: #ffb74d;
}

.kyusyu i {
    color: #90a4ae;
}

.online i {
    color: #f06292;
}

/* グリッド内のボタンをリセット */
.genre-buttons a,
.region-container .region {
    margin: 0;
    /* 余計な外側マージンを削除 */
}

/* グリッドの親要素 */
.genre-buttons,
.region-container {
    margin: 10 auto;
    /* 横中央揃え */
    width: 100%;
    /* 幅を統一 */
}

/* 共通のスタイル */
.genre-buttons,
.region-container {
    display: grid;
    gap: 20px;
    text-align: center;
}

/* デスクトップ: 3列表示 */
.genre-buttons,
.region-container {
    grid-template-columns: repeat(3, 1fr);
}

.region-container {
    margin-top: 20px;
}


/* 各ボタンのスタイル */
.genre-button,
.region-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: #00bfa5 solid 2px;
    padding: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #00bfa5;
    transition: all 0.3s ease-in-out;
}

.genre-button i,
.region-button i {
    font-size: 16px;
    margin-right: 10px;
}

/* ボタンのホバースタイル */
.genre-button:hover,
.region-button:hover {
    transform: translateY(-2px);
}





/* アカウントアイコンのスタイル */
.account-icon {
    font-size: 30px;
    color: #00bfa5;
    cursor: pointer;
    z-index: 1000;
    /* メニューの上に表示 */
    transition: color 0.3s ease;
}

.account-icon:hover {
    color: #00a48f;
    /* ホバー時に濃いブルーに変更 */
}


/* ナビゲーションメニューのスタイル */
nav {
    display: none;
    /* デフォルトで非表示 */
    flex-direction: column;
    /* 縦並び */
    align-items: flex-start;
    /* 左寄せ */
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: #f8f9fa;
    padding: 10px;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

nav.active {
    display: flex;
    /* ハンバーガーメニュークリック時に表示 */
}

.nav-links {
    list-style: none;
    margin: 0;
    width: 100%;
}

.nav-links li {
    display: block;
    width: 100%;
}

header nav ul {
    display: block;
    width: 100%;
}

.nav-links a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #00bfa5;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background-color: #00bfa5;
    ;
    color: #fff;
}


/* タブレット: 2列表示 */
@media (max-width: 1024px) {
    .genre-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .region-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* スマホ: 1列表示 */
@media (max-width: 768px) {
    .genre-buttons {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
        margin-top: 10px;
        /* スマホ表示時の間隔を小さく */
    }

    .region-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 10px;
        /* スマホ表示時の間隔を小さく */
    }

    .headcontainer {
        flex-direction: row;
    }

    section {
        margin-bottom: 20px;
    }

    h2 {
        font-size: 20px;
    }
}