/* Base Styles */
:root {
    --color-primary: #E5E5E5;
    --color-secondary: #F5F5F5;
    --color-accent: #5380B0;
    --color-dark: #3A506B;
    --color-light: #FFFFFF;
    --font-sans: 'Montserrat', 'Zen Kaku Gothic New', sans-serif;
    --font-serif: 'Zen Kaku Gothic New', sans-serif;
    --font-display: 'Great Vibes', 'Montserrat', cursive;
    --font-fv-display: 'Great Vibes', cursive;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-serif);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 2.2;
    letter-spacing: 0.1em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

main,
section {
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
iframe {
    max-width: 100%;
}

/* Typography */
.font-display {
    font-family: var(--font-display);
    letter-spacing: normal !important;
    text-transform: none !important;
}

.font-display-italic {
    font-family: var(--font-display);
    font-style: normal;
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* Image Masking Shapes */
.arch-img {
    border-radius: 50vw 50vw 0 0;
    overflow: hidden;
}

/* Minimalist Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(74, 66, 61, 0.1);
    border-bottom: 1px solid rgba(74, 66, 61, 0.1);
    display: flex;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee 40s linear infinite;
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: normal;
    color: var(--color-dark);
    opacity: 0.5;
    text-transform: none;
}

.marquee-content span {
    margin-right: 3rem;
}

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

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

/* Layout Utilities */
.minimal-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    margin-bottom: 6rem;
}

.minimal-grid-img {
    width: 100%;
    position: relative;
}

.minimal-grid-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.minimal-grid-text {
    width: 100%;
    padding: 3rem 1.5rem;
    background: var(--color-light);
}

@media (min-width: 768px) {
    .minimal-grid {
        justify-content: space-between;
        margin-bottom: 10rem;
    }

    .minimal-grid-img {
        width: 50%;
    }

    .minimal-grid-text {
        width: 45%;
        padding: 0;
        background: transparent;
    }

    .overlap-box {
        background: var(--color-light);
        padding: 4rem;
        margin-left: -15%;
        margin-top: 5rem;
        z-index: 10;
        position: relative;
        border: 1px solid var(--color-secondary);
    }
}

/* Buttons */
.btn-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border-radius: 9999px;
    font-size: 0.9rem;
    border: 1px solid var(--color-accent);
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    /* ボタン内のテキスト改行を防止 */
}

.btn-filled:hover {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background-color: #FFFFFF;
    color: var(--color-accent);
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border-radius: 9999px;
    font-size: 0.9rem;
    border: 1px solid var(--color-accent);
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    /* ボタン内のテキスト改行を防止 */
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Sections */
.reservation-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
    background: #F0F6FB;
    border-top: 1px solid rgba(51, 51, 51, 0.05);
    border-bottom: 1px solid rgba(51, 51, 51, 0.05);
}

.reservation-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.4;
    color: var(--color-accent);
    letter-spacing: 0.12em;
}

.reservation-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.reservation-buttons a {
    min-width: min(100%, 18rem);
    padding: 1.1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.18em;
}

@media (min-width: 768px) {
    .reservation-buttons {
        flex-direction: row;
    }
}

/* Modal & Hamburger */
.hamburger-menu {
    position: fixed;
    inset: 0;
    background: var(--color-light);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-menu.active {
    transform: translateY(0);
}

.hamburger-menu a {
    color: var(--color-dark);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fv-fade-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fvFadeTwo 12s infinite;
}

.fv-fade-img:nth-child(1) {
    animation-delay: 0s;
}

.fv-fade-img:nth-child(2) {
    animation-delay: 6s;
}

@keyframes fvFadeTwo {
    0% {
        opacity: 0;
    }

    8.33% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    58.33% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* About Slide Animation */
.about-fade-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: aboutFadeThree 12s infinite;
}

.about-fade-img:nth-child(1) {
    animation-delay: 0s;
}

.about-fade-img:nth-child(2) {
    animation-delay: 4s;
}

.about-fade-img:nth-child(3) {
    animation-delay: 8s;
}

@keyframes aboutFadeThree {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    33.33% {
        opacity: 1;
    }

    43.33% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.voice-body {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.voice-body.collapsed {
    max-height: 100px;
}

.voice-body.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #FFFFFF);
    pointer-events: none;
}

.voice-read-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--color-accent);
    cursor: pointer;
    letter-spacing: 0.1em;
    background: none;
    border: none;
    padding: 0;
}

/* Clean Look Adjustments */
body>.fixed.inset-0.pointer-events-none {
    background: #FFFFFF;
}

main,
#fv,
#about,
#menu,
#voice {
    background: #FFFFFF;
}

/* =============================================
   固定背景 - PC: clip-path+fixed, SP: ::before
   ============================================= */
.fixed-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
    z-index: 0;
    pointer-events: none;
}

.fixed-bg-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

/* Background Images */
.bg-service-image {
    background-image: url('img/spbg.png');
}

@media (min-width: 768px) {
    .bg-service-image {
        background-image: url('img/bg.png');
    }
}

.bg-menu-image {
    background-image: url('img/spbg.png');
}

@media (min-width: 768px) {
    .bg-menu-image {
        background-image: url('img/bg.png');
    }
}

/* =============================================
   SP固定背景 (iOS/Android Safari対応)
   ::before で position:fixed を疑似要素に実装
   ============================================= */
@media (max-width: 767px),
(max-width: 1024px) and (hover: none) and (pointer: coarse) {

    /* fixed-bg-container/inner は非表示にしてSP側はセクション::beforeで処理 */
    .fixed-bg-container {
        display: none;
    }

    /* --- SERVICE セクション --- */
    #service {
        position: relative;
        background: none;
        isolation: isolate;
        -webkit-clip-path: inset(0);
        clip-path: inset(0);
    }

    #service::before {
        content: '';
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 0;
        pointer-events: none;
        background-image: url('img/spbg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    #service>* {
        position: relative;
        z-index: 1;
    }

    /* --- MENU セクション --- */
    #menu {
        position: relative;
        background: none;
        isolation: isolate;
        -webkit-clip-path: inset(0);
        clip-path: inset(0);
    }

    #menu::before {
        content: '';
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 0;
        pointer-events: none;
        background-image: url('img/spbg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    #menu>* {
        position: relative;
        z-index: 1;
    }
}

/* =============================================
   ライトボックス（Menu Book拡大表示）
   ============================================= */
#lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox-overlay.active {
    display: flex;
}

#lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#lightbox-overlay button {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* =============================================
   SP追従CTA バー
   ============================================= */
#sp-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex;
    background: #fff;
    border-top: 1px solid rgba(83, 128, 176, 0.15);
    box-shadow: 0 -4px 20px rgba(83, 128, 176, 0.10);
}

@media (min-width: 1024px) {
    #sp-cta-bar {
        display: none;
    }
}

#sp-cta-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    font-size: 10px;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--color-accent);
    border-right: 1px solid rgba(83, 128, 176, 0.1);
    transition: background 0.2s;
}

#sp-cta-bar a:last-child {
    border-right: none;
}

#sp-cta-bar a i {
    font-size: 18px;
}

#sp-cta-bar a:hover {
    background: var(--color-light);
}

#sp-cta-bar a.cta-main {
    background: var(--color-accent);
    color: #fff;
}

#sp-cta-bar a.cta-main:hover {
    background: var(--color-dark);
}
