/* --- 共通設定・背景 --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 50px;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    color: #333;
}

.fixed-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('飛燕原画.jpg'); 
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* --- ヒーローセクション --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    color: #227924;
    text-shadow: 0 0 15px white;
}

.guest-title {
    font-family: "Kaisei Decol", serif;
    font-size: 4em;
    margin: 0;
    letter-spacing: 0.1em;
}

/* スクロールダウンボタン */
.scroll-down-btn {
    position: relative;
    z-index: 21; /* ボタンを最前面へ */
    pointer-events: auto; /* クリックを確実に許可 */
    display: inline-block;
    background-color: #44cabd;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* ★マウスを合わせた時（ホバー時）の状態 */
.scroll-down-btn:hover {
    background-color: #ffffff; /* マウスを置いた時の色（少し濃い色など） */
    color: #35a89d;            /* 文字色を変えたい場合はここも変更 */
    transform: translateY(-3px); /* おまけ：少し上に浮き上がらせる演出 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* 影をつけて浮かせる */
}

/* --- コンテンツセクション --- */
.content-section {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

header h1 {
    text-align: center;
    font-family: "Kaisei Decol", serif;
    color: #227924;
}

section {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-title {
    font-family: "Kaisei Decol", serif;
    color: #227924;
    border-bottom: 3px solid #c3d825;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* --- スケジュールコンテナ（横並び設定） --- */
.schedule-container {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* 高さが違っても上揃え */
}

.day-group {
    flex: 1;
    min-width: 0;
}

.day-label {
    background-color: #c3d825;
    color: #227924;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 10px;
}

/* --- 模擬店テーブルのデザイン --- */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em; /* 横並び時のための調整 */
    margin-bottom: 30px;
}

.schedule-table th, .schedule-table td {
    border: 1px solid #c3d825;
    padding: 12px 8px;
    text-align: left;
}

.schedule-table th {
    background-color: #227924;
    color: white;
}

/* 列ごとの幅調整 */
.number { width: 12%; text-align: center !important; font-weight: bold; background: #f9f9f9; }
.shop-name { width: 48%; font-weight: bold; color: #227924; }
.group-name { width: 18%; color: #666; font-size: 0.5em; }
.goods-name { width: 50%; line-height: 1.4; }

/* --- イベント紹介 --- */
.info-flex {
    display: flex;
    gap: 30px;
}

.info-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.photo-frame {
    width: 100%;
    border-radius: 10px;
    border: 3px solid #c3d825;
}

.info-text {
    flex: 1;
}

.info-text h3 {
    color: #227924;
    border-left: 5px solid #c3d825;
    padding-left: 10px;
}

/* --- 展示マップと表の横並び設定 --- */
.schedule-container {
    display: flex;
    gap: 30px;           /* 画像と表の間の隙間 */
    align-items: flex-start; /* 上揃え */
    margin-bottom: 40px;
}

/* マップ画像のエリア */
.map-area {
        flex: 0 0 400px;
        
        /* --- ここからが「ついてくる」設定 --- */
        position: -webkit-sticky; /* Safari対応 */
        position: sticky;        /* スクロールに追従させる */
        top: 130px;              /* 画面の上から100pxの位置で止まる（ヘッダーの高さに合わせる） */
        /* ---------------------------------- */
    }

.map-area img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid #c3d825; /* 学祭カラーの枠線 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 表のエリア */
.day-group {
    flex: 1;             /* 幅の比率（1）画像と同じ幅にする */
    min-width: 0;
}

/* --- ホームへ戻るボタン --- */
.back-home-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #227924;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* スライダーの外枠 */
.slider {
    overflow: hidden; /* はみ出た画像を残さない */
    width: 100%;
    background: white;
    padding: 20px 0;
}

/* 画像を横一列に並べて動かすコンテナ */
.slider-inner {
    display: flex;
    width: fit-content; /* 中身のサイズに合わせる */
    animation: loop-scroll 30s linear infinite; /* 30秒で1周、一定速度で無限に */
}

/* 各スライドの設定 */
.slide-item {
    width: 300px; /* 画像の幅（お好みで調整） */
    flex-shrink: 0;
    padding: 0 10px;
}

.slide-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid #c3d825; /* 学祭カラーの枠線 */
}

/* ★アニメーションの定義：左へ半分（1セット分）進んだら最初に戻る */
@keyframes loop-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* 全体の半分＝2セット目の開始位置まで来たら0に戻る */
    }
}

/* マウスを乗せた時に動きを止める（お好みで） */
.slider:hover .slider-inner {
    animation-play-state: paused;
}

/* --- モバイル対応 --- */
@media (max-width: 1024px) {
    .schedule-container {
        flex-direction: column;
    }
    
    section {
        padding: 20px;
        margin: 10px;
    }
    
    .schedule-table {
        font-size: 0.9em;
    }

    .info-flex {
        flex-direction: column;
    }

    .hero-section {
        height: 100vh;
    }

    .guest-title {
        font-size: 2.5em;
    }

    .schedule-container {
        flex-direction: column; /* スマホでは縦に並べる */
        gap: 20px;
    }

    .map-area {
    position: static;    /* 通常の配置（スクロールと一緒に画面外へ流れる） */
    width: 100%;
    margin-bottom: 20px;
    }

    .number { width: 10.5%; text-align: center !important; font-weight: bold; background: #f9f9f9; }
    .shop-name { width: 45%; font-weight: bold; color: #227924; }
    .group-name { width: 20%; color: #666; font-size: 0.5em; }
    .goods-name { width: 25%; line-height: 1.4; }
}

footer {
    text-align: center;
    padding: 20px;
    color: #ffffff;
}
