.loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3E95A8;
    transition: opacity 1s ease;
}

.loading.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.is-loading {
    overflow: hidden;
}

.loading__logo {
    width: min(40%, 320px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7.1912%;
}

.loading__logo img {
    height: auto;
}

.loading__logo-icon {
    width: 18.193%;
    animation: loading-hourglass-flip 3s ease-in-out infinite;
    will-change: transform;
}

.loading__logo-text {
    width: 59.7418%;
}

@keyframes loading-hourglass-flip {

    0%,
    15% {
        transform: rotate(0deg);
    }

    45%,
    100% {
        transform: rotate(180deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading__logo-icon {
        animation: none;
    }
}

.slide3 {
    overflow: hidden;
}

.slide3 .swiper-wrapper {
    display: flex;
    width: max-content;
    transform: none;
    transition: none;
    animation: marquee 30s linear infinite reverse;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .slide3 .swiper-wrapper {
        animation: none;
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-25%);
    }
}

.slide3 .swiper-slide {
    flex-shrink: 0;
    width: auto;
    height: auto;
}

.swiper-slide img {
    width: auto;
    height: 280px;
    display: block;
}

/* ===== 写真が中央に散らばり、スクロールで全方向へ飛ぶ演出（PC専用 / .scatter） ===== */
.scatter {
    position: relative;
    height: 220vh;
    background: #fff;
}

.scatter__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.scatter__item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 260px;
    --fly-y: 75vh;
    transform:
        translate(-50%, -50%) translate(calc(var(--bx, 0px) + var(--x, 0) * var(--d, 1) * var(--p, 0) * 75vw),
            calc(var(--by, 0px) + var(--y, 0) * var(--d, 1) * var(--p, 0) * var(--fly-y))) rotate(calc(var(--r, 0deg) + var(--p, 0) * var(--rr, 0deg))) scale(calc(1 + var(--p, 0) * 0.15));
    will-change: transform;
}

.scatter__item img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .scatter {
        height: 100vh;
    }

    .scatter__item {
        transform:
            translate(-50%, -50%) translate(var(--bx, 0px), var(--by, 0px)) rotate(var(--r, 0deg));
    }
}

.mv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    overflow: hidden;
    height: 100vh;
    height: 100lvh;
}

.mv__bg {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: calc(100% + 60px);
    animation: mvSlide 16s ease-in-out infinite alternate;
}

.mv__bg picture {
    display: block;
    height: 100%;
}

.mv__bg img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mv__bg-second,
.mv__bg-third {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
}

.mv__bg-second {
    animation: mvCrossfadeSecond 21s ease-in-out infinite;
}

.mv__bg-third {
    animation: mvCrossfadeThird 21s ease-in-out infinite;
}

@keyframes mvCrossfadeThird {

    0%,
    23.81% {
        opacity: 1;
    }

    33.33%,
    90.48% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes mvCrossfadeSecond {

    0%,
    57.14% {
        opacity: 1;
    }

    66.67%,
    99.9% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mv__bg-second,
    .mv__bg-third {
        animation: none;
    }
}

.mv__copy {
    position: absolute;
    left: 5%;
    top: 45%;
    color: #fff;
    line-height: 1.8;
}

.mv__text {
    font-size: 16px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 2.6s ease, transform 2s ease-out;
    font-size: 28px;
}

.mv__text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .mv__text {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.main {
    position: relative;
    z-index: 10;
    background: #fff;
    margin-top: 100vh;
    margin-top: 100svh;
}

.message {
    position: relative;
    background: #fff;
    min-height: 100vh;
    min-height: 100svh;
    padding: 400px 20px 400px;

    --wave-lift: 30px;
}

.message__wave {
    position: absolute;
    left: 0;
    top: calc(-119px - var(--wave-lift));
    width: 100%;
    height: 120px;
    fill: #fff;
    pointer-events: none;
}

.message::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: calc(var(--wave-lift) + 4px);
    background: #fff;
    pointer-events: none;
}

.message__inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.message__title {
    position: fixed;
    font-size: 26px;
    left: 0;
    right: 0;
    top: 50%;
    margin: 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 50;
    pointer-events: none;
}

.message__title.is-visible {
    opacity: 1;
    transform: translateY(-50%);
}

.message__text {
    font-size: 20px;
    line-height: 80px;
    margin-top: 100vh;
    margin-top: 100svh;
    transition: opacity 0.3s ease;
}

.guide {
    font-family: "Zen Kaku Gothic New", sans-serif;
    background-color: #fff;
    padding-top: 300px;
}

.guide__contents {
    display: flex;
    align-items: stretch;
    padding-bottom: 120px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.guide__contents.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .guide__contents {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.guide__contents:last-child {
    padding-bottom: 0;
}

/* ===== 散らばりの後半に最初のブロックを重ねて中央でフェードイン（PC専用） ===== */
.guide__reveal {
    min-height: 160vh;
    height: auto;
    margin-bottom: var(--reveal-trail, 0px);
}

.guide__reveal-inner {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    opacity: var(--gp, 1);
    --reveal-shift: 150px;
    transform: translateY(var(--reveal-shift));
}

.guide__reveal .guide__contents {
    opacity: 1;
    transform: none;
    transition: none;
    padding-bottom: 0;
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .guide__reveal {
        height: auto;
        min-height: 0;
    }

    .guide__reveal-inner {
        position: static;
        min-height: 0;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .guide {
        position: relative;
        z-index: 1;
        background: transparent;
        margin-top: calc(-160vh - 300px);
    }
}

.guide__text-container {
    width: 50%;
    padding: 0px 32px 0 27px;
    display: flex;
    flex-direction: column;
}

.guide__button {
    margin-top: auto;
    align-self: flex-end;
    display: grid;
    justify-items: center;
    align-items: end;
}

.guide__image-container {
    flex: 1;
    position: relative;
    align-self: flex-start;
}

.guide__background-box {
    position: absolute;
    bottom: -10px;
    left: -10px;
    z-index: 1;
    width: 100%;
}

/* ===== カードスワイプ（各ガイドセクション共通） ===== */
.guide__stack {
    position: relative;
    width: 100%;
    aspect-ratio: 872 / 546;
    z-index: 2;
}

.guide__card {
    --tilt: 0deg;
    position: absolute;
    inset: 0;
    transform-origin: 100% 100%;
    transform: rotate(0deg);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
}

.guide__card.is-top {
    transform: rotate(var(--tilt));
}

.guide__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.guide__card.is-dragging {
    cursor: grabbing;
    transition: none;
}

.guide__card.is-animating {
    transition: transform 1s ease, opacity 1s ease;
}

/* ===== カード上の独自カーソル ===== */
.has-guide-cursor .guide__card {
    cursor: none;
}

.guide-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    pointer-events: none;
    will-change: transform;
}

.guide-cursor__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    border-radius: 50%;
    background: rgba(62, 149, 168, 0.75);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    opacity: 0;
    transform: scale(0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.guide-cursor.is-active .guide-cursor__circle {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .guide-cursor__circle {
        transition: opacity 0.3s ease;
        transform: scale(1);
    }
}

.instagram {
    display: block;
    width: 36px;
    height: 36px;
}

.guide__instagram-row {
    display: flex;
    justify-content: space-between;
}

.guide__text-title {
    display: flex;
    align-items: center;
    font-size: 20px;
    height: 30%;
}

.guide__text {
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;

}

.guide__button-text {
    font-size: 16px;
    text-align: center;
    padding: 0 10px 12px 0;
    grid-area: 1 / 1;
}

.guide__button-arrow {
    display: block;
    width: 208px;
    grid-area: 1 / 1;
}

.guide__button-arrow img {
    transition: transform 0.3s ease;
}

.guide__button:hover .guide__button-arrow img {
    transform: translateX(15px);
}

/* メニューセクション */
.menu {
    padding: 300px 0;
    background-color: #fff;
}

.menu__title {
    font-size: 36px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.menu__title::before,
.menu__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: currentColor;
}

.menu__row {
    display: flex;
    justify-content: space-between;
    padding-top: 140px;
}

.menu__row,
.takeout {
    padding-top: 300px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.menu__row.is-visible,
.takeout.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .menu__row,
    .takeout {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.menu__contents {
    display: block;
    position: relative;
}

.menu__contents--sp-only {
    display: none;
}

.menu__img-container {
    display: block;
    position: relative;
}

.menu__background-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    z-index: 1;
    width: 312px;
}

.menu__image {
    position: relative;
    z-index: 2;
}

.menu__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.menu__contents:hover .menu__image::after {
    background-color: rgba(0, 0, 0, 0);
}

.menu__image img {
    display: block;
    width: 312px;
    height: 414px;
}

.menu__image .menu__image-logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    z-index: 3;
    pointer-events: none;
}

.menu__text-container {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    padding: 0 20px 20px;
    color: #fff;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.menu__category {
    font-size: 36px;
    margin-bottom: 11px;
}

.menu__text {
    font-size: 16px;
}

.menu__button-arrow {
    display: block;
    transition: transform 0.3s ease;
}

.menu__contents:hover .menu__button-arrow {
    transform: translateX(30px);
}

.takeout__img-container {
    flex: 1;
    align-self: flex-start;
    position: relative;
}

.takeout__background-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    z-index: 1;
    width: 100%;
}

.takeout__image {
    position: relative;
    z-index: 2;
}

.takeout__contents {
    display: flex;
}

.takeout__text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    margin-left: 50px;
}

.takeout__title {
    font-size: 36px;
    margin-bottom: 30px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.takeout__text {
    font-size: 16px;
    line-height: 30px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.access {
    padding: 300px 0;
    background-color: #fff;
}

.access__title {
    font-size: 36px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.access__title::before,
.access__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: currentColor;
}

.access__contents {
    display: flex;
    padding-top: 150px;
}

.access__img-container {
    flex: 1;
    align-self: flex-start;
    position: relative;
    margin-left: 20px;
}

.access__background-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    z-index: 1;
    width: 100%;
}

.access__image {
    position: relative;
    z-index: 2;
}

.access__image img {
    display: block;
    width: 100%;
    height: auto;
}

.access__text-container {
    margin-left: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.access__text-title {
    font-size: 28px;
    margin-bottom: 50px;
    line-height: 41px;
}

.access__text {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
}

table {
    border-collapse: collapse;
}

th,
td {
    padding: 6px 20px;
    text-align: left;
}

.map iframe {
    width: 100%;
    height: 500px;
    margin-top: 100px;
}

/* お問い合わせ */
.contact {
    position: relative;
    color: #fff;
    padding-bottom: 270px;
}

.message__wave--contact {
    top: 0;
}

/* お問い合わせセクション */
.contact__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.contact__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.contact__text-container {
    text-align: center;
    padding-top: 280px;
    transform: translateY(60px);
    line-height: 200%;
}

.contact__title {
    font-size: 36px;
    margin-bottom: 70px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.contact__text {
    font-size: 26px;
    padding-bottom: 30px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

@media (max-width: 1370px) {

    .inner {
        width: 90%;
    }

    .inner__small {
        width: 80%;
    }

    .guide__text {
        padding-top: 30px;
    }

    .menu__row {
        gap: 10px;
    }

    .menu__contents {
        flex: 1;
        min-width: 0;
    }

    .menu__img-container {
        margin-left: 20px;
    }

    .menu__text-container {
        left: 20px;
    }

    .menu__image img {
        width: 100%;
        height: auto;
        aspect-ratio: 312 / 414;
        object-fit: cover;
    }

    .menu__background-box {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .header {
        height: 65px;
    }

    .inner {
        width: 85%;
    }

    .header__inner {
        padding: 0 20px;
    }

    .header__logo {
        position: fixed;
        top: 50%;
        bottom: auto;
        left: 20px;
        transform: translateY(-50%);
        width: 180px;
        height: auto;
        padding: 0;
        transition: opacity 0.3s ease;
        will-change: transform;
    }

    .header.is-logo-hidden .header__logo {
        opacity: 0;
        pointer-events: none;
    }

    .mv {
        top: 50%;
        bottom: auto;
        height: var(--screen-h, 100vh);
        transform: translateY(-50%);
    }

    /* ===== SP: スクロール演出の「尺」も vh をやめて px（--vp-h）で組む ===== */

    .scatter {
        height: calc(var(--vp-h, 100vh) * 1.2 + var(--screen-h, 100vh));
    }

    .scatter__item {
        --fly-y: calc(var(--vp-h, 100vh) * 0.75);
    }

    .scatter__stage {
        height: var(--screen-h, 100vh);
    }

    :root {
        --reveal-len: calc(var(--screen-h, 100vh) + var(--vp-h, 100vh) * 0.6);
    }

    .guide__reveal {
        min-height: var(--reveal-len);
    }

    .guide__reveal-inner {
        min-height: var(--screen-h, 100vh);
    }

    @media (prefers-reduced-motion: no-preference) {
        .guide {
            margin-top: calc(var(--reveal-len) * -1 - 300px);
        }
    }

    .mv__bg {
        top: auto;
        bottom: 0;
        height: 100%;
    }

    .mv__bg img {
        width: calc(100% + 10px);
        max-width: none;
        margin-left: -5px;
        height: 100%;
        object-fit: cover;
        object-position: center bottom;
    }

    .mv__bg-sp-second {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        animation: mvCrossfadeSpSecond 14s ease-in-out infinite;
    }

    @keyframes mvCrossfadeSpSecond {

        0%,
        35.71% {
            opacity: 0;
        }

        50%,
        85.71% {
            opacity: 1;
        }

        100% {
            opacity: 0;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .mv__bg-sp-second {
            animation: none;
        }
    }

    /* ===== SVGの波（全4種）: SPでもPCと同じ比率を保つ ===== */
    .message__wave {
        height: 8.333vw;
    }

    .main {
        margin-top: calc(100vh + 100px);
        margin-top: calc(100svh + 100px);
        margin-top: calc(var(--vp-h, 100svh) + 100px);
    }

    .message {
        --wave-lift: 27.667vw;
    }

    .message__wave {
        top: calc(-8.333vw - var(--wave-lift));
    }

    .message__wave--contact {
        top: 0;
    }

    html {
        overflow-x: hidden;
    }

    /* ===== メニュー: SPは2×2グリッドで画面内に収める ===== */
    .menu {
        padding: 120px 0;
    }

    .menu__inner {
        width: 90%;
    }

    .inner__small {
        width: 85%;
    }

    .menu__row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 45px;
        padding-top: 60px;
    }

    .menu__contents--sp-only {
        display: block;
    }

    .menu__button-arrow {
        display: none;
    }

    .menu__image img {
        width: 100%;
        height: auto;
        aspect-ratio: 312 / 414;
        object-fit: cover;
    }

    .menu__background-box {
        width: 100%;
        left: -10px;
        bottom: -10px;
    }

    .message__title {
        font-size: 18px;
    }

    .message__text {
        font-size: 16px;
        line-height: 80px;
        will-change: mask-image;
    }

    /* ガイドセクション */

    .swiper-slide img {
        height: 140px;
    }

    .slide3 .swiper-slide img {
        height: 170px;
    }

    .guide__reveal-inner {
        --reveal-shift: 300px;
    }

    .guide__inner {
        width: 80%;
    }
    .guide__reveal+.guide__contents .guide__image-container {
        padding-top: 100px;
    }

    .guide__contents {
        flex-direction: column;
        width: 100%;
    }

    .guide__image-container {
        width: 100%;
    }

    .guide__text-container {
        width: 100%;
        padding: 0;
    }

    .guide__text-title {
        font-size: 18px;
        padding-top: 50px;
        font-weight: 700;
    }

    .guide__text {
        padding-top: 20px;
        font-size: 16px;
    }

    .guide__button-text {
        font-size: 12px;

    }

    .guide__button-arrow {
        width: 150px;
        height: 20px;
    }

    .guide__button {
        padding-top: 40px;
    }

    .instagram img {
        width: 30px;
        height: 30px;
    }

    .instagram {
        padding-top: 50px;
    }

    /* メニューセクション */

    .menu__title {
        font-size: 24px;
    }

    .menu__category {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .menu__text {
        font-size: 12px;
    }

    @media (max-width: 406px) {
        .menu__text {
            font-size: 10px;
        }
    }

    .menu__text-container {
        padding: 0 10px 14px 10px;
    }

    /* テイクアウト */

    .takeout__inner {
        width: 94.44%;
        margin: 0 auto;
    }

    .takeout__contents {
        flex-direction: column;
    }

    .takeout__img-container {
        margin-bottom: 50px;
        margin-left: 20px;
    }

    .takeout__background-box {
        left: -10px;
        bottom: -10px;
    }

    .takeout__title {
        font-size: 28px;
    }

    .takeout__text {
        font-size: 13px;
    }

    .takeout__text-container {
        width: auto;
        margin: 0 0 0 20px;
    }

    .takeout {
        padding-top: 200px;
    }

    /* アクセスセクション */
    .access__title {
        font-size: 20px;

    }

    .access__contents {
        flex-direction: column;
        padding-top: 70px;
    }

    .access__text-container {
        margin: 0 0 0 20px;
    }

    .access__text-title {
        font-size: 24px;
        line-height: 180%;
        margin-bottom: 30px;
    }

    .access__img-container {
        margin-bottom: 50px;
    }

    .access__background-box {
        left: -10px;
        bottom: -10px;
    }

    .access__text {
        font-size: 16px;
    }

    .access__text th {
        padding: 6px 0;
        width: fit-content;
        white-space: nowrap;
    }

    .access {
        padding-bottom: 100px;
        padding-top: 200px;
    }

    /* お問い合わせセクション */
    .contact__title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .contact__text {
        line-height: 180%;
        font-size: 14px;
        padding-bottom: 10px;
    }

    .contact__text-container {
        padding-top: 50px;
    }

    .contact {
        padding-bottom: 200px;
    }

    .contact__bg img {
        width: 140%;
        max-width: none;
        transform: translateX(0);
    }

    .contact__bg.is-visible img {
        animation: contact-slide 15s ease-out forwards;
    }

}

@keyframes contact-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-28.57%);
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .contact__bg.is-visible img {
        animation: none;
    }
}
