* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Meiryo", sans-serif;
    line-height: 1.6;
    background-color: #ffe934;
    background-image: url('img/mainbg.png');
    background-repeat: repeat;
    background-size: 500px;
}

/* ナビゲーションセクション */

.navbar {
    background-color: #25173e;
    padding: 12px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffe934;
    transform: translateY(-1px);
}



/* ヘッダーセクション */
.hero-section {
    width: 100%;
    position: relative;
    margin-top: 50px;
    padding: 40px 0 80px;
    text-align: center;
}

.main-logo-circle {
    width: 45%;
    min-width: 500px;
    margin: 20px auto;
    position: relative;
    z-index: 3;
}

.main-logo-circle img {
    width: 100%;
    height: 100%;
}

/* 旗の装飾 */
.flag-decoration {
    position: absolute;
    width: 100%;
    min-width: 600px;
    height: auto;
    left: 0;
    bottom: -100px;
    z-index: 1;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

/* あしらいのCSS */
.hero-section__decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* flagより上に変更 */
    pointer-events: none;
}

.decoration {
    position: absolute;
    z-index: 2;
}

/* 樽ビール (左上) */
.barrel-beer {
    width: 10%;
    /* 12% → 10% */
    height: auto;
    min-width: 120px;
    /* 1200px × 10% = 120px */
}

.barrel-beer--top-left {
    top: 18%;
    left: 16%;
}

/* 雲 */
.cloud {
    width: 15%;
    /* 18% → 15% */
    height: auto;
    min-width: 180px;
    /* 1200px × 15% = 180px */
}

.cloud--left-top {
    top: 2%;
    left: 15%;
}

.cloud--right-top {
    top: 5%;
    right: 15%;
    width: 12%;
    /* 15% → 12% */
    min-width: 144px;
    /* 1200px × 12% = 144px */
}

/* ビールジョッキ (右下) */
.beer-mug {
    width: 12%;
    /* 15% → 12% */
    height: auto;
    min-width: 144px;
    /* 1200px × 12% = 144px */
}

.beer-mug--right-bottom {
    right: 12%;
    bottom: 14%;
}

/* プレッツェル (左下) */
.pretzel {
    width: 10%;
    /* 12% → 10% */
    height: auto;
    min-width: 120px;
    /* 1200px × 10% = 120px */
    left: 12%;
    bottom: 35%;
}

/* ソーセージ (右中央) */
.sausage {
    width: 12%;
    /* 15% → 12% */
    height: auto;
    min-width: 144px;
    /* 1200px × 12% = 144px */
    right: 8%;
    top: 40%;
    transform: rotate(-15deg);
}

/* バイオリン (右上) */
.violin {
    width: 11%;
    /* 13% → 11% */
    height: auto;
    min-width: 132px;
    /* 1200px × 11% = 132px */
    right: 12%;
    top: 10%;
    transform: rotate(15deg);
}

/* 音符 */
.note {
    width: 4%;
    /* 5% → 4% */
    height: auto;
    min-width: 48px;
    /* 1200px × 4% = 48px */
}

.note--top-right {
    top: 12%;
    right: 18%;
    width: 4%;
    /* 5% → 4% */
}

.note--bottom-right {
    top: 8%;
    /* 左上の雲のあたりに移動 */
    left: 10%;
    /* 右下から左上へ */
    width: 4%;
    /* 5% → 4% */
}


/* イベント詳細セクション */
.event-details {
    padding: 0px 20px 60px;
    position: relative;
}

.main-title {
    text-align: center;
    position: relative;
    z-index: 3;
    width: 100%;
    /* 幅を100%にして完全にセンタリング */
    order: -1;
    /* タイトルを最初に表示 */
}

.main-title img {
    max-width: 90%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    margin-top: -100px;
    /* 上にはみ出すように配置 */
}

.event-details-section {
    max-width: 1000px;
    /* ここで最大幅を指定 */
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-info-card {
    background: #fff8ef;
    width: 100%;
    /* 親要素のmax-widthに従う */
    padding: 40px 80px;
    border-radius: 20px;
    border: 5px solid #25173e;
    /* 5pxに統一 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.event-title {
    font-size: 1.8rem;
    color: #25173e;
    font-weight: bold;
    margin-bottom: 30px;
    /* 既存の30pxを維持 */
    text-align: center;
    line-height: 1.4;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff8c00;
    position: relative;
}

.event-info {
    color: #25173e;
    line-height: 1.8;
    font-size: 1rem;
}

.event-info a {
    color: #25173e;
    text-decoration: none;
}

.event-info a:hover {
    text-decoration: underline;
}

/* 装飾要素 */
.decoration-leaf {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 200px;
    height: auto;
    z-index: 3;
}

.decoration-barrel {
    position: absolute;
    bottom: -30px;
    right: -10px;
    width: 160px;
    height: auto;
    z-index: 3;
}


/* オクトーバーフェストについてセクション */
.about-section {
    padding: 60px 20px;
    margin-top: 100px;
}

/* オクトーバーフェストについてセクション - PC版でのレイアウト調整 */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    /* 画像を絶対配置するため */
}

.barrel-image {
    position: absolute;
    left: -120px;
    /* 左にはみ出す */
    top: 50%;
    transform: translateY(-50%);
    width: 540px;
    z-index: 3;
}

.barrel-image img {
    width: 100%;
    height: auto;
}

.about-text-box {
    width: 600px;
    margin-left: auto;
    /* 右寄せ */
    background: #fff8ef;
    padding: 40px 60px;
    border-radius: 20px;
    border: 5px solid #25173e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    /* 画像より前面に */
}

.about-title {
    font-size: 1.8rem;
    color: #25173e;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff8c00;
    text-align: center;
}

.about-text {
    color: #25173e;
    line-height: 1.8;
    font-size: 1rem;
}

/* 装飾要素 */
.decoration-leaf-right {
    position: absolute;
    top: -30px;
    right: -20px;
    width: 100px;
    height: auto;
    z-index: 3;
}

.decoration-sausage {
    position: absolute;
    bottom: -60px;
    right: -20px;
    width: 110px;
    height: auto;
    z-index: 3;
}

/* スライドセクション */
.slide-section {
    background-color: #ffe934;
    background-image: url('img/mainbg.png');
    background-repeat: repeat;
    background-size: 500px;
    padding: 0 0 100px;
    overflow: hidden;
}

.slide-container {
    width: 100%;
    position: relative;
}

.slide-track {
    display: flex;
    animation: slide 20s linear infinite;
}

.slide-item {
    flex: 0 0 280px;
    margin-right: 20px;
}

.slide-item img {
    width: 280px;
    height: auto;
}

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

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


/* メニューセクション */
.menu-section {
    position: relative;
    z-index: 10;
}

.menu-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: 400px;
    /* 適切な高さを設定 */
}

/* 背景画像 */
.menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.menu-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 左側の人物イラスト */
.menu-character-left {
    position: absolute;
    left: 50px;
    bottom: 30px;
    z-index: 2;
}

.character-left {
    height: 200px;
    width: auto;
}

/* 右側の人物イラスト */
.menu-character-right {
    position: absolute;
    right: 50px;
    bottom: 30px;
    z-index: 2;
}

.character-right {
    height: 200px;
    width: auto;
}

/* メニューテキスト */
.menu-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.menu-text-image {
    width: auto;
    height: 120px;
}

/* SNSセクション */
.sns-section {
    padding: 100px 20px 0;
    position: relative;
}

.sns-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.sns-flags {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1;
}

.sns-flags-image {
    width: 100%;
    height: auto;
}

.sns-box {
    background: #fff8ef;
    padding: 60px 40px 40px;
    border-radius: 20px;
    border: 5px solid #25173e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    text-align: center;
}

.sns-decoration-leaf-left {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 200px;
    height: auto;
    z-index: 3;
}

.sns-decoration-leaf-right {
    position: absolute;
    top: -20px;
    right: -15px;
    width: 110px;
    height: auto;
    z-index: 3;
}

.sns-title {
    font-size: 2.5rem;
    color: #25173e;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 3px solid #ff8c00;
    display: inline-block;
    padding-bottom: 5px;
}

.sns-subtitle {
    color: #25173e;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.sns-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.sns-link {
    display: block;
    transition: transform 0.3s ease;
}

.sns-link:hover {
    transform: scale(1.1);
}

.sns-link img {
    width: 60px;
    height: 60px;
}

/* お問い合わせセクション */
.contact-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background-color: #ffe934;
    background-image: url('img/mainbg.png');
    background-repeat: repeat;
    background-size: 500px;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-logo {
    margin-bottom: 30px;
}

.contact-logo-image {
    width: 380px;
    height: auto;
}

.contact-title {
    font-size: 2.5rem;
    color: #25173e;
    font-weight: bold;
    margin-bottom: 15px;
}

.contact-subtitle {
    color: #25173e;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-button-wrapper {
    margin-bottom: 40px;
}

.contact-button {
    display: inline-block;
    background: #ffe934;
    color: #25173e;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    border: 3px solid #25173e;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 233, 52, 0.3);
}

.contact-button:hover {
    background: #fff8ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 233, 52, 0.4);
}

.contact-character-left {
    position: absolute;
    left: 50px;
    bottom: -180px;
    z-index: 1;
}

.contact-char-left {
    height: 200px;
    width: auto;
}

.contact-character-right {
    position: absolute;
    right: 50px;
    bottom: -180px;
    z-index: 1;
}

.contact-char-right {
    height: 200px;
    width: auto;
}

/* フッター */
.footer {
    background-color: #25173e;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    color: #fff8ef;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* ========================================
    スクロールアニメーション用CSS
======================================== */

/* アニメーションの初期状態（見えない、少し下に配置） */
.animate-slide-up {
    opacity: 0;
    /* 最初は透明 */
    transform: translateY(50px);
    /* 最初は少し下にずらしておく */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* アニメーションの時間とイージング */
    will-change: opacity, transform;
    /* アニメーションのパフォーマンス最適化 */
}

/* アニメーションが適用された状態（画面内に現れたらこのクラスが付与される） */
.animate-slide-up.is-visible {
    opacity: 1;
    /* 不透明になる */
    transform: translateY(0);
    /* 元の位置に戻る */
}

/* 複数のキャラクターに同じアニメーションを適用するため、
   それぞれのキャラクター画像に class="animate-slide-up" を追加します。 */

/* 例: menu-character-left と menu-character-right */
.menu-character-left .character-left,
.menu-character-right .character-right,
.contact-character-left .contact-char-left,
.contact-character-right .contact-char-right {
    /* ここに animate-slide-up の初期状態を適用 */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.menu-character-left.is-visible .character-left,
.menu-character-right.is-visible .character-right,
.contact-character-left.is-visible .contact-char-left,
.contact-character-right.is-visible .contact-char-right {
    opacity: 1;
    transform: translateY(0);
}


/* もし、左右からスライドインさせたいキャラクターがいる場合 */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    /* 最初は左にずらしておく */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    /* 最初は右にずらしておく */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* menu-character-left のイラストを左からスライドイン */
.menu-character-left .character-left {
    opacity: 0;
    transform: translateX(-50px);
    /* 左から */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out 0.1s;
    /* 少し遅延 */
    will-change: opacity, transform;
}

.menu-character-left.is-visible .character-left {
    opacity: 1;
    transform: translateX(0);
}

/* menu-character-right のイラストを右からスライドイン */
.menu-character-right .character-right {
    opacity: 0;
    transform: translateX(50px);
    /* 右から */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out 0.2s;
    /* さらに遅延 */
    will-change: opacity, transform;
}

.menu-character-right.is-visible .character-right {
    opacity: 1;
    transform: translateX(0);
}

/* contact のキャラクターは下からスライドインのまま */
.contact-character-left .contact-char-left {
    opacity: 0;
    transform: translateY(50px);
    /* 下から */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out 0.1s;
    will-change: opacity, transform;
}

.contact-character-left.is-visible .contact-char-left {
    opacity: 1;
    transform: translateY(0);
}

.contact-character-right .contact-char-right {
    opacity: 0;
    transform: translateY(50px);
    /* 下から */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out 0.2s;
    will-change: opacity, transform;
}

.contact-character-right.is-visible .contact-char-right {
    opacity: 1;
    transform: translateY(0);
}

/* アニメーション効果（オプション） */
@keyframes float {

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

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

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

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

/* アニメーション適用 */
.cloud {
    animation: float 6s ease-in-out infinite;
}

.note {
    animation: float 4s ease-in-out infinite;
}

.barrel-beer {
    animation: none;
}


/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .main-logo-circle {
        width: 50%;
        min-width: 400px;
    }

    .barrel-beer {
        width: 8%;
        /* 10% → 8% */
    }

    .cloud {
        width: 15%;
        /* 18% → 15% */
    }

    .beer-mug {
        width: 11%;
        /* 14% → 11% */
    }

    .pretzel {
        width: 8%;
        /* 10% → 8% */
    }

    .sausage {
        width: 11%;
        /* 14% → 11% */
    }

    .violin {
        width: 10%;
        /* 12% → 10% */
    }

    .note {
        width: 3%;
        /* 4% → 3% */
    }

    /* タブレット以下では元のflexレイアウトに戻す */
    .about-section {
        padding: 0;
        margin-top: 60px;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px;
        position: static;
    }

    .barrel-image {
        position: static;
        width: 70%;
        transform: none;
        margin-bottom: -30px;
    }

    .about-text-box {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 768px) {

    /* ナビゲーションセクション */
    .nav-container {
        padding: 0 15px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 8px;
    }

    /* ヘッダーセクション */
    .hero-section {
        padding: 0px 0 60px;
        overflow: visible;
    }

    .main-logo-circle {
        width: 60%;
        min-width: 320px;
    }

    .main-title img {
        max-height: 150px;
    }

    .flag-decoration {
        min-width: 0px;
        bottom: -40px;
    }

    /* 装飾要素 */
    .barrel-beer {
        min-width: 12%;
        /* サイズを少し大きく */
    }

    .barrel-beer--top-left {
        top: 20%;
        left: 6%;
    }

    .cloud {
        min-width: 18%;
        /* サイズを少し大きく */
    }

    .cloud--left-top {
        top: 8%;
        left: 5%;
    }

    .cloud--right-top {
        top: 6%;
        right: 6%;
        min-width: 15%;
    }

    .beer-mug {
        min-width: 16%;
        /* サイズを少し大きく */
    }

    .beer-mug--right-bottom {
        right: 10%;
        bottom: 24%;
    }

    .pretzel {
        min-width: 12%;
        /* サイズを少し大きく */
        left: 8%;
        bottom: 40%;
    }

    .sausage {
        min-width: 16%;
        /* サイズを少し大きく */
        right: 2%;
        top: 35%;
    }

    .violin {
        min-width: 14%;
        /* サイズを少し大きく */
        right: 6%;
        top: 10%;
    }

    .note {
        min-width: 10%;
        /* サイズを少し大きく */
    }

    .note--top-right {
        top: 10%;
        right: 15%;
    }

    .note--bottom-right {
        top: 5%;
        /* 左上の雲のあたりに移動 */
        left: 12%;
        /* 右下から左上へ */
        min-width: 6%;
    }

    /* イベント詳細セクション */
    .event-info-card {
        padding: 30px 25px;
    }

    .event-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .decoration-leaf {
        width: 100px;
        top: 0px;
        left: 0px;
    }

    .decoration-barrel {
        width: 90px;
        bottom: -50px;
        right: -15px;
    }

    /* オクトーバーフェストについてセクション */
    .about-section {
        padding: 0px;
        margin-top: 40px;
    }

    .barrel-image {
        min-width: 280px;
        width: 70%;
        margin-bottom: -24px;
    }

    .about-text-box {
        padding: 25px;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .about-text {
        font-size: 0.9rem;
    }

    .decoration-leaf-right {
        width: 60px;
        top: -15px;
        right: -20px;
    }

    .decoration-sausage {
        width: 80px;
        bottom: -50px;
        right: -20px;
    }

    /* メニューセクション */
    .menu-container {
        height: 350px;
    }

    .menu-character-left {
        left: 20px;
    }

    .character-left {
        height: 120px;
    }

    .menu-character-right {
        right: 20px;
    }

    .character-right {
        height: 120px;
    }

    .menu-text-image {
        height: 80px;
    }

    /* SNSセクション */
    .sns-section {
        padding: 60px 20px 0;
    }

    .sns-flags {
        top: -80px;
    }

    .sns-box {
        padding: 40px 25px 30px;
    }

    .sns-title {
        font-size: 2rem;
    }

    .sns-subtitle {
        font-size: 1rem;
    }

    .sns-decoration-leaf-left {
        width: 110px;
    }

    .sns-decoration-leaf-right {
        width: 60px;
    }

    .sns-links {
        gap: 20px;
    }

    .sns-link img {
        width: 50px;
        height: 50px;
    }

    /* お問い合わせセクション */
    .contact-section {
        padding: 60px 20px;
    }

    .contact-logo-image {
        width: 280px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-subtitle {
        font-size: 1.1rem;
    }

    .contact-button {
        font-size: 1.1rem;
        padding: 12px 30px;
    }

    .contact-character-left {
        left: 20px;
    }

    .contact-char-left {
        height: 150px;
    }

    .contact-character-right {
        right: 20px;
    }

    .contact-char-right {
        height: 150px;
    }

    .copyright {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {

    /* ナビゲーションセクション */
    .nav-menu {
        gap: 10px;
    }

    .nav-link {
        font-size: 12px;
        padding: 5px 6px;
    }

    /* ヘッダーセクション */
    .hero-section {
        padding: 0px 0 40px;
    }

    .main-logo-circle {
        width: 70%;
        min-width: 280px;
    }

    .main-title img {
        max-height: 120px;
    }

    /* イベント詳細セクション */
    .event-info-card {
        padding: 25px 20px;
    }

    .event-title {
        font-size: 1.3rem;
    }

    .event-info {
        font-size: 0.9rem;
    }

    /* オクトーバーフェストについてセクション */
    .about-text-box {
        padding: 20px;
    }

    .about-title {
        font-size: 1.3rem;
    }

    .about-text {
        font-size: 0.9rem;
    }

    /* SNSセクション */
    .sns-title {
        font-size: 1.8rem;
    }

    /* お問い合わせセクション */
    .contact-title {
        font-size: 1.8rem;
    }

    .contact-button {
        font-size: 1rem;
        padding: 10px 25px;
    }

}