@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');
/* ★追加：スマホでの意図しないダブルタップズームを防止 */
a, button, input, select, textarea {
    touch-action: manipulation;
}
/* 全体の基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    animation: fadeIn 0.6s ease-in-out;
    letter-spacing: 0.05em;
    overflow-x: hidden; /* サイドバーメニューがはみ出さないように */

    /* 画面の高さを最低でも100%にする */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ヘッダー＆メニュー */
header {
    background-color: #fafafa;
    height: 80px;
    padding: 0 5%;
    /* ★修正2：ここにあった box-shadow: ...; の行を丸ごと削除する！ */
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ★修正ポイント！ ロゴを特大サイズにしてはみ出させる */
.logo {
    position: relative;
    height: 100%; /* ヘッダーと同じ高さに */
}
.logo a {
    text-decoration: none;
    display: block;
    height: 100%;
}
.logo img {
    /* ★赤線に合わせて特大サイズに変更！（※もしこれでも小さければ300pxなどに上げてください） */
    width: 170px;
    height: auto;
    display: block;
    position: absolute;
    top: 0px;
    left: 0;
    z-index: 110;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: all 0.23s ease-in-out;
}

/* ★ここを新規追加：スクロールした時のPC版ロゴのスタイル */
header.is-scrolled .logo img {
    width: 80px; /* ヘッダーに綺麗に収まるサイズに縮小 */
}

/* PC用ナビゲーションメニュー */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 25px;
    transition: all 0.3s;
}
.nav-menu a:hover {
    color: #0056b3;
    background-color: #f0f4f8;
}
.nav-menu a.active {
    color: #fff !important;
    background-color: #0056b3;
}

/* PCではハンバーガーボタンを非表示 */
.burger-btn {
    display: none;
}

/* 横幅100%のメインビジュアル */
.main-visual {
    width: 100%;
    /* ★修正ポイント！ 余計な白い帯を削除し、ヘッダーのすぐ下に画像を配置 */
    margin-top: 80px;
    background-color: #000;
    position: relative;
    z-index: 90;
}
.main-visual img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.85;
}

/* 画像の上に載るキャッチコピーの設定 */
.catchphrase {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
}
.catchphrase h2 {
    font-size: 2.8rem;
    margin: 0 0 10px 0;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.catchphrase p {
    font-size: 1.2rem;
    margin: 0;
    letter-spacing: 0.15em;
    font-weight: bold;
    color: #e0eafc;
}

/* メインコンテンツ枠 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 90px 5% 60px; /* ★上の余白を 0 から 90px に増やして、はみ出したロゴを避ける */
    /* コンテンツエリアを空きスペース分まで伸ばす */
    flex-grow: 1;
}

/* 見出し */
h2.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* お知らせリスト */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-list li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
}
.news-date {
    color: #666;
    margin-right: 20px;
    font-size: 0.9rem;
    font-family: monospace;
}
.news-category {
    background: #0056b3;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 20px;
    font-weight: bold;
}
.news-title {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.news-title:hover {
    color: #0056b3;
}

/* ゲームカード (business.html用) */
.game-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
}
.game-card-content {
    padding: 30px;
}
.game-card-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
}
.game-card-content p {
    line-height: 1.6;
    color: #555;
}

/* フッター */
footer {
    background-color: #11151c;
    color: #8a94a5;
    text-align: center;
    padding: 50px 20px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    margin-top: 80px;
    border-top: 1px solid #2a3441;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* 会社概要テーブル */
.company-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.company-table th, .company-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.company-table th {
    width: 30%;
    background-color: #f8fafc;
    color: #4a5568;
    font-weight: bold;
}

/* -------------------------------------------------- */
/* ★トップページ：ゲームピックアップバナー */
/* -------------------------------------------------- */
.pickup-banner {
    max-width: 700px; /* ★最大幅を600pxに制限（お好みで400px〜700px程度で調整してください） */
    margin: 0 auto 50px; /* ★左右中央寄せにし、下にお知らせとの間隔を空ける */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* マウスを乗せると少しフワッと浮き上がるアクション */
.pickup-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pickup-banner img {
    width: 100%; /* 横幅いっぱいに広げる */
    height: auto;
    display: block;
}

/* --- 【全画面共通】ドットアニメーションと背景の動き --- */

.pixel-brand-section {
    /* 背景がゆっくり変わるアニメーションを全体に適用 */
    background: linear-gradient(135deg, #ffffff, #f0f4f8, #e6e6fa, #f0f4f8);
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;

    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.pixel-text {
    display: inline-block;
    font-family: 'DotGothic16', sans-serif;
    font-size: 4rem; /* PCでのサイズ */
    color: #0000ff; /* 原色の青 */
    position: relative;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    /* steps(8) で Adelheit をカクカク出す */
    animation:
        typing-adel 1.5s steps(8, end) forwards,
        glitch-vivid 1.5s step-end;
}

.pixel-sub {
    font-family: 'DotGothic16', sans-serif;
    color: #ff00ff; /* 原色のマゼンタ */
    margin-top: 15px;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeIn-vivid 0.3s ease forwards 1.8s;
}

/* --- アニメーション共通定義 --- */
@keyframes gradient-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes typing-adel {
    from { width: 0 }
    to { width: 100% }
}
@keyframes glitch-vivid {
    0%, 100% { text-shadow: none; transform: translate(0); }
    20% { text-shadow: 4px 0 #ff0000, -4px 0 #00ff00; transform: translate(3px, -2px); }
    40% { text-shadow: -4px 0 #ff0000, 4px 0 #00ff00; transform: translate(-3px, 2px); }
}
@keyframes fadeIn-vivid {
    to { opacity: 1; }
}

/* -------------------------------------------------- */
/* ★スマホ・タブレット用のサイズ調整 (767px以下) */
/* -------------------------------------------------- */
@media (max-width: 767px) {
    header {
        height: 60px;
        padding: 0 3%;
    }

    .logo {
        position: relative;
        height: 100%;
    }
    .logo img {
        width: 120px; /* スマホ版も少し大きく */
        height: auto;
        position: absolute;
        top: 0px;
        left: 0;
    }

    /* ★ここを新規追加：スマホでスクロールした時のロゴのスタイル */
    header.is-scrolled .logo img {
        width: 63px; /* スマホの細いヘッダーに収まるサイズに縮小 */
    }

    .burger-btn {
        display: block;
        position: relative;
        z-index: 130;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    .burger-btn span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }
    .burger-btn span:nth-child(1) { top: 0; }
    .burger-btn span:nth-child(2) { top: 11px; }
    .burger-btn span:nth-child(3) { bottom: 0; }

    .burger-btn.is-open span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .burger-btn.is-open span:nth-child(2) {
        opacity: 0;
    }
    .burger-btn.is-open span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* ②スマホ用ナビゲーションメニュー (白のドロップダウンボックス形式) */
    .nav-menu {
        display: none; /* 初期状態は非表示 */
        flex-direction: column;
        position: absolute; /* ヘッダーを基準に絶対配置 */
        top: 65px; /* ヘッダーの下に少し間をあける */
        right: 5%; /* 右端から少し離す */
        width: 200px; /* 白いボックスの横幅 */
        background-color: #fff; /* 白地 */
        z-index: 120;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* ふわっとした影 */
        border-radius: 8px; /* 角丸 */
        padding: 10px 0;
        gap: 0;
    }

    /* ハンバーガーボタンが押されて is-open が付いた時 */
    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: left; /* 中央寄せではなく左寄せに */
        border-bottom: none; /* 区切り線を消す */
    }

    .nav-menu a {
        display: block;
        width: 100%;
        color: #0056b3; /* しろもふファクトリー風の青色テキスト */
        font-weight: bold;
        font-size: 0.95rem; /* 少し小さめに */
        padding: 12px 25px; /* 上下左右の余白 */
        border-radius: 0;
        background: none;
    }

    .nav-menu a:hover {
        color: #004494;
        background-color: #f8fafc;
    }

    /* 選択されているメニューのハイライト（青文字+薄い青背景） */
    .nav-menu a.active {
        color: #0056b3 !important;
        background-color: #f0f4f8; /* 控えめな背景色にして箱に馴染ませる */
    }

    /* ボックス型メニューなので、背景のスクロールは止めない */
    body.is-open {
        overflow: auto;
    }

    body.is-open {
        overflow: hidden;
    }

    .main-visual {
        margin-top: 60px; /* スマホ版も白い帯を削除 */
    }

    /* お知らせリストのスマホレイアウト (縦積み) */
    .news-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }
    .news-date {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 0.8rem;
    }
    .news-category {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    .news-title {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .catchphrase h2 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    .catchphrase p {
        font-size: 0.8rem;
    }
/* --- 【背景変化・静止ドットロゴ版】 --- */

.pixel-brand-section {
    /* 背景がゆっくり変わるアニメーション */
    background: linear-gradient(135deg, #ffffff, #f0f4f8, #e6e6fa, #f0f4f8);
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;

    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
}

.pixel-text {
    display: inline-block;
    font-family: 'DotGothic16', sans-serif;
    font-size: 4rem;
    color: #0000ff; /* 原色の青 */
    position: relative;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    /* steps(8) でカクカク打ち出し。タイピング中だけグリッチを混ぜる */
    animation:
        typing-adel 1.5s steps(8, end) forwards,
        glitch-vivid 1.5s step-end; /* タイピングと同じ時間だけ揺らす */
}

.pixel-sub {
    font-family: 'DotGothic16', sans-serif;
    color: #ff00ff; /* 原色のマゼンタ */
    margin-top: 15px;
    font-size: 1rem;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeIn-vivid 0.3s ease forwards 1.8s;
}

/* --- アニメーションの定義 --- */

/* 背景がゆっくり動く動き */
@keyframes gradient-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 8文字タイピング */
@keyframes typing-adel {
    from { width: 0 }
    to { width: 100% }
}

/* タイピング中のみ発生するノイズ（1.5秒で止まるように設定） */
@keyframes glitch-vivid {
    0%, 100% { text-shadow: none; transform: translate(0); }
    20% { text-shadow: 4px 0 #ff0000, -4px 0 #00ff00; transform: translate(3px, -2px); }
    40% { text-shadow: -4px 0 #ff0000, 4px 0 #00ff00; transform: translate(-3px, 2px); }
    60% { text-shadow: 4px 0 #ff0000, -4px 0 #00ff00; transform: translate(2px, -1px); }
}

@keyframes fadeIn-vivid {
    to { opacity: 1; }
}

/* スマホ用調整 */
@media (max-width: 767px) {
    .pixel-text {
        font-size: 2.2rem;
    }
}
}
