/* ========================================
   RESET & VARIABLES
======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-dark: #0a0a0a;
    --bg-charcoal: #1a1a1a;
    --bg-gray: #2a2a2a;
    --bg-warm: #3a3530;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --accent: #b8936f;
    --accent-dark: #8b6f4f;
    --accent-light: #d4b896;
    --border: #333333;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.5);
    --room-kizami: #e8d5c4;
    --room-nagi: #a8b5a0;
    --room-sumi: #d5dbb3;
    /* Layout */
    --header-h: 98px;
    --content-h: calc(100vh - var(--header-h));
    --box-w: 16.25vw;    /* 25% of 65vw content width */
    --box-h: 12vh;       /* title block height */
}

html { overflow-x: hidden; }

body {
    font-family: 'Shippori Mincho', serif;
    background: var(--bg-charcoal);
    color: var(--text-primary);
    line-height: 1.8;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   OPENING ANIMATION OVERLAY
======================================== */
.opening-overlay {
    position: fixed; inset: 0; z-index: 9999; pointer-events: none;
}
.opening-panel {
    position: absolute; left: 0; right: 0; height: 50%;
    background: #0a0a0a;
    transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}
.opening-panel.top { top: 0; transform: translateY(0); }
.opening-panel.bottom { bottom: 0; transform: translateY(0); }
.opening-overlay.open .opening-panel.top { transform: translateY(-100%); }
.opening-overlay.open .opening-panel.bottom { transform: translateY(100%); }
.opening-overlay.done { display: none; }

.opening-logo {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 10000; opacity: 0; transition: opacity 0.8s ease; text-align: center;
}
.opening-logo img {
    height: 107px; width: auto; max-width: 80vw;
    filter: brightness(0) invert(1); object-fit: contain;
}
.opening-logo.visible { opacity: 1; }
.opening-logo-line {
    margin-top: 1.5rem; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,147,111,0.8), transparent);
    width: 0; transition: width 1s ease 0.3s; margin-left: auto; margin-right: auto;
}
.opening-logo.visible .opening-logo-line { width: 200px; }
.opening-logo-text {
    margin-top: 1rem; font-family: 'Shippori Mincho', serif;
    font-size: clamp(1rem, 2.2vw, 1.55rem); letter-spacing: 0.3em;
    color: rgba(255,255,255,0.9); text-transform: uppercase;
}
.hero-content.before-open { opacity: 0 !important; animation: none !important; }
.hero-content.before-open * { opacity: 0 !important; animation: none !important; }

/* ========================================
   NAVIGATION
======================================== */
nav {
    position: fixed; top: 0; left: 0; right: 15px; z-index: 1000;
    padding: 1.5rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(43, 43, 43, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
nav.scrolled {
    padding: 1rem 4rem;
    background: rgba(43, 43, 43, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid #3a3a3a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.logo { height: 50px; display: flex; align-items: center; }
.logo img { height: 100%; width: auto; transition: opacity 0.3s ease; }
.logo img:hover { opacity: 0.8; }

.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a {
    color: #d1d1d1; text-decoration: none; font-size: 0.95rem;
    letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400;
    transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
    height: 1px; background: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover { color: #ffffff; }
.nav-links a:hover::after { width: 100%; }

.lang-switch {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.1); padding: 0.5rem 1rem;
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.2);
}
.lang-option {
    font-size: 0.85rem; color: #a0a0a0; cursor: pointer;
    transition: color 0.3s ease; letter-spacing: 0.05em; text-transform: uppercase;
}
.lang-option.active { color: #ffffff; font-weight: 500; }
.lang-option:hover { color: #ffffff; }
.lang-divider { color: rgba(255,255,255,0.3); font-size: 0.85rem; }
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* ========================================
   MOBILE MENU
======================================== */
.hamburger {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    width: 40px; height: 40px; cursor: pointer; z-index: 1001; position: relative;
}
.hamburger span {
    display: block; width: 24px; height: 2px; background: var(--text-primary);
    position: absolute; left: 50%; transform: translateX(-50%); transition: all 0.3s ease;
}
.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.active span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

.mobile-menu {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 26, 0.98); z-index: 999;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu a {
    color: var(--text-primary); text-decoration: none; font-size: 1.5rem;
    letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400;
    transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-lang-switch { display: none; align-items: center; gap: 1rem; margin-top: 2rem; }
.mobile-lang-switch .lang-option { font-size: 1rem; padding: 0.5rem 1rem; }

/* ========================================
   HERO WITH SLIDESHOW
======================================== */
.hero {
    height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.hero-slideshow {
    position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.8s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    text-align: center; position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    gap: 0.9rem; color: #ffffff; padding: 0 1.5rem;
    width: 100%; max-width: 660px; margin: 0 auto;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.55rem); letter-spacing: 0.2em;
    color: #ffffff; opacity: 0; font-weight: 400;
}
.hero-title {
    font-size: clamp(0.88rem, 1.65vw, 1.2rem); letter-spacing: 0.2em;
    color: #ffffff; opacity: 0; font-weight: 400;
}
.hero-logo {
    height: 27.5vh; max-height: 242px; width: auto; max-width: 88%;
    margin: 0.35rem 0; opacity: 0;
}
.hero-logo img {
    height: 100%; width: auto; max-width: 100%;
    display: block; margin: 0 auto; object-fit: contain;
}

/* Slide indicators */
.hero-indicators {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; gap: 0.8rem;
}
.hero-indicator {
    width: 40px; height: 2px; background: rgba(255,255,255,0.3);
    cursor: pointer; transition: background 0.5s ease; border: none; padding: 0;
}
.hero-indicator.active { background: rgba(255,255,255,0.9); }

/* ========================================
   SECTION COMMON STYLES
======================================== */
.section-header {
    text-align: center; max-width: 65%;
    margin: 0 auto 4rem; position: relative; z-index: 1;
}
.section-label {
    font-size: 0.75rem; letter-spacing: 0.3em; color: var(--accent);
    margin-bottom: 1rem; text-transform: uppercase; font-weight: 500;
}
.section-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(2rem, 5vw, 4rem); font-weight: 400;
    letter-spacing: 0.15em; color: #fff;
    position: relative; display: inline-block; padding-bottom: 0;
}
.section-title::after {
    display: none;
}

/* Light section titles removed - access now uses dark bg */

/* ========================================
   CONCEPT SECTION
======================================== */
.concept {
    height: 100vh; padding-top: var(--header-h);
    position: relative; background: #ffffff; overflow: hidden;
}
.concept-grid {
    max-width: 65%; width: 100%; margin: 0 auto;
    height: var(--content-h); position: relative;
}
/* Label: "o" aligns with text left edge. text-wrapper left:0, so label needs
   left position such that "o" (3rd char, ~2.6em from start) lands at left:0 */
.concept-label {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: 0.3em;
    color: #000103; font-weight: 400;
    line-height: 1;
    position: absolute;
    top: 0; left: -2.6em;
    z-index: 5;
    white-space: nowrap;
    height: var(--box-h);
    display: flex; align-items: flex-end;
    padding-bottom: 16px;
}
.concept-label::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--header-h));
    left: 2.6em;
    width: var(--box-w);
    height: calc(var(--box-h) + var(--header-h));
    background: #9CA29A;
    z-index: -1;
}
/* Text wrapper starts after box area */
.concept-text-wrapper {
    position: absolute; top: 0; left: 0; width: 50%;
    height: 100%;
    padding-top: calc(var(--box-h) + 3rem); /* below box + gap */
    padding-bottom: clamp(40px, 5vh, 80px);
    display: flex; flex-direction: column; justify-content: flex-start;
    z-index: 2;
}
.concept-text {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem); line-height: 2.4;
    color: #555; font-weight: 400; letter-spacing: 0.06em;
}
.concept-line {
    margin: 0; opacity: 0; transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.concept-line.spacing { margin-top: 1.2em; }
.concept-line.active { opacity: 1; transform: translateY(0); }

.concept-image-wrapper {
    position: absolute; right: 0; bottom: 0;
    width: 50%; height: 55%;
    overflow: hidden;
    opacity: 0; transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}
.concept-image-wrapper.active { opacity: 1; transform: translateY(0); }
.concept-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
}

/* ========================================
   PRIVATE SPACE SECTION
======================================== */
.private-space {
    height: 100vh; padding-top: var(--header-h);
    position: relative; background: #ffffff; overflow: hidden;
}
.private-grid {
    max-width: 65%; width: 100%; margin: 0 auto;
    height: var(--content-h); position: relative;
}
.private-image-wrapper {
    position: absolute; left: 0; bottom: 0;
    width: 50%; height: 60%;
    overflow: hidden;
    opacity: 0; transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}
.private-image-wrapper.active { opacity: 1; transform: translateY(0); }
.private-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.private-text-wrapper {
    position: absolute; top: 0; right: 0; width: 50%;
    height: 100%;
    padding-top: calc(var(--box-h) + 3rem);
    padding-bottom: clamp(40px, 5vh, 80px);
    display: flex; flex-direction: column; justify-content: flex-start;
    z-index: 2;
    opacity: 0; transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.private-text-wrapper.active { opacity: 1; transform: translateX(0); }

.private-label {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: 0.3em;
    color: #000103; font-weight: 400;
    line-height: 1;
    position: absolute;
    top: 0; right: 5%;
    z-index: 5;
    white-space: nowrap;
    height: var(--box-h);
    display: flex; align-items: flex-end;
    padding-bottom: 16px;
}
.private-label::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--header-h));
    left: 5.2em;
    width: var(--box-w);
    height: calc(var(--box-h) + var(--header-h));
    background: #9CA29A;
    z-index: -1;
}
.private-text {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem); line-height: 2.4;
    color: #555; font-weight: 400; letter-spacing: 0.06em;
    padding-left: 12%; /* space from left column image */
}

/* ========================================
   ROOMS SECTION
======================================== */
.rooms {
    min-height: 100vh; background: var(--bg-charcoal); position: relative;
    display: flex; flex-direction: column; justify-content: center;
    padding: 6rem 0;
}
.rooms .section-title {
    color: var(--accent); text-shadow: 0 2px 20px rgba(184,147,111,0.4);
}
.rooms .section-title::after {
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Room intro (PDF p.12 layout) */
.room-intro {
    max-width: 65%; margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
    align-items: center; margin-bottom: 4rem;
}
.room-intro-images {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
}
.room-intro-img {
    overflow: hidden; border-radius: 2px;
}
.room-intro-img-top { aspect-ratio: 3/4; }
.room-intro-img-bottom { aspect-ratio: 4/3; }
.room-intro-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.room-intro-img:hover img { transform: scale(1.03); }

.room-intro-text { text-align: left; }
.room-intro-text .section-title {
    display: inline-block; padding-bottom: 1.5rem;
}
.room-intro-text .section-title::after {
    left: 0; transform: none;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.rooms-subtitle {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary); text-align: left;
    margin-top: 1.5rem; line-height: 1.9; letter-spacing: 0.08em;
}

/* Room cards */
.room-cards {
    max-width: 65%; margin: 3rem auto 0; padding: 0 2rem;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.room-card {
    position: relative; overflow: hidden; border-radius: 2px;
    cursor: pointer; opacity: 0; transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.room-card.active { opacity: 1; transform: translateY(0); }

.room-card-image {
    position: relative; aspect-ratio: 4/3; overflow: hidden;
}
.room-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.room-card:hover .room-card-image img { transform: scale(1.05); }

.room-card-info {
    padding: 1.5rem 0.5rem; text-align: center;
}
.room-card-name {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 400;
    letter-spacing: 0.15em; margin-bottom: 0.3rem;
}
.room-card-name .kanji {
    font-size: 1.1em; margin-left: 0.3em;
}
.room-card-floor {
    font-size: 0.85rem; color: var(--text-secondary); letter-spacing: 0.2em;
}
.room-card-accent {
    display: block; width: 40px; height: 2px; margin: 1rem auto 0;
}

/* ========================================
   ROOM DETAIL MODAL
======================================== */
.room-modal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.92); opacity: 0; visibility: hidden;
    transition: all 0.5s ease; overflow-y: auto;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 2rem;
}
.room-modal.active { opacity: 1; visibility: visible; }

.room-modal-content {
    max-width: 1100px; width: 100%; margin: 2rem auto;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem;
    align-items: start;
}
.room-modal-close {
    position: fixed; top: 2rem; right: 2rem; z-index: 2001;
    width: 48px; height: 48px; background: none; border: 1px solid rgba(255,255,255,0.3);
    color: #fff; font-size: 1.5rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center; border-radius: 50%;
    transition: all 0.3s ease;
}
.room-modal-close:hover {
    background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6);
}

/* Modal slideshow */
.room-modal-slideshow {
    position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 2px;
}
.room-modal-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
}
.room-modal-slide.active { opacity: 1; }
.room-modal-slide img { width: 100%; height: 100%; object-fit: cover; }

.room-modal-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 40px; height: 40px; background: rgba(0,0,0,0.4); border: none;
    color: #fff; font-size: 1.2rem; cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s ease;
}
.room-modal-nav:hover { background: rgba(0,0,0,0.7); }
.room-modal-nav.prev { left: 1rem; }
.room-modal-nav.next { right: 1rem; }

.room-modal-dots {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.5rem; z-index: 5;
}
.room-modal-dot {
    width: 30px; height: 2px; background: rgba(255,255,255,0.3);
    border: none; padding: 0; cursor: pointer; transition: background 0.3s ease;
}
.room-modal-dot.active { background: rgba(255,255,255,0.9); }

.room-modal-info { padding: 1rem 0; }
.room-modal-name-block {
    padding: 1.5rem 2rem; border-radius: 2px; margin-bottom: 2rem;
}
.room-modal-name {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 400;
    letter-spacing: 0.15em; color: #fff; margin-bottom: 0.3rem;
}
.room-modal-name .kanji { font-size: 1.1em; margin-left: 0.3em; }

.room-modal-tagline {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500;
    color: #fff; margin-bottom: 1.5rem; letter-spacing: 0.08em;
    line-height: 1.8;
}
.room-modal-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem); line-height: 2;
    color: var(--text-secondary); letter-spacing: 0.05em;
    margin-bottom: 2rem;
}
.room-modal-specs {
    display: flex; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.room-modal-spec {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text-secondary); font-size: 0.95rem;
}
.room-modal-spec svg {
    width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.5;
}
.room-modal-capacity {
    font-size: 0.9rem; color: var(--text-muted); line-height: 1.8;
}

/* ========================================
   HINOKI BATH SECTION
======================================== */
.hinoki {
    height: 100vh; padding-top: var(--header-h);
    position: relative; background: #4a4a4a;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hinoki-inner {
    position: relative;
    max-width: 65%; width: 100%; margin: 0 auto;
    height: var(--content-h);
}

/* Left image: large, left side, slightly overlaps center text */
.hinoki-img-left {
    position: absolute;
    top: 5%; left: 0;
    width: 40%; height: 82%;
    z-index: 2; overflow: hidden;
}
.hinoki-img-left img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Center text: behind images */
.hinoki-text-center {
    position: absolute;
    top: 0; left: 28%; width: 44%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 60px 40px;
    z-index: 3;
}
.hinoki-kanji {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(3.5rem, 8vw, 5rem); font-weight: 300;
    color: rgba(255,255,255,0.95); letter-spacing: 0.05em;
    line-height: 1; margin-bottom: 4px;
}
.hinoki-romaji {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 300;
    letter-spacing: 0.35em; color: #c8bfb0;
    margin-bottom: clamp(24px, 5vh, 48px);
}
.hinoki-text {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1rem); font-weight: 300;
    line-height: 2.4; letter-spacing: 0.12em;
    color: #c8bfb0;
}
.hinoki-text p { margin: 0; }

/* Right top image */
.hinoki-img-right-top {
    position: absolute;
    top: 3%; right: 3%;
    width: 33%; height: 46%;
    z-index: 2; overflow: hidden;
}
.hinoki-img-right-top img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Right bottom image */
.hinoki-img-right-bottom {
    position: absolute;
    bottom: 3%; right: 0;
    width: 33%; height: 46%;
    z-index: 2; overflow: hidden;
}
.hinoki-img-right-bottom img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ========================================
   FEATURES SECTION - HORIZONTAL SCROLL
======================================== */
.features {
    height: 100vh; padding-top: var(--header-h);
    background: var(--bg-charcoal); position: relative;
    display: flex; flex-direction: column; justify-content: center;
}

/* Scroll wrapper */
.features-scroll-wrapper {
    position: relative;
    margin-top: 3rem;
    z-index: 1;
}

/* Scroll track */
.features-scroll-track {
    display: flex;
    gap: 0.6rem;
    overflow-x: scroll; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    scrollbar-width: none;
    cursor: grab; user-select: none;
    padding: 0 1.5rem;
}
.features-scroll-track::-webkit-scrollbar { display: none; }
.features-scroll-track.grabbing { cursor: grabbing; }

/* Each image item */
.features-scroll-item {
    flex: 0 0 auto;
    width: clamp(200px, 25vw, 320px);
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    background: var(--bg-gray);
}
.features-scroll-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    display: block; pointer-events: none;
}
.features-scroll-item:hover img { transform: scale(1.04); }

/* SVG chevron arrows */
.features-scroll-arrow {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 32px; height: 80px;
    border: none; background: transparent;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}
.features-scroll-arrow:hover { opacity: 1; }
.features-scroll-arrow svg {
    width: 20px; height: 60px;
    fill: none; stroke: #ffffff;
    stroke-width: 3.5;
    stroke-linecap: round; stroke-linejoin: round;
}
.features-scroll-arrow.left { left: 12px; }
.features-scroll-arrow.right { right: 12px; }


/* ========================================
   SNS ICONS (nav + footer)
======================================== */
.nav-sns {
    display: flex; align-items: center;
    margin-right: 1rem;
}
.nav-sns-icon {
    width: 20px; height: 20px;
    opacity: 0.7; transition: opacity 0.3s;
    filter: brightness(0) invert(1);
}
.nav-sns:hover .nav-sns-icon { opacity: 1; }

.mobile-sns {
    display: inline-block; margin-top: 0.5rem;
}
.mobile-sns-icon {
    width: 28px; height: 28px;
    opacity: 0.7;
    filter: brightness(0) invert(1);
}

.access-sns {
    text-align: center; margin-top: 1.5rem;
}
.access-sns-icon {
    width: 36px; height: 36px;
    opacity: 0.5; transition: opacity 0.3s;
    filter: brightness(0) invert(1);
}
.access-sns a:hover .access-sns-icon { opacity: 0.8; }

/* ========================================
   CHECKIN SECTION
======================================== */
.checkin-section {
    height: 100vh; padding-top: var(--header-h);
    background: var(--bg-charcoal); position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.checkin-inner {
    max-width: 65%; width: 100%; margin: 0 auto;
    height: var(--content-h); position: relative;
}

/* Left image: contained within section */
.checkin-image-wrapper {
    position: absolute; top: 15%; left: 8%;
    width: 35%; height: 70%;
    overflow: hidden;
    z-index: 1;
    display: flex; align-items: center;
}
.checkin-image-wrapper img { 
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    display: block; 
}

/* Right: label + text, starts higher than image so box overlaps */
.checkin-right {
    position: absolute; top: 18%; right: 0;
    width: 55%; height: 75%;
    display: flex; flex-direction: column; justify-content: flex-start;
    z-index: 2;
}

/* check in label: box overlaps onto image */
.checkin-label {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: 0.3em;
    color: #fff; font-weight: 400;
    line-height: 1;
    position: relative;
    white-space: nowrap;
    height: calc(var(--box-h) * 0.8);
    display: flex; align-items: flex-end;
    padding-bottom: 16px;
    margin-left: -18%;
    margin-bottom: 2rem;
    isolation: isolate;
}
.checkin-label::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-0.3em + 8%);
    width: var(--box-w);
    background: #9CA29A;
    z-index: -1;
}

.checkin-text {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1rem); line-height: 2.2;
    color: var(--text-secondary); letter-spacing: 0.06em;
    padding-left: 10%;
}

/* ========================================
   PHOTO GALLERY (absolute positioning layout)
======================================== */
.gallery {
    height: 100vh; padding-top: var(--header-h);
    background: #3a3a3a;
    display: flex; align-items: center; justify-content: center;
}
.gallery-layout {
    position: relative;
    max-width: 65%; width: 100%; margin: 0 auto;
    height: 0; padding-bottom: 40%; /* reduced from 57% */
}
.gallery-item {
    position: absolute; overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
    filter: brightness(0.93) contrast(1.04);
}
.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(1) contrast(1.06);
}

/* 1: left - tall portrait */
.item-1 { left: 0; top: 4.4%; width: 24%; height: 74.6%; }
/* 2: center top */
.item-2 { left: 26%; top: 1%; width: 33.2%; height: 43.6%; }
/* 3: right top */
.item-3 { left: 61%; top: 0; width: 35.5%; height: 46.8%; }
/* 4: bottom center - wide */
.item-4 { left: 26%; top: 48.4%; width: 42.7%; height: 50%; }
/* 5: bottom right */
.item-5 { left: 70.5%; top: 48.4%; width: 29.5%; height: 35%; }

/* ========================================
   INFORMATION SECTION
======================================== */
.information {
    height: 100vh; padding-top: var(--header-h);
    background: var(--bg-charcoal); position: relative;
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
}
.information .section-header {
    margin-bottom: 1.5rem;
}
.information .section-title {
    color: #fff; text-shadow: none;
}
.br-sp { display: none; }
.br-pc { display: inline; }

.info-checkin-box {
    max-width: 65%; margin: 0 auto 1.5rem; border: 1px solid rgba(255,255,255,0.25);
    padding: 1.2rem 2rem; text-align: center; position: relative; z-index: 1;
    display: flex; justify-content: center; align-items: center; gap: 3rem;
}
.info-checkin-item { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.info-checkin-label {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.7rem, 1.3vw, 0.8rem);
    color: rgba(200,200,200,0.7); letter-spacing: 0.2em; font-weight: 400;
}
.info-checkin-time {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-primary); letter-spacing: 0.15em; font-weight: 400;
}
.info-checkin-divider {
    font-family: 'Shippori Mincho', serif; font-size: 1rem;
    color: rgba(255,255,255,0.3); align-self: center;
}
.info-block {
    max-width: 65%; margin: 0 auto; text-align: center; position: relative; z-index: 1;
}
.info-block + .info-block { margin-top: 1.2rem; }
.info-block-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: var(--text-primary); letter-spacing: 0.3em;
    margin-bottom: 0.4rem; font-weight: 500;
}
.info-block-items {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.78rem, 1.5vw, 0.92rem);
    color: rgba(200,200,200,0.9); line-height: 1.9;
    letter-spacing: 0.06em; font-weight: 400;
}

/* ========================================
   ACCESS SECTION (dark bg, map + info side by side)
======================================== */
.access {
    height: 100vh; padding-top: var(--header-h);
    background: var(--bg-charcoal); position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.access-inner {
    max-width: 65%; width: 100%; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
    left: 5%;
}

/* Title with box (concept-style) */
.access-title-block {
    margin-bottom: clamp(24px, 4vh, 48px);
    align-self: center;
    position: relative;
    z-index: 5;
}
.access-label {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: 0.3em;
    color: #fff; font-weight: 400;
    line-height: 1;
    position: relative;
    left: -25%;
    white-space: nowrap;
    height: calc(var(--box-h) * 0.8);
    display: flex; align-items: flex-end;
    padding-bottom: 16px;
    isolation: isolate;
}
.access-label::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-0.5em + 25%);
    width: var(--box-w);
    background: #9CA29A;
    z-index: -1;
}

/* Map + Info grid */
.access-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px);
    width: 100%; align-items: start;
    margin-bottom: clamp(16px, 3vh, 32px);
}
.access-map {
    width: 70%; overflow: hidden;
    position: relative;
    left: 13%; top: -11%;
}
.access-map img {
    width: 100%; height: auto; display: block;
}
.access-info {
    padding-top: 0;
    position: relative;
    left: -15%;
}
.access-info h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 400;
    color: var(--text-primary); letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}
.access-address {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    color: var(--text-secondary); line-height: 1.9;
    letter-spacing: 0.06em; margin-bottom: 1.5rem;
}
.access-transport {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    color: var(--text-secondary); line-height: 1.9;
    letter-spacing: 0.06em; margin-bottom: 1rem;
}
.access-email {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    color: var(--text-secondary); line-height: 1.9;
    letter-spacing: 0.06em; margin-bottom: 1rem;
}
.access-gmap-link {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    color: #8ba8a0; letter-spacing: 0.1em;
    text-decoration: underline; text-underline-offset: 4px;
    transition: color 0.3s;
}
.access-gmap-link:hover { color: #acd0c4; }

.access-note {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    color: var(--text-muted); letter-spacing: 0.06em;
    text-align: center; width: 100%;
    margin-top: 1%;
}
.access-copyright {
    font-family: 'Shippori Mincho', serif;
    font-size: 0.8rem; color: rgba(160,160,160,0.5);
    letter-spacing: 0.1em; text-align: center;
    margin-top: 5%;
    white-space: nowrap;
}

/* ========================================
   RESERVATION FLOATING BUTTON
======================================== */
.reservation-btn {
    position: fixed; right: 15px; top: 50%;
    transform: translateY(-50%); z-index: 900;
    width: 135px; height: 270px; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease;
    opacity: 0; pointer-events: none;
}
.reservation-btn.visible { opacity: 1; pointer-events: auto; }
.reservation-btn-bg {
    position: absolute; inset: 0;
    background: #ffffff;
    border-radius: 135px 0 0 135px;
    transition: box-shadow 0.3s ease;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
}
.reservation-btn:hover .reservation-btn-bg { box-shadow: -4px 0 20px rgba(0,0,0,0.15); }
.reservation-btn-text {
    position: relative; z-index: 1; writing-mode: vertical-rl;
    font-family: 'Shippori Mincho', serif; font-size: 1.3rem;
    letter-spacing: 0.35em; color: #333333; font-weight: 700;
}
.reservation-btn-icon {
    position: relative; z-index: 1; width: 24px; height: 24px;
    margin-bottom: 0.6rem; opacity: 0.4;
}
.reservation-btn-inner {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; position: relative; z-index: 1;
}

/* (footer removed - copyright is now inside access section) */

/* ========================================
   SCROLL REVEAL
======================================== */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (max-width: 1024px) {
    nav { padding: 1.2rem 2rem; }
    nav.scrolled { padding: 1rem 2rem; }
    .nav-links { gap: 2rem; }
    .lang-switch { padding: 0.4rem 0.8rem; gap: 0.4rem; }
    .lang-option { font-size: 0.75rem; }

    .concept-grid { grid-template-columns: 1fr; gap: 3rem; }
    .concept-text-wrapper { text-align: center; }
    .concept-label::after { left: 50%; transform: translateX(-50%); }
    .concept-image-wrapper { max-width: 500px; margin: 0 auto; }

    .private-grid { grid-template-columns: 1fr; gap: 3rem; }
    .room-cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .room-intro { grid-template-columns: 1fr; gap: 2rem; }
    .room-intro-text { text-align: center; }
    .room-intro-text .section-title::after { left: 50%; transform: translateX(-50%); }
    .rooms-subtitle { text-align: center; }
    .room-modal-content { grid-template-columns: 1fr; gap: 2rem; }

    .checkin-grid { grid-template-columns: 1fr; gap: 3rem; }

    .access-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hinoki-bg { grid-template-columns: 1fr; }
    .hinoki-bg-right { display: none; }
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    nav.scrolled { padding: 0.8rem 1.5rem; }
    .logo { height: 40px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
    .lang-switch { padding: 0.35rem 0.7rem; gap: 0.3rem; }
    .lang-option { font-size: 0.7rem; }
    .lang-divider { font-size: 0.7rem; }

    .hero { min-height: 100vh; min-height: 100svh; }
    .hero-content { gap: 0.8rem; padding: 0 1rem; }
    .hero-subtitle { font-size: clamp(0.9rem, 4vw, 1.4rem); letter-spacing: 0.15em; }
    .hero-title { font-size: clamp(0.8rem, 3vw, 1.2rem); letter-spacing: 0.15em; }
    .hero-logo { height: 25vh; max-height: 200px; max-width: 80%; }

    .concept { padding: 4rem 1.5rem; min-height: auto; }
    .concept-label { font-size: 1.8rem; margin-bottom: 2rem; padding-bottom: 1rem; }
    .concept-text { font-size: 0.95rem; line-height: 2; }

    .private-space { padding: 4rem 1.5rem; }
    .private-label { font-size: 1.8rem; }

    .rooms { padding: 4rem 0; min-height: unset; }
    .room-intro { padding: 0 1.5rem; margin-bottom: 2rem; }
    .room-intro-images { grid-template-columns: 1fr 1fr; }
    .room-cards { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.5rem; }
    .room-card-image { aspect-ratio: 16/10; }

    .hinoki { min-height: 60vh; }
    .hinoki-kanji { font-size: 3.5rem; }
    .hinoki-romaji { font-size: 1.2rem; }

    .features { padding: 4rem 1.5rem; }
    .features-scroll-item { width: clamp(240px, 70vw, 350px); }

    .checkin-section { padding: 4rem 1.5rem; }
    .checkin-grid { grid-template-columns: 1fr; gap: 2rem; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(1) { grid-row: span 1; }
    .gallery-item:nth-child(4) { grid-column: span 1; }

    .information { padding: 4rem 1.5rem; }
    .br-sp { display: inline; }
    .br-pc { display: none; }
    .info-checkin-box { padding: 1.5rem 1rem; gap: 1.5rem; }
    .info-checkin-time { font-size: 1.1rem; }

    .access { padding: 4rem 1.5rem; }
    .access-grid { grid-template-columns: 1fr; gap: 2rem; }
    .map-container { height: 280px; }

    .reservation-btn {
        top: auto; bottom: 24px; right: 24px;
        width: 80px; height: 80px; transform: none; opacity: 0;
    }
    .reservation-btn.visible { right: 24px; opacity: 1; }
    .reservation-btn-bg { width: 80px; height: 80px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
    .reservation-btn-inner { margin-left: 0; flex-direction: column; gap: 2px; }
    .reservation-btn-text { writing-mode: horizontal-tb; font-size: 0.7rem; letter-spacing: 0.1em; }
    .reservation-btn-icon { width: 18px; height: 18px; margin-bottom: 2px; }

    footer { padding: 2.5rem 1.5rem; }
    .footer-logo img { height: 40px; }
    .copyright { font-size: 0.65rem; }

    .room-modal { padding: 1rem; }
    .room-modal-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .room-modal-close { top: 1rem; right: 1rem; }
}

@media (max-width: 480px) {
    nav { padding: 0.8rem 1rem; }
    .logo { height: 35px; }
    .hero-content { gap: 0.6rem; }
    .hero-subtitle { font-size: 0.85rem; }
    .hero-title { font-size: 0.75rem; }
    .hero-logo { height: 22vh; max-height: 160px; }
    .concept { padding: 3rem 1rem; }
    .concept-label { font-size: 1.5rem; }
    .concept-text { font-size: 0.88rem; }
    .features { padding: 3rem 1rem; }
    .section-title { font-size: 1.5rem; padding-bottom: 1rem; }
    .rooms { padding: 2rem 0; }
    .access { padding: 3rem 1rem; }
    .map-container { height: 240px; }
    footer { padding: 2rem 1rem; }
}

@supports (-webkit-touch-callout: none) {
    .hero { min-height: -webkit-fill-available; }
}

/* ========================================
   SCROLL SNAP CONTAINER (Daiki-style)
======================================== */
.snap-container {
    height: 100vh; width: 100%; overflow-y: auto; overflow-x: hidden;
    scroll-snap-type: y mandatory;
}
.hero, .concept, .private-space, .hinoki, .features, .checkin-section,
.gallery, .information, .access, .room-frame, .room-detail-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
/* snap-container handles all scrolling */

/* ========================================
   ROOM FRAME (JS-controlled slides)
======================================== */
.room-frame {
    position: relative; height: 100vh;
    padding-top: var(--header-h);
    overflow: hidden;
    background: #555;
    display: flex; align-items: center; justify-content: center;
}

/* Room intro background */
.room-intro-bg {
    position: absolute; top: var(--header-h); left: 0; right: 0; bottom: 0;
    z-index: 1;
    transition: opacity .5s;
}

.room-intro-img-1 {
    position: absolute;
    top: calc(100px + var(--box-h) * 0.35 - 65px);
    left: 23%;
    width: 25%;
    bottom: 40%;
    overflow: hidden;
    z-index: 2;
}
.room-intro-img-1 img { width: 100%; height: 100%; object-fit: cover; }

.room-intro-right {
    position: absolute;
    top: 25px;
    left: calc(23% + 25%);
    width: 45%;
    z-index: 3;
}
.room-intro-title-block {
    margin-bottom: 1.5rem;
}
.room-intro-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: 0.3em;
    color: #fff; font-weight: 400;
    line-height: 1;
    position: relative;
    white-space: nowrap;
    width: fit-content;
    height: var(--box-h);
    display: flex; align-items: flex-end;
    padding-bottom: 16px;
    margin-left: -2em;
}
.room-intro-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2em;
    width: var(--box-w);
    height: var(--box-h);
    background: #9CA29A;
    z-index: -1;
}
.room-intro-desc {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem); line-height: 2.2;
    color: rgba(220,220,220,0.85); letter-spacing: 0.06em;
    padding-left: 2%;
}

.room-intro-img-2 {
    position: absolute;
    top: 60%;
    bottom: 0;
    left: 50%; transform: translateX(-50%);
    width: 30%;
    overflow: hidden;
    z-index: 2;
}
.room-intro-img-2 img { width: 100%; height: 100%; object-fit: cover; }

/* ========================================
   ROOM DETAIL SECTIONS (each room = 1 snap section)
======================================== */
.room-detail-section {
    height: 100vh; padding-top: var(--header-h);
    background: var(--bg-gray);
    display: flex; align-items: center; justify-content: center;
}
.room-detail-inner {
    max-width: 65%; width: 100%; margin: 0 auto;
    height: var(--content-h);
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
    align-items: center;
}

/* Left: photo slideshow */
.room-detail-photo {
    position: relative;
    width: 100%; height: 80%;
    overflow: hidden;
}
.room-slideshow {
    position: relative; width: 100%; height: 100%;
}
.room-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 1.2s ease-in-out;
}
.room-slide.active { opacity: 1; }
.room-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.room-slide-indicators {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 5;
}
.room-slide-dot {
    width: 32px; height: 2px; background: rgba(255,255,255,.3);
    border: none; padding: 0; cursor: pointer; transition: background .4s;
}
.room-slide-dot.active { background: rgba(255,255,255,.85); }

/* Right: info */
.room-detail-info {
    padding-left: clamp(32px, 4vw, 64px);
    display: flex; flex-direction: column; align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: visible;
}
.room-detail-band {
    display: none;
}
.room-detail-name {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400;
    letter-spacing: .25em; color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    white-space: nowrap;
    height: var(--box-h);
    display: flex; align-items: center;
    padding-left: 0;
    isolation: isolate;
    transition: transform .6s cubic-bezier(.23,1,.32,1), font-size .6s cubic-bezier(.23,1,.32,1);
}
.room-detail-name::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 2em;
    width: var(--box-w);
    z-index: -1;
    transition: height .6s cubic-bezier(.23,1,.32,1);
}
/* Band colors */
#room-kizami .room-detail-name::before { background: #E2C4B7; }
#room-nagi .room-detail-name::before { background: #71776E; }
#room-sumi .room-detail-name::before { background: #C9C7AA; }

.room-detail-name span { font-size: 1.1em; margin-left: .3em; }
.room-detail-floor {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 400;
    letter-spacing: .2em; color: var(--text-secondary);
    margin-top: 0.8rem;
    text-align: center;
    width: var(--box-w);
    margin-left: 2em;
    transition: opacity .5s, transform .5s;
}

/* Detail description (hidden initially) */
.room-detail-desc-wrap {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s cubic-bezier(.23,1,.32,1) .15s, transform .6s cubic-bezier(.23,1,.32,1) .15s;
    pointer-events: none;
    margin-top: 1.5rem;
}
.room-detail-tagline {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 400;
    color: var(--text-primary); letter-spacing: .08em;
    margin-bottom: 1.5rem;
}
.room-detail-desc {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1rem); font-weight: 400;
    line-height: 2.2; color: var(--text-secondary);
    letter-spacing: .04em; margin-bottom: 1.5rem;
}
.room-detail-specs {
    display: flex; gap: 16px; margin-bottom: 0.5rem;
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    color: var(--text-secondary);
}
.room-detail-beds {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: var(--text-muted); line-height: 1.8;
    margin-bottom: 1.5rem;
}
.room-detail-extra {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    line-height: 2.2; color: var(--text-secondary);
    letter-spacing: .04em;
}

/* Step 1: name moves up, detail appears */
.room-detail-section.step-1 .room-detail-name {
    transform: translateY(-60%);
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}
.room-detail-section.step-1 .room-detail-floor {
    opacity: 0; transform: translateY(-20px);
}
.room-detail-section.step-1 .room-detail-desc-wrap {
    opacity: 1; transform: translateY(-15%);
    pointer-events: auto;
}

/* ========================================
   RESPONSIVE OVERRIDES FOR ROOM DETAIL
======================================== */
@media (max-width: 1024px) {
    .room-detail-inner { grid-template-columns: 1fr; gap: 24px; }
    .room-detail-photo { height: 50vh; }
}

/* ========================================
   RESPONSIVE - INTERMEDIATE (1025px - 1400px)
   For narrower desktop / landscape tablet
======================================== */
@media (max-width: 1400px) and (min-width: 1025px) {
    /* Widen content area */
    .concept-grid, .private-grid, .features-scroll-wrapper,
    .info-checkin-box, .info-block, .checkin-inner,
    .gallery-layout, .access-inner {
        max-width: 80%;
    }
    .hinoki-inner { max-width: 80%; }

    /* Hinoki: reduce image sizes, keep layout */
    .hinoki-img-left { width: 38%; height: 78%; }
    .hinoki-img-right-top { width: 30%; height: 42%; }
    .hinoki-img-right-bottom { width: 30%; height: 42%; }
    .hinoki-text-center { left: 26%; width: 48%; padding: 40px 30px; }
    .hinoki-kanji { font-size: clamp(2.5rem, 6vw, 4rem); }
    .hinoki-text { font-size: clamp(0.75rem, 1.2vw, 0.9rem); }

    /* Checkin: adjust proportions */
    .checkin-image-wrapper { width: 40%; }
    .checkin-right { width: 60%; }

    /* Gallery: slightly wider */
    .gallery-layout { max-width: 80%; padding-bottom: 45%; }

    /* Features: slightly smaller images */
    .features-scroll-item { width: clamp(260px, 35vw, 400px); }

    /* Room detail: ensure images don't overflow */
    .room-detail-photo { height: 100%; }
}

/* ========================================
   IMAGE SAFETY - aspect-ratio fallbacks
   Prevent distortion at any viewport size
======================================== */
.concept-image-wrapper img,
.private-image-wrapper img,
.room-intro-img-1 img,
.room-intro-img-2 img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hinoki-img-left img,
.hinoki-img-right-top img,
.hinoki-img-right-bottom img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.checkin-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.room-detail-photo img,
.room-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
}
