/* ============================================================
   club dix the second — style.css
   ============================================================ */

/* ----------------------------------------------------------
   0. CSS 変数
   ---------------------------------------------------------- */
:root {
  --header-h: 112px;
  /* 1920px 基準 80px → 80/1920 = 4.1667vw。clamp で最小24px・最大80px */
  --pad-side: clamp(24px, 4.1667vw, 80px);
  /* 1920px 基準 260px → (1920-1400)/2=260px → 260/1920 = 13.5417vw */
  --pad-content: clamp(24px, 13.5417vw, 260px);
  --pad-section: 107px;
  /* 1920px 基準 24px → 24/1920 = 1.25vw */
  --space-24: clamp(12px, 1.25vw, 24px);

  --color-ink: #151515;
  --color-main: #ffffff;
  --color-accent: #d0b579;
  --color-bg: #151515;
  --color-bg-system: #222222;
  --color-text: #ffffff;
  --color-text-muted: #bdbdbd;
  --color-border: #655b46;

  --font-base: 'Noto Sans JP', sans-serif;
  --font-display: 'Josefin Sans', sans-serif;

  --transition: 0.3s ease;
}

/* ----------------------------------------------------------
   1. リセット / ベース
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 16px;
  color: var(--color-ink);
  background: var(--color-main);
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--color-ink);
}

main:focus {
  outline: none;
}

/* ----------------------------------------------------------
   2. ヘッダー
   ---------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(21, 21, 21, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--pad-side) 20px;
}

/* ロゴ */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(78%) sepia(25%) saturate(660%) hue-rotate(3deg) brightness(91%) contrast(90%);
}

/* ナビゲーション */
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-main);
  position: relative;
  transition: opacity var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:focus-visible::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* SNS アイコン (ヘッダー内) */
.nav-sns {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: opacity var(--transition);
}

.sns-link:hover {
  color: var(--color-accent);
}

.sns-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sp-only-br {
  display: none;
}

/* ナビゲーション内ロゴ（SPオープン時のみ表示） */
.nav-logo {
  display: none;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--color-main);
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* ハンバーガー OPEN 時 */
.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ------------------------------------------------------------
   SP ナビゲーション オーバーレイ
   ------------------------------------------------------------ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 900;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-overlay.is-visible {
  opacity: 1;
}

/* ----------------------------------------------------------
   3. main オフセット
   ---------------------------------------------------------- */
main {
  padding-top: var(--header-h);
}

/* ----------------------------------------------------------
   4. セクション 共通
   ---------------------------------------------------------- */
.section {
  padding-top: var(--pad-section);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-inner {
  padding: 0 var(--pad-content);
}

.section-label {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: -4px;
}

.section-sublabel {
  font-size: 1.00rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 24px;
}

/* ----------------------------------------------------------
   5. ヒーロー
   ---------------------------------------------------------- */
.hero {
  padding: 0;
}

.hero-slider {
  position: relative;
  aspect-ratio: 1920 / 920;
  isolation: isolate;
  background: var(--color-ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease-in-out;
  cursor: default;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-brand {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgb(0 0 0 / 18%);
}

.hero-brand img {
  width: clamp(210px, 31vw, 520px);
  max-width: 72%;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 3px rgb(255 255 255 / 80%)) drop-shadow(0 0 15px rgb(208 181 121 / 55%));
}

.hero-controls:not([hidden]) {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 10px;
  border-radius: 30px;
  background: rgb(255 255 255 / 92%);
}

.hero-dot,
.hero-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

.hero-dot::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border: 1px solid var(--color-ink);
  border-radius: 50%;
}

.hero-dot[aria-pressed="true"]::before {
  background: var(--color-ink);
}

.hero-toggle {
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.hero picture {
  display: block;
}

.hero-img {
  width: 100%;
  aspect-ratio: 1920 / 920;
  height: auto;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ----------------------------------------------------------
   6. ABOUT
   ---------------------------------------------------------- */

.section--about {
  /* 1920px基準 88px → 88/1920 = 4.5833vw */
  padding-top: clamp(48px, 4.5833vw, 88px);
  padding-bottom: clamp(48px, 4.5833vw, 88px);
}

/* ABOUT ラベルは共通 .section-label スタイルを使用 */

.section-heading {
  font-size: clamp(1rem, 2.26vw, 1.75rem);
  font-weight: 350;
  letter-spacing: 0.2em;
  line-height: 1.6;
  margin-bottom: 24px;
}

.about-body {
  /* 1920px基準 1rem(16px) → 16/1920 = 0.8333vw */
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
  letter-spacing: 0.15px;
}

.about-body p + p {
  margin-top: 12px;
}

/* ----------------------------------------------------------
   7. SYSTEM
   ---------------------------------------------------------- */
.section--system {
  background: var(--color-bg-system);
  padding-bottom: clamp(48px, 4.5833vw, 88px);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 8px;
}

.system-col {
  min-width: 0;
  /* 右余白 = 左インデント（装飾幅+gap）の2倍 */
  padding-right: calc((0.75rem + 8px) * 2);
}

.system-group + .system-group {
  margin-top: 36px;
}

.system-drinks {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 1px;
}

.section--system .price-table td:last-child {
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 1px;
}

.section--system .price-table .price-table__drinks {
  white-space: normal;
  text-align: left;
}

.system-col__heading {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 4px;
  line-height: 1.4;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.system-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  width: 1.3em;
  height: 1em;
  margin-top: 0.2em;
}

.system-bullet::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  transform: rotate(45deg);
}


.price-table tr + tr {
  border-top: 1px solid var(--color-border);
}

.price-table th,
.price-table td {
  /* about-body と同様: 1920px基準 1rem(16px) → 16/1920 = 0.8333vw */
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 3px;
  padding: 6px 4px;
  vertical-align: middle;
  width: auto;
}

.price-table th:first-child,
.price-table td:first-child {
  white-space: nowrap;
  text-align: left;
}

.price-table td:last-child {
  white-space: nowrap;
  text-align: right;
}

.system-note {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--color-text);
  /* 1920px基準 64px → 64/1920 = 3.3333vw */
  margin-top: clamp(24px, 3.3333vw, 64px);
  line-height: 2;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.system-note + .system-note {
  margin-top: 4px;
}

/* ----------------------------------------------------------
   8. GALLERY
   ---------------------------------------------------------- */
.section--gallery {
  padding-bottom: 0;
}

.section--gallery .section-inner {
  margin-bottom: var(--space-24);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0 var(--pad-content);
}

.gallery-group + .gallery-group {
  margin-top: clamp(40px, 4.1667vw, 80px);
}

.gallery-group--private .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.6;
}

.gallery-heading::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-zoom {
  display: block;
  cursor: zoom-in;
}

.gallery-zoom {
  width: 100%;
  height: 100%;
}

.image-zoom:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(96vw, 1920px);
  max-width: 96vw;
  max-height: 94dvh;
  padding: 48px 12px 12px;
  border: 0;
  background: var(--color-main);
  color: var(--color-ink);
}

.image-lightbox::backdrop {
  background: rgb(0 0 0 / 88%);
}

.image-lightbox__image {
  width: 100%;
  height: auto;
  max-height: calc(94dvh - 90px);
  object-fit: contain;
}

.image-lightbox__close {
  position: absolute;
  top: 0;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 32px;
  cursor: pointer;
}

.image-lightbox__status {
  text-align: center;
  font-size: 14px;
}

/* ----------------------------------------------------------
   9. ACCESS
   ---------------------------------------------------------- */
.access-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: stretch;
  margin-top: 8px;
}

.access-table th,
.access-table td {
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
  padding:10px 4px 10px 0;
  vertical-align: top;
  letter-spacing: 2px;
}

.access-table th {
  font-weight: 400;
  white-space: nowrap;
  padding-right: 24px;
  color: var(--color-text);
  width: 4em;
  text-align: justify;
  text-align-last: justify;
}

.access-table a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.access-table a:hover {
  text-decoration: underline;
}

.access-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: block;
}

.access-map__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

/* ----------------------------------------------------------
   10. フッター
   ---------------------------------------------------------- */
.site-footer {
  background: var(--color-main);
  padding: 40px var(--pad-side);
  text-align: center;
  margin-top: var(--pad-section);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-copy {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

/* ----------------------------------------------------------
   11. フローティング CTAボタン (SP)
   ---------------------------------------------------------- */
.float-contact {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  transition: opacity var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.float-btn:hover,
.float-btn:active {
  opacity: 0.75;
}

.float-btn--tel {
  background: #fff;
}

.float-btn__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(78%) sepia(25%) saturate(660%) hue-rotate(3deg) brightness(91%) contrast(90%);
}

.float-btn__icon--line {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: block;
}

/* ----------------------------------------------------------
   12. レスポンシブ
   ---------------------------------------------------------- */

/* ---- タブレット (〜1024px) ---- */
@media (max-width: 1024px) {
  :root {
    /* --pad-side は clamp() で自動調整。section余白のみ縮小 */
    --pad-section: 72px;
  }

  .system-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .access-layout {
    gap: 32px;
  }
}

/* ---- SP (〜768px) ---- */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    /* --pad-side は clamp(24px, 4.1667vw, 80px) で SP 最小24px が確保される */
    --pad-section: 56px;
  }

  .logo-img {
    height: 36px;
  }

  .header-inner {
    padding: 0 var(--pad-side);
    align-items: center;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: flex;
  }

  /* SP ナビ：全画面フルスクリーン */
  .header-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .header-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ナビ内ロゴ：ヘッダーと同一位置に配置 */
  .nav-logo {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    height: var(--header-h);
    padding: 0 var(--pad-side);
  }

  /* オーバーレイは全画面ナビで不要 */
  .nav-overlay {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 48px;
    /* ヘッダー下端から120px開始 */
    padding-top: calc(var(--header-h) + 30px);
    flex-shrink: 0;
  }

  .nav-link {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
  }

  /* SNS: 画面最下部から114px、縦並び・アイコン間距16px */
  .nav-sns {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    /* 画面最下部から114px */
    padding-bottom: 6rem;
    flex-shrink: 0;
  }

  .nav-sns .sns-icon {
    width: 42px;
    height: 42px;
  }

  /* セクションラベル SP */
  .section-label {
    font-size: 2rem;
    font-weight: 100;
    -webkit-text-stroke-width: 1px;
    margin-bottom: 0;
  }

  .section-heading {
    font-weight: 300;
    font-size: clamp(1.7rem, 1.7rem, 1.7rem);
    letter-spacing: 0.15em;
    line-height: 1.3;
  }

  .sp-only-br {
    display: block;
  }

  /* ヒーロー：余白なし・幅100%・高さ40vh */
  .hero {
    padding: 0;
  }

  .hero-img {
    aspect-ratio: 1 / 1;
  }

  .hero-slider {
    aspect-ratio: 1 / 1;
  }

  .hero-controls:not([hidden]) {
    bottom: 12px;
  }

  /* セクション共通：左右27px余白・セクション間に区切り線 */
  .section {
    padding-left: 27px;
    padding-right: 27px;
    padding-bottom: var(--pad-section);
    border-top: 1px solid var(--color-border);
  }

  .section-inner {
    padding: 0;
  }

  /* SYSTEM SP */
  .system-grid {    grid-template-columns: 1fr;
    gap: 36px;
  }

  .system-col {
    padding-right: 0;
  }

  /* GALLERY SP：余白なし・横幅いっぱい・画像比率維持 */
  .section--gallery {
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid var(--color-border);
  }

  .section--gallery .section-inner {
    padding: 0 27px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
  }

  .gallery-item {
    aspect-ratio: 700 / 480;
  }

  .gallery-item img {
    height: 100%;
  }

  /* ACCESS SP：情報→マップの縦並び */
  .access-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .access-map {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .access-map iframe {
    height: 100%;
    aspect-ratio: 4 / 3;
  }

  /* フローティング CTAボタン表示 */
  .float-contact {
    display: flex;
  }
}
