/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #E0FFFF, #F0E68C, #AFEEEE);
    margin: 0;
    padding: 0;
}

footer {
    background-color: #FFFFFF;
    border-top: 1px solid #DDD; /* 境界線 */
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05); /* 上向きの影 */
    padding: 40px 0;
    text-align: center;
    color: #333;
}

/* ローディング画面 */
#loading {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2s ease;
    opacity: 1;
    z-index: 9999;
}

#loading.fadeout {
    opacity: 0;
    pointer-events: none;
}

.loading img {
    width: 80vw;   /* お好みで調整 */
    height: auto;
}

/* 飛び散るアイコン */
.scatter-fly {
    position: fixed;
    left: 0;
    top: 0;
    width: 128px;
    height: auto;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

/* PC表示ではハンバーガー非表示、通常ナビ表示 */
.pc-nav {
    display: block;
}
.hamburger,
.mobile-nav {
    display: none;
}

header {
    font-weight: 700;
    position: fixed;
    width: 100%;
    z-index: 3;
}
header .container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}
header .row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
header .logo {
    font-size: 24px;
    text-decoration: none;
    color: #333;
}
header ul {
    display: flex;
    list-style: none;
}
header ul li {
    margin-left: 20px;
    letter-spacing: 1px;
}

.section1 {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* サムネははみ出してもOK */
    padding-top:60px; /* ヘッダー分の余白 */
    box-sizing: border-box;
}

/* 上下サムネ共通 */
.bg-flow {
    display: flex;
    position: absolute;
    left: 0;
    width: calc(20% * 10); /* 5枚複製で10枚分 */
    height: 225px;          /* 画像の高さに固定 */
    opacity: 0.8;
    z-index: 0;
}
#bg-top { top: 60px; }
#bg-bottom { bottom: 0; }
.thumb {
    width: 20%;             /* 5枚なら20% */
    height: 225px;           /* .bg-flow に合わせる */
    background-size: cover;
    background-position: center;
}

#bg-bottom .thumb {
    animation-direction: reverse;
}
/* サムネのアニメーション */
@keyframes flow {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* 複製分だけ移動 */
}
.bg-flow {
    animation: flow 40s linear infinite;
}

/* containerはfilterの上に */
.section1 .container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
}

.section1 .filter{
    width: 100%;
    height: 100vh;
    background-color: black;
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.section1 .container{
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    position: relative;
}
.section1 .heading{
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #00CED1
}
.section1 h1{
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    color: white;
}
.section1 .text{
    font-size: 20px;
    margin-bottom: 40px;
    color: white;
}

.section1 .youtube {
    font-size: 16px;
    font-weight: 700;
    padding: 16px 40px 20px 40px;
    display: inline-block;
    background-color: red;
    color: white;
    border-radius:6px;
    transition-duration: 0.5s;
    margin-bottom: 30px;
}
.section1 .youtube:hover {
    background-color: darkred;
    text-decoration: none;
    color: white;
};
.section2 {
    padding-top: 45px;
    padding-bottom: 45px;
    background-color: #E0FFFF;
}
.section2 .container {
    max-width: 1080px;
    width: 90%;
    margin: 0 auto;
}
.section2 .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 2;
    position: relative;
}
.section2 .col {
    background-color: Khaki;
    color: DarkGreen;
    width: 32%;
    padding : 20px;
    z-index: 2;
    position: relative;
}
.section2 .row img{
    width: 100px;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.section2 h2 {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
}
.section2 hr{
    border: solid 2px #006400;
    margin-bottom: 16px;
    width: 48px;
}
.section2 .text{
    font-size: 15px;
    line-height: 1.5;
}
.section3 {
    background-color: #E0FFFF; 
    padding-top:45px;
    padding-bottom: 60px;
}
.section3 .container {
    max-width: 1080px;
    width: 90%;
    margin: 0 auto;
}
.section3 .row{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom:60px;
}
.section3 .col{
    width: 46%;
}
.section3 h2 {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 18px;
    line-height: 1.3;
}
.section3 hr{
    border: solid 2px #00CED1;
    margin-bottom: 20px;
    width: 60px;
}
.section3 .text{
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 20px;
}
.section4{
    background-color: #F0E68C;
    padding-top:60px;
    padding-bottom:60px;
}
.section4 .container{
    max-width: 1080px;
    width: 90%;
    margin: 0 auto;
}
.section4 h2{
    font-size: 28px;
    font-weight: 700;
    color: #006400;
    text-align: center;
    margin-bottom: 20px;
}
.section4 hr{
    border: solid 2px green;
    margin:0 auto;
    margin-bottom: 40px;
    width: 60px;
}
.section4 ul{
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}
.section4 li{
    border: solid 1px #006400;
    background-color: #FFFFFF;
    color: #333333;
    font-size: 16px;
    margin-bottom: 20px;
    padding: 16px 24px;
}
.section4 .date{
    color: #000000;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
/* NEWS 折りたたみ部分 */
.news-content {
    max-height: 0;       /* 初期は折りたたむ */
    overflow: hidden;    /* はみ出し非表示 */
    transition: max-height 0.5s ease;
}

.news-content.open {
    max-height: 500px;   /* 十分に大きくして展開 */
}
/* NEWSのボタン：透明感版 */
#toggleNews {
    display: block;                 /* ブロック化して中央配置 */
    margin: 20px auto 0;            /* 上に余白、左右は自動で中央 */
    padding: 8px 20px;              /* クリックしやすいサイズ */
    background-color: rgba(255, 255, 255, 0.6); /* 半透明の白で馴染む */
    color: #006400;                 /* 見出しと同系色で統一感 */
    border: 1px solid rgba(0, 100, 0, 0.4); /* 薄めのボーダーで控えめ */
    border-radius: 5px;             /* 柔らかい印象 */
    font-size: 0.9rem;              /* メインより少し小さめ */
    cursor: pointer;
    backdrop-filter: blur(3px);     /* 背景を少しぼかす（グラデーションに馴染む） */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

/* ホバーで少し反応 */
#toggleNews:hover {
    background-color: rgba(255, 255, 255, 0.8); /* 少し濃くしてクリック感 */
    transform: translateY(-2px);               /* 軽く浮き上がる印象 */
}

.section5 {
    background-color: #AFEEEE; /* LightCyan：爽やかな水色系 */
    padding: 60px 0;
    margin-bottom: 60px;
}
.section5 h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #006400; /* DarkGreen：見出しに安心感と統一感 */
    margin-bottom: 20px;
}

.section5 .container{
    max-width: 1080px;
    width: 90%;
    margin: 0 auto;
}
.section5 hr {
    border: solid 2px #006400;
    width: 60px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.section5 ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;              /* 横並びにする */
    flex-wrap: wrap;            /* 折り返し可能にする（スマホ対応） */
    gap: 16px;                  /* ボタン間の余白 */
    justify-content: center;    /* 中央揃え（任意） */
}

.section5 ul li {
    margin: 0;                  /* 不要な余白を除去 */
}

.section5 a {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    color: white;
}

/* 個別の色設定 */
.section5 a.youtube {
    background-color: #FF0000;
}
.section5 a.X {
    background-color: #000000;
}
.section5 a.marshmallow {
    background-color: #FFF9B1;
    color: #007F66;
}
.section5 a.skeb {
    background-color: #00CED1;
}
.section5 a.booth {
    background-color: #F0E68C;
    color: #006400;
}

/* ホバー効果 */
.section5 a:hover {
    transform: scale(1.05);
    opacity: 0.9;
    background-color: #EEE8AA; /* Pale goldenrod */
    color: #006400;
}

/* marshmallowホバー状態（例外処理） */
.section5 a.marshmallow:hover {
    background-color: #FFD700; /* ゴールド：より濃くて温かみのある黄色 */
    color: #5A7D7A          /* 白文字でコントラスト強調 */
}

/* boothリンクのホバー状態（例外処理） */
.section5 a.booth:hover {
    background-color: #DAA520; /* Goldenrod：より濃くて引き締まる */
    color: #FFFFFF;            /* 白文字でコントラスト強調 */
}

/*スクリプト*/
/* 初期状態：背景なし（透明） */
header {
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* スクロール後に付与されるクラス */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95); /* 白背景＋少し透過 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);     /* 下に影をつけてメリハリ */
}

/* 初期状態：非表示（透明） */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease, transform 2s ease;
}

/* 表示状態 */
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);/* 元の位置に戻す */
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    /* PC用ナビは非表示、ハンバーガー表示 */
    .pc-nav {
        display: none;
    }

    /* ヘッダー行（ロゴ＋ハンバーガー） */
    header .row {
        display: flex;
        flex-direction: row;       /* ロゴとハンバーガーを横並び */
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }
    header .logo{
        display: inline-block; /* 余白部分はタップ不可 */
        font-size: 20px;
        text-decoration: none;
        color: #333;
    }

    /* ハンバーガーメニュー */
    .hamburger {
        margin-left: auto;
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        align-items: flex-end;
        transition: 0.3s ease;
    }

    .hamburger span {
        display: block;
        width: 28px;       /* 幅 */
        height: 3px;       /* 太さ */
        background-color: #333;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    /* ×に変形 */
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /*飛び散り*/
    .scatter-fly {
        width: 64px;
        height: auto;
    }

    /* モバイルナビ */
    .mobile-nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 2;
    }
    .mobile-nav.active {
        display: block;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 20px;
    }

    .mobile-nav li {
        margin-bottom: 10px;
    }

    .mobile-nav a {
        color: #333;
        text-decoration: none;
        font-weight: bold;
    }

    /* その他のレスポンシブ調整 */
    html, body {
        overflow-x: hidden;
    }

    /* サムネ関連 */
    .bg-flow {
        height: 160px;  /* PC 225px → タブレットでは少し縮小 */
    }

    .thumb {
        width: 25%;          /* 4枚で1周。横幅広めにして高さを確保 */
        aspect-ratio: 480/225;
        min-height: 120px;   /* これ以下にならないように保証 */
    }

    .section1 .heading {
        font-size: 14px;
    }

    .section1 h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .section1 .text {
        font-size: 16px;
    }

    .section1 {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
    }
        .section1 .youtube {
        font-size: 14px;
        padding: 12px 28px 16px 28px; /* ボタンも少しコンパクト */
    }

    .section2 .row,
    .section3 .row {
        flex-direction: column;
    }

    .section2 .col,
    .section3 .col {
        width: 100%;
        margin-bottom: 20px;
    }

    .section5 ul {
        flex-direction: column;
        align-items: center;
    }

    .section5 a {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
    }

    iframe {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border: none;
    }
}
@media (max-width: 600px) {
    .thumb {
        aspect-ratio: 480 / 225;
        width: 48%;
        min-height: 180px;
        background-size: cover;  /* 隙間なし */
        background-position: center;
    }
    .bg-flow {
        width: calc(25% * 15); /* thumb 5枚 × 3セット、1枚25% */
        animation-duration: 20s; 
        height: auto;  
    }
        @keyframes flow {
            from { transform: translateX(0); }
            to   { transform: translateX(-119%); }
    }
        .section1 .heading {
        font-size: 14px;
    }

    .section1 h1 {
        font-size: 20px;
        line-height: 1.3;
    }

    .section1 .text {
        font-size: 16px;
    }

    .section1 {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
    }
}