/* 全体のリセットと共通設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #333333;
    background-color: #fcfaf2;
    /* 懐かしい和紙のような、少し温かみのある白 */
    line-height: 1.8;
}

/* ==========================================================================
   上部固定ナビゲーションメニューのデザイン（背景透明・青めの文字影付き）
   ========================================================================== */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: transparent;
    /* 背景を完全に透明化 */
    z-index: 1000;
    /* 一番手前に表示させる */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    /* 左右に少しゆとりを持たせる */
}

/* 左上のミニロゴの設定 */
.nav-logo {
    position: absolute;
    left: 40px;
    /* 左端から40pxの位置に固定 */
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1002;
    /* スマホメニューより手前に維持 */
}

.nav-logo img {
    height: 40px;
    /* メニューバーの高さに合わせたミニサイズ */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(1px 1px 2px rgba(0, 30, 90, 0.6));
}

.nav-logo:hover {
    opacity: 0.8;
    transform: scale(1.02);
    /* マウスを乗せると少しだけ大きくなる */
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
    /* メニューごとの間隔 */
    max-width: 1000px;
    justify-content: center;
}

.nav-list li a {
    text-decoration: none;
    color: #ffffff;
    /* 青空に映える白文字 */
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08rem;
    text-shadow: 1px 1px 3px rgba(0, 30, 90, 0.7), 0 0 8px rgba(0, 40, 100, 0.5);
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    /* 勝手に改行されるのを防ぐ */
    display: inline-block;
}

/* マウスを載せたときの色変化 */
.nav-list li a:hover {
    color: #ffd700;
    /* ひまわりのようなゴールド・イエローに変化 */
    transform: translateY(-2px);
    /* 少し上に浮き上がらせる */
}

/* スマホ用ハンバーガーボタン（PC時は非表示） */
.menu-toggle {
    display: none;
}

/* 背景暗転用マスク（PC時は非表示） */
.nav-overlay {
    display: none;
}

/* メインビジュアル（ヘッダー） */
.main-visual {
    width: 100%;
    height: 75vh;
    background: linear-gradient(180deg, #1e90ff 0%, #87ceeb 60%, #ffeadb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 20px 20px;
    /* 上部にメニューが被るため、トップの余白を多めに確保 */
    color: #ffffff;
}

.mv-text h1 {
    font-family: 'Shippori Mincho', serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.catchphrase {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

/* 「発売日未定」のシンプルな枠線デザイン */
.sub-catchphrase {
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 4px 18px;
    border-radius: 4px;
    display: inline-block;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* コンテンツの配置 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ==========================================================================
   開発日記 アコーディオン付き左サイドメニューレイアウト
   ========================================================================== */
.diary-layout {
    max-width: 1050px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 左側アーカイブサイドバー */
.archive-sidebar {
    width: 240px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 90px;
    /* スクロール追従 */
}

.archive-sidebar h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.1rem;
    color: #005a9c;
    border-bottom: 1px solid #deb887;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* 年・月のツリー構造設定 */
.archive-year-tree {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-year-item {
    display: block;
}

/* 年切り替えのトグルボタン */
.archive-year-toggle {
    width: 100%;
    background: transparent;
    color: #333333;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    padding: 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed #e2dfd2;
}

/* 開閉状態を表す小さな矢印マークを付与 */
.archive-year-toggle::after {
    content: '▶';
    font-size: 0.7rem;
    color: #888888;
    transition: transform 0.2s ease;
}

/* 年が開いている（openクラスがある）時の矢印の向き変更 */
.archive-year-item.open .archive-year-toggle::after {
    content: '▼';
    color: #005a9c;
}

/* 子要素の月リスト */
.archive-month-list {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0 4px 12px;
}

/* openクラスがついている年の月リストだけを表示 */
.archive-year-item.open .archive-month-list {
    display: flex;
}

/* 月を選択するボタンデザイン */
.archive-btn {
    width: 100%;
    background: #fcfaf2;
    color: #555555;
    border: 1px solid #e2dfd2;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.archive-btn:hover {
    background: #eedcb3;
    color: #005a9c;
}

/* 月が選択されているときのアクティブ状態 */
.archive-btn.active {
    background: #005a9c;
    color: #ffffff;
    border-color: #005a9c;
}

/* 右側記事コンテンツエリア */
.diary-content {
    flex: 1;
}

.section {
    margin-bottom: 60px;
}

/* 見出しのデザイン */
h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.8rem;
    color: #005a9c;
    border-bottom: 2px solid #deb887;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* ゲーム紹介エリア */
.about-game p {
    font-size: 1.05rem;
}

/* 開発進捗エリア */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border-left: 5px solid #005a9c;
}

.news-date {
    font-size: 0.9rem;
    color: #888888;
    margin-right: 15px;
}

/* バッジ（タグ） */
.news-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    color: #ffffff;
}

.bg-web {
    background-color: #e67e22;
}

.bg-game {
    background-color: #2ecc71;
}

.news-item h3 {
    font-size: 1.25rem;
    margin: 10px 0;
    color: #222222;
}

.news-item p {
    font-size: 0.95rem;
    color: #555555;
}

/* ==========================================================================
   フッターとSNSリンクのデザイン
   ========================================================================== */
footer {
    text-align: center;
    padding: 50px 20px 40px 20px;
    background: #eedcb3;
    font-size: 0.85rem;
    color: #666666;
}

.footer-sns {
    margin-bottom: 25px;
    /* コピーライトとの間隔 */
}

/* X公式リンクボタン */
.sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #005a9c;
    /* サイトのテーマ青 */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 50px;
    /* 丸みのあるかわいいカプセル型 */
    border: 1px solid #deb887;
    /* 麦わらベージュの細い線 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

/* マウスホバー時のエフェクト */
.sns-link:hover {
    background-color: #005a9c;
    color: #ffffff;
    border-color: #005a9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 90, 156, 0.2);
}

/* Xの文字（アイコン風）の調整 */
.x-icon {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 900;
    margin-right: 8px;
    font-size: 1.05rem;
}

/* ==========================================================================
   スマートフォン・タブレット・中画面対応（レスポンシブ：1024px以下）
   ========================================================================== */
@media (max-width: 1024px) {

    /* ナビゲーションバーのベースライン変更 */
    .global-nav {
        height: 60px;
        padding: 0 20px;
        justify-content: flex-end;
        background-color: rgba(0, 30, 90, 0.1);
        backdrop-filter: blur(4px);
    }

    .nav-logo {
        left: 20px;
    }

    .nav-logo img {
        height: 32px;
    }

    /* 三本線ハンバーガーボタンを出現させる */
    .menu-toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    /* 三本線の線の共通設定 */
    .menu-toggle span {
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
        filter: drop-shadow(1px 1px 2px rgba(0, 30, 90, 0.5));
    }

    /* 線の各初期位置設定 */
    .menu-toggle span:nth-child(1) {
        top: 0;
    }

    .menu-toggle span:nth-child(2) {
        top: 10px;
    }

    .menu-toggle span:nth-child(3) {
        top: 20px;
    }

    /* メニューが開いた（active）とき、三本線を動かして「❌」にする */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        background-color: #005a9c;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        background-color: #005a9c;
    }

    /* 背景マスク */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    /* スマホ時のメニュー画面（上から下にパッと開くドロワー） */
    .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        background-color: #fcfaf2;
        padding: 90px 40px 40px 40px;
        flex-direction: column;
        gap: 20px;
        justify-content: flex-start;
        align-items: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-bottom: 4px solid #deb887;

        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    /* openクラスがついたら画面内に出現させる */
    .nav-list.open {
        transform: translateY(0);
    }

    /* メニュー内のリンク文字デザインをスマホ用に上書き */
    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list li a {
        color: #005a9c;
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
        border-bottom: 1px dashed #e2dfd2;
        text-shadow: none;
    }

    .nav-list li a:hover {
        color: #e67e22;
    }

    /* メインビジュアルの高さ微調整 */
    .main-visual {
        height: 60vh;
        padding-top: 75px;
    }

    .mv-text h1 {
        font-size: 2.2rem;
    }

    .catchphrase {
        font-size: 1.2rem;
    }

    .container {
        padding: 40px 15px;
    }

    /* 開発日記ページのレイアウトを縦積みに変更 */
    .diary-layout {
        flex-direction: column;
        gap: 30px;
    }

    .archive-sidebar {
        width: 100%;
        position: static;
        padding: 15px;
    }
}

/* タイトルロゴスマートフォン対策 */
.title-logo {
    max-width: 90% !important;
    width: 450px;
    height: auto !important;
    display: block;
    margin: 0 auto 15px;
}