/* ページ全体の余白をなくし、フォントを整える */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9f9f9;
}

/* ヘッダー（上の白い帯）のデザイン */
.header {
    background-color: #fff; /* 白色 */
    color: black;
    display: flex; /* 横並びにする魔法のコード */
    justify-content: space-between; /* 左右の端に分ける */
    align-items: center; /* 縦の真ん中に揃える */
    padding: 10px 40px; /* 内側の余白 */
}

/* ロゴのデザイン */
.logo a {
    color: black;
    text-decoration: none; /* 下線を消す */
    font-size: 24px;
    font-weight: bold;
}

/* メニューのデザイン */
.nav-menu {
    display: flex;
    gap: 20px; /* メニュー同士の隙間 */
    align-items: center;
}

.nav-menu a {
    color: black;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s; /* ふわっと変化させる */
}

/* マウスを乗せた時の色（少し目立つ赤色に） */
.nav-menu a:hover {
    color: #ff4a4a; 
}

/* 部員用ページボタンを特別にする */
.member-btn {
    border: 1px solid black;
    padding: 8px 16px;
    border-radius: 20px; /* 角を丸くする */
}

/* --- ここから下を追加（ニュース、団体概要、フッターのデザイン） --- */

/* 共通のセクションタイトル */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* 最新のお知らせ (NEWS) */
.news-section {
    padding: 40px 40px 80px;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto; /* 真ん中寄せ */
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    font-size: 16px;
}

.news-date {
    color: #888;
    margin-right: 20px;
    font-weight: bold;
}

.news-list a {
    color: #333;
    text-decoration: none;
}

.news-list a:hover {
    color: #ff4a4a;
}

/* 簡単な団体説明 (ABOUT US) */
.about-preview {
    padding: 80px 40px;
    background-color: #f5f5f5; /* 少しグレーにして区別する */
    text-align: center;
}

.about-text {
    line-height: 2; /* 行間をあけて読みやすく */
    margin-bottom: 40px;
    font-size: 18px;
}

/* 詳しく見るボタン */
.btn-more {
    display: inline-block;
    padding: 15px 40px;
    background-color: #111;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-more:hover {
    background-color: #ff4a4a; /* マウスを乗せたら赤く */
}

/* フッター（一番下）のデザイン */
.footer {
    background-color: #ffffff;
    border-top: 4px solid #cc0000; /* AGESTOCK風の赤いライン */
    padding: 60px 40px 20px;
    position: relative !important;
    z-index: 100 !important; /* タイムライン(10)より手前に出す */
    background-color: #ffffff !important; /* 背景を白にして透けないようにする */
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.footer-left h2 {
    font-size: 40px;
    margin: 0 0 20px;
}

.footer-sns {
    color: #666;
    font-weight: bold;
}

.footer-links h3 {
    border-bottom: 2px solid #cc0000;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #111;
}

.footer-bottom {
    text-align: center;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
/* --- ここから：消えてしまったトップ画像（ファーストビュー）の復活魔法 --- */
.hero-section {
    background-image: url('hero.jpg'); /* 背景画像の設定 */
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    text-align: center;
    color: white; /* 文字を白色にする */
    text-shadow: 0 4px 10px rgba(0,0,0, 0.8); /* 文字が見やすいように黒い影をつける */
}

.hero-text h1 {
    font-size: 64px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-text p {
    font-size: 20px;
    font-weight: bold;
}

/* スライダー用スタイル - 高さ75vh + 左右プレビュー表示 */
.hero-slider {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.hero-slider .swiper {
    width: 100%;
    height: auto;
}

.hero-slider .swiper-wrapper {
    align-items: center;
}

.hero-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(72vw, 1200px);
    height: auto;
    opacity: 0.45;
    transition: opacity 0.35s ease;
}

.hero-slider .swiper-slide.swiper-slide-active {
    opacity: 1;
}

.hero-slider .swiper-slide a {
    display: block;
    width: 100%;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* ナビゲーションボタンのスタイル */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    z-index: 10;
}

.hero-slider .swiper-pagination-bullet {
    background-color: white;
    opacity: 0.7;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* --- ここまで --- */
/* --- ここから：ギャラリー（写真グリッド）のデザイン --- */
.gallery-section {
    padding: 60px 40px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.3s;
}

.grid-item img:hover {
    transform: scale(1.08); /* マウスを乗せたらズーム */
}
/* --- ここまで --- */
/* --- ここから下を追加（スマホ用レスポンシブ・ハンバーガーメニュー） --- */

/* 普段（パソコン画面）はハンバーガーボタンを隠しておく */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100; /* メニューより手前に表示させる */
    position: relative; /* ← これを追加！これを書かないとz-indexが発動しません */
}

/* ハンバーガーの3本線のデザイン */
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black; /* 黒い線 */
    margin-bottom: 5px;
    transition: 0.3s; /* アニメーションのなめらかさ */
}

/* 一番下の線だけ隙間をなくす */
.hamburger span:last-child {
    margin-bottom: 0;
}

/* ▼▼ 画面幅が768px以下の時（スマホ・縦長）に発動する魔法 ▼▼ */
@media (max-width: 768px) {
    /* 1. ハンバーガーボタンを表示する */
    .hamburger {
        display: block;
    }

    /* 2. パソコン用の横並びメニューを、画面の右外に隠しておく */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* 右側の画面外に待機 */
        width: 250px;
        height: 100vh; /* 画面いっぱいの高さ */
        background-color: #fff; /* 白い背景 */
        flex-direction: column; /* メニューを縦並びに変更 */
        justify-content: center;
        transition: 0.3s; /* スライドインの速度 */
        z-index: 99;
    }

    /* 3. ボタンが押されて「active」状態になったら、画面内にスライドイン！ */
    .nav-menu.active {
        right: 0;
    }

    /* 4. メニューが開いている時は、三本線を「×」印に変形させるプロの技！ */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0; /* 真ん中の線を透明にして消す */
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
/* ▼▼ 追加：フッターのSNSリンクのデザイン ▼▼ */
.footer-sns a {
    color: #999; /* 元の文字色と同じグレーにする */
    text-decoration: none; /* リンクの下線を消す */
    transition: color 0.3s; /* 色の変化をふわっとさせる */
}

/* マウスを乗せた時の色 */
.footer-sns a:hover {
    color: #fff; /* 白く光らせる */
}
/* ▼▼ 追加：スライドショーの装飾 ▼▼ */

/* スライド画像のスタイル（ぼかしエフェクトなし） */
.swiper-slide img {
    display: block;
}

@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        padding: 0;
    }

    .hero-slider .swiper {
        width: 100%;
        height: auto;
    }

    .hero-slider .swiper-slide {
        width: 88vw;
        margin-top: 0 !important;
    }

    #news-list li a {
        gap: 8px !important;
    }

    #news-list li a h3 {
        flex: 1 0 100%;
        max-width: 100%;
        line-height: 1.5;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    #news-full-list li a > div:last-child {
        line-height: 1.5;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    #report-main {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    #news-article {
        padding: 20px !important;
    }

    .news-section {
        padding-top: 28px;
    }
}