@charset "utf-8";

/* --- 基本設定・フォント --- */
@font-face {
    font-family: 'Memoir-square';
    src: url('./memoir-square.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
html {
    -webkit-text-size-adjust: 100%; /* iOS Safari用 */
    -moz-text-size-adjust: 100%;    /* Firefox用 */
    text-size-adjust: 100%;         /* 標準 */
    overflow-x: hidden;
    scroll-behavior: smooth;
}
body {
    font-family: "Kiwi Maru", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2vw;
    background-color: #e6d700;
    overflow-x: hidden;
}

body.is-menuOpen {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    object-fit: cover;
}

p {
    text-align: center;
    line-height: 2rem;
}

h1 { display: inline-block; }

h2 {
    padding-top: 15vh;
    text-align: center;
    font-family: 'Memoir-square', sans-serif;
    font-style: normal;
    font-weight: 900;
    font-size: 4vw;
    padding-bottom: 5vh;
}

h3 {
    text-align: center;
    font-family: 'Memoir-square', sans-serif;
    font-style: normal;
    font-weight: 900;
    font-size: 2vw;
    padding-bottom: 1vh;
}

button { display: none; }

/* --- ユーティリティクラス --- */
.sectionWrap {
    width: 100vw;
    position: relative;
    padding-top: 10vh;
    padding-bottom: 10vh;
}
.pt-2 { padding-top: 2vh; }
.innerWrap { width: 90vw; margin: 0 auto; }
.mainWrap { width: calc(1000vw / 1440 * 100); margin: 0 auto; }
.mainWrap2 { width: calc(1200vw / 1440 * 100); margin: 0 auto; }

.flex { display: flex; align-items: center; }
.flex-e { display: flex; align-items: center; }
.gap-5 { gap: 5vw; }
.gap-2 { gap: 2vw; }
.just-between { justify-content: space-between; }
.just-center { justify-content: center; }
.align-top { align-items: start; }

.font-oto { font-family: 'Otomanopee One', sans-serif; }
.font-kiwi { font-family: "Kiwi Maru", serif; }
.font-dela { font-family: "Dela Gothic One", sans-serif; font-weight: 400; font-style: normal; }
.font-mochi { font-family: "Mochiy Pop One", sans-serif; font-weight: 400; font-style: normal; }
.font-memo { font-family: 'Memoir-square', sans-serif; font-style: normal; font-weight: 900; }

.small-text { font-size: 0.5em; }
.small-text2 { font-size: 0.7em; }
.small-text3 { font-size: 1.7vw;}
.small-text4 { font-size: 1.5vw; }
.red{
    color: rgb(142, 41, 5);
}
.white{
    background: white;
}
.fz-24 { font-size: 2vw; }
.fz-40 { font-size: 3vw; }
.lin-3 p { line-height: 3rem; }
.tex-left { text-align: left; }
.mb-2 { margin-bottom: 2vh; }
.mb-5 { margin-bottom: 5vh; }

/* --- ヘッダー・ナビゲーション --- */
.l-header {
    width: 100%;
    background-color: #fff;
    padding: 1rem;
    position: fixed;
    top: 0;
    z-index: 1200;
}

#globalMenu {
    justify-content: space-between;
    width: 100%;
    padding: 0 3vw;
}

#headerNav { gap: 2rem; }
.logo { width: 250px; }

/* --- メインコンテンツ --- */
#fv {
    position: relative;
    margin-top: 8vh;
    margin-bottom: 10vh;
    width: 90%;
}

#move-round {
    width: 86%;
    position: absolute;
    left: 6%;
    top: 20%;
    animation: spin 30s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

#megahon {
    height: 25vh;
    position: absolute;
    z-index: 10;
    left: -15%;
    top: 50%;
    gap: 2vw;
}

#lovehon { width: 60%; }
#oshibon {
    width: 20vw;
    position: absolute;
    z-index: 10;
    right: -15%;
    top: 50%;
}

.left-in {
    opacity: 0;
    transform: translateX(-40px);
    animation: fadeLeft 0.8s ease forwards;
}
@keyframes fadeLeft {
    to { opacity: 1; transform: translateX(0); }
}

.right-in {
    opacity: 0;
    transform: translateX(40px);
    animation: fadeRight 0.8s ease forwards;
}
@keyframes fadeRight {
    to { opacity: 1; transform: translateX(0); }
}

#intro p { line-height: 3rem; }
#free img { width: 15vw; }
#access { margin-top: 5vh; }
#access br { display: none; }
#access.font-kiwi br{
    display: none;
}
#accessMap { width: 40vw; }

#ereaImage {
    margin-top: 5vh;
    margin-bottom: 10vh;
    text-align: center;
}
#ereaImage > img { width: 70%; }
#akaihane > img { height: 20px; }

/* トナルバセクション */
#tonaruba { background-color: #fff; }
#tonaruba-message { margin-bottom: 5vh; }
#tonaruba-message > p {
    width: 40em;
    margin: 0 auto;
    padding: 1rem;
    text-align: left;
}
#tonaruba > .mainWrap {
    position: relative;
    z-index: 0;
}
#tonaruba > .mainWrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url(./img/tonaruba.webp);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: left;
    opacity: 0.2;
    z-index: -1;
}

.mailImg img { width: 3rem; }
#tonaruba figure { width: 10vw; }
#tonaruba figcaption,
figure img {
    display: block;
    width: 100%;
    text-align: center;
}

/* ブース＆イベント */
/* ミニイベントスケジュール */
#schedule{
    margin-top: 10vh;
    margin-bottom: 5vh;
}
.event {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 2vw;
}
.event tr:nth-child(2n+1) { background: #fbffaa; }
.event th { padding: 2rem; background: #241a08; color: #ffffff; }
.event td { padding: 2rem; }

/* 販売ブース */
#booth { padding-top: 15vh; }
#booth > h2 { margin-bottom: 5vh; }

.boothBox,
.boothBox2 {
    padding: 10px;
    border: #fff solid 2px;
    width: 35vw;
    position: relative;
}

.boothBox h3,
.boothBox2 h3 {
    padding-right: 10px;
    text-align: right;
}
.boothImg {
    width: 13vw;
    position: absolute;
    left: -2%;
    bottom: -5%;
    z-index: 5;
}
.boothImg2{
    width: 20vw;
    position: absolute;
    left: -20%;
    bottom: -5%;
    z-index: 5;
}
.boothIntro ,
.boothIntro2{
    width: 30vw;
    margin: 10px auto;
    padding: 10px 10px 10px 2vw;
    border-radius: 20px;
    background-color: #fff;
    text-align: left;
}
.boothIntro > p,
.boothIntro2 > p{
    width: 15em;
    padding-right: 1rem;
    margin-left: auto;
    text-align: left;
}
.infoBox{
    padding: 10px;
    width: 35vw;
    position: relative;
}
.infoImg{
    width: 15vw;
}
.comeOn {
    width: 30vw;
    padding: 10px;
    background-color: #e6d700;
    text-align: left;
}
.comeOn > p {
    width: 15em;
    padding-right: 1rem;
    text-align: left;
}


.flexCont {
    padding: 10vh 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* gap: 2vw; */
}

/* 推し本ライブラリー */
#oshibonLb { padding-top: 15vh; }
#oshibonLb > h2 { margin-bottom: 5vh; }


.footer {
    padding: 5vh 0;
    background-color: #ffffff;
}
/* --- TOPに戻るボタン --- */
.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 40px;
    /* background: #fff; */
    border: solid 2px #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #333;
    border-right: 3px solid #333;
    transform: translateY(20%) rotate(-45deg);
}


/* --- 無限スライダー --- */
.slider1-container,
.slider2-container {
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
}
.slider1-container { position: absolute; }
#sliderBottom {
    position: fixed;
    bottom: 0;
    z-index: 1200;
}

.slider1-track,
.slider2-track {
    display: inline-flex;
    align-items: flex-end;
    will-change: transform;
}
.slider1-track { animation: infinite-scroll linear infinite; }
.slider2-track { animation: infinite-scroll-right linear infinite; }

.slider1-item,
.slider2-item {
    height: 5vh;
    width: auto;
    margin-right: 12px;
    display: block;
    flex-shrink: 0;
}

@keyframes infinite-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes infinite-scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


/* --- モバイル対応（レスポンシブ） --- */
@media (max-width: 900px) {
    body { font-size: 1.6vh; }

    h2 {
        padding-top: 10vh;
        font-size: 3vh;
        padding-bottom: 3vh;
    }
    h3 { font-size: 2.5vh; padding-bottom: 0.5vh; }
    .sectionWrap { padding-top: 5vh; padding-bottom: 5vh; }

    .mainWrap { width: 90vw; }
    .mainWrap2 { width: 95vw; }

    .fz-24 { font-size: 2.4vh; }
    .fz-40 { font-size: 3.5vh; }

    #fv { margin-top: 10vh; margin-bottom: 4vh; width: 100%; }
    #megahon { height: 100px; left: -10%; top: 40%; }
    #megahon-man img { height: 150px; }
    #oshibon { width: 15vh; top: 65%; }

    p.fz2 {
        font-size: 1.8vh;
    }

    #free { display: flex; justify-content: center; }
    #free img { width: 15vh; }
    #access br { display: inline; }
    #access.font-kiwi p {
        margin: 0 auto;
        text-align: center;
        width: 70vw;
    }
    #accessMap { width: 100%; }

    #ereaImage > img { width: 100%; }
    .small-img > img { width: 30%; }

    #tonaruba-message > p { width: 20em; }
    #tonaruba-message br{
        display: none;
    }
    #tonaruba > .mainWrap::after { background-size: 100%; }
    .mailImg img { width: 2rem; }
    #tonaruba figure { margin: 0 auto; width: 30vw; }

    #globalMenu { width: 90%; }
    .logo { margin-top: 10vh; margin-bottom: 10vh; }
    .flex-e { display: block; }
    button { display: block; }

    /* モバイル専用ドロワーメニュー構造 */
    .l-header {
                width: 100%;
                background-color: #fff;
                position: fixed;
                top: 0;
                z-index: 1200;
                height: 64px;
                left: 0;
                display: flex;
                align-items: center;
                padding: 0 16px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
                transition: background-color 0.3s ease, border-color 0.3s ease;
            }

            #globalMenu {
                justify-content: space-between;
                width: 100%;
                padding: 0 3vw;
            }

            #headerNav { gap: 2.5rem; }
            .logo { width: 250px; }

            body.is-menuOpen .l-header {
                background: transparent;
                border-bottom-color: transparent;
                pointer-events: none; /* 親のクリックを無効化 */
                box-shadow: none;
            }

            .c-menuButton {
                width: 48px;
                height: 48px;
                padding: 0;
                border: 0;
                background: transparent;
                cursor: pointer;
                position: relative;
                z-index: 1201;
                pointer-events: auto; /* ボタンのクリックを許可 */
            }

            .c-menuButton__line {
                width: 28px;
                height: 3px;
                background: #222;
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                transition: top 0.3s ease, transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
            }

            .c-menuButton__line:nth-child(1) { top: 14px; }
            .c-menuButton__line:nth-child(2) { top: 23px; }
            .c-menuButton__line:nth-child(3) { top: 32px; }

            .c-menuButton.is-active .c-menuButton__line { background: orange; }
            .c-menuButton.is-active .c-menuButton__line:nth-child(1) {
                top: 23px;
                transform: translateX(-50%) rotate(45deg);
            }
            .c-menuButton.is-active .c-menuButton__line:nth-child(2) { opacity: 0; }
            .c-menuButton.is-active .c-menuButton__line:nth-child(3) {
                top: 23px;
                transform: translateX(-50%) rotate(-45deg);
            }

            .c-globalMenu {
                width: min(420px, 100%);
                height: 100dvh;
                padding: 110px 24px 32px;
                background: #fff;
                position: fixed;
                top: 0;
                right: 0;
                z-index: 1150;
                opacity: 0;
                visibility: hidden;
                transform: translateX(100%);
                transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
                pointer-events: auto; /* ★追加: 親(l-header)でpointer-events:noneされたのを打ち消し、メニュー内クリックを有効化 */
            }

            .c-globalMenu.is-active {
                opacity: 1;
                visibility: visible;
                transform: translateX(0);
            }

            .c-globalMenu__list { margin: 0; padding: 0; list-style: none; }
            .c-globalMenu__list li + li { margin-top: 24px; }
            .c-globalMenu__list a {
                color: #333;
                font-size: clamp(24px, 5vw, 38px);
                font-weight: 700;
                letter-spacing: 0.06em;
                text-decoration: none;
            }

            .c-overlay {
                width: 100%;
                height: 100dvh;
                padding: 0;
                border: 0;
                background: rgba(0, 0, 0, 0.42);
                position: fixed;
                inset: 0;
                z-index: 1050;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.3s ease, visibility 0.3s ease;
                cursor: pointer;
            }

            .c-overlay.is-active { opacity: 1; visibility: visible; }

    /* ブース＆イベント */
    /* ミニイベントスケジュール */
    #schedule{
        margin-top: 5vh;
    }
    /* .table-scroll {
        white-space: nowrap;
        overflow-x: scroll;
    } */
    .event{
        font-size: 5vw;
        width: 100%;
    }
    .event th {
        display: none;
    }
    .event td{
        background-color: #fbffaa;
        display: block;
        width: 100%;
        padding: 1rem;
    }
    .event td:first-child{
        background-color: #0d0d0d;
        color: #ffffff;
    }

    /* 販売ブース */
    #booth,#food { padding-top: 5vh; }
    #booth > h2,#food > h2 { margin-bottom: 5vh; }

    .boothBox,
    .boothBox2 {
        padding: 3vh 2vw;
        width: 90vw;
        margin: 0 auto;
    }
    .boothBox h3,
     .boothBox2 h3 {
        margin-bottom: 5vh;
        padding-right: 0;
        /* text-align: center; */
        font-size: 3vh;
    }
    .boothImg,
    .boothImg2 {
        width: 40vw;
        left: -2%;
        bottom: -5%;
        z-index: 5;
    }
    .boothIntro,
    .boothIntro2 {
        width: 50vw;
        margin-right: 0;
        margin-bottom: 0;
        padding: 10px 0 ;
        border-radius: 20px;
        background-color: #fff;
        text-align: left;
    }

    .infoBox{
        padding: 3vh 2vw;
            width: 90vw;
            margin: 0 auto;
    }
    .infoImg{
        width: 35vw;
    }
    .comeOn{
        width: 50vw;
        margin-right: 0;
        margin-bottom: 0;
        padding: 10px 0 ;
        border-radius: 20px;
        background-color: #e6d700;
        text-align: left;
    }
    .boothIntro > p,
    .comeOn > p {
        width: 15em;
        padding-right: 0.5rem;
        margin-left: auto;
        text-align: left;
    }
    .flexCont {
        padding: 0 0 5vh 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5vh;
    }

.boothBox2 {
    padding: 10px;
    width: 90vw;
    position: relative;
}

.boothBox2 h3 {
    margin: 10px;
    text-align: center;
}

.boothImg2{
    width: 70vw;
    position: static;
    margin: 10px auto;
}
.boothIntro2 {
    width: 80vw;
    margin: 10px auto;
    padding: 10px ;
    border-radius: 20px;
        background-color: #fff;
}
.boothIntro2 > p{
    width: 20em;
    padding: 1rem;
    margin: 0 auto;
    text-align: left;
}

#food p{
    width: 90%;
    margin: 0 auto;
}

.pagetop {
    height: 30px;
    width: 30px;
    position: fixed;
    right: 15px;
    bottom: 50px;
    /* background: #fff; */
    border: solid 2px #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

}