/* layout.css */

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* 白背景 + 透明度を上げてわずかに透過 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--color-primary); /* 鮮やかなブルーの線 */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-accent); /* 濃いめのブルーのロゴ */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* --- ハンバーガーメニューのスタイル --- */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary); /* メインのブルーを使用 */
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background-color: var(--color-accent); /* アクセントブルーを使用 */
}

/* 閉じるボタンへのアニメーション（JSのactiveクラスに対応） */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* --- モバイルメニューのスタイル --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* 明るい背景を維持 */
    background: var(--color-background-light);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding-top: 100px;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 薄いブルーのパターン */
    background:
            radial-gradient(circle at 30% 30%, rgba(0, 174, 239, 0.1) 2px, transparent 2px),
            radial-gradient(circle at 70% 70%, rgba(0, 119, 182, 0.05) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    pointer-events: none;
}

.menu-nav {
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* メインコンテンツ */
main {
    padding-top: 80px;
}
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
    margin: 4.5rem 0;
    position: relative;
}

/* ニュース、専門展示、部活、売店セクションの共通レイアウトを統合 */
.news-section,
.exhibit-section,
.club-section,
.store-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ... (中略：@media (max-width: 768px) のスタイル) ... */

@media (max-width: 768px) {
    header {
        padding: 1rem 1rem;
    }
    .news-section,
    .exhibit-section,
    .club-section,
    .store-section {
        padding: 3rem 1rem;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
}