img {
    display: block;
}

.hero {
    display: flex;
    align-items: stretch;
    /* ← 高さを揃える設定を活かします */
    height: 80vh;
    margin: -50px 0 0;

}

.hero-wrap {
    position: relative;
}

.hero-bg {
    height: 100%;
    top: -150px;
    position: absolute;
    z-index: -5;
    width: 100%;
    height: calc(100% + 150px);
    /* 任意の高さ */
    background-color: white;
    background-image: url('../img/herobg.webp?20251014');
    background-position: top center;
    /* 画像を中央に配置 */
    background-attachment: fixed;
    /* 画面をスクロールしても背景を固定したい場合 */
    /* 中央寄せ */
}

.top .zoomInTrigger {
    background-color: white;
    padding: 10px;
    border-radius: 10px;


}

/* スマホ（~759px）：1列で縦積み */
@media (max-width: 759px) {

    .hero-bg {
        background-image: url('../img/herobg.webp');
        background-size: auto 100%;
        background-position: top center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

}

/*フェードインアニメーション*/
.fade-in-ready {
    opacity: 0;
    /* 最初は透明 */
    transform: scale(0.95);
    /* 少しだけ小さくしておく */
}

/* スクロールをしたら出現する要素にはじめに透過0を指定 */
.zoomInTrigger {
    opacity: 0;
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/

.smoothTrigger {
    opacity: 0;
}

.left-column,
.right-column {
    /* 0.5秒かけて透明度とサイズを変化させる */
    transition: opacity 0.2s ease-out, transform 0.5s ease-out;
}

.left-column {
    flex: 1;
    z-index: 12;
    margin-right: -15%;
}

.right-column {
    flex: 1;
    z-index: 13;
    margin-left: -15%;
}

.left-column,
.right-column {
    /* display: flex; を追加して、カラム自体をFlexコンテナにする */
    display: flex;
    /* ↓↓↓ 以下の2行を追加 ↓↓↓ */
    flex-direction: column;
    /* 中身を縦方向に並べる設定 */
    justify-content: flex-end;
    /* 縦方向の末尾（下）に配置する */
}


.hero-content img {
    width: 100%;
    object-fit: contain;
    min-height: 0;
}


.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: solid 5px #009fe6;
    background-color: white;
}



.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-with-logo {
    position: relative;
    /* ロゴを絶対配置するために必要 */
    overflow: visible;
    /* ロゴの“はみ出し”を許可 */
    border-radius: 24px;
    border: solid 5px #009fe6;
}




/* ロゴをスライド上にオーバーレイ（上にはみ出させる） */
.slide-logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(150px, 20vw, 220px);
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* 1200px以下（スマホやタブレット）では非表示 */
@media screen and (max-width: 1200px) {
    .logo-long {
        display: none;
    }

}

/* 1201px以上（PCなど大きい画面） */
@media screen and (min-width: 1201px) {
    .logo-mini {
        display: none;
    }

    .slide-logo {
        width: 500px;
    }
}

/* ドットがロゴの下に潜らないように少し下げる */
.slider-with-logo .slider-dots {
    bottom: clamp(12px, 2.4vw, 24px);
}

.slide.active {
    opacity: 1;
}

.slider-wrap {
    position: relative;
    width: 60%;
    margin-left: 5%;
    margin-right: 5%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {

    .hero {
        height: 55vh;
    }

    .slider-wrap {
        width: 65%;
    }

}

.top {
    padding-bottom: 100px;
}

.kikan {
    display: block;
    text-align: center;
    font-size: 4em;
    font-weight: 800;
    margin-bottom: 50px;
    font-family: "Darumadrop One";
}

.kikan-small {
    font-weight: 400;
    font-size: .5em;
}

/* スマホ（~759px）：1列で縦積み */
@media (max-width: 759px) {
    .kikan {
        display: block;
        text-align: center;
        font-size: 2.5em;
        font-weight: 800;
        margin-bottom: 50px;
    }
}


.text-content {
    text-align: center;
    font-size: 2em;
    letter-spacing: 5px;
    margin-bottom: 50px;
}

.container {

    width: 80%;
}


.about {
    padding: 100px 0 100px;
    position: relative;
}

.about .zoomInTrigger {
    position: relative;
}

.map {
    position: absolute;
    top: 0;
    right: -10%;
    z-index: -1;
    width: 50%;
    height: auto;
}



.live {
    background-color: #009fe6;
}

.live .container {
    background-color: white;
    padding: 50px 0;
    margin-bottom: 0;
    border: none;
    border-radius: 25px;
    box-shadow: inset 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.live-play {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 5;
    max-width: 15%;
    /* 念のため */
    aspect-ratio: 1/1;
    /* 正方形のアイコンなら必須 */
    fill: #009fe6;
    height: auto;
}

.yotei {
    position: absolute;
    bottom: 15px;
    left: calc(15px + 15%);
    z-index: 5;
    background: white;
    border: 2px #009fe6 solid;
    height: auto;
    font-size: 24px;
}

.live .container img {
    width: 80%;
    margin: auto;

}

.ue {
    margin-bottom: 100px;
    border-top: 5px solid #009fe6;
    /* 上にボーダーを追加 */
    border-bottom: 5px solid #8fd9fc;
    /* 下にボーダーを追加 */
}



.shita {
    margin-top: 100px;
    border-top: 5px solid #8fd9fc;
    /* 上にボーダーを追加 */
    border-bottom: 5px solid #009fe6;
    /* 下にボーダーを追加 */
}

.scrolling-container {
    width: 100%;
    background-color: white;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.scrolling-text {
    display: inline-block;
    color: #009fe6;
    font-size: 24px;
    padding: 10px 0;
    display: flex;
    font-family: "Darumadrop One";
    /* 2つのspanを横に並べる */
    animation: marquee 20s linear infinite;
}



@keyframes marquee {
    0% {
        transform: translateX(0);
        /* 画面に両方見える状態でスタート */
    }

    100% {
        transform: translateX(-50%);
        /* 左に半分進める → 無限ループ */
    }
}


.live .text-content,
.campaign .text-content {
    text-align: center;
    letter-spacing: 5px;
    margin-bottom: 50px;
    background: #009fe6;
    border-radius: 0 0 10px 10px;
    color: white;
    width: 60%;
    text-align: center;
    margin: -50px auto 25px;
    padding: 10px;
    box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
}




.campaign {
    padding: 100px 0 100px;
    background-image: url('../img/stamp_bg.webp');
    background-size: auto;
    background-repeat: repeat;
}


.campaign .container {
    border: #009fe6 3px solid;
    background-color: white;
    border-radius: 30px;
    padding: 50px;
}

.panel {
    margin: 50px 0;
}

.panerlsetumei {
    font-size: 1.5em;
    font-weight: 600;

}

.coming-soon {
    background: #ccc;
    color: #666;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: not-allowed;
    opacity: 0.7;
    margin: 50px auto;
    display: block;
}

.coming-soon:hover {
    opacity: 0.9;
}

.note {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* スマホ（~759px）：1列で縦積み */
@media (max-width: 759px) {
    .text-content {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .live .text-content,
    .campaign .text-content {
        width: 80%;
    }

    .container {
        border-radius: 15px;
        width: 90%;
    }

    .campaign .container {
        padding: 50px 20px 0;
    }

    .panerlsetumei {
        font-size: 1em;
    }
}

.about h4 {
    margin-bottom: 50px;
    font-size: 1.5em;
    color: #0b6fa4;
}

@media (max-width: 759px) {

    .about h4 {
        margin-bottom: 15px;
    }
}

.about p {
    line-height: 2;
    background: white;
    display: inline;
}

.about-content {
    margin-top: 50px;
    margin-bottom: 100px;

}

.map-img {
    position: absolute;
    top: 10%;
    right: 5%;
    z-index: -1;
    width: 35%;
}

/* 1200px以上 */
@media (min-width: 1201px) {
    .map-img {
        width: 25%;
    }
}



:root {
    --bg: #f7fbfd;
    --card: #ffffff;
    --accent: #0b6fa4;
    --muted: #6b7280;
    --gap: 18px;
    --max-width: 900px;

}




.card {
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(12, 12, 12, 0.04)
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap
}

.tab-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d3eaf8;
    background: #eef6fb;
    cursor: pointer;
    font-size: 14px
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent)
}

.tab-content {
    display: none
}

.tab-content.active {
    display: block
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px
}

th,
td {
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    font-size: 14px
}

th {
    font-weight: 700
}


.route-table td {
    padding: 12px 10px;
    font-size: 14px;
    /* 💡 修正点: 実線(solid)から点線(dotted)に変更し、色を薄い灰色に変更 */
    border-bottom: 1px dotted #ccc;
    /* 既存の#e0e0e0より少し薄い色を提案 */
    /* 元のコード: border-bottom: 1px solid #e0e0e0; */
}


.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* アイコンとテキストの間隔 */
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-button:hover {
    opacity: 0.8;
}

.youtube-button {
    background-color: #ff0000;
    margin-bottom: 10px;
}

.x-button {
    background-color: #000000;
}


.fes-wrapper {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(12, 12, 12, 0.04)
}

/* デスクトップ向け2カラムレイアウト */
.two-column-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    /* カラム間の隙間 */


}

/* 各カラムの設定 */
.two-column-container .column {
    flex: 1 1 50%;
    /* 2つのカラムが50%の幅を占め、柔軟に伸縮する */
    /* ここに背景色やパディングなどを追加して見やすくできます */
}

/* スマホ向けの1カラムレイアウト */
@media (max-width: 900px) {
    .two-column-container {
        flex-direction: column;
        /* 縦並びに変更 */
        align-items: normal;
        gap: 0;
    }

    .two-column-container .column {
        flex: 1 1 100%;
        /* カラムの幅を100%にする */
        margin-bottom: 20px;
        /* カラム間の下部スペース */
    }
}

.saizi h5 {
    margin-bottom: 30px;
    font-size: 2em;
}


@media (max-width: 767px) {
    .saizi h5 {
        margin: auto;
        font-size: 2em;
    }
}

/*産業祭日付*/
.date-badge {
    display: flex;
    /* flexboxに変更 */
    flex-wrap: wrap;
    /* 狭くなったら自動で改行 */
    justify-content: center;
    /* 水平方向の中央揃え */
    align-items: center;
    /* 垂直方向の中央揃え */
    background: #009fe6;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    gap: 15px;
    /* 日付グループ間の間隔 */
}

.date-badge .date-group {
    display: flex;
    /* 日付と曜日を横並びにする */
    align-items: center;
}

.date-badge .separator-on-desktop::before {
    content: "・";
    margin-right: 5px;
}

/* 曜日 */

.date-badge .weekday {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2em;
    /* 円の幅 */
    height: 2em;
    /* 円の高さ */
    border-radius: 50%;
    background-color: #fff;
    color: #009fe6;
    margin-left: 5px;
    font-size: 0.8em;
    padding-left: 2px;
}

@media (max-width: 863px) {
    .date-badge .separator-on-desktop::before {
        content: none;
    }
}






.rail-scene {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background-image: url('../img/rail.webp');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 20px;
    margin-bottom: 100px;
}

.train {
    position: absolute;
    bottom: 6px;
    /* 線路の縮小に合わせて微調整 */
    right: -20%;
    width: 220px;
    /* 電車を少し小さめにしたい場合はここを調整 */
    animation: moveTrain 8s linear infinite;
}

/* オプション：線路を動かしたい場合（走行感） */
@keyframes moveRails {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: -1000px;
    }

    /* 適宜値を調整 */
}

/* 有効にする場合は下記コメントを外す */
/* .rail-scene {
    animation: moveRails 6s linear infinite;
  } */

/* 電車 */
.rail-scene {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background-image: url('../img/rail.webp');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 20px;
    margin-bottom: 100px;
}

/* 横移動用のラッパー */
.train-wrapper {
    position: absolute;
    bottom: 18px;
    right: 0;
    width: 280px;
    transform: translateX(100%);
    will-change: transform;
}

.train-wrapper-1 {
    animation: moveTrain 20s linear infinite;
}

.train-wrapper-2 {
    animation: moveTrain 20s linear infinite 10s;
}

/* 上下の揺れ */
.train {
    width: 100%;
    animation: trainShake 0.4s ease-in-out infinite;
}

/* 上下の揺れアニメーション */
@keyframes trainShake {

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

    50% {
        transform: translateY(-1px);
    }
}

/* 横移動アニメーション */
@keyframes moveTrain {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(calc(-100vw - 100%));
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .rail-scene {
        height: 160px;
        background-size: auto 48px;
    }

    .train-wrapper {
        width: 330px;
        bottom: 8px;
    }

    .train-wrapper-1 {
        animation-duration: 14s;
    }

    .train-wrapper-2 {
        animation-duration: 14s;
        animation-delay: 7s;
    }
}

/* 1200px以上 */
@media (min-width: 1201px) {
    .rail-scene {
        height: 160px;
        background-size: auto 29px;
    }

    .train-wrapper {
        width: 360px;
    }

    .train-wrapper-1 {
        animation-duration: 25s;
    }

    .train-wrapper-2 {
        animation-duration: 25s;
        animation-delay: 12.5s;
    }
}



/* fes-sliderのスタイル */
.fes-slideshow-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* 必要に応じて調整 */
    position: relative;
    height: 400px;
}

.fes-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fes-slide.active {
    opacity: 1;
}

.fes-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fes-slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.fes-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fes-dot.active {
    background: white;
    transform: scale(1.2);
}

/* ナビゲーションボタンのコンテナ */
.fes-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
}

/* ボタンの共通スタイル */
.fes-navigation button {
    background: white;
    color: #009fe6;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fes-navigation button:hover {
    background: #009fe6;
    color: white;
    transform: scale(1.1);
}

/* 新しいリンクコンテナのスタイル */
.fes-links-container {
    display: flex;
    /* ボタンを横に並べる */
    flex-wrap: wrap;
    /* 狭い画面で折り返す */
    gap: 20px;
    /* ボタン間のスペース */
    justify-content: center;
    /* 中央寄せ */
    margin-bottom: 20px;
    /* 下のコンテンツとの間隔 */
}

.fes-link {
    border-radius: 50px;
    border: solid #009fe6 1px;
    color: #009fe6;
    display: inline-block;
    margin-top: 15px;
    padding: 0 15px;
    text-align: center;
    padding: 15px 0;
    width: 40%;

}

.fes-link i {
    margin-left: 8px;
    /* アイコンとテキストの間隔 */
}

/* スマホでのレイアウト調整 */
@media (max-width: 759px) {
    .fes-links-container {
        flex-direction: column;
        /* 縦並びにする */
        align-items: center;
        /* 中央寄せ */
        gap: 15px;
    }

    .fes-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        margin: 10px;

    }

}