/* ==========================================================
   JUDGMENT — Gold Noir
   ========================================================== */
:root {
  --gold: #cfa84a;
  --gold-soft: #e6cd8a;
  --gold-dim: rgba(207, 168, 74, 0.5);
  --gold-glow: rgba(207, 168, 74, 0.14);
  --bg-deep: #070502;
  --bg: #0d0a04;
  --bg-alt: #120e05;
  --line: rgba(207, 168, 74, 0.22);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #efe6d2;
  --muted: #9d8d68;
  --white: #fdf8ec;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --mincho: 'Shippori Mincho', serif;
  --gothic: 'Zen Kaku Gothic New', sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--gothic);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--gold); text-decoration: none; transition: color 0.35s var(--ease); }
a:hover { color: var(--white); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ==========================================================
   Header
   ========================================================== */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}

.header.is-scrolled {
  background: rgba(7, 5, 2, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}

.header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(24px, 4vw, 48px);
}

.header-logo img {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.25));
  transition: opacity 0.3s;
}
.header-logo:hover img { opacity: 0.8; }

.nav-list { display: flex; list-style: none; gap: 44px; }

.nav-list a {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(253, 248, 236, 0.6);
  display: flex;
  align-items: baseline;
  gap: 7px;
  position: relative;
}

.nav-num { font-size: 9px; color: var(--gold-dim); }

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -7px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}
.nav-list a:hover { color: var(--white); }
.nav-list a:hover::after { width: 100%; }

.nav-foot { display: none; }

/* Hamburger — two lines */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 34px; height: 18px;
  position: relative; z-index: 200;
}
.hamburger span {
  display: block;
  width: 100%; height: 1px;
  background: var(--white);
  position: absolute; left: 0;
  transition: all 0.4s var(--ease);
}
.hamburger span:nth-child(1) { top: 3px; }
.hamburger span:nth-child(2) { bottom: 3px; width: 65%; }
.hamburger.is-active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { bottom: auto; top: 50%; width: 100%; transform: rotate(-45deg); }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) brightness(0.72) contrast(1.05);
  transform: scale(1.12);
  transition: transform 2.8s var(--ease);
}
.hero.is-loaded .hero-bg { transform: scale(1.02); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(7, 5, 2, 0.25) 55%, rgba(7, 5, 2, 0.75) 100%),
    linear-gradient(180deg, rgba(7, 5, 2, 0.55) 0%, rgba(7, 5, 2, 0.1) 30%, rgba(7, 5, 2, 0.15) 60%, rgba(7, 5, 2, 0.96) 100%);
}

.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.particle {
  position: absolute;
  background: var(--gold-soft);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  12%  { opacity: 0.55; }
  88%  { opacity: 0.08; }
  100% { opacity: 0; transform: translateY(-140px) scale(1); }
}

/* vertical side labels */
.hero-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  writing-mode: vertical-rl;
  opacity: 0;
  transition: opacity 1.4s var(--ease) 1.2s;
}
.hero.is-loaded .hero-side { opacity: 1; }
.hero-side--left  { left: clamp(18px, 3.5vw, 44px); }
.hero-side--right { right: clamp(18px, 3.5vw, 44px); }
.hero-side span {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: rgba(253, 248, 236, 0.38);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.5s var(--ease) 0.4s, transform 1.5s var(--ease) 0.4s;
}
.hero.is-loaded .hero-content { opacity: 1; transform: translateY(0); }

.hero-logo {
  width: clamp(220px, 30vw, 300px);
  margin: 0 auto;
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 1))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 26px rgba(255, 255, 255, 0.6))
    drop-shadow(0 0 50px rgba(207, 168, 74, 0.5));
}

.hero-line {
  width: 1px; height: 52px;
  margin: 30px auto;
  background: linear-gradient(180deg, var(--gold-dim), transparent);
}

.hero-tagline {
  font-family: var(--mincho);
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 400;
  letter-spacing: 0.42em;
  color: rgba(253, 248, 236, 0.85);
  text-indent: 0.42em;
}

.hero-bottom {
  position: absolute;
  bottom: 34px;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 48px);
  opacity: 0;
  animation: fadeIn 1.2s var(--ease) 1.6s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-open, .hero-place {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(253, 248, 236, 0.45);
}
.hero-place { font-family: var(--mincho); font-size: 11px; }

.hero-scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll span {
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: rgba(253, 248, 236, 0.4);
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--gold-dim), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.55); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ==========================================================
   Marquee
   ========================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5em;
  color: rgba(207, 168, 74, 0.4);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================
   Sections
   ========================================================== */
.section {
  position: relative;
  padding: clamp(110px, 15vw, 170px) 0;
  overflow: hidden;
}
.concept { background: var(--bg); }
.system  { background: var(--bg-alt); }
.gallery { background: var(--bg); }
.access  { background: var(--bg-alt); }

/* ghost word */
.section-ghost {
  position: absolute;
  top: clamp(24px, 4vw, 48px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(90px, 16vw, 210px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(207, 168, 74, 0.08);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.section-header { text-align: center; margin-bottom: clamp(60px, 8vw, 90px); }

.section-num {
  display: block;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold-dim);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: 0.24em;
  color: var(--white);
  text-transform: uppercase;
}
.section-title::after {
  content: '';
  display: block;
  width: 36px; height: 1px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   Concept
   ========================================================== */
.concept-content {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 7vw, 90px);
  align-items: center;
}

.concept-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.3;
  color: var(--gold-soft);
  margin-bottom: 36px;
  letter-spacing: 0.04em;
}

.concept-text p:not(.concept-lead) {
  font-size: 14px;
  line-height: 2.5;
  color: var(--muted);
  max-width: 42em;
}
.concept-text p + p { margin-top: 22px; }

.concept-image { transition-delay: 0.15s; }

.concept-image-frame {
  position: relative;
  overflow: hidden;
}
.concept-image-frame::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
  z-index: 1;
  pointer-events: none;
}
.concept-image-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.concept-image-frame:hover img { transform: scale(1.06); }

.concept-caption {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-align: right;
}

/* ==========================================================
   System — price list
   ========================================================== */
.price-list { max-width: 640px; margin: 0 auto; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: padding 0.4s var(--ease), background 0.4s;
}
.price-row:first-child { border-top: 1px solid var(--line-soft); }
.price-row:hover { background: rgba(207, 168, 74, 0.03); padding-left: 12px; }

.price-name {
  font-family: var(--mincho);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
}
.price-name em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  margin-left: 12px;
}

.price-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(207, 168, 74, 0.28);
  transform: translateY(-5px);
}

.price-value {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  white-space: nowrap;
}

.price-note {
  margin-top: 28px;
  text-align: right;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

/* ==========================================================
   Gallery — horizontal scroll
   ========================================================== */
.gallery-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 10px 0 26px;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
.gallery-scroll::-webkit-scrollbar { height: 4px; }
.gallery-scroll::-webkit-scrollbar-track { background: transparent; }
.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 4px;
}
.gallery-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 0 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  height: clamp(300px, 44vw, 460px);
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  scroll-snap-align: center;
}
.gallery-item--portrait { aspect-ratio: 3 / 4; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
  filter: saturate(0.95);
  pointer-events: none;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 5, 2, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1.1); }
.gallery-item:hover::after { opacity: 1; }

.gallery-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--muted);
}
.gallery-hint svg { color: var(--gold-dim); }

/* ==========================================================
   Access
   ========================================================== */
.access-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: stretch;
}

.access-name {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--white);
}

.access-area {
  font-family: var(--mincho);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 10px 0 40px;
}

.access-dl { display: flex; flex-direction: column; }

.access-row {
  display: flex;
  gap: 26px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.access-row:first-child { border-top: 1px solid var(--line-soft); }

.access-row dt {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dim);
  min-width: 92px;
  padding-top: 4px;
}

.access-row dd { font-size: 13px; color: var(--text); line-height: 1.9; }
.access-row dd a { color: var(--text); }
.access-row dd a:hover { color: var(--gold); }

.access-map {
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  filter: grayscale(0.85) contrast(1.05) brightness(0.9);
  transition: filter 0.6s var(--ease);
  transition-delay: 0.15s;
}
.access-map:hover { filter: grayscale(0) contrast(1) brightness(1); }
.access-map iframe { display: block; width: 100%; height: 100%; }

/* ==========================================================
   CTA
   ========================================================== */
.cta {
  padding: clamp(90px, 12vw, 140px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(207, 168, 74, 0.08) 0%, transparent 65%),
    var(--bg-deep);
  border-top: 1px solid var(--line-soft);
}

.cta-en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  margin-bottom: 10px;
}

.cta-text {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-bottom: 34px;
}

.cta-phone {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--white);
  padding: 20px 56px;
  border: 1px solid var(--line);
  transition: all 0.5s var(--ease);
}
.cta-phone:hover {
  color: var(--gold-soft);
  border-color: var(--gold);
  box-shadow: 0 0 46px var(--gold-glow), inset 0 0 26px rgba(207, 168, 74, 0.05);
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  padding: 70px 0 110px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: 36px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-logo {
  height: 72px;
  width: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.2));
}

.footer-address {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
}

.footer-insta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--muted);
}
.footer-insta:hover { color: var(--gold-soft); }

.footer-copy {
  text-align: center;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(253, 248, 236, 0.22);
}

/* ==========================================================
   Mobile fixed bar
   ========================================================== */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  z-index: 90;
  background: rgba(7, 5, 2, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 0;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--white);
}
.mobile-bar-btn svg { color: var(--gold); }
.mobile-bar-btn--phone { background: linear-gradient(135deg, rgba(207, 168, 74, 0.16), rgba(140, 100, 20, 0.08)); }
.mobile-bar-btn--map { border-left: 1px solid var(--line-soft); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 820px) {
  :root { --header-h: 64px; }

  .hamburger { display: block; }

  .global-nav {
    position: fixed;
    inset: 0;
    background: rgba(7, 5, 2, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
    z-index: 150;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }

  .nav-list { flex-direction: column; align-items: center; gap: 34px; }
  .nav-list a { font-size: 20px; letter-spacing: 0.35em; color: rgba(253, 248, 236, 0.55); }
  .nav-num { display: block; text-align: center; margin-bottom: 6px; }

  .nav-foot { display: block; text-align: center; }
  .nav-foot p {
    font-family: var(--serif);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .nav-foot a {
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: 0.1em;
    color: var(--gold-soft);
  }

  .hero-side { display: none; }
  .hero-bottom { justify-content: center; }
  .hero-open, .hero-place { display: none; }

  .concept-content { grid-template-columns: 1fr; gap: 48px; }
  .concept-image { order: -1; }
  .concept-image-frame img { aspect-ratio: 4 / 3; }

  .gallery-item { height: clamp(240px, 58vw, 340px); }
  .gallery-track { gap: 10px; }

  .access-body { grid-template-columns: 1fr; gap: 44px; }
  .access-map { min-height: 260px; }

  .mobile-bar { display: flex; }
  .footer { padding-bottom: 130px; }
}

@media (max-width: 480px) {
  .hero-logo { width: 200px; }
  .hero-tagline { font-size: 12px; letter-spacing: 0.3em; }
  .marquee-track span { font-size: 11px; }
  .price-name { font-size: 13px; }
  .price-name em { margin-left: 8px; }
  .price-value { font-size: 22px; }
  .cta-phone { padding: 16px 36px; }
}
