@import url("https://fonts.googleapis.com/css2?family=DM+Mono&family=Manrope:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;600&display=swap");

/* ========================================
   基本設定
   ======================================== */
:root {
  --ink: #06080b;
  --night: #0a1525;
  --gold: #d5a75b;
  --pale: #eee8df;
  --line: rgba(238, 232, 223, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--pale);
  font-family: Manrope, "Noto Serif JP", sans-serif;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
}

/* ========================================
   装飾（ノイズ・カーソル）
   ======================================== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.045;
  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='.8'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  z-index: 30;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(198, 135, 52, 0.13),
    transparent 65%
  );
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

/* ========================================
   レイアウト
   ======================================== */
.wrap {
  max-width: 1320px;
  margin: auto;
  padding: 0 42px;
}

/* ========================================
   ヘッダー・ナビゲーション
   ======================================== */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.3s,
    padding 0.3s,
    backdrop-filter 0.3s;
}

header.is-scrolled {
  padding: 15px 0;
  background: rgba(5, 7, 10, 0.84);
  backdrop-filter: blur(14px);
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font: 700 17px/1 "DM Mono";
  letter-spacing: 0.2em;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

nav a {
  opacity: 0.8;
}

nav a:hover {
  color: var(--gold);
}

.nav-cta,
.gold-btn {
  border: 1px solid var(--gold);
  padding: 12px 17px;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.12em;
  font-size: 11px;
  transition: 0.25s;
}

.nav-cta:hover,
.gold-btn:hover {
  background: var(--gold);
  color: #111;
}

.nav-register {
  color: var(--pale);
  border-color: rgba(238, 232, 223, 0.45);
}

.menu {
  display: none;
  border: 0;
  background: none;
  font-size: 22px;
  cursor: pointer;
}

/* ========================================
   ヒーロー
   ======================================== */
.hero {
  min-height: 800px;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: #030609;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(3, 5, 8, 0.88) 0%,
      rgba(3, 5, 8, 0.42) 43%,
      rgba(3, 5, 8, 0.08) 75%
    ),
    linear-gradient(0deg, rgba(3, 5, 8, 0.8), transparent 55%),
    url("assets/hero-night-spa.png") center/cover;
}

.hero-content {
  width: 100%;
  padding-block-end: 72px;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--gold);
  font: 11px "DM Mono";
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1 {
  max-width: 780px;
  margin: 20px 0 20px;
  font:
    500 80px/1.06 "Noto Serif JP",
    serif;
  letter-spacing: 0.035em;
}

.hero p {
  width: min(450px, 90%);
  color: rgba(238, 232, 223, 0.74);
  font-size: 14px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 31px;
}

.fill-btn {
  border: 0;
  background: var(--pale);
  color: #111;
  padding: 15px 23px;
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: 0.25s;
}

.fill-btn:hover {
  background: var(--gold);
}

.scroll-note {
  position: absolute;
  right: 42px;
  bottom: 42px;
  font: 10px "DM Mono";
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

.scroll-note::after {
  content: "";
  display: inline-block;
  height: 65px;
  width: 1px;
  margin-top: 10px;
  background: var(--gold);
}

/* ========================================
   CONCEPT
   ======================================== */
.intro {
  padding: 155px 0;
  background: linear-gradient(115deg, #07101c, #090909 50%, #100d08);
}

.section-no {
  color: var(--gold);
  font: 11px "DM Mono";
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10vw;
  align-items: end;
}

h2 {
  font:
    500 clamp(34px, 4vw, 61px) / 1.28 "Noto Serif JP",
    serif;
  letter-spacing: 0.03em;
  margin: 20px 0 0;
}

.copy {
  font-size: 14px;
  line-height: 2.15;
  color: rgba(238, 232, 223, 0.72);
  max-width: 470px;
}

.values {
  margin-top: 74px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.value {
  padding: 26px 24px 0 0;
  min-height: 130px;
  border-right: 1px solid var(--line);
}

.value + .value {
  padding-left: 26px;
}

.value:last-child {
  border: 0;
}

.value b {
  color: var(--gold);
  display: block;
  font: 12px "DM Mono";
  margin-bottom: 18px;
}

.value span {
  font-size: 13px;
}

/* ========================================
   SPACE
   ======================================== */
.space {
  padding: 130px 0;
  overflow: hidden;
}

.space-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 42px;
}

.space-top p {
  color: var(--gold);
  font: 11px "DM Mono";
  letter-spacing: 0.13em;
}

.spaces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.space-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #10151d;
}

.space-card.tall {
  background: linear-gradient(150deg, #11110e, #0a192b);
}

.space-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: brightness(0.67) saturate(0.7);
  transition: transform 0.8s;
}

.space-card[data-space] {
  cursor: pointer;
}

.space-card:hover img {
  transform: scale(1.05);
}

.space-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.84));
}

.space-overlay small {
  color: var(--gold);
  font: 10px "DM Mono";
}

.space-overlay h3 {
  margin: 10px 0 0;
  font:
    400 27px "Noto Serif JP",
    serif;
}

/* ========================================
   MEMBERSHIP
   ======================================== */
.membership {
  padding: 135px 0;
  background: #e8e2d8;
  color: #111;
}

.membership .section-no {
  color: #9a6b26;
}

.membership-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 10vw;
  align-items: center;
}

.membership h2 {
  margin-top: 17px;
}

.perks {
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
}

.perks li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.perks em {
  color: #9a6b26;
  font-style: normal;
  font: 11px "DM Mono";
}

.member-card {
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.76), rgba(5, 7, 8, 0.48)),
    url("assets/member-sauna.png") center/cover;
  color: var(--pale);
  padding: 48px;
  min-height: 370px;
  position: relative;
  overflow: hidden;
  box-shadow: 18px 18px 0 #c7bbaa;
}

.member-card:before {
  content: "NOCTURNE";
  position: absolute;
  font: 100px "DM Mono";
  letter-spacing: -0.1em;
  color: rgba(213, 167, 91, 0.1);
  right: -65px;
  bottom: 20px;
  transform: rotate(-90deg);
}

.member-card h3 {
  font:
    400 34px "Noto Serif JP",
    serif;
  margin: 35px 0 8px;
  position: relative;
  text-shadow: 0 2px 16px #000;
}

.member-card p {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.8;
  text-shadow: 0 1px 8px #000;
}

.member-actions {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.member-actions .gold-btn {
  margin: 0 !important;
}

/* ========================================
   ACCESS
   ======================================== */
.access {
  padding: 130px 0;
  position: relative;
  background:
    radial-gradient(circle at 75% 30%, #10264a, transparent 28%), #06080b;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 40px;
}

.stat {
  padding: 26px;
  background: #080b10;
}

.stat b {
  font: 500 31px "Noto Serif JP";
  color: var(--gold);
  display: block;
}

.stat span {
  font: 10px "DM Mono";
  letter-spacing: 0.1em;
  color: rgba(238, 232, 223, 0.6);
}

.map {
  height: 410px;
  position: relative;
  overflow: hidden;
  background: #0c1a2d;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.9) contrast(1.1) brightness(0.72);
}

/* ========================================
   フッター
   ======================================== */
footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  font: 10px "DM Mono";
  color: rgba(238, 232, 223, 0.55);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
}

/* ========================================
   モーダル
   ======================================== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 550px;
  max-height: 100%;
  overflow: auto;
  padding: 44px;
  background: #e8e2d8;
  color: #111;
  position: relative;
  box-shadow: 0 20px 70px #000;
}

/* SPACEカードから開いたとき以外は正方形 */
/* .modal:not(.is-space) .modal-box {
  aspect-ratio: none;
} */

.modal-image {
  width: 100%;
  aspect-ratio: 400/300;
  object-fit: cover;
  display: block;
  margin: 0 0 25px;
}

.modal-image[hidden] {
  display: none;
}

.modal-box h3 {
  font: 400 29px "Noto Serif JP";
  margin: 0 0 12px;
}

.modal-box p {
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
}

.close {
  position: absolute;
  right: 16px;
  top: 13px;
  background: none;
  border: 0;
  color: #111;
  font-size: 26px;
  cursor: pointer;
}

/* ========================================
   トップへ戻るボタン
   ======================================== */
.to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 35;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--gold);
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font: 10px "DM Mono";
  letter-spacing: 0.14em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.3s,
    background 0.25s,
    color 0.25s;
}

.to-top::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: translateY(3px) rotate(45deg);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--gold);
  color: #111;
}

/* ========================================
   スクロール表示アニメーション
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ========================================
   レスポンシブ（767px以下）
   ======================================== */
@media (max-width: 767px) {
  .wrap {
    padding-inline: 22px;
  }

  header {
    padding: 18px 0;
  }

  header.is-scrolled {
    padding: 13px 0;
  }

  nav {
    display: flex;
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 100vh;
    padding: 92px 22px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 7, 10, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: 0.25s;
  }

  header.menu-open nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  nav a,
  .nav-cta {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 14px;
    text-align: center;
    border: 1px solid var(--gold);
  }

  .menu {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 0;
  }

  .menu span,
  .menu::before,
  .menu::after {
    content: "";
    position: absolute;
    left: 4px;
    width: 22px;
    height: 1px;
    background: var(--pale);
    transition:
      transform 0.25s,
      opacity 0.2s;
  }

  .menu::before {
    transform: translateY(-7px);
  }

  .menu span {
    transform: none;
  }

  .menu::after {
    transform: translateY(7px);
  }

  header.menu-open .menu::before {
    transform: rotate(45deg);
  }

  header.menu-open .menu span {
    opacity: 0;
  }

  header.menu-open .menu::after {
    transform: rotate(-45deg);
  }

  .hero {
    min-height: 730px;
  }

  .hero-content {
    padding-block-end: 56px;
  }

  h1 {
    font-size: 30px;
  }

  .scroll-note {
    right: 22px;
    bottom: 25px;
  }

  .intro,
  .space,
  .membership,
  .access {
    padding: 90px 0;
  }

  .intro-grid,
  .membership-grid,
  .access-grid,
  .spaces {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .value,
  .value + .value {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .space-top {
    display: block;
  }

  .member-card {
    padding: 34px;
    min-height: 330px;
  }

  .modal-box {
    padding: 20px;
  }

  .modal-image {
    margin-top: 34px;
  }

  .map {
    height: 280px;
  }

  .cursor {
    display: none;
  }

  footer .wrap {
    gap: 12px;
    flex-direction: column;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}
