/* =========================================================
   究極のマップ 夜 — 共通デザイン（index.html / home.html / plans.html）
   トーン：深い夜の黒 × アイボリー × シャンパンゴールド。18+ の印だけローズ。
   書体：見出し＝Shippori Mincho B1（和）＋ Cormorant Garamond（欧文・イタリック）、本文＝Zen Kaku Gothic New
   ========================================================= */
:root {
  --bg: #08070c; --bg-1: #0d0b13; --bg-2: #13101b; --bg-3: #1a1624;
  --line: rgba(236, 224, 200, .10); --line-2: rgba(236, 224, 200, .18); --line-gold: rgba(200, 169, 106, .38);
  --text: #f1ece3; --text-2: #b9b1a4; --text-3: #847d73;
  --gold: #c8a96a; --gold-2: #e7d4a4; --gold-3: #8f7443;
  --rose: #c85a7c; --rose-2: #e38aa5;
  --ok: #7cc6a2; --ng: #e08593;
  --serif-jp: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --serif-en: "Cormorant Garamond", "Shippori Mincho B1", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 4px; --r-lg: 10px;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.9 var(--sans); letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt" 1;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(200, 169, 106, .35); color: #fff; }
:focus-visible { outline: 1px solid var(--gold-2); outline-offset: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 文字の部品 ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font: italic 500 15px/1 var(--serif-en); letter-spacing: .08em; color: var(--gold); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); opacity: .7; }
.eyebrow b { font: 600 11px/1 var(--sans); letter-spacing: .32em; font-style: normal; color: var(--text-3); }
.display { font: 700 clamp(34px, 5.4vw, 64px)/1.28 var(--serif-jp); letter-spacing: .04em; margin: 0; }
.display em { font-style: normal; color: var(--gold-2); }
.lead { color: var(--text-2); font-size: 15.5px; line-height: 2.05; max-width: 620px; }
.num { font-family: var(--serif-en); font-variant-numeric: lining-nums; }

/* セクション見出し：番号＋英字＋和文 */
.sec { padding: 120px 0; position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 180px 1fr; gap: 24px 40px; align-items: end; margin-bottom: 56px; }
.sec-head .no { font: italic 400 15px/1 var(--serif-en); color: var(--gold); letter-spacing: .12em; padding-bottom: 10px; border-bottom: 1px solid var(--line-gold); }
.sec-head .no span { font: 600 10.5px/1 var(--sans); font-style: normal; letter-spacing: .3em; color: var(--text-3); margin-left: 10px; }
.sec-head h2 { font: 700 clamp(24px, 3vw, 34px)/1.45 var(--serif-jp); letter-spacing: .06em; margin: 0; }
.sec-head p { grid-column: 2; color: var(--text-2); margin: -8px 0 0; font-size: 14.5px; max-width: 640px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 0 30px;
  font: 500 14.5px/1.3 var(--sans); letter-spacing: .12em; border-radius: var(--r); cursor: pointer; border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .arw { width: 26px; height: 1px; background: currentColor; position: relative; transition: width .35s var(--ease); }
.btn .arw::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arw { width: 38px; }
.btn-gold { background: linear-gradient(180deg, #d9bd80, #b99554); color: #17120a; border-color: #d9bd80; }
.btn-gold:hover { background: linear-gradient(180deg, #e7d0a0, #c7a463); }
.btn-line { color: var(--text); border-color: var(--line-2); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold-2); }
.btn small { display: block; font-size: 11px; letter-spacing: .06em; opacity: .7; margin-top: 2px; }

/* 18+ の印 */
.r18 { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 8px; border: 1px solid var(--rose); color: var(--rose-2); font: 600 11px/1 var(--serif-en); letter-spacing: .08em; border-radius: 2px; }

/* ---------- ヘッダー ---------- */
.gh { position: sticky; top: 0; z-index: 50; background: rgba(8, 7, 12, .78); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--line); }
.gh .wrap { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .wm { display: flex; flex-direction: column; gap: 5px; }
.brand .wm b { font: 700 17px/1 var(--serif-jp); letter-spacing: .14em; white-space: nowrap; }
.brand .wm b em { font-style: normal; color: var(--gold-2); margin-left: .3em; }
.brand .wm i { font: italic 500 11.5px/1 var(--serif-en); letter-spacing: .16em; color: var(--text-3); white-space: nowrap; }
.gh .sp { flex: 1; }
.gh nav { display: flex; align-items: center; gap: 30px; }
.gh nav a { font-size: 13px; letter-spacing: .14em; color: var(--text-2); position: relative; padding: 6px 0; transition: color .3s; white-space: nowrap; }
.gh nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .4s var(--ease); }
.gh nav a:hover { color: var(--text); }
.gh nav a:hover::after { right: 0; }
.gh nav a.cta { color: var(--gold-2); border: 1px solid var(--line-gold); padding: 9px 18px; border-radius: var(--r); }
.gh nav a.cta::after { display: none; }
.gh nav a.cta:hover { background: rgba(200, 169, 106, .1); }

/* ---------- 背景：夜の街路図（地図のモチーフ） ---------- */
.nightmap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.nightmap svg { position: absolute; width: 140%; height: 140%; left: -20%; top: -20%; opacity: .5; }
.nightmap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 70% 30%, rgba(200, 169, 106, .10), transparent 70%), radial-gradient(50% 45% at 15% 80%, rgba(200, 90, 124, .08), transparent 70%); }
.nightmap::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 30%, var(--bg) 85%); }

/* ---------- カテゴリーカード ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cats:has(> .cat:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }   /* 4枚のときは 2×2 */
.cat { position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 40px 36px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .012), transparent 60%); overflow: hidden; transition: background .5s var(--ease); }
.cat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform .6s var(--ease); }
.cat:hover { background: linear-gradient(180deg, rgba(200, 169, 106, .06), rgba(200, 169, 106, .01) 70%); }
.cat:hover::before { transform: scaleX(1); }
.cat .top { display: flex; justify-content: space-between; align-items: flex-start; }
.cat .idx { font: italic 400 44px/1 var(--serif-en); color: var(--gold-3); }
.cat .en { font: italic 500 15px/1 var(--serif-en); letter-spacing: .1em; color: var(--gold); margin-top: 44px; }
.cat h3 { font: 700 26px/1.4 var(--serif-jp); letter-spacing: .08em; margin: 12px 0 16px; }
.cat p { color: var(--text-2); font-size: 14px; line-height: 2; margin: 0 0 20px; flex: 1; }
.cat .kw { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 30px; padding: 0; list-style: none; }
.cat .kw li { font-size: 12px; color: var(--text-3); letter-spacing: .08em; }
.cat .kw li::before { content: "— "; color: var(--gold-3); }
.cat .go { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; letter-spacing: .12em; color: var(--text); }
.cat .go .r18 { margin-left: auto; }
.cat .go .arw { width: 30px; height: 1px; background: var(--gold); position: relative; transition: width .4s var(--ease); flex: none; }
.cat .go .arw::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: rotate(45deg); }
.cat:hover .go .arw { width: 48px; }
.cat.soon { opacity: .6; }
.cat.soon .go { color: var(--text-3); }
.cat.more { justify-content: center; align-items: flex-start; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(236, 224, 200, .02) 14px 15px); }
.cat.more h3 { font-size: 20px; }

/* ---------- 広告枠 ---------- */
.ad-zone { margin: 0 auto; }
.ad-slot:empty { display: none; }

/* ---------- フッター ---------- */
.gf { border-top: 1px solid var(--line); padding: 80px 0 40px; background: linear-gradient(180deg, var(--bg), #050408); }
.gf .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.gf h4 { font: italic 500 14px/1 var(--serif-en); letter-spacing: .14em; color: var(--gold); margin: 0 0 20px; }
.gf ul { list-style: none; margin: 0; padding: 0; }
.gf li { margin: 0 0 10px; font-size: 13.5px; color: var(--text-2); }
.gf li a:hover { color: var(--gold-2); }
.gf .about { color: var(--text-3); font-size: 13px; line-height: 2; max-width: 360px; margin: 18px 0 0; }
.gf .legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--text-3); font-size: 12px; }
.gf .legal .adm { color: var(--text-3); font-size: 12px; letter-spacing: .14em; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; margin-left: 24px; transition: color .3s, border-color .3s; }
.gf .legal .adm:hover { color: var(--gold-2); border-color: var(--gold); }
.gf .legal .cp { font: italic 400 13px/1 var(--serif-en); letter-spacing: .12em; }

/* ---------- 言語の切り替え ---------- */
.langs { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; letter-spacing: .06em; }
.langs a { color: var(--text-3); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--gold-2); border-color: var(--line-gold); }
.gate .langs { position: absolute; top: 24px; right: 32px; z-index: 2; justify-content: flex-end; max-width: calc(100% - 64px); }
.langs-ft { margin-top: 22px; }

/* ---------- 出現の動き ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }   /* スクリプトが動くときだけ演出（動かないときは最初から見える） */
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- スマホ ---------- */
@media (max-width: 980px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .gf .cols { grid-template-columns: 1fr 1fr; }
  .gf .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .gate .langs { top: 16px; right: 20px; left: 20px; max-width: none; justify-content: center; gap: 2px 14px; font-size: 12px; }
  .wrap { padding: 0 20px; }
  .sec { padding: 80px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .sec-head .no { justify-self: start; }
  .sec-head p { grid-column: 1; margin: 0; }
  .gh .wrap { height: 62px; gap: 14px; }
  .gh nav { gap: 16px; }
  .gh nav a.cta { padding: 8px 14px; letter-spacing: .08em; }
  .gh nav a:not(.cta):not(.keep) { display: none; }
  .brand .wm b { font-size: 15px; }
  .brand .wm i { display: none; }
  .brand .mark { width: 30px; height: 30px; }
  .cats { grid-template-columns: 1fr; }
  .cat { min-height: 0; padding: 32px 24px 28px; }
  .cat .en { margin-top: 28px; }
  .gf { padding: 56px 0 32px; }
  .gf .cols { grid-template-columns: 1fr; gap: 32px; }
  .btn { width: 100%; }
}
