/* ============================================================
   NORE — Specialty Coffee & Bar
   style.css
   ============================================================ */

/* ============================================================
   0. CSS VARIABLES
============================================================ */
:root {
  /* Color */
  --c-black:      #0e0e0c;
  --c-dark:       #1a1a18;
  --c-dark-mid:   #2a2a28;
  --c-dark-soft:  #3a3a37;
  --c-mid:        #6b6b67;
  --c-muted:      #9a9a96;
  --c-border:     #2e2e2c;
  --c-border-lt:  #d8d6d0;
  --c-off-white:  #f5f4f0;
  --c-cream:      #edeae3;
  --c-white:      #faf9f6;
  --c-wood:       #9b7e5a;
  --c-wood-light: #c4a87a;

  /* Typography */
  --f-serif:  'Cormorant Garamond', 'Georgia', serif;
  --f-sans:   'DM Sans', 'Helvetica Neue', sans-serif;
  --f-ja:     'Shippori Mincho', 'Yu Mincho', serif;

  /* Spacing — fluid */
  --space-xs:   clamp(0.5rem,  1vw,   0.75rem);
  --space-sm:   clamp(0.75rem, 1.5vw, 1rem);
  --space-md:   clamp(1rem,    2vw,   1.5rem);
  --space-lg:   clamp(1.5rem,  3vw,   2.5rem);
  --space-xl:   clamp(3rem,    6vw,   5rem);
  --space-xxl:  clamp(5rem,    10vw,  9rem);

  /* Layout */
  --max-w:      1440px;
  --side-pad:   clamp(1.25rem, 5vw, 5rem);

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7,  0, 0.84, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   0.3s;
  --dur-mid:    0.6s;
  --dur-slow:   1s;

  /* Border */
  --radius-sm:  2px;
  --radius-md:  4px;
}

/* ============================================================
   1. RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--c-dark); }
::-webkit-scrollbar-thumb { background: var(--c-dark-soft); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-mid); }

body {
  background-color: var(--c-off-white);
  color: var(--c-dark);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none; /* カスタムカーソル使用時 */
}

/* Fluid images */
img, video {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

ul, ol { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: none;
  font: inherit;
  color: inherit;
}

address { font-style: normal; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 1px solid var(--c-wood);
  outline-offset: 3px;
}

/* ============================================================
   2. CUSTOM CURSOR
============================================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor__dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--c-white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.cursor__ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 0.5px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width  var(--dur-mid) var(--ease-out),
    height var(--dur-mid) var(--ease-out),
    transform 0.1s linear,
    border-color var(--dur-mid) var(--ease-out);
}

/* Hover states */
body.cursor--hover .cursor__ring {
  width: 48px;
  height: 48px;
  border-color: rgba(255,255,255,0.3);
}

body.cursor--drag .cursor__ring {
  width: 64px;
  height: 64px;
}

/* Mobile: disable custom cursor */
@media (hover: none) {
  .cursor { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}

/* ============================================================
   3. HEADER / NAV
============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: clamp(1rem, 2.5vw, 1.5rem) var(--side-pad);
  transition: background var(--dur-mid) var(--ease-out),
              backdrop-filter var(--dur-mid) var(--ease-out);
}

.header.is-scrolled {
  background: rgba(14, 14, 12, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--c-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--c-white);
  text-transform: uppercase;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.nav__logo:hover { opacity: 0.6; }

.nav__list {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav__link {
  font-size: clamp(0.6rem, 1vw, 0.7rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.55);
  font-weight: 300;
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0.5px;
  background: var(--c-white);
  transition: width var(--dur-mid) var(--ease-out);
}

.nav__link:hover {
  color: var(--c-white);
}
.nav__link:hover::after { width: 100%; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.nav__toggle-line {
  display: block;
  width: 22px;
  height: 0.5px;
  background: var(--c-white);
  transform-origin: center;
  transition: transform var(--dur-mid) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out);
  z-index: 99;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__close {
  position: absolute;
  top: clamp(1rem, 2.5vw, 1.5rem);
  right: var(--side-pad);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px;
  z-index: 10;
  cursor: pointer;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

.mobile-menu__close-line {
  display: block;
  width: 22px;
  height: 0.5px;
  background: rgba(250, 249, 246, 0.6);
  transform-origin: center;
  position: absolute;
  transition: background var(--dur-fast) var(--ease-out);
}

.mobile-menu__close-line:first-child  { transform: rotate(45deg); }
.mobile-menu__close-line:last-child   { transform: rotate(-45deg); }

.mobile-menu__close:hover .mobile-menu__close-line {
  background: var(--c-white);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  text-align: center;
}

.mobile-menu__link {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.mobile-menu__link:hover { color: var(--c-muted); }

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }

@media (max-width: 768px) {
  .nav__list { display: none; }
  .nav__toggle { display: flex; }
}

/* ============================================================
   4. HERO
============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-black);
}

/* Video / media layer */
.hero__media {
  position: absolute;
  inset: 0;
}

.hero__bg-picture {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity var(--dur-slow) var(--ease-out);
}

/* 初期: day表示・night非表示 */
.hero__bg-img--day   { opacity: 1; }
.hero__bg-img--night { opacity: 0; }

/* JS で .is-night をheroに付与して切り替え */
.hero.is-night .hero__bg-img--day   { opacity: 0; }
.hero.is-night .hero__bg-img--night { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,14,12,0.3) 0%,
    rgba(14,14,12,0.1) 40%,
    rgba(14,14,12,0.5) 100%
  );
}

/* Day/Night toggle */
.hero__time-switch {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2rem);
  right: var(--side-pad);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero__time-btn {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.35);
  padding: 5px 14px;
  border: 0.5px solid rgba(250,249,246,0.15);
  border-radius: 20px;
  font-weight: 300;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.hero__time-btn.is-active {
  color: var(--c-white);
  border-color: rgba(250,249,246,0.5);
}

/* Main copy */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--side-pad);
}

.hero__eyebrow {
  font-size: clamp(0.55rem, 1vw, 0.65rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.4);
  font-weight: 300;
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-family: var(--f-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300;
  color: var(--c-white);
  line-height: 1.0;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero__headline-line { display: block; overflow: hidden; }

.hero__headline-line--italic {
  font-style: italic;
  color: rgba(250,249,246,0.45);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero__scroll-line {
  width: 0.5px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(250,249,246,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.1); }
}

.hero__scroll-label {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.35);
  font-weight: 300;
}

/* ============================================================
   5. CONCEPT
============================================================ */
.concept {
  background: var(--c-off-white);
  padding: var(--space-xxl) var(--side-pad);
}

.concept__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.concept__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.concept__eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 400;
}

.concept__heading {
  font-family: var(--f-ja);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--c-dark);
  letter-spacing: 0.02em;
}

.concept__heading em {
  
  color: var(--c-muted);
  font-family: var(--f-serif);
}

.concept__body {
  font-family: var(--f-ja);
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  line-height: 2;
  color: var(--c-mid);
  font-weight: 300;
  max-width: 36ch;
}

.concept__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 300;
  padding-top: var(--space-sm);
}

.concept__meta-line {
  display: block;
  width: 24px;
  height: 0.5px;
  background: var(--c-border-lt);
  flex-shrink: 0;
}

.concept__figure {
  position: relative;
}

.concept__image-wrap {
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.concept__image-placeholder,
.concept__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    linear-gradient(135deg, #c9c4b8 0%, #b0a89a 50%, #9a9083 100%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.concept__image-wrap:hover .concept__image-placeholder,
.concept__image-wrap:hover img {
  transform: scale(1.04);
}

.concept__caption {
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 300;
}

@media (max-width: 768px) {
  .concept__inner {
    grid-template-columns: 1fr;
  }
  .concept__figure { order: -1; }
  .concept__image-wrap { aspect-ratio: 4 / 3; }
}

/* ============================================================
   6. SPECIALTY COFFEE
============================================================ */
.coffee {
  background: var(--c-white);
  border-top: 0.5px solid var(--c-border-lt);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.coffee__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--side-pad);
  margin-bottom: var(--space-lg);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.coffee__title {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.coffee__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 300;
}

.coffee__hint-line {
  display: block;
  width: 24px;
  height: 0.5px;
  background: var(--c-muted);
}

/* Horizontal scroll track */
.coffee__track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.coffee__track-wrap::-webkit-scrollbar { display: none; }
.coffee__track-wrap.is-dragging { cursor: grabbing; }

.coffee__track {
  display: flex;
  padding: 0 var(--side-pad);
  gap: 0;
  width: max-content;
}

.coffee__item {
  width: clamp(260px, 30vw, 360px);
  border-right: 0.5px solid var(--c-border-lt);
  flex-shrink: 0;
}
.coffee__item:last-child { border-right: none; }

/* Coffee card */
.coffee-card {
  padding: var(--space-lg) var(--space-md);
}

.coffee-card__figure {
  margin-bottom: var(--space-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.coffee-card__image {
  width: 100%;
  height: 100%;
  background: var(--c-cream);
  /* 実画像の場合: object-fit: cover */
  transition: transform var(--dur-slow) var(--ease-out);
}

.coffee-card:hover .coffee-card__image {
  transform: scale(1.04);
}

/* Placeholder gradients for demo */
.coffee__item:nth-child(1) .coffee-card__image {
  background: linear-gradient(135deg, #c4bba8 0%, #a89880 100%);
}
.coffee__item:nth-child(2) .coffee-card__image {
  background: linear-gradient(135deg, #b8b0a0 0%, #9a9080 100%);
}
.coffee__item:nth-child(3) .coffee-card__image {
  background: linear-gradient(135deg, #a09888 0%, #887870 100%);
}
.coffee__item:nth-child(4) .coffee-card__image {
  background: linear-gradient(135deg, #989088 0%, #807060 100%);
}
.coffee__item:nth-child(5) .coffee-card__image {
  background: linear-gradient(135deg, #b0a898 0%, #988878 100%);
}
.coffee__item:nth-child(6) .coffee-card__image {
  background: linear-gradient(135deg, #8a8278 0%, #706860 100%);
}

.coffee-card__origin {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 400;
  margin-bottom: 6px;
}

.coffee-card__name {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  margin-bottom: 8px;
  color: var(--c-dark);
}

.coffee-card__notes {
  font-size: 0.7rem;
  color: var(--c-mid);
  font-weight: 300;
  margin-bottom: 4px;
}

.coffee-card__brew {
  font-size: 0.65rem;
  color: var(--c-muted);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* "See all" link */
.coffee__footer {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-md) var(--side-pad) 0;
  border-top: 0.5px solid var(--c-border-lt);
  margin-top: var(--space-lg);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.coffee__more {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mid);
  font-weight: 300;
  padding: 8px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.coffee__more:hover { color: var(--c-dark); }

.coffee__more-line {
  display: block;
  width: 32px;
  height: 0.5px;
  background: currentColor;
  transition: width var(--dur-mid) var(--ease-out);
}
.coffee__more:hover .coffee__more-line { width: 48px; }

/* ============================================================
   7. MENU
============================================================ */
.menu {
  background: var(--c-off-white);
  border-top: 0.5px solid var(--c-border-lt);
  padding: var(--space-xxl) var(--side-pad);
}

.menu__inner {
  max-width: 760px;
  margin: 0 auto;
}

.menu__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.menu__title {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.menu__tabs {
  display: flex;
  gap: var(--space-lg);
}

.menu__tab {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 300;
  padding-bottom: 4px;
  border-bottom: 0.5px solid transparent;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.menu__tab:hover { color: var(--c-dark); }
.menu__tab.is-active {
  color: var(--c-dark);
  border-color: var(--c-dark);
}

/* Panel transitions */
.menu__panel {
  transition: opacity var(--dur-mid) var(--ease-out);
}
.menu__panel[hidden] { display: none; }

/* Menu list */
.menu__list {
  display: flex;
  flex-direction: column;
}

.menu__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding: clamp(0.9rem, 1.8vw, 1.2rem) 0;
  border-bottom: 0.5px solid var(--c-border-lt);
  position: relative;
  transition: background var(--dur-fast) var(--ease-out);
}

.menu__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,24,0.025);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  pointer-events: none;
}
.menu__item:hover::before { opacity: 1; }

.menu__item-left {
  display: flex;
  align-items: baseline;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex: 1;
}

.menu__item-name {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: var(--c-dark);
}

.menu__item-desc {
  font-size: 0.68rem;
  color: var(--c-muted);
  font-weight: 300;
  white-space: nowrap;
}

.menu__item-price {
  font-size: 0.75rem;
  color: var(--c-mid);
  font-weight: 300;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .menu__item-left { flex-direction: column; gap: 2px; }
  .menu__item-desc { white-space: normal; }
}

/* ============================================================
   8. GALLERY
============================================================ */
.gallery {
  background: var(--c-dark);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-top: 0.5px solid var(--c-border);
  overflow: hidden;
}

.gallery__header {
  display: flex;
  align-items: center;
  padding: 0 var(--side-pad);
  margin-bottom: var(--space-lg);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.gallery__title {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  color: var(--c-white);
}

/* ---- Slider shell ---- */
.gallery__slider {
  position: relative;
}

/* ---- Track wrapper: ここでクリップ ---- */
.gallery__track-wrap {
  overflow: hidden;
  width: 100%;
  cursor: grab;
}
.gallery__track-wrap.is-dragging {
  cursor: grabbing;
}

/* ---- Track: アイテムを横並びに ---- */
.gallery__track {
  display: flex;
  gap: 2px;
  /* JS が translateX で動かす */
  will-change: transform;
  /* ドラッグ中のテキスト選択を防ぐ */
  user-select: none;
  -webkit-user-select: none;
}


/* ---- Items ---- */
.gallery__item {
  flex: 0 0 clamp(260px, 28vw, 360px); /* 全部同じ幅 */
}

/* --wide は使わないので削除（または以下で上書き） */
.gallery__item--wide {
  flex: 0 0 clamp(260px, 28vw, 360px);
}

.gallery__figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3; /* 全部縦長で統一 */
}

/* --wide の aspect-ratio 上書きも削除 */
.gallery__item--wide .gallery__figure {
  aspect-ratio: 4 / 3;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out),
              filter var(--dur-mid) var(--ease-out);
}

/* プレースホルダーカラー */
.gallery__image[style*="--gi:1"]  { background: linear-gradient(135deg, #2a2825 0%, #3a3532 100%); }
.gallery__image[style*="--gi:2"]  { background: linear-gradient(135deg, #252320 0%, #302d2a 100%); }
.gallery__image[style*="--gi:3"]  { background: linear-gradient(135deg, #1e1c1a 0%, #282522 100%); }
.gallery__image[style*="--gi:4"]  { background: linear-gradient(135deg, #2e2c28 0%, #3c3835 100%); }
.gallery__image[style*="--gi:5"]  { background: linear-gradient(135deg, #201e1c 0%, #2a2825 100%); }
.gallery__image[style*="--gi:6"]  { background: linear-gradient(135deg, #312f2c 0%, #403d38 100%); }
.gallery__image[style*="--gi:7"]  { background: linear-gradient(135deg, #262422 0%, #343230 100%); }
.gallery__image[style*="--gi:8"]  { background: linear-gradient(135deg, #1c1a18 0%, #262420 100%); }
.gallery__image[style*="--gi:9"]  { background: linear-gradient(135deg, #282624 0%, #363330 100%); }
.gallery__image[style*="--gi:10"] { background: linear-gradient(135deg, #2c2a28 0%, #3a3835 100%); }
.gallery__image[style*="--gi:11"] { background: linear-gradient(135deg, #222020 0%, #2e2c2a 100%); }
.gallery__image[style*="--gi:12"] { background: linear-gradient(135deg, #302e2c 0%, #3e3c38 100%); }

.gallery__figure:hover .gallery__image {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.gallery__caption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.25);
  font-weight: 300;
  transition: color var(--dur-fast) var(--ease-out);
  pointer-events: none;
}
.gallery__figure:hover .gallery__caption {
  color: rgba(250,249,246,0.55);
}

/* ---- Prev / Next ---- */
.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: rgba(250,249,246,0.75);
  border: 0.5px solid rgba(250,249,246,0.15);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.gallery__btn:hover {
  background: rgba(0,0,0,0.8);
  color: var(--c-white);
}
.gallery__btn--prev { left: 12px; }
.gallery__btn--next { right: 12px; }

/* ---- Dots ---- */
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(250,249,246,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.gallery__dot.is-active {
  background: var(--c-white);
  transform: scale(1.35);
}

/* ---- モバイル ---- */
@media (max-width: 767px) {
  .gallery__item {
    flex: 0 0 clamp(160px, 60vw, 240px);
  }
  
  .gallery__btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   9. SPACE
============================================================ */
.space {
  background: var(--c-white);
  border-top: 0.5px solid var(--c-border-lt);
  padding: var(--space-xxl) var(--side-pad);
}

.space__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.space__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: sticky;
  top: clamp(6rem, 12vw, 8rem);
}

.space__eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 400;
}

.space__heading {
  font-family: var(--f-ja);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--c-dark);
}

.space__heading em {
  font-style: italic;
  color: var(--c-muted);
  font-family: var(--f-serif);
}

.space__body {
  font-family: var(--f-ja);
  font-size: clamp(0.78rem, 1.1vw, 0.875rem);
  line-height: 2;
  color: var(--c-mid);
  font-weight: 300;
}

.space__details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: var(--space-sm);
}

.space__detail-item {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-family: var(--f-ja);
  font-weight: 300;
  padding-left: 1rem;
  position: relative;
}

.space__detail-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-border-lt);
}

/* Visuals */
.space__visuals {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.space__figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.space__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.space__figure--day .space__image {
  background: linear-gradient(135deg, #d4cfc6 0%, #b8b0a5 100%);
}
.space__figure--night .space__image {
  background: linear-gradient(135deg, #1a1a18 0%, #252522 100%);
}

.space__figure:hover .space__image { transform: scale(1.03); }

.space__badge {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
  padding: 4px 10px;
  border-radius: 20px;
}

.space__badge--day {
  background: rgba(26,26,24,0.06);
  color: var(--c-mid);
}
.space__badge--night {
  background: rgba(250,249,246,0.08);
  color: rgba(250,249,246,0.4);
}

@media (max-width: 768px) {
  .space__inner { grid-template-columns: 1fr; }
  .space__text { position: static; }
}

/* ============================================================
   10. ACCESS
============================================================ */
.access {
  background: var(--c-off-white);
  border-top: 0.5px solid var(--c-border-lt);
  padding: var(--space-xxl) var(--side-pad);
}

.access__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}

.access__map {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.access__map-placeholder {
  width: 100%;
  height: 100%;
  background: var(--c-cream);
  filter: grayscale(0.7);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle grid overlay for map placeholder */
.access__map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border-lt) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--c-border-lt) 0.5px, transparent 0.5px);
  background-size: 40px 40px;
  opacity: 0.4;
}

.access__map-pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-dark);
  border: 2px solid var(--c-off-white);
  box-shadow: 0 0 0 1px var(--c-dark);
  position: relative;
  z-index: 1;
}
.access__map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.access__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}

.access__info-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.access__label {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 400;
}

.access__address {
  font-family: var(--f-serif);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  color: var(--c-dark);
  line-height: 1.6;
}

.access__hours {
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  color: var(--c-mid);
  font-weight: 300;
  line-height: 1.8;
}

.access__closed {
  color: var(--c-muted);
  font-size: 0.75em;
}

.access__sns {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: var(--space-md);
  border-top: 0.5px solid var(--c-border-lt);
}

.access__sns-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 300;
  transition: color var(--dur-fast) var(--ease-out);
}
.access__sns-link:hover { color: var(--c-dark); }

.access__sns-divider {
  color: var(--c-border-lt);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .access__inner { grid-template-columns: 1fr; }
  .access__map { aspect-ratio: 4 / 3; }
}

/* ============================================================
   11. FOOTER
============================================================ */
.footer {
  background: var(--c-dark);
  border-top: 0.5px solid var(--c-border);
  padding: clamp(2.5rem, 5vw, 4rem) var(--side-pad);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__logo {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.55em;
  color: rgba(250,249,246,0.6);
  text-transform: uppercase;
}

.footer__line {
  width: 0.5px;
  height: 28px;
  background: var(--c-border);
}

.footer__copy {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.2);
  font-weight: 300;
}

/* ============================================================
   12. ANIMATION BASE STATES
       (Initial states for JS-driven animations)
============================================================ */
.js-fade-up {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}

.js-split-reveal {
  overflow: hidden;
}

.js-split-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  will-change: opacity, transform;
}

.js-parallax-img .concept__image-placeholder,
.js-parallax-img .concept__image-wrap img {
  transform-origin: center center;
}

/* ============================================================
   13. UTILITY
============================================================ */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Print */
@media print {
  .cursor, .header, .hero__time-switch, .hero__scroll { display: none; }
  body { color: #000; background: #fff; }
}
