/* =========================================================
   G-SPOT — style.css
   トークン: 漆黒/鋼/チョーク白/ハザードレッド/真鍮
   ========================================================= */

:root {
  --bg: #0d0d0e;
  --bg-2: #1a1a1c;
  --panel: #17171a;
  --steel: #2e3033;
  --steel-light: #45484c;
  --chalk: #ece8de;
  --chalk-dim: #a9a69e;
  --red: #c8241e;
  --red-dark: #8f1712;
  --brass: #b5793b;
  --line: #313134;

  --font-display: "Anton", "Impact", sans-serif;
  --font-body: "Inter", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--chalk);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: var(--red); color: var(--chalk); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== 年齢確認ゲート ===== */
#age-gate {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
#age-gate.hidden { display: none; }
.age-panel {
  text-align: center;
  max-width: 420px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 48px 32px;
  position: relative;
}
.age-panel::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid var(--steel);
  pointer-events: none;
}
.age-mark {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--red);
  border: 2px solid var(--red);
  width: fit-content;
  margin: 0 auto 20px;
  padding: 6px 14px;
}
.age-panel h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.age-panel p { color: var(--chalk-dim); margin: 0 0 28px; font-size: 14px; }
.age-actions { display: flex; flex-direction: column; gap: 12px; }

.btn {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--chalk);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost:hover { border-color: var(--steel-light); }

/* ===== ヘッダー ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  background: linear-gradient(to bottom, rgba(13,13,14,0.9), transparent);
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  flex: none;
}
.main-nav { display: flex; gap: 28px; flex: none; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--chalk-dim);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--chalk); }
.main-nav .num { color: var(--red); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--chalk); }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: radial-gradient(ellipse at 70% 30%, #1c1d1f 0%, #0d0d0e 65%);
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.hero-overlay {
  position: relative; z-index: 2;
  padding: 0 32px 80px;
  max-width: 720px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--brass);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 14vw, 168px);
  line-height: 0.85;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  color: var(--chalk);
  text-shadow: 0 0 60px rgba(200, 36, 30, 0.25);
}
.hero-copy {
  font-size: 16px;
  color: var(--chalk-dim);
  max-width: 480px;
  margin: 0 0 32px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
  color: var(--chalk);
}
.hero-cta::before { content: "↓"; color: var(--red); }

.hero-gauge {
  position: absolute; top: 96px; right: 32px; z-index: 3;
  text-align: right;
  font-family: var(--font-mono);
}
#hero-clock { font-size: 20px; font-weight: 700; color: var(--chalk); display: block; }
.gauge-label { font-size: 10px; letter-spacing: 0.14em; color: var(--chalk-dim); }

/* ===== 共通セクション ===== */
.section { padding: 120px 32px; max-width: 1180px; margin: 0 auto; }
.section-head { margin-bottom: 56px; position: relative; padding-left: 20px; border-left: 3px solid var(--red); }
.section-num {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.2em;
  color: var(--red); display: block; margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.section-sub { color: var(--chalk-dim); font-size: 14px; max-width: 560px; margin: 0; }

/* ===== CRUISING SPOTS ===== */
.spot-board { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.spot-row {
  display: grid;
  grid-template-columns: 60px 1fr 140px 120px 90px;
  align-items: center;
  gap: 16px;
  padding: 20px 12px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.spot-row:hover { background: var(--bg-2); }
.spot-id { font-family: var(--font-mono); color: var(--brass); font-size: 13px; }
.spot-name { font-weight: 700; font-size: 16px; }
.spot-area { font-family: var(--font-mono); font-size: 11px; color: var(--chalk-dim); }
.spot-time { font-family: var(--font-mono); font-size: 12px; color: var(--chalk-dim); text-align: right; }
.spot-status {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  padding: 4px 10px; text-align: center; border: 1px solid currentColor; justify-self: end;
}
.spot-status.high { color: var(--red); }
.spot-status.mid { color: var(--brass); }
.spot-status.low { color: var(--chalk-dim); }

@media (max-width: 680px) {
  .spot-row { grid-template-columns: 32px 1fr; row-gap: 6px; }
  .spot-area, .spot-time, .spot-status { grid-column: 2; justify-self: start; text-align: left; }
}

/* ===== 写真集 ===== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
}
.book-card { position: relative; }
.book-cover {
  aspect-ratio: 2 / 3;
  background: var(--steel);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--chalk-dim);
  text-align: center; padding: 12px;
}
.book-tag {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  background: var(--red); color: #fff; padding: 3px 8px;
}
.book-title { margin-top: 12px; font-weight: 700; font-size: 15px; }
.book-meta { font-family: var(--font-mono); font-size: 11px; color: var(--chalk-dim); margin-top: 4px; }

/* ===== LIVE WINDOW (時間更新写真窓) ===== */
.window-section { text-align: center; }
.porthole-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.porthole {
  position: relative;
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--steel-light), var(--steel) 55%, #101012 100%);
  padding: 18px;
  box-shadow: 0 0 0 6px var(--bg-2), 0 20px 60px rgba(0,0,0,0.6);
  margin: 0 auto;
}
.porthole-glass {
  width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden;
  background: #000;
  border: 3px solid #0a0a0b;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}
.porthole-glass img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  animation: window-fade 0.6s ease;
}
@keyframes window-fade { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }

.porthole-rivet {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6b6d70, #1c1d1f);
}
.r1 { top: 6px; left: 50%; transform: translateX(-50%); }
.r2 { bottom: 6px; left: 50%; transform: translateX(-50%); }
.r3 { left: 6px; top: 50%; transform: translateY(-50%); }
.r4 { right: 6px; top: 50%; transform: translateY(-50%); }

.porthole-readout {
  font-family: var(--font-mono);
  width: min(420px, 80vw);
  border: 1px solid var(--line);
  padding: 16px 20px;
  background: var(--panel);
}
.readout-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.readout-label { color: var(--chalk-dim); letter-spacing: 0.08em; }
.readout-value { color: var(--brass); font-weight: 700; }
.readout-bar { height: 3px; background: var(--line); margin-top: 10px; overflow: hidden; }
.readout-bar span { display: block; height: 100%; background: var(--red); width: 0%; transition: width 1s linear; }
.readout-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.readout-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.readout-dots .dot.active { background: var(--red); }

/* ===== LINKS ===== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}
.link-card {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.link-card:hover { border-color: var(--brass); transform: translateY(-2px); }
.link-icon {
  width: 48px; height: 48px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--bg-2);
}
.link-x .link-icon:hover, .link-x:hover .link-icon { color: var(--chalk); }
.link-title { display: block; font-weight: 700; font-size: 16px; }
.link-sub { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--chalk-dim); margin-top: 2px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--chalk-dim);
  text-align: center;
}
