/* ========================================
   MOBILE CSS - TIME LUXE 三軒茶屋
   Overrides pc.css at max-width: 767px
   Design: vertical flow, full-width imagery, 
   intimate reading experience
======================================== */

/* ── Variables ── */
:root {
    --header-h: 60px;
    --content-h: calc(100vh - var(--header-h));
    --box-w: 45vw;
    --box-h: 7vh;
    --sp-pad: 6vw;
}

/* ── Base ── */
html, body { overflow: hidden; }

/* ── Snap off on mobile - natural scroll ── */
.snap-container {
    height: 100vh; overflow-y: auto; overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   NAVIGATION
======================================== */
nav {
    padding: 0.7rem var(--sp-pad);
    right: 0;
    background: rgba(26, 26, 26, 0.92);
}
nav.scrolled {
    padding: 0.5rem var(--sp-pad);
    background: rgba(26, 26, 26, 0.97);
}
.logo { height: 32px; }
.nav-links { display: none; }
.hamburger { display: flex; }
.lang-switch { padding: 0.25rem 0.5rem; gap: 0.25rem; }
.lang-option { font-size: 0.65rem; padding: 2px 6px; }
.lang-divider { font-size: 0.65rem; }

/* ── Mobile Menu ── */
.mobile-menu {
    display: none;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column; align-items: center;
    justify-content: center; gap: 2.5rem; z-index: 999;
}
.mobile-menu.active { display: flex; }
.mobile-nav-link {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.1rem; color: var(--text-primary);
    text-decoration: none; letter-spacing: 0.2em;
    opacity: 0.85;
}

/* ========================================
   HERO
======================================== */
.hero {
    height: calc(var(--real-vh, 1vh) * 100 - var(--header-h));
    min-height: 0;
    margin-top: var(--header-h);
}
.hero-content { gap: 0.4rem; transform: translateY(-1vh); pointer-events: none; }
.hero-subtitle { font-size: 0.8rem; letter-spacing: 0.15em; }
.hero-title { font-size: 0.7rem; }
.hero-logo { height: 18vh; max-height: 140px; }
.hero-logo img { height: 100%; width: auto; }
.hero-indicators { display: none !important; }
.hero-indicator { width: 6px; height: 6px; pointer-events: auto; }

/* ========================================
   CONCEPT
======================================== */
.concept {
    height: auto; min-height: 0;
    padding: 0; overflow: visible;
    background: #fff;
}
.concept-grid {
    max-width: 100%; height: auto;
    display: flex; flex-direction: column-reverse;
    gap: 0;
}
.concept-image-wrapper {
    position: relative; right: auto; bottom: auto;
    width: 100%; height: 45vw;
    overflow: hidden;
    opacity: 1; transform: none;
}
.concept-image-wrapper img {
    width: 100%; height: auto; display: block;
    object-fit: cover;
}
.concept-text-wrapper {
    position: relative; top: auto; left: auto;
    width: 100%; height: auto;
    padding: 0 var(--sp-pad);
    margin: 0;
}
.concept-label { /* handled by common */ }
.concept-label::before { display: none !important; }
.concept-text { font-size: 0.82rem; line-height: 2.1; }
.concept-line { opacity: 1; transform: none; }

/* ========================================
   PRIVATE SPACE
======================================== */
.private-space {
    height: auto; min-height: 0;
    padding: 0; overflow: visible;
    background: #fff;
}
.private-grid {
    max-width: 100%; height: auto;
    display: flex; flex-direction: column;
    gap: 0;
}
.private-image-wrapper {
    position: relative; left: auto; bottom: auto;
    width: 100%; height: 50vw;
    overflow: hidden;
    opacity: 1; transform: none;
}
.private-image-wrapper img {
    width: 100%; height: auto; display: block;
    object-fit: cover;
}
.private-text-wrapper {
    position: relative; top: auto; right: auto;
    width: 100%; height: auto;
    padding: 0 var(--sp-pad);
    margin: 0;
    opacity: 1; transform: none;
}
.private-label { /* handled by common */ }
.private-label::before { display: none !important; }
.private-text { font-size: 0.82rem; line-height: 2.1; padding-left: 0; text-align: center; }

/* ========================================
   ROOM INTRO
======================================== */
.room-frame {
    height: auto; min-height: 0;
    padding: 1.5rem var(--sp-pad);
    background: #555;
    display: block;
}
.room-intro-bg {
    position: relative; top: auto; left: auto; right: auto; bottom: auto;
    display: flex; flex-direction: column; gap: 1rem;
}
.room-intro-img-1 {
    position: relative; top: auto; left: auto;
    width: 75%; height: auto;
}
.room-intro-img-1 img { width: 100%; height: auto; }
.room-intro-right {
    position: relative; top: auto; left: auto;
    width: 100% !important;
    padding: 0;
}
.room-intro-title { /* handled by common */ }
.room-intro-title::before { display: none !important; }
.room-intro-desc {
    font-size: 0.82rem; padding-left: 0 !important;
    margin-top: 0.8rem; text-align: center;
}
.room-intro-img-2 {
    position: relative; top: auto; left: auto; bottom: auto;
    width: 75%; height: auto;
    transform: none; margin: 0 0 0 auto; /* right-aligned */
}
.room-intro-img-2 img { width: 100%; height: auto; }

/* ========================================
   ROOM DETAIL SECTIONS
======================================== */
.room-detail-section {
    height: auto; min-height: 0;
    padding: 0 0 2.5rem;
    background: var(--bg-gray);
}
.room-detail-inner {
    max-width: 100%; height: auto;
    display: flex; flex-direction: column;
}
.room-detail-photo {
    position: relative;
    width: 100%; height: 55vw;
}
.room-detail-info {
    padding: 0 var(--sp-pad);
}
/* Room name: same left position as other labels */
.room-detail-name { /* handled by common */ }
.room-detail-name::before { display: none !important; }
.room-detail-floor {
    font-size: 0.9rem; margin-top: 0.3rem;
    margin-left: 0; width: auto;
    text-align: center; padding-left: 0;
}
.room-slide-indicators { bottom: 12px; gap: 8px; }
.room-slide-dot { width: 24px; height: 2px; }

/* Details always visible on mobile */
.room-detail-desc-wrap {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-top: 1rem;
}
/* Disable step animation on mobile */
.room-detail-section.step-1 .room-detail-name {
    transform: none; font-size: 1.5rem;
}
.room-detail-section.step-1 .room-detail-floor {
    opacity: 1; transform: none;
}
.room-detail-tagline { font-size: 0.9rem; margin-bottom: 0.8rem; }
.room-detail-desc { font-size: 0.82rem; line-height: 2; margin-bottom: 0.8rem; }
.room-detail-specs { font-size: 0.82rem; gap: 12px; margin-bottom: 0.3rem; }
.room-detail-beds { font-size: 0.75rem; margin-bottom: 0.8rem; }
.room-detail-extra { font-size: 0.82rem; line-height: 2; }

/* ========================================
   HINOKI
======================================== */
.hinoki {
    height: auto; min-height: 0;
    padding: 0; background: #4a4a4a;
}
.hinoki-inner {
    max-width: 100%; height: auto;
    display: flex; flex-direction: column;
}
.hinoki-img-left {
    position: relative; top: auto; left: auto;
    width: 100%; height: 50vw; z-index: 1;
}
.hinoki-text-center {
    position: relative; top: auto; left: auto;
    width: 100%; height: auto;
    padding: 2rem var(--sp-pad);
    z-index: 1;
}
.hinoki-kanji { font-size: 2.8rem; }
.hinoki-romaji { font-size: 1rem; margin-bottom: 1.2rem; letter-spacing: 0.25em; }
.hinoki-text { font-size: 0.82rem; line-height: 2.2; }
.hinoki-img-right-top {
    position: relative; top: auto; right: auto; bottom: auto;
    width: 100%; height: 45vw; z-index: 1;
}
.hinoki-img-right-bottom {
    display: none;
}

/* ========================================
   FEATURES
======================================== */
.features {
    height: auto; min-height: 0;
    padding: 1.5rem 0;
    background: var(--bg-charcoal);
    display: block;
}
.features .section-header {
    max-width: 100%; padding: 0 var(--sp-pad);
    margin-bottom: 1.2rem;
}
.features-scroll-wrapper {
    position: relative;
    margin-top: 1rem;
}
.features-scroll-track {
    display: flex;
    overflow-x: scroll; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 var(--sp-pad); gap: 0.5rem;
}
.features-scroll-track::-webkit-scrollbar { display: none; }
.features-scroll-item {
    width: 45vw; flex: 0 0 auto;
    aspect-ratio: 3/4;
}
.features-scroll-arrow {
    display: flex;
    position: absolute; top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 28px; height: 60px;
    border: none; background: transparent;
    cursor: pointer;
    align-items: center; justify-content: center;
    opacity: 0.7;
}
.features-scroll-arrow svg {
    width: 16px; height: 48px;
    fill: none; stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round; stroke-linejoin: round;
}
.features-scroll-arrow.left { left: 4px; }
.features-scroll-arrow.right { right: 4px; }

/* ========================================
   INFORMATION
======================================== */
.information {
    height: auto; min-height: 0;
    padding: 1.5rem var(--sp-pad);
    background: var(--bg-charcoal);
    display: block;
}
.information .section-header {
    max-width: 100%; margin-bottom: 1.2rem;
}
.info-checkin-box {
    max-width: 100%; margin: 0 auto 1.2rem;
    padding: 0.8rem 1rem; gap: 1.5rem;
}
.info-checkin-label { font-size: 0.65rem; }
.info-checkin-time { font-size: 0.95rem; }
.info-checkin-divider { font-size: 0.9rem; }
.info-block { max-width: 100%; }
.info-block + .info-block { margin-top: 0.8rem; }
.info-block-title { font-size: 0.8rem; margin-bottom: 0.2rem; letter-spacing: 0.25em; }
.info-block-items { font-size: 0.72rem; line-height: 1.8; }

/* ========================================
   CHECK-IN
======================================== */
.checkin-section {
    height: auto; min-height: 0;
    padding-top: var(--header-h);
    background: var(--bg-charcoal);
    display: block;
}
.checkin-inner {
    max-width: 100%; height: auto;
    display: flex; flex-direction: column;
}
.checkin-image-wrapper {
    position: relative; top: auto; left: auto;
    width: 100%; height: auto;
    overflow: visible;
    display: flex; justify-content: center;
}
.checkin-image-wrapper img {
    width: 45%; height: auto;
    object-fit: contain;
}
.checkin-right {
    position: relative; top: auto; right: auto;
    width: 100%; height: auto;
    padding: 0 var(--sp-pad) 2rem;
}
.checkin-label { /* handled by common */ }
.checkin-label::before { display: none !important; }
.checkin-text { font-size: 0.82rem; line-height: 2.1; padding-left: 0; }

/* ========================================
   GALLERY
======================================== */
.gallery {
    height: auto; min-height: 0;
    padding: 1rem 3vw;
    background: #3a3a3a;
}
.gallery-layout {
    max-width: 100%; width: 100%;
    height: auto; padding-bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 3px;
}
.gallery-item {
    position: relative !important;
    left: auto !important; top: auto !important;
    width: 100% !important; height: auto !important;
    border-radius: 0; box-shadow: none;
}
.gallery-item img { aspect-ratio: 1/1; }
/* First image spans full width */
.item-1 { grid-column: 1 / -1; }
.item-1 img { aspect-ratio: 16/9; }

/* ========================================
   ACCESS
======================================== */
.access {
    height: auto; min-height: 0;
    padding: var(--header-h) var(--sp-pad) 3rem;
    background: var(--bg-charcoal);
}
.access-inner {
    max-width: 100%; left: 0 !important;
    align-items: center;
}
.access-title-block {
    margin-bottom: 1.5rem; align-self: center;
    width: 100%; text-align: center;
}
.access-label { /* handled by common */ }
.access-label::before { display: none !important; }
.access-content {
    display: flex; flex-direction: column;
    gap: 1.5rem;
}
.access-map {
    width: 70%; left: 0; top: 0;
    margin: 0 auto;
}
.access-info { left: 0; }
.access-info h3 { font-size: 0.95rem; margin-bottom: 0.6rem; }
.access-address { font-size: 0.82rem; margin-bottom: 1rem; line-height: 1.8; }
.access-transport { font-size: 0.82rem; margin-bottom: 0.6rem; line-height: 1.8; }
.access-email { font-size: 0.82rem; margin-bottom: 0.6rem; line-height: 1.8; }
.access-gmap-link { font-size: 0.82rem; }
.access-note {
    font-size: 0.7rem; margin-top: 1.5rem;
    text-align: left;
}
.access-copyright {
    font-size: 0.6rem; margin-top: 1.5rem;
    position: relative; bottom: auto; left: auto;
    transform: none; text-align: center;
}

/* ========================================
   RESERVATION BUTTON
======================================== */
.reservation-btn {
    width: 70px; height: 70px;
    right: 16px !important; top: auto !important; bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
}
.reservation-btn.visible { right: 16px !important; opacity: 1; }
.reservation-btn-bg {
    border-radius: 50% !important;
    inset: 0; width: auto; height: auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
}
.reservation-btn-text {
    font-size: 0.55rem; letter-spacing: 0.15em;
    writing-mode: horizontal-tb !important;
}
.reservation-btn-icon { width: 20px; height: 20px; margin-bottom: 3px; }
.reservation-btn-inner {
    margin-left: 0;
    flex-direction: column; gap: 1px;
}

/* ========================================
   OPENING ANIMATION (smaller logo)
======================================== */
.opening-logo img { max-height: 25vh; }

/* ========================================
   SECTION TITLES (global mobile)
   All labels: left-aligned, text overflows left of box,
   white text on dark bg, black text on light bg
======================================== */
.section-title { font-size: 1.6rem; padding-bottom: 0; }
.section-header { max-width: 100%; margin-bottom: 1.2rem; padding: 0 var(--sp-pad); }

/* Common label style for mobile - centered, no box */
.concept-label,
.private-label,
.room-intro-title,
.checkin-label,
.access-label,
.features .section-title,
.information .section-title,
.room-detail-name {
    font-family: 'Shippori Mincho', serif !important;
    font-size: 2rem !important; letter-spacing: 0.22em !important;
    font-weight: 400 !important; line-height: 1 !important;
    position: relative !important;
    display: block !important;
    height: auto !important;
    padding: 0 !important;
    margin: 25px 0 15px 0 !important;
    text-align: center !important;
    left: auto !important; right: auto !important;
    top: auto !important; bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    isolation: auto !important;
}

/* Remove all boxes */
.concept-label::before,
.private-label::before,
.room-intro-title::before,
.checkin-label::before,
.access-label::before,
.room-detail-name::before {
    display: none !important;
}
.features .section-title::after,
.information .section-title::after {
    display: none !important;
}

/* Remove PC ::after on section-title */
.section-title::after { display: none !important; }

/* ── Text colors by background ── */
.concept-label { color: #000103 !important; }
.private-label { color: #000103 !important; }
.room-intro-title { color: #fff !important; }
.room-detail-name { color: #fff !important; }
.checkin-label { color: #fff !important; }
.access-label { color: #fff !important; }
.features .section-title { color: #fff !important; }
.information .section-title { color: #fff !important; }

/* section-header center */
.section-header { text-align: center !important; }
.features .section-header,
.information .section-header {
    text-align: center !important;
}

/* ========================================
   SCROLL SNAP - each section = 1 screen
======================================== */
.hero,
.concept,
.private-space,
.room-frame,
.room-detail-section,
.hinoki,
.features,
.information,
.checkin-section,
.gallery,
.access {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Concept & Private: content fills from top with header space */
.concept,
.private-space {
    justify-content: flex-start;
    padding-top: calc(var(--header-h) - 5px);
}
.hero {
    height: calc(var(--real-vh, 1vh) * 100 - var(--header-h));
}

/* Gallery doesn't need vertical centering */
.gallery {
    justify-content: center;
    align-items: center;
}

/* ========================================
   IMAGE MAX-WIDTH CONTROL
   On mobile: full width (100%)
   On tablet/narrow PC: capped so images don't stretch
======================================== */
.concept-image-wrapper,
.private-image-wrapper {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.concept-image-wrapper img,
.private-image-wrapper img {
    max-width: 600px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.room-detail-photo {
    max-width: 600px;
    margin: 0 auto;
}

.hinoki-img-left,
.hinoki-img-right-top,
.hinoki-img-right-bottom {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hinoki-img-left img,
.hinoki-img-right-top img,
.hinoki-img-right-bottom img {
    max-width: 600px;
    width: 100%;
}

.checkin-image-wrapper {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.room-intro-img-1,
.room-intro-img-2 {
    max-width: 500px;
}

.features-scroll-item {
    max-width: 450px;
}

.access-map {
    max-width: 500px;
}

/* ========================================
   PC BROWSER SMALL WINDOW DETECTION
   hover: hover = mouse present = PC browser
   Disable snap + use auto height for natural scroll
======================================== */
@media (hover: hover) {
    html, body {
        overflow: auto;
        height: auto;
    }

    .snap-container {
        scroll-snap-type: none;
        height: auto;
        overflow: visible;
    }

    .hero,
    .concept,
    .private-space,
    .room-frame,
    .room-detail-section,
    .hinoki,
    .features,
    .information,
    .checkin-section,
    .gallery,
    .access {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        min-height: 0;
    }

    .hero {
        height: calc(var(--real-vh, 1vh) * 100 - var(--header-h));
    }
}
