/* ======================================== */
/* 全体共通スタイル */
/* ======================================== */
body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif; /* ゴシック体 */
    margin: 0;
    padding: 0;
    color: #333; /* 基本のテキスト色 */
    line-height: 1.6;
    overflow-x: hidden; /* 横スクロール防止 */
    background-color: #fff; /* ベースカラー */
}

.container {
    max-width: 1200px; /* コンテンツの最大幅 */
    margin: 0 auto;
    padding: 0 20px; /* 左右の余白 */
}

h1, h2, h3 {
    font-weight: 700; /* 太字 */
    color: #333;
}

a {
    text-decoration: none;
    color: inherit; /* デフォルトでは親要素の色を継承 */
}

/* セクション共通の見出し */
.section-title {
    font-size: 2.5em; /* 大きめのフォントサイズ */
    text-align: center;
    color: #E6002D; /* メインカラー：赤 */
    margin-bottom: 60px;
    padding-top: 0px; /* 上部の余白 80px→0に変更 */
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #E6002D; /* 赤色の下線 */
    margin: 20px auto 0;
}

/* ======================================== */
/* ヘッダー（スティッキーナビゲーション） */
/* ======================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.9); /* 白背景、半透明 */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between; /* gumiロゴがなくなるので両端に寄せる */
    align-items: center;
    padding: 15px 20px;
}

.header-logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #E6002D; /* g'gamesロゴの色は赤 */
    letter-spacing: 0.05em;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: #333;
    font-weight: 700;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #E6002D; /* ホバー時の下線は赤 */
    transition: width 0.3s ease-in-out;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* .gumi-logo { /* ヘッダーのgumiロゴは削除 */
    /* display: none; */
/* } */


/* ======================================== */
/* トップ（ファーストビュー）セクション */
/* ======================================== */
.hero-section {
    height: 100vh; /* 画面全体の高さ */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff; /* テキスト色 */
    background: linear-gradient(135deg, #E6002D, #FF6600); /* 赤のグラデーション */
    /* 背景画像や動画をここに追加する例 */
    /* background-image: url('path/to/hero_background.jpg'); */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden; /* オーバーフローを隠す */
}

/* 必要に応じて動画のスタイル */
/* .hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    background-size: cover;
} */

.hero-content {
    z-index: 1; /* コンテンツが背景の上に来るように */
    padding-top: 80px; /* ヘッダーとの重なりを考慮 */
}

.brand-logo-text {
    font-size: 6em; /* 大きなロゴテキスト */
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* テキストに影 */
    color: #fff; /* 白いロゴテキスト */
}

.tagline {
    font-size: 1.5em;
    font-weight: 400;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* ======================================== */
/* BRAND（ブランド紹介）セクション */
/* ======================================== */
.brand-section {
    background-color: #fff; /* ベースカラー */
    padding: 80px 0;
    text-align: center;
}

.brand-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
}

.brand-content p {
    margin-bottom: 1em;
}

/* 必要であればブランドイメージのスタイル */
/* .brand-image {
    max-width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
} */

/* ======================================== */
/* GAMES（ゲーム紹介）セクション */
/* ======================================== */
.games-section {
    background-color: #f8f8f8; /* 少しグレーでセクションを区切る */
    padding: 80px 0;
}

.game-list {
    display: flex;
    flex-wrap: wrap; /* 折り返し */
    justify-content: center;
    gap: 40px; /* アイテム間の余白 */
    margin-top: 40px;
}

.game-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(50% - 20px); /* 2列表示、gapを考慮 */
    max-width: 500px; /* 個々のアイテムの最大幅 */
    text-align: center;
    padding-bottom: 30px; /* 下部に余白 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-item:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.game-thumbnail {
    width: 100%;
    height: 280px; /* 固定の高さ */
    object-fit: cover; /* 画像のトリミング方法 */
    display: block;
}

.game-title {
    font-size: 1.8em;
    color: #E6002D; /* 赤色 */
    margin: 30px 0 15px;
    padding: 0 20px;
}

.game-description {
    font-size: 1em;
    color: #555;
    padding: 0 20px;
    margin-bottom: 25px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

.download-buttons a img {
    height: 50px; /* バッジの高さ */
    transition: transform 0.2s ease;
}

.download-buttons a img:hover {
    transform: translateY(-3px);
}

/* ======================================== */
/* フッター（CONTACT、ポリシー、コピーライト、gumiロゴ） */
/* ======================================== */
.main-footer {
    background-color: #000; /* アクセントカラー：黒 */
    color: #fff; /* テキスト色 */
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column; /* 縦並び */
    align-items: center;
}

.contact-info {
    margin-bottom: 40px;
}

.footer-heading {
    font-size: 1.8em;
    color: #E6002D; /* 赤色 */
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.contact-info a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #E6002D; /* ホバーで赤色 */
}

.footer-nav ul {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    gap: 30px; /* リンク間の余白 */
}

.footer-nav ul li a {
    color: #fff;
    font-size: 1em;
    position: relative;
    transition: color 0.3s ease;
}

.footer-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 1px;
    background-color: #E6002D;
    transition: width 0.3s ease-in-out;
}

.footer-nav ul li a:hover {
    color: #E6002D; /* ホバーで赤色 */
}

.footer-nav ul li a:hover::after {
    width: 100%;
}

.social-links {
    margin-bottom: 30px;
}

.social-links .social-icon {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    filter: invert(100%); /* 白抜きにするフィルター */
    transition: transform 0.3s ease;
}

.social-links .social-icon:hover {
    transform: translateY(-5px);
    filter: invert(70%) sepia(100%) saturate(700%) hue-rotate(330deg) brightness(100%) contrast(100%); /* 赤色にするフィルター (おおよそ) */
}

/* フッター内のgumiロゴ */
.gumi-logo-footer {
    margin-top: 30px;
    margin-bottom: 20px; /* コピーライトとの間に余白 */
}

.gumi-logo-footer .gumi-logo-img {
    height: 40px; /* ロゴの高さ調整 */
    filter: none; 
    transition: filter 0.3s ease;
}

.gumi-logo-footer .gumi-logo-img:hover {
    filter: invert(50%); /* ホバーで元の色に戻す、または少し明るくする */
}


.copyright {
    font-size: 0.9em;
    color: #bbb;
    margin-top: 20px;
}

/* ======================================== */
/* レスポンシブデザイン (モバイル向け) */
/* ======================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column; /* 縦並びに変更 */
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px; /* 縦方向の余白 */
        margin-top: 15px;
    }

    .main-nav ul li {
        margin-left: 0;
    }

    /* .gumi-logo {
        margin-top: 15px;
    } */ /* ヘッダーのgumiロゴ削除のためコメントアウト */

    .hero-content {
        padding: 0 20px; /* モバイルでの余白 */
    }

    .brand-logo-text {
        font-size: 4em; /* 小さく */
    }

    .tagline {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
        padding-top: 60px;
    }

    .game-item {
        width: 100%; /* 1列表示 */
        max-width: 400px; /* 中央寄せ用 */
    }

    .game-thumbnail {
        height: 220px; /* モバイルでの高さ調整 */
    }

    .game-title {
        font-size: 1.5em;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .contact-info {
        margin-bottom: 30px;
    }

    .gumi-logo-footer {
        margin-top: 20px; /* モバイルでの余白調整 */
    }
}