:root {
  --ink: #0b0908;
  --ink-soft: #15110f;
  --paper: #eee8df;
  --paper-muted: #b8afa5;
  --amber: #c8893b;
  --amber-light: #e8b76f;
  --red: #5b1c18;
  --line: rgba(238, 232, 223, .16);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--sans); line-height: 1.8; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.skip-link { position: fixed; top: 0; left: 1rem; z-index: 1000; padding: .6rem 1rem; color: var(--ink); background: var(--paper); transform: translateY(-120%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between; height: 88px; padding: 0 clamp(1.2rem, 4vw, 4rem); border-bottom: 1px solid transparent; transition: .35s ease; }
.site-header.is-scrolled { height: 72px; background: rgba(11, 9, 8, .9); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { position: relative; z-index: 102; display: flex; align-items: center; gap: .9rem; }
.brand-mark { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; letter-spacing: .14em; line-height: 1.25; }
.brand-copy b { font-family: Georgia, serif; font-size: .94rem; }
.brand-copy small { color: var(--paper-muted); font-size: .56rem; letter-spacing: .18em; }

.menu-button { display: none; }
.global-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.6rem); }
.global-nav > a:not(.nav-reserve) { color: rgba(238, 232, 223, .82); font-size: .76rem; letter-spacing: .11em; }
.global-nav > a small { margin-right: .45rem; color: var(--amber); font-size: .58rem; }
.global-nav > a:hover { color: var(--amber-light); }
.nav-reserve { display: flex; align-items: center; gap: 1rem; padding: .75rem 1.1rem; border: 1px solid rgba(232, 183, 111, .55); font: .74rem/1 var(--sans); letter-spacing: .08em; }
.nav-reserve span { font-family: Georgia, serif; font-size: .95rem; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -3; background: url("assets/hero.jpg") 57% center / cover no-repeat; transform: scale(1.03); animation: heroIn 1.6s cubic-bezier(.2,.7,.2,1) both; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5,4,3,.9) 0%, rgba(6,5,4,.58) 48%, rgba(6,5,4,.12) 76%), linear-gradient(0deg, rgba(5,4,3,.82), transparent 42%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E"); }
.hero-content { width: min(92%, 1320px); margin: 0 auto; padding: 9rem 0 8rem; }
.eyebrow { margin: 0 0 1.4rem; color: var(--amber-light); font: 600 .68rem/1.4 var(--sans); letter-spacing: .28em; }
.hero h1 { margin: 0; font: 400 clamp(3.1rem, 7.2vw, 7rem)/1.15 var(--serif); letter-spacing: .04em; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero h1 i { color: var(--amber-light); font-style: normal; }
.hero-lead { margin: 2rem 0 0; color: rgba(238,232,223,.8); font: 400 clamp(.94rem, 1.25vw, 1.08rem)/2 var(--serif); letter-spacing: .06em; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.7rem; font-size: .78rem; letter-spacing: .11em; transition: .25s ease; }
.button-primary { color: #130d08; background: var(--amber-light); }
.button-primary:hover { background: #f3ca8a; transform: translateY(-2px); }
.button-ghost { border: 1px solid rgba(238,232,223,.45); }
.button-ghost:hover, .button-outline:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.hero-meta { position: absolute; right: clamp(1.2rem,4vw,4rem); bottom: 2.4rem; display: flex; gap: 2.6rem; color: var(--paper-muted); font: .73rem/1.4 Georgia, serif; letter-spacing: .1em; }
.hero-meta span { display: grid; gap: .3rem; }
.hero-meta small { color: var(--amber); font: .52rem/1 var(--sans); letter-spacing: .22em; }
.scroll-cue { position: absolute; left: clamp(1.2rem,4vw,4rem); bottom: 2.2rem; display: flex; align-items: center; gap: .8rem; color: var(--paper-muted); font-size: .55rem; letter-spacing: .24em; }
.scroll-cue span { display: block; width: 46px; height: 1px; background: var(--paper-muted); transform-origin: left; animation: scrollLine 1.8s ease-in-out infinite; }

.section { position: relative; padding: clamp(5.5rem, 10vw, 10rem) max(5vw, calc((100vw - 1280px)/2)); }
.section-number { position: absolute; top: 6rem; right: 5vw; color: rgba(238,232,223,.06); font: 8rem/1 Georgia, serif; }
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem 8vw; background: var(--ink-soft); }
.intro h2, .section-heading h2, .access h2, .reservation h2 { margin: 0; font: 400 clamp(2.25rem, 4.5vw, 4.4rem)/1.35 var(--serif); letter-spacing: .04em; }
.intro-body { align-self: end; max-width: 530px; color: var(--paper-muted); font-family: var(--serif); }
.intro-body p { margin: 0 0 1.3rem; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; border-block: 1px solid var(--line); }
.facts div { display: flex; align-items: baseline; justify-content: center; gap: 1rem; padding: 2.2rem 1rem; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { color: var(--amber-light); font: 400 clamp(2.2rem,4vw,4rem)/1 Georgia, serif; }
.facts span { color: var(--paper-muted); font-size: .72rem; letter-spacing: .1em; }

.feature-image { position: relative; height: min(76vw, 740px); min-height: 500px; overflow: hidden; background: var(--ink); }
.feature-image-inner { position: absolute; inset: 8% 5%; background: linear-gradient(90deg, transparent 60%, rgba(8,6,5,.8)), url("assets/atmosphere-2.jpg") center/cover no-repeat; }
.feature-image p { position: absolute; right: 3vw; bottom: 4vw; margin: 0; color: var(--amber-light); font: italic clamp(1.3rem,3.5vw,3.3rem)/1.25 Georgia, serif; letter-spacing: .05em; text-align: right; }

.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 3rem 8vw; }
.section-heading > p { max-width: 450px; margin: 0 0 .4rem; color: var(--paper-muted); font-family: var(--serif); }

.gallery { background: var(--ink-soft); }
.gallery-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; grid-template-rows: 300px 300px; gap: 1rem; margin-top: 4rem; }
.gallery-item { position: relative; margin: 0; padding: 0; border: 0; overflow: hidden; background: #211b17; cursor: zoom-in; }
.gallery-item::after { content: "+"; position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(0,0,0,.2); font-size: 1.2rem; transition: .25s; }
.gallery-item:hover::after { color: var(--ink); background: var(--paper); transform: rotate(90deg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-tall { grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; }

.access { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,8vw,8rem); align-items: center; background: #100d0b; }
.access-visual { position: relative; padding: clamp(1rem,3vw,2rem); background: #d9d0c4; }
.access-visual::before { content: "GION · KYOTO"; position: absolute; top: 1.5rem; left: -1rem; color: var(--amber-light); font: .58rem/1 var(--sans); letter-spacing: .26em; writing-mode: vertical-rl; }
.access-visual img { width: 100%; mix-blend-mode: multiply; filter: grayscale(1) contrast(.88); }
.access dl { margin: 2.6rem 0; }
.access dl div { display: grid; grid-template-columns: 100px 1fr; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.access dt { color: var(--amber-light); font-size: .68rem; letter-spacing: .14em; }
.access dd { margin: 0; font-family: var(--serif); }
.access dd small { color: var(--paper-muted); }
.button-outline { border: 1px solid var(--line); }

.reservation { min-height: 620px; display: grid; place-items: center; text-align: center; isolation: isolate; overflow: hidden; }
.reservation-bg { position: absolute; inset: 0; z-index: -2; background: url("assets/atmosphere-4.jpg") center/cover no-repeat; filter: saturate(.7); }
.reservation::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,6,5,.72); }
.reservation-content { max-width: 650px; }
.reservation-content > p:not(.eyebrow):not(.reservation-hours) { color: rgba(238,232,223,.75); font-family: var(--serif); }
.reservation-phone { display: grid; margin: 2.5rem auto .5rem; color: var(--amber-light); font: 400 clamp(2.3rem,6vw,5rem)/1 Georgia, serif; }
.reservation-phone small { margin-bottom: .7rem; color: var(--paper-muted); font: .58rem/1 var(--sans); letter-spacing: .25em; }
.reservation-hours { margin: 0; color: var(--paper-muted); font-size: .72rem; }
.mail-link { display: inline-block; margin-top: 2rem; border-bottom: 1px solid var(--amber); color: var(--paper); font-size: .78rem; letter-spacing: .08em; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 4rem max(5vw, calc((100vw - 1280px)/2)) 6rem; color: var(--paper-muted); background: #080706; font-size: .72rem; }
.footer-wordmark { grid-column: 1 / -1; display: grid; gap: .35rem; padding-bottom: clamp(2.5rem, 5vw, 5rem); margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.footer-wordmark span { color: var(--amber); font-size: .58rem; letter-spacing: .28em; }
.footer-wordmark strong { color: var(--paper); font: 400 clamp(3.4rem, 8vw, 7rem)/.95 var(--serif); letter-spacing: .02em; }
.footer-brand { display: flex; align-items: center; gap: 1.2rem; color: var(--paper); letter-spacing: .18em; }
.footer-brand .brand-mark { width: 44px; height: 44px; }
.site-footer p { margin: 0; justify-self: end; text-align: right; }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a:hover { color: var(--amber-light); }
.site-footer > small { justify-self: end; }
.mobile-action { display: none; }

.lightbox { width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(5,4,3,.92); backdrop-filter: blur(8px); }
.lightbox img { max-height: 86vh; margin: auto; object-fit: contain; }
.lightbox button { position: absolute; top: -3rem; right: 0; border: 0; color: white; background: transparent; font-size: 2rem; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes heroIn { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1.03); } }
@keyframes scrollLine { 0%,100% { transform: scaleX(.2); } 50% { transform: scaleX(1); } }

@media (max-width: 900px) {
  .site-header { height: 72px; }
  .brand-copy { display: none; }
  .menu-button { position: relative; z-index: 102; display: grid; grid-template-columns: repeat(3,18px); gap: 4px; align-items: center; padding: .7rem 0; border: 0; background: transparent; cursor: pointer; }
  .menu-button span { display: block; width: 18px; height: 1px; background: var(--paper); transition: .25s; }
  .menu-button em { grid-column: 1/-1; font: normal .48rem/1 var(--sans); letter-spacing: .18em; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translate(11px,5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translate(-11px,5px) rotate(-45deg); }
  .global-nav { position: fixed; inset: 0 0 auto; z-index: 101; display: flex; flex-direction: column; align-items: stretch; justify-content: center; width: 100vw; height: 100dvh; gap: 0; padding: 7rem 2rem 5rem; background: rgba(11,9,8,.98); transform: translateY(-105%); transition: transform .45s cubic-bezier(.7,0,.2,1); }
  .global-nav.is-open { transform: none; }
  .global-nav > a:not(.nav-reserve) { padding: 1rem 0; border-bottom: 1px solid var(--line); font: 1.4rem/1.4 var(--serif); }
  .nav-reserve { justify-content: space-between; margin-top: 2rem; padding: 1.2rem; }
  .hero-content { width: 90%; padding-bottom: 11rem; }
  .hero-meta { right: auto; left: 5%; bottom: 4.8rem; }
  .scroll-cue { display: none; }
  .intro, .section-heading, .access { grid-template-columns: 1fr; }
  .intro { gap: 2rem; }
  .facts { margin-top: 1rem; }
  .facts div { flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 240px 240px; }
  .gallery-item-tall { grid-row: span 1; }
  .gallery-item-wide { grid-column: span 2; }
  .access { gap: 3rem; }
}

@media (max-width: 600px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .brand-mark { width: 42px; height: 42px; }
  .hero-media { background-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,4,3,.86), rgba(6,5,4,.25)), linear-gradient(0deg, rgba(5,4,3,.9), transparent 52%); }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .hero-lead br { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 280px; }
  .hero-meta { gap: 1.4rem; }
  .hero-meta span { font-size: .64rem; }
  .section { padding: 5.5rem 6vw; }
  .section-number { top: 3.5rem; font-size: 5rem; }
  .facts { grid-template-columns: 1fr; }
  .facts div { flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 0; }
  .feature-image { min-height: 500px; height: 125vw; }
  .feature-image-inner { inset: 5% 6% 13%; }
  .feature-image p { right: 5vw; bottom: 5vw; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 68vw); gap: .7rem; }
  .gallery-item-wide { grid-column: auto; }
  .access-visual { order: 2; }
  .access dl div { grid-template-columns: 82px 1fr; }
  .reservation { min-height: 560px; }
  .reservation-phone { font-size: 11vw; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 3rem; }
  .footer-wordmark strong { font-size: 14vw; }
  .site-footer p, .site-footer > small { justify-self: start; text-align: left; }
  .footer-links { flex-wrap: wrap; }
  .mobile-action { position: fixed; z-index: 90; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; height: calc(66px + env(safe-area-inset-bottom)); padding: .55rem 1rem env(safe-area-inset-bottom); color: var(--paper); background: rgba(14,11,10,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .mobile-action span { display: grid; font: .68rem/1.3 Georgia, serif; }
  .mobile-action small { color: var(--paper-muted); font: .54rem/1.3 var(--sans); }
  .mobile-action a { padding: .65rem 1.4rem; color: var(--ink); background: var(--amber-light); font-size: .75rem; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
