/* リセットCSSの簡略化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全体のスタイル設定 */
body {
    background-color: #242D45; 
    color: #D0D4E0; 
    font-family: "IMB Plex Mono","Courier","monospace","ヒラギノ明朝 Pro", "MS P明朝", serif;
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
    position: relative; 
    overflow-x: hidden; 
}

/* font-family: 'Montserrat', sans-serif; */
 /* "IMB Plex Mono","Courier","monospace"; */


/* --- ヘッダー・ナビゲーション (デスクトップデフォルト) --- */

.header {
    width: 100%;
    padding: 26px 26px; 
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex; 
}

/* チェックボックスを非表示にする */
.menu-toggle {
    position: absolute;
    opacity: 0;
    z-index: 99; 
    width: 40px;
    height: 40px;
    cursor: pointer;
    left: 20px; /* ヘッダーのpaddingに合わせる */
    display: block; /* PCでも表示 */
}

/* ハンバーガーアイコンのスタイル */
.menu-icon {
    display: flex; /* PCでも表示 */
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 10px;
    cursor: pointer;
    z-index: 20; 
}

.bar {
    height: 2px;
    width: 100%;
    background-color: #D0D4E0;
    transition: all 0.3s ease;
}

/* ナビゲーションリストを全画面表示（モバイルと同じ）に切り替え */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(36, 45, 69, 0.85); /* 半透明の背景 */
    transform: translateX(-100%); /* 初期は画面外へ */
    transition: transform 0.4s ease-in-out;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list {
    list-style: none;
    flex-direction: column; /* 縦並び */
    align-items: center;
    gap: 30px;
    font-size: 2rem;
    text-align: center;
}

.nav-list a {
    color: #D0D4E0;
    text-decoration: none;
    font-size: 1.6rem; /* モバイルと統一 */
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 2px;
}

.nav-list .li_small {
    font-size: 1.4rem;
}

.nav-list .li_insta {
    font-size: 1.2rem;
}


/* ホバー時の下線エフェクトは残す */
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; 
    height: 1px;
    background-color: white;
    transition: width 0.3s ease-out; 
}


.nav-list a:hover::after {
    width: 100%; 
}
.nav-list a:hover {
    color: white; 
}

/* チェックボックスがONになったらメニューを表示（モバイルと同じ設定を流用） */
#menu-toggle:checked ~ .nav {
    transform: translateX(0); 
}

/* チェックボックスがONになったらアイコンをX字に変換（モバイルと同じ設定を流用） */
#menu-toggle:checked ~ .menu-icon .bar:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg); 
}
#menu-toggle:checked ~ .menu-icon .bar:nth-child(1) {
    transform: translateY(4px) rotate(45deg); 
}
/* #menu-toggle:checked ~ .menu-icon .bar:nth-child(2) {
    transform: translateY(-10.5px) rotate(-45deg); 
} */

.home {
    font-family: "IMB Plex Mono","Courier","monospace";
    font-size: 0.8rem;
    margin: 0 0 0 auto;
    color: #D0D4E0;
    text-decoration: none;
}

/* --- メインコンテンツ、アニメーション --- */
/* テキストのフェードインアニメーション */
@keyframes fadeInText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- aboutページ用レイアウト --- */

/* メインコンテンツをオーバーライドして、about専用のコンテナを中央に配置 */
.main-content {
    /* flex-grow: 1; は既存 */
    /* top, left 0 に戻す */
    position: static; 
    padding: 110px 40px 60px 40px; /* ヘッダーとの重複を避けるために上部パディングを増やす */
    display: flex; /* 中央寄せのために使用 */
    justify-content: center;
    align-items: flex-start; /* 上から表示 */
    opacity: 0;
    animation: fadeInText 0.6s ease-out 0.3s forwards;
}

/* ホームのビジュアル要素はaboutページでは非表示 */
.visual-elements {
    display: none;
}
.poem-container {
    display: none;
}


.about-container {
    max-width: 800px; /* コンテンツの最大幅を制限 */
    width: 100%;
    margin: 0 auto;
    font-size: 0.9rem; /* ベースフォントサイズ */
}

.section {
    margin-bottom: 60px;
    line-height: 1.8;
}

.section h2 {
    font-family: "IMB Plex Mono","Courier","monospace";
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 25px;
    letter-spacing: 0px;
}

.section h3 {
    font-family: "IMB Plex Mono","Courier","monospace";
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 20px;
    margin-top: 40px;
    border-bottom: 1px solid rgba(208, 212, 224, 0.3); /* セクションの区切り線 */
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}

.member-section {
    margin-top: 50px;
}

.member {
    margin-bottom: 45px;
    padding-left: 10px;
}

.member h4 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2px;
    color: #D0D4E0;
}

.member .role {
    font-size: 0.9rem;
    margin-bottom: 14px;
    color: rgba(208, 212, 224, 0.8);
}

.member .sns { 
    font-size: 0.8rem;
    color: #D0D4E0;
}

.access-section p,
.contact-section p {
    line-height: 1.6;
}


/* --- レスポンシブ対応 (768px以下) --- */
@media (max-width: 768px) {
    .main-content {
        padding: 80px 20px 40px 20px;
    }

    .about-container {
        font-size: 0.95rem;
    }

    .section {
        margin-bottom: 40px;
    }

    .section h2 {
        font-size: 1.3rem;
    }

    .section h3 {
        font-size: 1.0rem;
    }

    .member h4 {
        font-size: 1.0rem;
    }

    .member .role {
        font-size: 0.85rem;
    }
}

/* --- レスポンシブ対応 (480px以下) --- */
@media (max-width: 480px) {
    .main-content {
        padding: 70px 15px 30px 15px;
    }

    .about-container {
        font-size: 0.9rem;
    }

    .section {
        margin-bottom: 30px;
    }

    .section h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .section h3 {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
}

    /* --- 別ページの基本的なレイアウトの調整 --- */
    /* .page-title-container {
        width: 90%;
        padding: 10px;
    }

    .page-title-container h1 {
        font-size: 2rem;
    }

    .page-title-container p {
        font-size: 1rem;
    }

    .image-grid {
        grid-template-columns: 1fr; /* 1列にする
        gap: 15px;
    }

    .gallery-item {
        height: 100px;
    } */