/* =========================================================
   Leave Me Alone — Noise Music Bar
   Original look (black / white / Lora) + subtle noise
   ========================================================= */

:root {
  --bg: #000;
  --ink: #e8e6e1;
  --muted: #8d8a84;
  --dim: #5c5a56;
  --line: rgba(255, 255, 255, 0.14);
  --serif: "Lora", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 64px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
::selection { background: #fff; color: #000; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 8px 14px; background: #fff; color: #000; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container, .wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Noise: film grain over everything ---------- */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90;
  pointer-events: none;
  background-image: var(--noise);
  opacity: 0.07;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  17%  { transform: translate(-6%, 4%); }
  33%  { transform: translate(5%, -7%); }
  50%  { transform: translate(-3%, 9%); }
  67%  { transform: translate(8%, 2%); }
  83%  { transform: translate(-9%, -4%); }
  100% { transform: translate(2%, 6%); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: none; }
.brand {
  text-decoration: none; font-size: 15px; letter-spacing: 0.06em;
  opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled .brand, .site-header.is-solid .brand { opacity: 1; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.nav-link, .nav-book {
  text-decoration: none; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
}
.nav-link { color: var(--muted); transition: color .2s; }
.nav-link:hover { color: #fff; }
.nav-book { padding: 6px 14px; border: 1px solid rgba(255,255,255,.5); transition: background .2s, color .2s; }
.nav-book:hover { background: #fff; color: #000; }
@media (max-width: 560px) { .nav-link { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 24px) 0 64px;
  text-align: center;
  overflow: hidden;
}
/* faint TV-static scanlines behind the logo */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; }
.logo { margin: 0 auto; max-width: 920px; position: relative; overflow: hidden; }
.logo img { width: 100%; }  /* transparent WebP: no background box */
/* a thin band of static drifts over the logo now and then (the logo itself never moves) */
.logo::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14%; top: -20%;
  background-image: var(--noise); background-size: 180px;
  mix-blend-mode: overlay; opacity: 0;
  animation: static-band 9s linear infinite;
  pointer-events: none;
}
@keyframes static-band {
  0%, 82% { top: -20%; opacity: 0; }
  83% { opacity: .9; }
  92% { top: 105%; opacity: .9; }
  93%, 100% { top: 105%; opacity: 0; }
}

.hero__place { margin: clamp(24px, 4vw, 40px) 0 0; color: var(--muted); font-size: 16px; letter-spacing: 0.04em; }
.hero__tagline { margin: 12px auto 0; max-width: 36em; font-size: clamp(17px, 2vw, 20px); font-style: italic; }
.ctas { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__access { margin: 20px 0 0; font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.hero__access a { text-underline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  border: 1px solid #fff;
  transition: background .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--solid { background: #fff; color: #000; }
.btn--solid:hover { background: transparent; color: #fff; }
.btn--line { border-color: rgba(255,255,255,.45); }
.btn--line:hover { background: #fff; color: #000; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.section__title {
  margin: 0 0 clamp(32px, 5vw, 56px);
  font-size: 15px; font-weight: 400; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}

/* ---------- Story ---------- */
.story { max-width: 720px; margin: 0 auto; }
.story__title {
  margin: 0 0 40px; text-align: center;
  font-size: clamp(28px, 4.2vw, 42px); font-weight: 400; line-height: 1.3;
}
.story__photo { margin: 0 0 40px; position: relative; overflow: hidden; }
.story__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.story p { margin: 0 0 1.2em; }
.story .turn { font-size: 1.25em; font-style: italic; margin: 1.6em 0; }
.story blockquote {
  margin: 2em 0; padding: 0 0 0 24px;
  border-left: 1px solid #fff;
  font-size: 1.08em; font-style: italic;
}
.story blockquote p { margin: 0; }
.story__sign { margin-top: 48px; text-align: right; }
.story__sign p { margin: 0; }
.story__sign .name { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(8px, 1.2vw, 14px); }
.gallery__item {
  position: relative; margin: 0; padding: 0; border: 0; background: #111; cursor: zoom-in; overflow: hidden;
  grid-column: span 6; aspect-ratio: 3 / 2;
}
.gallery__item:nth-child(1), .gallery__item:nth-child(4) { grid-column: span 7; }
.gallery__item:nth-child(2), .gallery__item:nth-child(3) { grid-column: span 5; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.85);
  transition: filter .5s, transform .8s;
}
.gallery__item:hover img, .gallery__item:focus-visible img, .gallery__item.is-active img { filter: none; transform: scale(1.02); }
.gallery__item .cap {
  position: absolute; left: 14px; bottom: 10px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  text-shadow: 0 1px 8px #000;
}
@media (max-width: 720px) {
  .gallery__item:nth-child(n) { grid-column: span 12; }
}

/* ---------- Visit / address ---------- */
.visit { text-align: center; }
.visit__lead { margin: 0 0 28px; font-size: clamp(22px, 3vw, 30px); font-style: italic; }
.visit__address { font-style: normal; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.6; margin: 0; }
.visit__address .ja { display: block; margin-top: 10px; font-family: var(--jp); font-size: 15px; color: var(--muted); }
.visit__note { margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.visit__tock { display: inline-block; margin-top: 24px; color: var(--muted); font-size: 14px; word-break: break-all; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { margin: 0; font: inherit; }
.faq .answer { padding: 0 0 22px; color: #cfccc6; }
.faq .answer p { margin: 0 0 8px; }
.faq .answer .ja-line { font-family: var(--jp); font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 48px; border-top: 1px solid var(--line); text-align: center; }
.social { display: flex; justify-content: center; gap: 20px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); transition: color .2s; }
.social a:hover { color: #fff; }
.social svg { width: 22px; height: 22px; }
.footer-links { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 13px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current] { color: #fff; }
.copyright { margin: 16px 0 0; font-size: 12px; color: var(--dim); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.96); color: #fff;
}
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 12px; right: 12px; width: 48px; height: 48px;
  background: none; border: 0; font-size: 22px; cursor: pointer;
}
.lightbox__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--gutter); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
}
.lightbox__nav { display: flex; gap: 8px; }
.lightbox__nav button {
  width: 48px; height: 48px; background: none; border: 1px solid rgba(255,255,255,.4); cursor: pointer;
}
.lightbox__nav button:hover { background: #fff; color: #000; }

/* ---------- Policy pages ---------- */
.doc { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(80px, 10vw, 120px); }
.doc__head, .doc__body > .wrap { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.doc .kicker { margin: 0; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.doc h1 { margin: 12px 0 8px; font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: 1.2; }
.doc h1.jp-title { font-family: var(--jp); font-size: clamp(26px, 4vw, 40px); }
.doc h1 .ja { display: block; margin-top: 8px; font-family: var(--jp); font-size: 15px; color: var(--muted); }
.doc .updated { font-size: 13px; color: var(--muted); margin: 0 0 48px; }
.doc h2 { margin: 56px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; line-height: 1.5; }
.doc h2 .num { color: var(--muted); margin-right: 12px; }
.doc p, .doc li { color: #d2cec6; font-size: 16px; }
.doc .ja-line { display: block; font-family: var(--jp); color: var(--muted); font-size: 14px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc a { text-underline-offset: 3px; }
.spec { margin: 24px 0 0; border-top: 1px solid var(--line); font-family: var(--jp); }
.spec > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; font-size: 15px; line-height: 1.5; }
.spec dt span { display: block; font-family: var(--serif); font-weight: 400; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); margin-top: 4px; text-transform: uppercase; }
.spec dd { margin: 0; font-size: 15px; color: #d2cec6; }
.spec dd p { margin: 0 0 6px; }
.spec dd .en { font-family: var(--serif); color: var(--muted); font-size: 14px; }
.spec dd .note { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .spec > div { grid-template-columns: 1fr; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after, .logo::after { animation: none !important; }
  .gallery__item img { transition: none; }
}
.faq .answer .more { margin-top: 10px; font-size: 14px; }
.faq .answer .more a { color: var(--muted); text-underline-offset: 3px; }
.faq .answer .more a:hover { color: #fff; }
.visit__facts { max-width: 640px; margin: 36px auto 0; text-align: left; border-top: 1px solid var(--line); }
.visit__facts > div { display: grid; grid-template-columns: 9em 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.visit__facts dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.visit__facts dd { margin: 0; font-size: 16px; }
.visit__facts dd span { display: block; font-family: var(--jp); font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { .visit__facts > div { grid-template-columns: 1fr; } }

/* ---------- Hover noise (canvas drawn by main.js) ---------- */
.hover-noise {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; mix-blend-mode: difference; z-index: 2;
}
.gallery__item .cap { z-index: 3; }
.photo-credit { margin: 20px 0 0; text-align: right; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
