:root {
    --c-main: #f7f3ed;
    --c-wood: #e0d6c8;
    --c-wood-dark: #8c7b6c;
    --c-text: #666666;
    --c-text-dark: #333333;
    --c-white: #ffffff;
    --font-main: 'Zen Maru Gothic', sans-serif;
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--c-main);
    color: var(--c-text);
    line-height: 1.8;
    overflow-x: hidden;
    max-width: 100vw;
    /* Simulate texture background */
    background-image: url('../assets/images/texture_washi.png');
    background-blend-mode: multiply;
}

h1,
h2,
h3,
h4 {
    color: var(--c-text-dark);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Header */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    /* Align to right */
    align-items: center;
    background: transparent;
    transition: background 0.3s ease;
}

.lang-switcher {
    position: relative;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    color: #fff;
    font-size: 0.9rem;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.lang-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-list {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lang-label {
    font-weight: 500;
    margin-right: 0.5rem;
    opacity: 0.9;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-btn.active,
.lang-btn:hover {
    color: #fff;
    transform: scale(1.1);
    font-weight: 700;
}

.lang-switcher .divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Mobile Language Switcher Styles */
@media (max-width: 768px) {
    .lang-switcher {
        padding: 8px 16px;
        border-radius: 20px;
    }

    .lang-toggle {
        display: block;
        padding-right: 20px;
        position: relative;
    }

    .lang-toggle::after {
        content: '▼';
        font-size: 0.6em;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.8;
    }

    .lang-list {
        display: none;
        position: absolute;
        top: 120%;
        right: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        border-radius: 12px;
        min-width: 140px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .lang-list.active {
        display: flex;
    }

    .lang-list .divider,
    .lang-list .lang-label {
        display: none;
    }

    .lang-btn {
        padding: 8px 12px;
        width: 100%;
        text-align: left;
        color: rgba(255, 255, 255, 0.8);
    }

    .lang-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
}

/* Booking Button (Now in Hero) */
/* (Block moved to bottom of file for clearer override, removing duplicate if any) */

/* #booking-btn style is defined in Layout Adjustment section */

/* Specific shake animation class triggers via JS */
.furo-oke-icon.shake {
    animation: shake-hard 0.8s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake-hard {

    10%,
    90% {
        transform: translate3d(-2px, 0, 0) rotate(-5deg);
    }

    20%,
    80% {
        transform: translate3d(4px, 0, 0) rotate(5deg);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-6px, 0, 0) rotate(-5deg);
    }

    40%,
    60% {
        transform: translate3d(6px, 0, 0) rotate(5deg);
    }
}

/* =========================================
   Fusuma Entrance Animation
   ========================================= */
#fusuma-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    /* Let scroll pass through to body/proxy */
    overflow: hidden;
}

#fusuma-overlay .fusuma-layers {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 2000px;
}

/* Tatami Floor */
#fusuma-overlay .tatami-floor {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg,
            rgba(139, 115, 85, 0.5) 0%,
            rgba(139, 115, 85, 0.8) 100%);
    z-index: 100;
}

#fusuma-overlay .tatami-floor::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    top: 0;
    background: repeating-linear-gradient(90deg,
            #1a1410 0px,
            #1a1410 2px,
            transparent 2px,
            transparent 100px,
            #1a1410 100px);
}

/* Layers */
.fusuma-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.fusuma-layer.layer-1 {
    z-index: 40;
}

.fusuma-layer.layer-2 {
    z-index: 30;
}

.fusuma-layer.layer-3 {
    z-index: 20;
}

.fusuma-layer.layer-4 {
    z-index: 10;
}

/* Panels */
.fusuma-pair {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85%;
    display: flex;
    gap: 4px;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

.fusuma-panel {
    position: relative;
    flex: 1;
    height: 100%;
    background-color: #f0e6d2;
    background-image: url('../assets/images/fusuma_design.png');
    /* Adjusted path */
    background-size: 400% 100%;
    background-repeat: no-repeat;
    border: 12px solid #2d1f15;
    box-shadow:
        inset 0 0 80px rgba(139, 90, 60, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.4);
    transform-origin: center center;
    will-change: transform;
}

.fusuma-panel.left {
    border-right: 6px solid #2d1f15;
    background-position: 33.33% 0;
}

.fusuma-panel.right {
    border-left: 6px solid #2d1f15;
    background-position: 66.66% 0;
}

/* Washi Texture Overlay */
.washi-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.3;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Hikite (Handle) */
.hikite {
    position: absolute;
    top: 48%;
    width: 55px;
    height: 55px;
    background: radial-gradient(circle at 35% 35%,
            #8b7355 0%,
            #6b573d 50%,
            #4a3828 100%);
    border: 4px solid #2d1f15;
    border-radius: 50%;
    box-shadow:
        inset 3px 3px 8px rgba(139, 115, 85, 0.4),
        inset -3px -3px 8px rgba(0, 0, 0, 0.6),
        0 6px 20px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.fusuma-panel.left .hikite {
    right: 5%;
}

.fusuma-panel.right .hikite {
    left: 5%;
}

/* Wood Frame */
.wood-frame {
    position: absolute;
    background: linear-gradient(135deg, #1a1410 0%, #2d1f15 50%, #1a1410 100%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.wood-frame.top {
    top: -12px;
    left: -12px;
    right: -12px;
    height: 12px;
}

.wood-frame.bottom {
    bottom: -12px;
    left: -12px;
    right: -12px;
    height: 12px;
}

.wood-frame.left {
    left: -12px;
    top: -12px;
    bottom: -12px;
    width: 12px;
}

.wood-frame.right {
    right: -12px;
    top: -12px;
    bottom: -12px;
    width: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .fusuma-pair {
        width: 95%;
        height: 75%;
    }

    .fusuma-panel {
        border-width: 8px;
    }

    .hikite {
        width: 40px;
        height: 40px;
    }
}

.furo-oke-icon {
    position: relative;
    width: 100px;
    /* Increased to accommodate button size */
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.furo-oke-icon img {
    width: 100%;
    height: auto;
    /* User Requirement: Add shadow to the illustration itself */
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
    transition: filter 0.3s ease;
}

#booking-btn:hover .furo-oke-icon img {
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
}

.booking-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #5d4037;
    letter-spacing: 0.05em;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
}

#booking-btn:hover .booking-text {
    opacity: 1;
    /* Show on hover */
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 2rem;
    margin-top: 1rem;
    letter-spacing: 0.2em;
    color: var(--c-wood-dark);
}

.loader-sub {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Steam Animation */
.steam-path {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: rise 2s infinite linear;
    opacity: 0;
}

.p1 {
    animation-delay: 0s;
}

.p2 {
    animation-delay: 0.5s;
}

.p3 {
    animation-delay: 1s;
}

@keyframes rise {
    0% {
        stroke-dashoffset: 20;
        opacity: 0;
        transform: translateY(10px);
    }

    50% {
        opacity: 0.6;
    }

    100% {
        stroke-dashoffset: -20;
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Hero Slideshow & Background */
#hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Extra height for parallax */
    z-index: -2;
    /* Behind overlay */
    overflow: hidden;
}

#hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
    /* Hardware acceleration to prevent blur */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

#hero-slideshow .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
    /* Above slideshow, below content */
    pointer-events: none;
    backdrop-filter: blur(0px);
    /* Removed blur for clearer photos */
}

.hero-content {
    color: var(--c-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-5vh);
    /* Shift entire block up by 5% of viewport height */
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-logo {
    max-width: 500px;
    /* Reduced from 600px */
    width: 60%;
    /* Reduced from 80% */
    height: auto;
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) brightness(100) grayscale(100%);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    /* Slightly reduced padding */
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: #fff;
    color: var(--c-wood-dark);
}

.btn-solid {
    background: #fff;
    color: var(--c-wood-dark);
    border: 1px solid #fff;
}

.btn-solid:hover {
    background: var(--c-wood);
    color: #fff;
    border-color: var(--c-wood);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

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

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Scroll Indicator */
/* Scroll Indicator Removed */

/* Concept Section */
.section-padding {
    padding: 8rem 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.concept-text {
    text-align: left;
    padding: 2rem;
}

.concept-text h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--c-wood-dark);
}

.concept-image-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: auto;
    min-height: 500px;
    /* Auto height to match text section, minimum 500px */
}

.concept-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.concept-image-grid img:hover {
    transform: scale(1.03);
    z-index: 10;
}

/* Staggered layout effect */
.concept-image-grid .img-1 {
    transform: translateY(0);
}

.concept-image-grid .img-2 {
    transform: translateY(0);
}

.concept-image-grid .img-3 {
    transform: translateY(0);
}

.concept-image-grid .img-4 {
    transform: translateY(0);
}

/* Responsive Grid adjustment */
@media (max-width: 768px) {
    .concept-image-grid {
        height: auto;
        gap: 10px;
    }

    .concept-image-grid .img-2,
    .concept-image-grid .img-3 {
        transform: none;
        /* Reset stagger on mobile */
    }

    /* Adjust image positioning on mobile to show more context */
    .concept-image-grid .img-1 {
        object-position: 70% center;
        /* Shift right to show staff member */
    }

    .concept-image-grid .img-2 {
        object-position: 70% center;
        /* Shift right to show logo */
    }

    .concept-image-grid .img-4 {
        object-position: 30% center;
        /* Shift left to show more of feet/toes */
    }
}


/* Mobile */
@media (max-width: 768px) {

    /* Fix hero section height for mobile - use dvh to account for browser UI */
    #hero {
        height: 100dvh;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    /* Fix slideshow height on mobile - remove extra height that causes spacing */
    #hero-slideshow {
        height: 100%;
        background-color: var(--c-main);
        /* Fill gaps with site background color */
    }

    /* Center images on mobile - show full-screen image */
    #hero-slideshow .slide {
        height: 100%;
        background-size: cover;
        /* Show full-screen image */
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    /* Consistent container padding for all mobile sections */
    .container {
        width: 100%;
        padding: 0 1rem;
    }

    .concept-grid {
        grid-template-columns: 1fr;
    }

    .concept-text {
        order: 2;
        padding: 0;
        margin-top: 2rem;
    }

    /* Center the concept images grid perfectly - prevent overflow on mobile */
    .concept-image-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 10px;
        margin: 0 auto;
        width: calc(100% - 2rem);
        max-width: 100%;
        /* Ensure the grid center point (gap between images) aligns with viewport center */
        justify-items: stretch;
        align-items: stretch;
    }

    /* Better line breaks for mobile heading */
    .concept-text h3 {
        font-size: 1.5rem;
        line-height: 1.7;
        word-break: keep-all;
        overflow-wrap: break-word;
        margin-bottom: 1.5rem;
    }

    .concept-text h3 br {
        display: block;
    }

    /* Mobile paragraph styling for better readability */
    .concept-text p {
        font-size: 0.9rem;
        line-height: 1.9;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .concept-text p br {
        display: block;
    }

    /* Lighter steam effect on mobile */
    .steam-layer {
        opacity: 0.10;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Experience */
.bg-wood-light {
    background-color: #fcfaf7;
    /* Slightly lighter for contrast */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--c-wood-dark);
    letter-spacing: 0.1em;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.step-card {
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--c-wood);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: #fff;
}

.step-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--c-wood-dark);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--c-text);
}

/* Menu */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--c-wood);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.menu-header-text {
    flex: 1;
}

.menu-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    color: var(--c-wood-dark);
}

.en-title {
    font-size: 0.8rem;
    color: var(--c-text);
    letter-spacing: 0.05em;
}

.menu-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.menu-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--c-text-dark);
}



.menu-row span:last-child {
    font-weight: 500;
}

/* Main Content Wrapper */
main {
    position: relative;
    z-index: 1;
}

/* Steam Parallax */
#steam-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Interact with dvh for mobile address bars */
    height: 100dvh;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
    mix-blend-mode: screen;

    /* Interactive Erasure Mask */
    --mouse-x: 50%;
    --mouse-y: 50%;

    /* Radial gradient: Transparent at mouse (hole), Visible elsewhere - Softer, realistic fade */
    -webkit-mask-image: radial-gradient(circle 600px at var(--mouse-x) var(--mouse-y), transparent 5%, rgba(0, 0, 0, 0.1) 20%, black 80%);
    mask-image: radial-gradient(circle 600px at var(--mouse-x) var(--mouse-y), transparent 5%, rgba(0, 0, 0, 0.1) 20%, black 80%);

    /* Ensure transitions if needed (might trail, but updates are instant) */
    transition: opacity 1s ease;
    /* Hardware acceleration to prevent disappearance on long scrolls */
    transform: translateZ(0);
}

@media (max-width: 768px) {
    #steam-container {
        /* Smaller mask for mobile so steam is visible */
        -webkit-mask-image: radial-gradient(circle 250px at var(--mouse-x) var(--mouse-y), transparent 0%, rgba(0, 0, 0, 0.1) 15%, black 60%);
        mask-image: radial-gradient(circle 250px at var(--mouse-x) var(--mouse-y), transparent 0%, rgba(0, 0, 0, 0.1) 15%, black 60%);
    }
}

/* Booking Layout Adjustment */
.hero-booking {
    margin-top: 1rem;
    /* Reduced top margin since it's now under logo */
    margin-bottom: 2rem;
    /* Space before action buttons */
    display: flex;
    /* Ensure it's centered if explicit width isn't set, though container is text-center usually */
    justify-content: center;
    position: relative;
    z-index: 20;
    width: 100%;
    /* Ensure full width for centering */
}

/* Floating Booking Container */
#floating-booking-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Space between button and bubble */
}

#booking-btn {
    position: relative;
    /* Reset from previous */
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

#booking-btn:hover {
    transform: scale(1.05);
}

.booking-speech-bubble {
    background: #fff;
    color: var(--c-wood-dark);
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    white-space: nowrap;
    animation: fadeInBubble 1s ease-out 1s forwards;
    opacity: 0;
}

/* Arrow for the speech bubble (pointing left to the button) */
.booking-speech-bubble::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    border-width: 8px 8px 8px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

@keyframes fadeInBubble {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#steam-container:not(.interactive) {
    --mask-radius: 0px;
}

.steam-layer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('../assets/images/steam_overlay.png');
    background-size: cover;
    background-repeat: repeat;
    opacity: 0.18;
    /* Reduced from 0.25 */
    mix-blend-mode: screen;
    will-change: transform;

    /* Repulsion Effect: Shift based on mouse position relative to center */
    /* calc( (50% - var(--mouse-x)) * repulsion_factor ) */
    /* Since vars are %, we need to convert to pixels roughly. */
    /* We use a fallback of 50% for initial state */
    --x-offset: calc((50% - var(--mouse-x, 50%)) * 0.2);
    --y-offset: calc((50% - var(--mouse-y, 50%)) * 0.2);
    transform: translate3d(var(--x-offset), var(--y-offset), 0);
    transition: transform 2s ease-out;
    /* Slower follow: 0.8s -> 2s */
}

.layer-1 {
    z-index: 1;
    opacity: 0.18;
    /* Reduced from 0.25 (User asked for thinner) */
    animation: mistFlow 30s linear infinite;
    /* Speed up: 60s -> 30s */

    /* Stronger repulsion for closer layer */
    --x-offset: calc((50% - var(--mouse-x, 50%)) * 0.3);
    --y-offset: calc((50% - var(--mouse-y, 50%)) * 0.3);
}

.layer-2 {
    z-index: 2;
    opacity: 0.1;
    /* Reduced from 0.15 */
    transform: scale(1.5);
    /* Note: scale overwrites transform, so we need to combine */
    transform: scale(1.5) translate3d(var(--x-offset), var(--y-offset), 0);

    animation: mistFlow 40s linear infinite reverse;
    /* Speed up: 80s -> 40s */

    /* Weaker repulsion for far layer */
    --x-offset: calc((50% - var(--mouse-x, 50%)) * 0.15);
    --y-offset: calc((50% - var(--mouse-y, 50%)) * 0.15);
}



@keyframes mistFlow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 50%;
    }
}


/* Gallery */
.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 0 5% 4rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .gallery-scroll {
        scroll-snap-type: none;
        scroll-behavior: auto;
        /* Ensure JS can scroll smoothly frame-by-frame */
        /* Disable snap for smooth auto-scroll flow */
    }
}

.gallery-item {
    flex: 0 0 350px;
    height: 450px;
    scroll-snap-align: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.review-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.review-card p {
    font-size: 1.2rem;
    font-family: serif;
    /* Mincho style for quotes */
    margin-bottom: 1.5rem;
    color: var(--c-wood-dark);
}

.review-card span {
    font-size: 0.9rem;
    color: var(--c-text);
}

/* Access */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.access-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--c-wood-dark);
}

.access-divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

.access-detail {
    margin-bottom: 1.5rem;
}

.access-detail strong {
    display: block;
    font-size: 0.9rem;
    color: var(--c-wood-dark);
    margin-bottom: 0.2rem;
}

.phone-number {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.access-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-outline-dark {
    border: 1px solid var(--c-wood-dark);
    color: var(--c-wood-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
}

.btn-outline-dark:hover {
    background: var(--c-wood-dark);
    color: #fff;
}

.access-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    padding: 2rem 0;
    background: var(--c-wood-dark);
    color: #fff;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .access-grid {
        grid-template-columns: 1fr;
    }

    .access-map {
        height: 300px;
        order: -1;
    }

    .gallery-item {
        flex: 0 0 80vw;
        height: 60vh;
    }
}

/* Mic Toggle Button */
#floating-booking-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
}

#mic-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    padding: 0;
    margin-bottom: 5px;
    /* Alignment */
}

#mic-toggle:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

#mic-toggle.active {
    background: rgba(220, 20, 60, 0.7);
    /* Recording indicator color */
    border-color: rgba(255, 255, 255, 0.6);
    animation: pulse-mic 2s infinite;
}

#mic-toggle .mic-icon {
    font-size: 1.2rem;
    margin-bottom: -2px;
}

#mic-toggle .mic-text {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

@keyframes pulse-mic {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 20, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 20, 60, 0);
    }
}

/* Steam Fade Effect */
#steam-container {
    transition: opacity 1s ease;
    opacity: 1;
    /* Default visible */
}

#steam-container.faded {
    opacity: 0;
}

/* Override existing #booking-btn fixed positioning if container is used */
#booking-btn {
    position: static !important;
    /* Managed by container now */
    margin: 0 !important;
}

/* Mobile Adjustment for Mic */
@media (max-width: 768px) {
    #floating-booking-container {
        bottom: 1.5rem;
        left: 1.5rem;
        gap: 0.5rem;
    }

    #mic-toggle {
        width: 44px;
        height: 44px;
    }
}

/* Schedule Section */
#schedule {
    background-color: var(--c-main);
    position: relative;
}

.schedule-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px dashed var(--c-wood);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-wood-dark);
    width: 100px;
}

.schedule-content {
    flex: 1;
    font-size: 1.1rem;
    color: var(--c-text-dark);
    text-align: left;
    padding-left: 2rem;
}

@media (max-width: 768px) {
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .schedule-content {
        padding-left: 0;
    }
}

/* Update Fusuma Styles from Preview */
.opening-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, #2a2018 0%, #3d2f25 50%, #2a2018 100%);
    z-index: 50;
    /* Ensure on top */
}

.tatami-floor {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, rgba(139, 115, 85, 0.3) 0%, rgba(139, 115, 85, 0.5) 100%);
    z-index: 1;
}

.tatami-floor::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    top: 0;
    background: repeating-linear-gradient(90deg, #1a1410 0px, #1a1410 2px, transparent 2px, transparent 100px, #1a1410 100px);
}

.fusuma-layers {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 2000px;
    z-index: 10;
}

.fusuma-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.fusuma-layer.layer-1 {
    z-index: 40;
}

.fusuma-layer.layer-2 {
    z-index: 30;
}

.fusuma-layer.layer-3 {
    z-index: 20;
}

.fusuma-layer.layer-4 {
    z-index: 10;
}

.fusuma-pair {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85%;
    display: flex;
    gap: 4px;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

.fusuma-panel {
    position: relative;
    flex: 1;
    height: 100%;
    background-color: #f0e6d2;
    background-image: url('../assets/images/fusuma_design.png');
    background-size: 400% 100%;
    background-repeat: no-repeat;
    border: 12px solid #2d1f15;
    box-shadow: inset 0 0 80px rgba(139, 90, 60, 0.15), 0 20px 60px rgba(0, 0, 0, 0.4);
    transform-origin: center center;
    will-change: transform;
}

.fusuma-panel.left {
    border-right: 6px solid #2d1f15;
    background-position: 33.33% 0;
}

.fusuma-panel.right {
    border-left: 6px solid #2d1f15;
    background-position: 66.66% 0;
}

.washi-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.3;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hikite {
    position: absolute;
    top: 48%;
    width: 55px;
    height: 55px;
    background: radial-gradient(circle at 35% 35%, #8b7355 0%, #6b573d 50%, #4a3828 100%);
    border: 4px solid #2d1f15;
    border-radius: 50%;
    box-shadow: inset 3px 3px 8px rgba(139, 115, 85, 0.4), inset -3px -3px 8px rgba(0, 0, 0, 0.6), 0 6px 20px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.fusuma-panel.left .hikite {
    right: 5%;
}

.fusuma-panel.right .hikite {
    left: 5%;
}

.wood-frame {
    position: absolute;
    background: linear-gradient(135deg, #1a1410 0%, #2d1f15 50%, #1a1410 100%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.wood-frame.top {
    top: -12px;
    left: -12px;
    right: -12px;
    height: 12px;
}

.wood-frame.bottom {
    bottom: -12px;
    left: -12px;
    right: -12px;
    height: 12px;
}

.wood-frame.left {
    left: -12px;
    top: -12px;
    bottom: -12px;
    width: 12px;
}

.wood-frame.right {
    right: -12px;
    top: -12px;
    bottom: -12px;
    width: 12px;
}

.main-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    opacity: 0;
    will-change: opacity;
    background: transparent;
    /* Removed dark overlay to show through if needed, but keeping text styles */
}

.content-inner {
    text-align: center;
    padding: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid #8b7355;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.content-title {
    font-size: 72px;
    color: #f0e6d2;
    margin-bottom: 30px;
    letter-spacing: 12px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.content-subtitle {
    font-size: 28px;
    color: #d4b896;
    letter-spacing: 6px;
    margin-bottom: 40px;
}

.content-description {
    font-size: 18px;
    color: #c9b899;
    line-height: 2;
    max-width: 600px;
}

@media (max-width: 768px) {
    .fusuma-pair {
        width: 95%;
        height: 75%;
    }

    .fusuma-panel {
        border: 8px solid #2d1f15;
    }

    .hikite {
        width: 40px;
        height: 40px;
    }

    .content-title {
        font-size: 48px;
        letter-spacing: 8px;
    }

    .content-subtitle {
        font-size: 20px;
        letter-spacing: 4px;
    }
}