/* =====================================================
   IKEBUKURO NIGHTSELECTION — style.css
   スマホファースト / 375px基準
   ===================================================== */

/* ── CSS変数 ── */
:root {
  --bg:        #02060d;
  --bg2:       #07111c;
  --gold:      #b8863b;
  --gold-light:#d6b46a;
  --wine:      #9b2d63;
  --wine2:     #c04b7f;
  --text:      #f5efe6;
  --muted:     #b8aaa0;
  --border:    rgba(184,134,59,.55);
  --border-subtle: rgba(184,134,59,.25);

  --font-serif: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --font-sans:  "Noto Sans JP", system-ui, sans-serif;

  --radius-card: 14px;
  --radius-btn:  8px;
}

/* ── リセット・ベース ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; }

/* ── ラッパー ── */
.wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(2,6,13,.92) 0%, rgba(2,6,13,.75) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}
.logo-en {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.logo-accent { color: var(--gold-light); }
.logo-ja {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .1em;
}

/* ハンバーガー */
.hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
}
.ham-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
}
.ham-label {
  font-size: 8px;
  color: var(--gold);
  letter-spacing: .1em;
}

/* ドロワー */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
}
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 100%;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 201;
  transition: right .3s ease;
  padding: 56px 0 24px;
}
.drawer.open { right: 0; }
.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--muted);
  font-size: 18px;
}
.drawer-nav { list-style: none; }
.drawer-nav li a {
  display: block;
  padding: 14px 24px;
  font-size: 14px;
  color: var(--text);
  letter-spacing: .08em;
  border-bottom: 1px solid var(--border-subtle);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  height: calc(100dvh - 56px);
  height: calc(100vh - 56px);
  display: flex;
  align-items: flex-start;
  padding-top: 48px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%; /* 上から35%の位置を中心に表示（約250px上シフト相当） */
}
.hero-overlay {
  display: none;
}
/* 画像がない場合のフォールバック背景 */
.hero-bg:not(:has(.hero-img[src])) {
  background: linear-gradient(160deg, #0a1520 0%, #1a0d20 50%, #07111c 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-sub {
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .06em;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,.9), 0 1px 4px rgba(0,0,0,.8);
}
.hero-title-accent {
  display: inline-block;
  font-size: 36px;
  color: var(--text);
}
.hero-body {
  font-size: 13px;
  line-height: 2;
  color: var(--text);
  letter-spacing: .04em;
  background: rgba(0,0,0,.3);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: .1em .5em;
  display: inline;
  /* インライン表示にするためpタグをspanで包む必要あり → HTMLも修正 */
}

/* =====================================================
   CTA BUTTONS
   ===================================================== */
.cta-buttons {
  max-width: 430px;
  margin: 0 auto;
  padding: 20px 16px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: var(--radius-btn);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  min-height: 50px;
  transition: opacity .2s;
}
.cta-btn:active { opacity: .8; }
.cta-icon { font-size: 14px; }
.cta-text { flex: 1; text-align: center; white-space: nowrap; }
.cta-arrow { font-size: 16px; }

.cta-primary {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine2) 100%);
  color: #fff;
}
.cta-secondary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

/* =====================================================
   CATEGORIES
   ===================================================== */
.categories {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 16px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.categories--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 320px;
}
.category-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 8px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-icon { font-size: 18px; margin-bottom: 2px; }
.cat-label {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.cat-label--snack   { color: var(--gold-light); }
.cat-label--girls   { color: #8ecfdc; }
.cat-label--cabaret { color: var(--wine2); }
.cat-name {
  font-size: 11px;
  color: var(--text);
  letter-spacing: .04em;
}
.cat-desc {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}

/* =====================================================
   SHOPLIST HEADING
   ===================================================== */
.shoplist-heading {
  max-width: 430px;
  margin: 0 auto 24px;
  padding: 0 16px;
}
.shoplist-heading-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shoplist-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.shoplist-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.shoplist-en {
  font-size: 10px;
  color: var(--wine2);
  letter-spacing: .2em;
}
.shoplist-ja {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: .12em;
}

/* =====================================================
   グリッド切り替えトグル
   ===================================================== */
.grid-toggle {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.grid-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  transition: all .2s;
}
.grid-btn.active,
.grid-btn:active {
  background: rgba(184,134,59,.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* =====================================================
   SHOP CARDS — グリッドモード
   ===================================================== */

/* デフォルト：1列LP表示 */
.shop-cards {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* 縦画像のみ使用 */
.shop-photo--vert { display: block; width: 100%; height: auto; }

/* 2列グリッド */
.shop-cards.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px;
}
.shop-cards.grid-2 .shop-photo--wide { display: none; }
.shop-cards.grid-2 .shop-photo--vert {
  display: block;
  width: 100%;
  height: auto;
}
.shop-cards.grid-2 .shop-card {
  border-radius: 10px;
}
.shop-cards.grid-2 .shop-body {
  padding: 10px 10px 12px;
  gap: 6px;
}
.shop-cards.grid-2 .shop-name {
  font-size: 13px;
  letter-spacing: .04em;
}
.shop-cards.grid-2 .shop-area { font-size: 10px; }
.shop-cards.grid-2 .shop-desc,
.shop-cards.grid-2 .shop-info,
.shop-cards.grid-2 .shop-tags { display: none; }
.shop-cards.grid-2 .shop-btns {
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}
.shop-cards.grid-2 .shop-btn {
  min-height: 36px;
  font-size: 11px;
  padding: 0 8px;
  gap: 4px;
}
.shop-cards.grid-2 .btn-arrow { display: none; }

/* 4列グリッド */
.shop-cards.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 10px;
  max-width: 430px;
}
.shop-cards.grid-4 .shop-photo--wide { display: none; }
.shop-cards.grid-4 .shop-photo--vert {
  display: block;
  width: 100%;
  height: auto;
}
.shop-cards.grid-4 .shop-card {
  border-radius: 8px;
}
.shop-cards.grid-4 .shop-genre-badge {
  font-size: 7px;
  padding: 2px 5px;
  top: 4px;
  right: 4px;
}
.shop-cards.grid-4 .shop-body {
  padding: 6px 6px 8px;
  gap: 4px;
}
.shop-cards.grid-4 .shop-name {
  font-size: 10px;
  letter-spacing: .02em;
  line-height: 1.3;
}
.shop-cards.grid-4 .shop-area,
.shop-cards.grid-4 .shop-desc,
.shop-cards.grid-4 .shop-info,
.shop-cards.grid-4 .shop-tags { display: none; }
.shop-cards.grid-4 .shop-btns {
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}
.shop-cards.grid-4 .shop-btn {
  min-height: 28px;
  font-size: 9px;
  padding: 0 4px;
  gap: 2px;
  border-radius: 4px;
}
.shop-cards.grid-4 .shop-btn span:first-child,
.shop-cards.grid-4 .btn-arrow { display: none; }

.shop-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.5), 0 0 0 0 transparent;
}

/* 店舗写真 */
.shop-photo-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a14, #140a10);
}
.shop-photo {
  width: 100%;
  height: auto;
  display: block;
}
.shop-genre-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 4px;
}
.badge--snack   { background: rgba(155,45,99,.85); color: #fce; border: 1px solid rgba(192,75,127,.6); }
.badge--girls   { background: rgba(20,60,100,.85);  color: #adf; border: 1px solid rgba(80,150,200,.6); }
.badge--cabaret { background: rgba(80,50,10,.85);   color: var(--gold-light); border: 1px solid var(--border); }

/* 店舗本文 */
.shop-body {
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--text);
  line-height: 1.3;
}
.shop-area {
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pin-icon { font-size: 11px; }

.shop-desc {
  font-size: 13px;
  color: #d0c8c0;
  line-height: 1.9;
  letter-spacing: .03em;
}

/* 住所・営業時間 */
.shop-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border-left: 2px solid var(--border);
  border-radius: 4px;
}
.shop-info-row {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.info-label {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .06em;
  white-space: nowrap;
  padding-top: 1px;
}

/* タグ */
.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--gold-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  background: rgba(184,134,59,.06);
  letter-spacing: .04em;
  white-space: nowrap;
}
.tag-icon { font-size: 10px; }

/* ボタン */
.shop-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.shop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  transition: opacity .2s;
  padding: 0 16px;
}
.shop-btn:active { opacity: .8; }
.btn-arrow { margin-left: auto; font-size: 18px; }

.shop-btn--primary {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine2) 100%);
  color: #fff;
}
.shop-btn--secondary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

/* =====================================================
   BENEFIT
   ===================================================== */
.benefit {
  max-width: 430px;
  margin: 48px auto 0;
  padding: 0 16px 48px;
}
.benefit-card {
  position: relative;
  background: linear-gradient(160deg, #05101c 0%, #0c0618 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-card);
  padding: 36px 24px 32px;
  text-align: center;
}
/* 四隅デコ */
.benefit-deco {
  position: absolute;
  color: var(--gold);
  font-size: 10px;
  opacity: .6;
}
.benefit-deco--tl { top: 8px; left: 10px; }
.benefit-deco--tr { top: 8px; right: 10px; }
.benefit-deco--bl { bottom: 8px; left: 10px; }
.benefit-deco--br { bottom: 8px; right: 10px; }

.benefit-en {
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.benefit-title-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 12px;
  opacity: .6;
}
.benefit-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.benefit-icon-wrap {
  font-size: 40px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(184,134,59,.4));
}
.benefit-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}
.benefit-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 16px;
  max-width: 200px;
}
.benefit-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.benefit-divider-diamond {
  font-size: 8px;
  color: var(--gold);
}
.benefit-how {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.benefit-quote {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold-light);
  letter-spacing: .08em;
  margin: 12px 0;
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--bg);
  padding: 0;
}
.footer-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: .5;
}
.footer-nav {
  max-width: 430px;
  margin: 0 auto;
  padding: 24px 16px 16px;
  display: flex;
  justify-content: center;
  gap: 0;
}
.footer-nav-link {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
  padding: 6px 14px;
  border-right: 1px solid var(--border-subtle);
  transition: color .2s;
}
.footer-nav-link:last-child { border-right: none; }
.footer-nav-link:active { color: var(--gold-light); }
.footer-copy {
  max-width: 430px;
  margin: 0 auto;
  padding: 12px 16px 32px;
  text-align: center;
  font-size: 11px;
  color: rgba(184,170,160,.45);
  letter-spacing: .1em;
}

/* =====================================================
   PC対応（最低限）
   ===================================================== */
@media (min-width: 640px) {
  .shop-btns {
    flex-direction: row;
  }
  .shop-btn {
    flex: 1;
  }
  .cta-buttons {
    max-width: 480px;
  }
  .shop-cards,
  .categories,
  .shoplist-heading,
  .benefit,
  .cta-buttons,
  .footer-nav,
  .footer-copy {
    max-width: 560px;
  }
}

/* =====================================================
   フォント未ロード時のフォールバック
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
