/* このスタイルシートファイルの文字エンコーディングを指定します */
@charset "utf-8";

/* ======================================== */
/* 0. CSSカスタムプロパティ（CSS変数）の定義 */
/* ======================================== */
:root {
    /* カラーパレット */
    --primary-gold: #ffdb8a;
    --secondary-gold: #ffae00;
    --dark-brown: #1e1207;
    --medium-brown: #8b4513;
    --light-cream: #f3ecd9;
    --border-color: #c1974d;
    --overlay-color: rgba(0, 0, 0, 0.5);
    --text-shadow-color: rgba(0, 0, 0, 0.7);

    /* ヘッダーの高さ（デスクトップ版） */
    --header-height-default-desktop: 90px;
    --header-height-scrolled-desktop: 70px;
    --header-padding-vertical-desktop: 1rem;
    --header-padding-vertical-scrolled-desktop: 0.8rem;
    /* ヘッダーの高さ（モバイル版） */
    --header-height-default-mobile: 100px;
    --header-height-scrolled-mobile: 80px;
    --header-padding-vertical-mobile: 1rem;
    --header-padding-vertical-scrolled-mobile: 0.6rem;

    /* 共通コンテンツのパディング */
    --content-padding-vertical: clamp(30px, 5vw, 50px);
    --content-padding-horizontal: clamp(20px, 4vw, 30px);
    /* 共通コンテンツのボーダーとシャドウ */
    --content-border-width: clamp(1px, 0.5vw, 3px);
    --content-border-color: var(--primary-gold);
    --content-box-shadow: 0 0 clamp(20px, 8vw, 35px) rgba(0, 0, 0, 0.9), inset 0 0 clamp(10px, 3vw, 20px) rgba(255, 215, 0, 0.2);
    --content-border-radius: clamp(10px, 2vw, 15px);
}

/* ======================================== */
/* 1. グローバル設定と基本スタイル */
/* ======================================== */
/* @font-face は、ウェブサイトでカスタムフォントを使用できるように読み込みます */
@font-face {
    font-family: '金畫字 Normal';
    src: url('fonts/Kinkakuji-Normal.woff2') format('woff2'), url('fonts/Kinkakuji-Normal.woff') format('woff'), url('fonts/Kinkakuji-Normal.otf') format('opentype'), url('fonts/Kinkakuji-Normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* * は、全てのHTML要素に適用される基本的なスタイル設定です（余白のリセット、ボックスモデルの指定など） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* html は、ページ全体のスクロールの振る舞いや、横方向のスクロール禁止を設定します */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* body は、ページの背景色、背景画像、文字のフォントや基本的な行の高さを設定します */
body {
    background: url('imges/background1.jpg') no-repeat center center fixed; /* 古地図の背景画像を適用 */
    background-size: cover;
    color: var(--light-cream);
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* body.no-scroll は、モーダルウィンドウなどが開いた時に、ページの背景がスクロールしないようにします */
    body.no-scroll {
        overflow: hidden;
    }

/* 見出しの共通スタイル */
h1, h2, h3 {
    text-align: center;
    color: var(--primary-gold);
    text-shadow: 0 0 8px var(--secondary-gold), 0 0 20px rgba(255, 174, 0, 0.4);
    font-family: "金畫字 Normal", serif;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem); /* スマホでも見やすいように最小値を少し上げる */
    color: var(--primary-gold); /* 必要であれば、h1だけ別の目立つ色に変えることも検討 */
    text-shadow: 0 0 20px var(--primary-gold), /* さらに強くする */
                 0 0 30px var(--secondary-gold),
                 0 0 50px rgba(255, 174, 0, 0.8);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
}

/* 段落とリストアイテムの共通スタイル */
p, li {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-shadow: 1px 1px 2px var(--text-shadow-color);
}

/* ======================================== */
/* 2. 導入セクション（#intro-section） */
/* ======================================== */
#intro-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--dark-brown);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.5s ease-out;
    padding: 2vh 1.5vw;
    box-sizing: border-box;
}


/* 導入コンテンツ（宝の地図風） */
#intro-content {
    position: relative;
    z-index: 10000;
    text-align: center;
    opacity: 1;
    transition: opacity 1s ease-in;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: auto;
    max-width: 1200px;
    max-height: 800px;
    background: url('imges/background3.png') no-repeat center center;
    background-size: cover;
    border: var(--content-border-width) solid var(--border-color);
    box-shadow: 0 0 clamp(20px, 8vw, 50px) rgba(255, 215, 0, 0.6);
    padding: clamp(20px, 5vw, 40px) clamp(10px, 3vw, 20px);
    border-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><linearGradient id="g" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="%23c1974d"/><stop offset="100%" stop-color="%238b4513"/></linearGradient></defs><rect x="0" y="0" width="100" height="100" stroke="url(%23g)" stroke-width="8" fill="none"/></svg>') 8 round;
}

    #intro-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: inset 0 0 clamp(20px, 8vw, 50px) rgba(0, 0, 0, 0.8);
        pointer-events: none;
    }

/* ロゴとタイトルエリア */
.intro-visual-area {
    position: relative;
    width: 100%;
    height: 40vh;
    max-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(20px, 5vw, 30px);
}

.intro-logo-main {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 clamp(8px, 2.5vw, 15px) var(--secondary-gold));
    z-index: 2;
    transition: opacity 0.5s ease-in-out;
}

    .intro-logo-main.visible {
        opacity: 1;
    }

    .intro-logo-main.hidden {
        opacity: 0;
        pointer-events: none;
    }

/* 愁華祭タイトルとコンセプト */
.shukasai-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
}

    .shukasai-text-container.show {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.8s ease-in-out, visibility 0s linear 0s;
    }

.intro-content .shukasai-title {
    font-size: clamp(3vw, 6vw, 4rem);
    color: var(--secondary-gold);
    text-shadow: 2px 2px 8px var(--text-shadow-color), 0 0 15px rgba(255, 215, 0, 0.8);
    white-space: nowrap;
    margin-bottom: 5px;
}

.intro-content .shukasai-concept {
    font-size: clamp(1.5vw, 2.5vw, 1.8rem);
    color: var(--light-cream);
    text-shadow: 1px 1px 4px var(--text-shadow-color);
    white-space: nowrap;
}

/* 導入セクション フェードアウト */
#intro-section.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* STARTボタン */
.start-adventure-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-brown);
    padding: 1.2vh 3vw;
    border-radius: 50px;
    font-family: "金畫字 Normal", serif;
    font-size: clamp(1rem, 2.5vw, 1.5em);
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 clamp(4px, 1.5vw, 8px) clamp(8px, 2.5vw, 15px) rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: clamp(1px, 0.5vw, 3px) solid var(--border-color);
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    margin-top: clamp(10px, 3vw, 20px);
    z-index: 5;
}

    .start-adventure-button::after {
        content: '▶';
        margin-left: 1vw;
        font-size: clamp(1.2rem, 2vw, 1.5rem);
        color: var(--dark-brown);
        line-height: 1;
    }

    .start-adventure-button:hover {
        background: linear-gradient(145deg, var(--secondary-gold), var(--primary-gold));
        transform: translateY(clamp(-3px, -1vw, -5px));
        box-shadow: 0 clamp(6px, 2vw, 12px) clamp(10px, 3vw, 20px) rgba(0, 0, 0, 0.6);
    }

    .start-adventure-button:active {
        transform: translateY(0);
        box-shadow: 0 clamp(2px, 0.8vw, 4px) clamp(4px, 1.5vw, 8px) rgba(0, 0, 0, 0.3);
    }

/* 宝箱アニメーション */
.treasure-animation-container {
    position: relative;
    width: 60%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    opacity: 1;
    transition: opacity 1s ease-out;
    margin-bottom: clamp(20px, 5vw, 30px);
}

    .treasure-animation-container.fade-out-treasure {
        opacity: 0;
    }

.treasure-box {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
}

    .treasure-box.closed {
        opacity: 1;
    }

    .treasure-box.open {
        opacity: 0;
    }

.treasure-animation-container.opened .treasure-box.closed {
    opacity: 0;
}

.treasure-animation-container.opened .treasure-box.open {
    opacity: 1;
}

/* キラキラエフェクト */
.shine-effect {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.8) 0%, rgba(255, 215, 0, 0.6) 20%, rgba(255, 174, 0, 0) 70%);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    z-index: 6;
}

    .shine-effect.active {
        animation: shineExpand 1.5s forwards ease-out;
    }

/* キラキラエフェクトのアニメーションキーフレーム */
@keyframes shineExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
        transform: scale(0);
    }

    50% {
        width: 300%;
        height: 300%;
        opacity: 0.8;
        transform: scale(1);
    }

    100% {
        width: 500%;
        height: 500%;
        opacity: 0;
        transform: scale(1.5);
    }
}

/* ======================================== */
/* 3. メインコンテンツ（#main-content） */
/* ======================================== */
#main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in;
    /* padding-topはJavaScriptでbodyに設定するため、ここからは削除 */
	/* .info-list内のネストされたリストのマーカーを非表示にする */
}

/* ======================================== */
/* 4. ヘッダー（#main-header） */
/* ======================================== */
#main-header {
    background: var(--medium-brown);
    padding: var(--header-padding-vertical-desktop) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 clamp(1px, 0.3vw, 2px) clamp(5px, 2vw, 15px) rgba(0, 0, 0, 0.7);
    border-bottom: clamp(1px, 0.5vw, 3px) solid var(--border-color);
    transform: translateY(0);
    transition: height 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}

    #main-header.scrolled {
        background-color: rgb(138, 70, 29);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

.header-inner {
    width: 100%;
    padding: 0 3%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
}

/* ヘッダー左側（ロゴとサイト名） */
#main-header .header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#main-header .site-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    margin-left: 1vw;
}

#main-header .site-title-top-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}

#main-header .site-university-name {
    color: var(--light-cream);
    font-weight: bold;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    text-shadow: 1px 1px 2px var(--text-shadow-color);
    white-space: nowrap;
    transition: font-size 0.3s ease;
    margin-left: 0.5vw;
}

#main-header .site-shukasai-name {
    color: var(--primary-gold);
    font-family: "金畫字 Normal", sans-serif;
    font-weight: bold;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    transition: font-size 0.3s ease;
    letter-spacing: 0.05em;
    line-height: 1;
}

#main-header .icon {
    height: clamp(40px, 8vw, 60px);
    width: auto;
    border-radius: 50%;
    border: clamp(1px, 0.5vw, 2px) solid var(--primary-gold);
    box-shadow: 0 0 clamp(5px, 1.5vw, 10px) rgba(255, 215, 0, 0.5);
    flex-shrink: 0;
    transition: height 0.3s ease;
}

/* メニューとSNSアイコンラッパー */
.menu-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex-direction: row;
}

/* ヘッダーのメニュー（常にハンバーガーメニューにするため、デフォルトは非表示） */
#main-header .menu-grid {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    width: 100vw;
    background: rgba(30, 18, 7, 0.95);
    padding: 2vh 0;
    align-items: center;
    gap: clamp(15px, 3vw, 20px);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 995;
    justify-content: center;
}

    #main-header .menu-grid.active {
        transform: translateX(0);
        display: flex;
    }

    #main-header .menu-grid li {
        text-align: center;
        width: 100%;
    }

        #main-header .menu-grid li a {
            font-size: clamp(1.2rem, 3vw, 1.5rem);
            padding: 1vh 0;
            width: 100%;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--primary-gold) !important;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
            position: relative;
            overflow: hidden;
        }

        #main-header .menu-grid li:last-child a {
            border-bottom: none;
        }

        /* メニューリンクの下線アニメーション */
        #main-header .menu-grid li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary-gold);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease-out;
        }

        #main-header .menu-grid li a:hover {
            color: var(--secondary-gold);
            text-shadow: 0 0 8px var(--secondary-gold);
        }

            #main-header .menu-grid li a:hover::after {
                transform: scaleX(1);
                transform-origin: left;
            }

/* SNSアイコン (常にハンバーガーメニューに含めるように調整) */
#main-header .sns-icons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 2vw;
    align-self: center;
    padding-left: 2vw;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    min-width: clamp(80px, 15vw, 100px);
    justify-content: flex-end;
    flex-basis: auto;
}

    #main-header .sns-icons img {
        width: clamp(28px, 4vw, 32px);
        height: clamp(28px, 4vw, 32px);
        margin-left: clamp(10px, 1.5vw, 15px);
        transition: transform 0.3s, filter 0.3s;
    }

        #main-header .sns-icons img:hover {
            transform: scale(1.15);
            filter: drop-shadow(0 0 8px var(--secondary-gold));
        }

/* ハンバーガーメニューアイコン (常に表示) */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: clamp(25px, 4vw, 30px);
    height: clamp(20px, 3.5vw, 25px);
    cursor: pointer;
    z-index: 1001;
    position: relative;
    margin-left: 2vw;
}

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary-gold);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(clamp(8px, 1.5vw, 11px)) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: translateY(clamp(-8px, -1.5vw, -11px)) rotate(-45deg);
    }

/* メニューオーバーレイ */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 990;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

/* ======================================== */
/* 5. 各コンテンツセクションの共通スタイル */
/* ======================================== */
.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow: hidden;
    color: var(--light-cream);
}

    .section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

/* フェードアップアニメーション要素 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .fade-up.active {
        opacity: 1;
        transform: translateY(0);
    }

/* セクションコンテンツの共通スタイル */
.section-content {
    opacity: 1;
    position: relative;
    z-index: 2;
    background-color: rgba(30, 18, 7, 0.6);
    padding: var(--content-padding-vertical) var(--content-padding-horizontal);
    border-radius: var(--content-border-radius);
    width: 90%;
    max-width: 1038px;
    box-shadow: var(--content-box-shadow);
    border: var(--content-border-width) solid var(--content-border-color);
    backdrop-filter: blur(3px);
}

/* ======================================== */
/* 6. 個別セクションのスタイル */
/* ======================================== */

/* 愁華祭とはセクション */
#shukasai-intro-section {
    background-image: url('imges/background.png');
    background-position: top center;
    background-size: cover;
    background-attachment: fixed;
}

    #shukasai-intro-section::before {
        background-color: rgba(30, 18, 7, 0.6);
    }

/* 開催概要セクションのスタイル */
#event-details-section .section-content {
    background-color: rgba(30, 18, 7, 0.6);
    box-shadow: 0 0 clamp(20px, 8vw, 35px) rgba(0, 0, 0, 0.9), inset 0 0 clamp(10px, 3vw, 20px) rgba(255, 215, 0, 0.2);
    border: clamp(1px, 0.5vw, 3px) solid var(--primary-gold);
    backdrop-filter: blur(2px);
    padding: var(--content-padding-vertical) var(--content-padding-horizontal); /* 共通変数を使用 */
    overflow-x: auto;
}
/* #event-details-section h2 {
    共通プロパティの再定義を削除
}*/

/* カウントダウン表示のスタイル (JavaScriptでテキストをセットするが、今回は非表示) */
.countdown-display {
    display: none;
}

/* テーブルのスタイルをimage_e401a0.jpgに合わせる */
.event-schedule-table {
    width: 100%;
    max-width: 700px;
    margin: clamp(15px, 3vw, 30px) auto 0 auto;
    border-collapse: collapse;
    background-color: transparent;
    border-radius: clamp(5px, 1.5vw, 8px);
    overflow: hidden;
    border: var(--content-border-width) solid var(--content-border-color);
    box-shadow: 0 0 clamp(10px, 3vw, 20px) rgba(0, 0, 0, 0.7);
}

    .event-schedule-table th,
    .event-schedule-table td {
        padding: clamp(10px, 2vw, 15px);
        border: 1px solid #967d55;
        color: #e6e6e6;
        text-align: center;
        white-space: nowrap;
    }

    .event-schedule-table thead th {
        background-color: var(--dark-brown); /* 共通カラーに統一 */
        color: var(--primary-gold); /* 共通カラーに統一 */
        font-weight: bold;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

    .event-schedule-table tbody tr:nth-child(odd) {
        background-color: rgba(30, 18, 7, 0.7); /* 共通カラーに統一 */
    }

    .event-schedule-table tbody tr:nth-child(even) {
        background-color: rgba(30, 18, 7, 0.8); /* 共通カラーに統一 */
    }

/* メインイベント特集 */
.main-event-feature {
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 50px);
    padding: clamp(15px, 3vw, 20px);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 clamp(10px, 3vw, 20px) rgba(0, 0, 0, 0.5);
}

/* メインイベントのロゴ（カーイベントなど） */
.main-event-logo {
    max-width: 80%;
    height: clamp(150px, 30vw, 250px);
    object-fit: contain;
    margin: clamp(10px, 2vw, 20px) auto;
    border-radius: 10px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 0 clamp(8px, 2.5vw, 15px) rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

/* スライダーコンテナ */
.slider-container {
    max-width: 59%;
    margin: auto;
    box-shadow: 0 0 clamp(10px, 3vw, 20px) rgba(0, 0, 0, 0.7);
}
/* bxSliderのデフォルトスタイル調整 */
.bx-wrapper {
    box-shadow: none ;
    border: none !important;
    background: none !important;
    height: 100%;
}

.main1-custom-position {
    object-position: center 30%;
}

/* その他企画グリッド */
.other-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 40vw, 280px), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin-top: clamp(20px, 4vw, 30px);
}

.event-card {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: clamp(10px, 2vw, 15px);
    box-shadow: 0 0 clamp(8px, 2.5vw, 15px) rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .event-card:hover {
        transform: translateY(clamp(-3px, -1vw, -5px));
        box-shadow: 0 clamp(3px, 1vw, 5px) clamp(15px, 4vw, 25px) rgba(0, 0, 0, 0.6), 0 0 clamp(10px, 3vw, 20px) var(--secondary-gold);
    }

.event-card-image {
    max-width: 100%;
    height: clamp(150px, 25vw, 180px);
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: clamp(10px, 2vw, 15px);
}

/* .event-card-logo は、イベントカード内のロゴ画像のスタイルです（背景が透過のロゴの場合、影を加えて強調します） */
.event-card-logo {
    max-width: 80%;
    max-height: clamp(60px, 10vw, 80px);
    object-fit: contain;
    margin-bottom: clamp(5px, 1vw, 10px);
    filter: drop-shadow(0 0 clamp(3px, 1vw, 5px) rgba(255, 215, 0, 0.5));
}

.event-card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.event-card h4 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--primary-gold);
    margin-bottom: clamp(5px, 1vw, 10px);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.event-card p {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    line-height: 1.7;
    margin-bottom: clamp(5px, 1vw, 10px);
}

.event-card .details-button {
    display: inline-block;
    background-color: var(--primary-gold);
    color: var(--dark-brown);
    padding: clamp(6px, 1.2vw, 8px) clamp(10px, 2vw, 15px);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: clamp(8px, 1.5vw, 10px);
    cursor: pointer;
    border: none;
}

    .event-card .details-button:hover {
        background-color: var(--secondary-gold);
        transform: translateY(clamp(-1px, -0.5vw, -2px));
    }

/* 企画紹介セクション */
#project-intro-section .section-content {
    margin-top: 10%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 45vw, 300px), 1fr));
    gap: clamp(30px, 5vw, 40px);
    margin-top: clamp(20px, 4vw, 30px);
}

.project-card {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 clamp(10px, 3vw, 20px) rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .project-card:hover {
        transform: translateY(clamp(-5px, -1.5vw, -8px));
        box-shadow: 0 clamp(5px, 2vw, 8px) clamp(15px, 4vw, 30px) rgba(0, 0, 0, 0.8), 0 0 clamp(10px, 4vw, 25px) var(--primary-gold);
    }

    .project-card .project-image {
        width: 100%;
        height: clamp(150px, 30vw, 200px);
        object-fit: cover;
        border-bottom: clamp(1px, 0.5vw, 3px) solid var(--secondary-gold);
    }

        /* 仮画像（kurume-it_logo.png）用のスタイル */
        .project-card .project-image[src="imges/kurume-it_logo.png"] {
            object-fit: contain;
            background-color: rgba(255, 255, 255, 0.1);
            border: 1px dashed rgba(255, 255, 255, 0.3);
        }


    .project-card .project-info {
        padding: clamp(15px, 3vw, 20px);
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .project-card h3 {
        font-size: clamp(1.4rem, 2.5vw, 1.8rem);
        color: var(--primary-gold);
        margin-bottom: clamp(8px, 1.5vw, 10px);
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    .project-card p {
        font-size: clamp(0.85rem, 1.5vw, 0.95rem);
        line-height: 1.6;
        margin-bottom: clamp(10px, 2vw, 15px);
        flex-grow: 1;
    }

    .project-card .details-button {
        display: inline-block;
        background-color: var(--primary-gold);
        color: var(--dark-brown);
        padding: clamp(8px, 1.5vw, 10px) clamp(15px, 3vw, 20px);
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        transition: background-color 0.3s ease, transform 0.3s ease;
        margin-top: auto;
        cursor: pointer;
        border: none;
    }

        .project-card .details-button:hover {
            background-color: var(--secondary-gold);
            transform: translateY(clamp(-1px, -0.5vw, -2px));
        }

/* 出店一覧セクション */

/* 交通・アクセス情報セクション */

.info-list {
    list-style: none;
    padding: 0;
    margin: clamp(20px, 4vw, 30px) auto;
    max-width: 900px;
    text-align: left;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

    .info-list li {
        background-color: rgba(255, 255, 255, 0.08);
        padding: clamp(18px, 3vw, 22px);
        margin-bottom: clamp(10px, 2vw, 15px);
        border-radius: 10px;
        border-left: clamp(4px, 1.5vw, 8px) solid var(--primary-gold);
        box-shadow: 0 clamp(2px, 0.8vw, 4px) clamp(6px, 2vw, 12px) rgba(0, 0, 0, 0.4);
    }

        .info-list li strong {
            color: var(--primary-gold);
            text-shadow: none;
        }

/* 交通・アクセス情報の住所リンクの色を白色にする */
#location-info-section .info-list li a {
    color: var(--light-cream); /* CSS変数で定義されているライトクリーム色（白色に近い色）を適用 */
}
/* .info-list内のネストされたリストのマーカーを非表示にする */
.info-list ul {
    list-style: none; /* */
}

/* マップコンテナ */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    margin: clamp(20px, 4vw, 30px) auto 0;
    border-radius: clamp(8px, 2vw, 12px);
    box-shadow: 0 0 clamp(10px, 4vw, 25px) rgba(0,0,0,0.6);
}

    .map-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* 実行委員会部署紹介セクション */

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 40vw, 280px), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin-top: clamp(30px, 5vw, 40px);
    justify-content: center;
    align-items: stretch;
}

.committee-member-card {
    background-color: rgba(0, 0, 0, 0.6);
    padding: clamp(20px, 4vw, 25px);
    border-radius: 15px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 0 clamp(15px, 4vw, 25px) rgba(0, 0, 0, 0.8), inset 0 0 clamp(5px, 2vw, 10px) rgba(255, 215, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .committee-member-card:hover {
        transform: translateY(clamp(-5px, -1.5vw, -8px));
        box-shadow: 0 0 clamp(20px, 5vw, 35px) rgba(255, 174, 0, 0.9), inset 0 0 clamp(8px, 2.5vw, 15px) rgba(255, 215, 0, 0.4);
    }

    .committee-member-card img {
        width: clamp(90px, 15vw, 120px);
        height: clamp(90px, 15vw, 120px);
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto clamp(15px, 3vw, 20px);
        border: clamp(2px, 0.8vw, 4px) solid var(--secondary-gold);
        box-shadow: 0 0 clamp(8px, 2.5vw, 15px) rgba(255, 215, 0, 0.6);
    }

    .committee-member-card h3 {
        color: var(--primary-gold);
        font-size: clamp(1.3rem, 2.2vw, 1.6rem);
        margin-bottom: clamp(8px, 1.5vw, 10px);
        text-shadow: 0 0 clamp(4px, 1.5vw, 8px) rgba(255, 174, 0, 0.7);
    }

    .committee-member-card p {
        color: var(--light-cream);
        font-size: clamp(0.85rem, 1.5vw, 1.0rem);
        line-height: 1.5;
        text-shadow: 1px 1px 2px var(--text-shadow-color);
        margin-top: clamp(10px, 2vw, 15px);
    }

.committee-summary {
    margin-top: clamp(20px, 4vw, 30px);
    padding: clamp(15px, 3vw, 20px);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 clamp(5px, 1.5vw, 10px) rgba(0,0,0,0.5);
    text-align: left;
}

    .committee-summary p {
        margin-bottom: clamp(5px, 1vw, 8px);
        font-size: clamp(0.9rem, 1.5vw, 1rem);
    }

        .committee-summary p strong {
            color: var(--primary-gold);
        }


/* 協賛企業セクション */
.sponsors-section .section-content {
    background-color: rgba(30, 18, 7, 0.9);
    padding: clamp(30px, 5vw, 50px);
    border-radius: 20px;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 20vw, 180px), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin-top: clamp(30px, 5vw, 40px);
    justify-content: center;
    align-items: center;
}

.sponsor-card {
    background-color: var(--medium-brown);
    padding: clamp(15px, 3vw, 20px);
    border-radius: 10px;
    border: 2px solid var(--border-color);
    box-shadow: 0 clamp(2px, 0.8vw, 4px) clamp(8px, 2.5vw, 15px) rgba(0, 0, 0, 0.4);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: clamp(80px, 15vw, 120px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .sponsor-card:hover {
        transform: translateY(clamp(-3px, -1vw, -5px));
        box-shadow: 0 clamp(4px, 1.5vw, 8px) clamp(10px, 3vw, 20px) rgba(0, 0, 0, 0.6);
    }

    .sponsor-card img {
        max-width: 100%;
        max-height: clamp(60px, 10vw, 80px);
        object-fit: contain;
        filter: brightness(1.1);
    }

/* FAQセクション */
.faq-section {
    border-top: var(--content-border-width) solid var(--content-border-color);
    margin-top: 3rem;
}

.faq-item {
    border-bottom: var(--content-border-width) solid var(--content-border-color);
    margin-bottom: 0.5rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(12px, 2vw, 15px) clamp(15px, 3vw, 20px);
    background-color: rgba(30, 18, 7, 0.4);
    cursor: pointer;
    font-weight: bold;
    color: var(--light-cream);
    position: relative;
    border-radius: 5px;
    margin-top: clamp(8px, 1.5vw, 10px);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
}

    .faq-question::-webkit-details-marker {
        display: none;
    }

    .faq-question::marker {
        display: none;
    }

/* トグルアイコン */
.toggle-icon {
    width: clamp(16px, 2.5vw, 20px);
    height: clamp(16px, 2.5vw, 20px);
    background-color: var(--primary-gold);
    color: var(--dark-brown);
    font-size: clamp(1em, 1.8vw, 1.2em);
    line-height: clamp(16px, 2.5vw, 20px);
    text-align: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    .toggle-icon::before {
        content: "+";
    }

.faq-item[open] .toggle-icon {
    transform: rotate(180deg);
}

    .faq-item[open] .toggle-icon::before {
        content: "-";
    }

/* FAQの答え */
.faq-answer {
    padding: clamp(8px, 1.5vw, 10px) clamp(15px, 3vw, 20px) clamp(15px, 3vw, 20px);
    background-color: rgba(30, 18, 7, 0.5);
    border-top: var(--content-border-width) solid var(--content-border-color);
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    color: var(--light-cream);
}

.faq-item[open] .faq-answer {
    max-height: 200px;
    opacity: 1;
}

.faq-answer p {
    padding-top: clamp(5px, 1vw, 10px);
    color: var(--light-cream);
}

/* ======================================== */
/* 7. フッター（footer） */
/* ======================================== */
footer {
    text-align: center;
    background: var(--dark-brown);
    color: var(--light-cream);
    padding: clamp(30px, 5vw, 50px) 1vw;
    border-top: 6px solid var(--border-color);
    width: 100vw;
    box-shadow: inset 0 clamp(3px, 1vw, 5px) clamp(8px, 2.5vw, 15px) rgba(0, 0, 0, 0.5);
}

    footer p {
        font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    }

    footer .sns-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: clamp(15px, 3vw, 30px);
        max-width: 1000px;
        margin: 0 auto;
    }

        footer .sns-links a {
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        footer .sns-links img {
            height: clamp(60px, 10vw, 80px);
            transition: transform 0.3s;
        }

            footer .sns-links img:hover {
                transform: scale(1.1);
            }

        footer .sns-links p {
            font-size: clamp(0.7em, 1.2vw, 0.9em);
            margin-top: clamp(3px, 0.5vw, 5px);
        }


/* ======================================== */
/* 8. ポップアップモーダル（#eventModal） */
/* ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--dark-brown);
    margin: 5% auto;
    padding: clamp(20px, 4vw, 30px);
    border: clamp(1px, 0.5vw, 3px) solid var(--primary-gold);
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 clamp(3px, 1vw, 5px) clamp(8px, 2.5vw, 15px) rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
    animation: fadeInModal 0.3s ease-out;
    color: var(--light-cream);
}

.modal-close-button {
    color: var(--primary-gold);
    position: absolute;
    top: 1.5vh;
    right: 2.5vw;
    font-size: clamp(28px, 4vw, 35px);
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .modal-close-button:hover, .modal-close-button:focus {
        color: var(--secondary-gold);
    }

#modalEventTitle {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--primary-gold);
    margin-bottom: clamp(10px, 2vw, 15px);
    text-shadow: 0 0 clamp(5px, 1.5vw, 10px) rgba(255, 174, 0, 0.5);
}

#modalEventImage {
    max-width: 90%;
    max-height: clamp(200px, 35vw, 300px);
    object-fit: contain;
    margin: clamp(8px, 1.5vw, 10px) auto clamp(15px, 3vw, 20px);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 clamp(5px, 1.5vw, 10px) rgba(0, 0, 0, 0.3);
}

#modalEventTime, #modalEventLocation {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    color: var(--light-cream);
    margin-bottom: clamp(5px, 1vw, 8px);
    font-weight: bold;
}

#modalEventDescription {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    line-height: 1.7;
    text-align: left;
    margin-top: clamp(15px, 3vw, 20px);
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ======================================== */
/* 9. 背景に配置されるアニメーション要素 */
/* ======================================== */

/* 足跡コンテナ */
.footprints-container {
    position: fixed;
    top: 0;
    left: 0;
    width: clamp(100px, 15vw, 150px);
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    filter: brightness(0.8) sepia(0.3) hue-rotate(10deg);
}
/* 各足跡アイテム */
.footprint-item {
    position: absolute;
    background-image: url('imges/shoes.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-out;
}

    .footprint-item.active {
        animation: fadeInFootprint 1s forwards;
    }

/* アニメーションキーフレーム (足跡) */
@keyframes fadeInFootprint {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* 各セクション内に配置されるアイテム */
.section-lantern, .section-compass, .section-ship, .section-barrel, .section-saber, .section-telescope {
    position: absolute;
    opacity: 0;
    z-index: 1;
    filter: drop-shadow(0 0 clamp(5px, 1.5vw, 10px) rgba(255, 215, 0, 0.5));
    transition: opacity 1s ease-out, transform 1s ease-out, filter 1s ease-out;
}

.section-content.active .section-lantern,
.section-content.active .section-compass,
.section-content.active .section-ship,
.section-content.active .section-barrel,
.section-content.active .section-saber,
.section-content.active .section-telescope {
    opacity: 0.7;
}

/* 個別アイテムのスタイルとアニメーション */
.section-lantern {
    top: 0%;
    left: 2%;
    width: clamp(100px, 18vw, 150px);
}

.section-content.active .section-lantern {
    animation: lanternGlow 3s infinite alternate 1s forwards;
}

.section-compass {
    bottom: 0%;
    right: 2%;
    width: clamp(80px, 15vw, 120px);
}

.section-content.active .section-compass {
    animation: compassRotate 20s linear infinite 1s forwards;
}

.section-ship {
    top: 10%;
    right: -10%;
    width: clamp(200px, 30vw, 300px);
    opacity: 0;
}

.section-content.active .section-ship {
    opacity: 0.5;
    animation: shipDrift 20s ease-in-out infinite alternate 1s forwards;
}

.section-barrel {
    bottom: 2%;
    left: 0%;
    width: clamp(70px, 12vw, 100px);
}

.section-content.active .section-barrel {
    animation: barrelWobble 2s ease-in-out infinite 1s forwards;
}

.section-saber {
    top: -2%;
    right: 50%;
    width: clamp(120px, 25vw, 180px);
    transform: rotate(45deg);
}

.section-content.active .section-saber {
    opacity: 0.6;
    animation: saberGlow 2s forwards ease-out 1s;
}

.section-telescope {
    bottom: -2%;
    left: 80%;
    transform: translateX(-50%);
    width: clamp(150px, 25vw, 200px);
}

.section-content.active .section-telescope {
    opacity: 0.7;
    animation: telescopeZoomIn 1s forwards ease-out 1s;
}


/* アニメーションキーフレーム */
@keyframes lanternGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
        opacity: 0.8;
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
        opacity: 1;
    }

    100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
        opacity: 0.8;
    }
}

@keyframes compassRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes shipDrift {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(-20px) translateY(5px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes barrelWobble {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(2deg);
    }

    50% {
        transform: rotate(-2deg);
    }

    75% {
        transform: rotate(2deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes saberGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }

    50% {
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }

    100% {
        filter: brightness(1) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
}

@keyframes telescopeZoomIn {
    0% {
        transform: translateX(-50%) scale(0.8);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

main {
    max-width: 1000px;
    margin: 20px auto;
    background-color: rgba(60, 40, 20, 0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(255, 215, 0, 0.2);
    border: 3px solid var(--primary-gold);
    color: var(--light-cream);
}


/* ======================================== */
/* 10. レスポンシブデザインの調整 */
/* ======================================== */

/* 画面幅が769pxから1400pxの間のタブレット・小画面PC版 */
@media screen and (min-width: 769px) and (max-width: 1400px) {
    /* 共通設定でclamp()を使用しているため、多くの指定は不要になります */
    /* 個別に調整が必要な場合のみ記述 */
    
    #main-header .site-university-name {
        font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    }

    #main-header .site-shukasai-name {
        font-size: clamp(1rem, 1.5vw, 1.1rem);
    }

    #main-header .icon {
        height: clamp(38px, 6vw, 45px);
    }

    #main-header.scrolled .icon {
        height: clamp(32px, 5vw, 38px);
    }

    .info-list li {
        border-left-width: clamp(4px, 1.2vw, 6px);
    }
}

/* 画面幅が768px以下のスマートフォン版 */
@media screen and (max-width: 768px) {
    /* 共通設定でclamp()を使用しているため、多くの指定は不要になります */
    /* 個別に調整が必要な場合のみ記述 */

    #main-header .menu-grid {
        top: var(--header-height-scrolled-mobile);
        height: calc(100vh - var(--header-height-scrolled-mobile));
    }

    #main-header.scrolled .menu-grid li a {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
    }

    .info-list li {
        border-left-width: clamp(4px, 1.2vw, 6px);
    }
     .event-schedule-table {
        margin-left: -3%;
        /* 必要に応じて他のマージンプロパティも調整してください。
           例: margin: clamp(15px, 3vw, 30px) auto 0 -1%;
           ただし、autoと併用すると意図しない挙動になる場合があるため
           margin-left単独で指定するか、より複雑な計算が必要になります。
           今回はmargin-leftのみを上書きします。
        */
    }
}