#menu-toggle {
    display: none; /* ←これが絶対に必要 */
    position: fixed; 
    top: 15px; 
    right: 15px;
    z-index: 1001; 
    /* ... スタイル ... */
}






body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}



.main-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
  width: 200px;
  height: auto; /* 高さを自動調整して画像の縦横比を維持 */
}

.main-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.main-header nav ul li a {
    text-decoration: none;
    color: #555;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-header nav ul li a:hover {
    color: #007bff;
}

main {
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
}

.section-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.profile-card {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
    margin-right: 2rem;
}

.profile-info h1 {
    margin: 0;
    font-size: 2.5rem;
}

.profile-info p {
    color: hsl(204, 100%, 70%);
    margin: 0;
}

h2 {
    color: #007bff;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    background-color: hwb(210 68% 2%);
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

footer {
   display: flex;
    flex-direction: column; /* 要素を縦に並べる */
    align-items: center; /* 横方向の中央揃え */
    padding: 20px 0; /* 上下の余白を確保 */
    background-color: #333;
    color: #fff;
    text-align: center;
}

.footer-links {
    display: flex; /* これを追加して横並びにする */
    gap: 20px; /* リンク間のスペース */
    margin-bottom: 10px; /* 著作権表示との間に余白を追加 */
}

.admin-button {
    background-color: #555; /* 目立たない暗めのグレー */
    color: #ccc; /* 灰色がかった文字色 */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.admin-button:hover {
     background-color: #444; /* ホバー時にさらに暗くする */
}

.footer-link {
    color: #007bff; /* 青色に変更 */
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-link:hover {
     color: #0056b3; /* ホバー時に少し濃い青にする */
}


/* アプリ紹介ページのスタイル */

.app-hero {
    text-align: center;
    padding: 3rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.app-hero h1 {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.app-catchphrase {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.download-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #0056b3;
}

.app-features {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.feature-item {
    flex-basis: 33%;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
}

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.screenshot-item {
    text-align: center; /* テキストを中央揃えにする */
    margin-bottom: 1.5rem; /* アイテムの下に余白を追加 */
}

.screenshot-image {
        max-width: auto; /* 画像の最大幅を設定 */
        height: 660px ;    /* 高さの自動調整を維持 */
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

.gallery img {
    
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

blockquote {
    font-style: italic;
    color: #555;
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin: 0;
}

/* 各種SNSページのスタイル */
.sns-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.twitter-timeline{
    max-width: 50% !important; 
    margin: 20px auto;
    /* 以下の2行を追加 */
    height: 700px; /* ここでタイムラインの表示高さを指定 */
    overflow-y: scroll; /* コンテナ内で縦スクロールを有効にする */
    
}





/* スマートフォンやタブレット向けのスタイル（画面幅が768px以下の場合に適用） */
@media (max-width: 768px) {
    /* ナビゲーションを縦並びにする */
    /*.main-header {
        flex-direction: column; /* 要素を縦方向に並べる 
        padding: 1rem;
    }

    .main-header nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
    } 
    */ 
    /*2025-12-15変更 ↓*/
    
    /* 1. ハンバーガーボタンを表示 */
    #menu-toggle {
        display: block; /* HTMLで display:none にしてあるので、スマホで表示させる */
        /* 固定位置の調整 (必要であれば) */
        /* top, right の設定はメディアクエリの外でも良いですが、ここでは念のため */
        top: 15px; 
        right: 15px;
    }
    .main-header nav { 
        display: none; 
    }
   
    /* ハンバーガーボタンを表示させる  */
    

    #menu-toggle {
        display: block; /* 非表示を解除し、右上に固定表示させる */
         
        position: fixed; 
        top: 15px; 
        right: 15px;
        z-index: 1001;
        background: #007bff; /* ボタンの背景色（例:青） */
        color: white;       /* アイコンの色（白） */
        border: none;       /* 枠線なし */
        border-radius: 5px; /* 角を丸くする */
    
        /* ボタンのサイズを決定するプロパティ */
        font-size: 24px;   /* アイコンのサイズを大きくする */
        padding: 12px 16px; /* ボタンの内側の余白を増やして、ボタンの領域を広げる */
        cursor: pointer;    /* カーソルをポインターにする */
    }
    /* 3. ナビゲーションメニュー本体をスマホ表示用に設定 */
    #nav-menu {
        display: block; /* 隠す設定を上書き */
        position: fixed;
        top: 0;
        right: 0; /* 右からスライドイン */
        height: 100%; 
        width: 250px; 
        background-color: rgba(255, 255, 255, 0.98); 
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        transform: translateX(100%); /* 画面外（右側）に隠す */
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        padding-top: 60px;
    }

    /* 4. 'open' クラスが付いたらメニューを表示 */
    #nav-menu.open {
        transform: translateX(0); /* 画面内にスライドイン */
    }
    
    /* 5. メニュー本体内のリンクを縦並びに整形 */
    #nav-menu ul {
        flex-direction: column;
        align-items: flex-start; /* 左寄せ */
        padding: 0;
        margin: 0;
    }
    #nav-menu li a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
        box-sizing: border-box;
    }
    /*ここまで*/
    .main-header nav ul li {
        margin: 0.5rem 0;
    }

    /* メインコンテンツのパディングを調整 */
    main {
        padding: 0 1rem;
    }

    /* プロフィールカードのレイアウト変更 */
    .profile-card {
        flex-direction: column; /* プロフィール写真と情報を縦並びにする */
        text-align: center;
    }

    .profile-photo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* スキルアイテムのパディングを調整 */
    .skill-item {
        padding: 0.4rem 0.8rem;
    }

    /* アプリ紹介ページのスタイル */

    .app-features {
        flex-direction: column; /* 3つのボックスを縦に並べる */
        gap: 1rem;
    }

    .feature-item {
        flex-basis: auto;
    }

    * アプリ紹介ページのスクリーンショットギャラリーを調整 */
    .gallery {

        flex-direction: column; /* ギャラリー内の要素を縦に並べる */
        gap: 1.5rem; /* 要素間の隙間を調整 */
    }

    .screenshot-item {
        width: 100%; /* 各画像を画面幅いっぱいに広げる */
    }

    

    .gallery img {
        width: 100%; /* スクリーンショットを画面幅いっぱいに表示 */
        height: auto;
    }
/* 各種SNSページのスタイル */
    .twitter-timeline{
    max-width: 90% !important; 
    margin: 20px auto;
    /* 以下の2行を追加 */
    height: 700px; /* ここでタイムラインの表示高さを指定 */
    overflow-y: scroll; /* コンテナ内で縦スクロールを有効にする */
    
    }
}


/* ===================================================
   ダークモード設定（script.js で body に dark-mode クラスが付くと発動）
   =================================================== */

/* ボタンの見た目（右下に固定） */
#dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.3s;
}
#dark-mode-toggle:hover { transform: scale(1.1); background-color: #0056b3; }

/* ダークモード時の色指定 */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .main-header {
    background-color: #1e1e1e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .main-header nav ul li a {
    color: #bbb;
}

body.dark-mode .section-container,
body.dark-mode .steam-box,
body.dark-mode .feature-item,
body.dark-mode .game-card-full {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-color: #333;
}

/* 詳細ページのゲームタイトル（h3）の色を調整 */
body.dark-mode .game-info-detail h3 {
    color: #fff;
}

/* 詳細ページの文字（p）の色を調整 */
body.dark-mode .game-info-detail p {
    color: #bbb;
}

body.dark-mode .top3-card {
    background-color: #2a2a2a;
    color: #eee;
}

body.dark-mode .skill-item {
    background-color: #333;
    color: #fff;
}

body.dark-mode h2 {
    border-bottom-color: #333;
}
     
body.dark-mode #nav-menu {
    background-color: rgba(30, 30, 30, 0.98) !important; /* 背景を暗く（不透明度98%） */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.7);      /* 影も少し濃く */
}

body.dark-mode #nav-menu ul li a {
    color: #e0e0e0 !important;           /* 文字を明るいグレーに */
    border-bottom-color: #333 !important; /* 区切り線を暗い色に */
}

/* ついでにハンバーガーボタン（三本線）の背景色も少し落ち着かせる場合 */
body.dark-mode #menu-toggle {
    background-color: #0056b3; /* 少し濃い青に */
}
