:root{
  --bg:#0f1115; --panel:#171a21; --panel-2:#1e222b; --line:#2a2f3a;
  --text:#e8eaed; --muted:#9aa2b1; --accent:#ff3d6e; --accent-soft:#ff3d6e22;
  --radius:14px; --maxw:1120px;
}
*{box-sizing:border-box}
html,body{margin:0}
body{
  background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP",sans-serif;
  line-height:1.5; -webkit-text-size-adjust:100%;
}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 16px}

/* header */
.site-head{position:sticky; top:0; z-index:20; background:rgba(15,17,21,.86);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--line)}
.head-inner{display:flex; align-items:center; justify-content:space-between; height:58px}
.brand{font-weight:800; font-size:22px; letter-spacing:.04em}
.brand-dot{color:var(--accent)}
.head-meta{display:flex; align-items:center; gap:10px}
.area-pill{background:var(--accent); color:#fff; font-weight:700; font-size:13px;
  padding:3px 12px; border-radius:999px}
.count{color:var(--muted); font-size:13px}

.lead{color:var(--muted); font-size:13px; margin:16px 0 12px}

/* filters */
.filters{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:14px; margin-bottom:18px}
.filter-row{display:flex; gap:10px; margin-bottom:12px; flex-wrap:wrap}
.f-search{flex:1 1 240px}
.f-search input{width:100%}
input[type=text],input[type=number],select{
  background:var(--panel-2); border:1px solid var(--line); color:var(--text);
  border-radius:10px; padding:10px 12px; font-size:16px; outline:none; width:100%}
/* iOSでフォーカス時に自動ズームさせないため入力欄は16px以上を維持 */
input:focus,select:focus{border-color:var(--accent)}
.f-sort{flex:0 0 200px}

.filter-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px}
.f-label{display:block; font-size:12px; color:var(--muted); margin-bottom:6px; font-weight:600}
.range-inputs{display:flex; align-items:center; gap:6px; color:var(--muted); font-size:13px}
.range-inputs input{width:100%}

.chips{display:flex; flex-wrap:wrap; gap:6px}
.chip{background:var(--panel-2); border:1px solid var(--line); color:var(--muted);
  border-radius:999px; padding:6px 12px; font-size:13px; cursor:pointer; user-select:none}
.chip.on{background:var(--accent-soft); border-color:var(--accent); color:var(--accent); font-weight:700}

.switch{display:inline-flex; align-items:center; gap:8px; font-size:13px; cursor:pointer}
.switch input{width:auto}

.filter-actions{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px}
.filter-btns{display:flex; align-items:center; gap:10px}
.btn-search{background:var(--accent); color:#fff; border:none; border-radius:10px;
  padding:11px 26px; font-size:15px; font-weight:700; cursor:pointer}
.btn-search:hover{filter:brightness(1.08)}
.btn-reset{background:transparent; border:1px solid var(--line); color:var(--muted);
  border-radius:10px; padding:10px 16px; font-size:13px; cursor:pointer}
.btn-reset:hover{border-color:var(--accent); color:var(--accent)}
.hit-count{font-size:13px; color:var(--muted)}

/* grid */
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:14px}
.card{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; text-decoration:none; color:inherit; display:flex; flex-direction:column;
  transition:transform .12s ease, border-color .12s ease}
.card:hover{transform:translateY(-3px); border-color:var(--accent)}
.card-img{position:relative; aspect-ratio:3/4; background:var(--panel-2); overflow:hidden}
.card-img img{width:100%; height:100%; object-fit:cover; display:block}
.badge{position:absolute; top:8px; left:8px; background:var(--accent); color:#fff;
  font-size:11px; font-weight:700; padding:3px 8px; border-radius:6px}
.src-tag{position:absolute; bottom:8px; right:8px; background:rgba(0,0,0,.62); color:#fff;
  font-size:10px; padding:2px 7px; border-radius:5px}
.card-body{padding:10px 11px 12px}
.card-name{font-weight:700; font-size:15px; margin:0 0 3px}
.card-name .age{color:var(--muted); font-weight:500; font-size:13px; margin-left:4px}
.card-size{font-size:12px; color:var(--accent); font-weight:600; letter-spacing:.02em}
.card-shop{font-size:11px; color:var(--muted); margin-top:5px; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis}
.card-genre{display:inline-block; background:var(--panel-2); border:1px solid var(--line);
  color:var(--text); font-size:10px; padding:0 5px; border-radius:4px; margin-right:5px}
.card-hours{font-size:11px; color:var(--muted); margin-top:3px}

.empty{text-align:center; color:var(--muted); padding:40px 0}

.site-foot{margin:34px 0 40px; padding-top:18px; border-top:1px solid var(--line)}
.updated{font-size:12px; color:var(--muted); margin:0 0 8px}
.disclaimer{font-size:11px; color:#6a7080; margin:0; line-height:1.7}

/* ===== 年齢認証 ===== */
.agegate{position:fixed; inset:0; z-index:1000; background:rgba(10,12,16,.975);
  display:flex; align-items:center; justify-content:center; padding:20px}
html.age-ok .agegate{display:none}
html:not(.age-ok) body{overflow:hidden}
.agegate-box{max-width:360px; width:100%; text-align:center}
.agegate-brand{font-size:30px; font-weight:800; letter-spacing:.04em; margin-bottom:18px}
.agegate-lead{font-size:15px; line-height:1.9; margin:0 0 24px; color:var(--text)}
.agegate-btns{display:flex; flex-direction:column; gap:10px}
.btn-yes{background:var(--accent); color:#fff; border:none; border-radius:12px;
  padding:15px; font-size:16px; font-weight:700; cursor:pointer}
.btn-yes:hover{filter:brightness(1.08)}
.btn-no{background:transparent; color:var(--muted); border:1px solid var(--line);
  border-radius:12px; padding:13px; font-size:14px; cursor:pointer}
.agegate-note{font-size:11px; color:var(--muted); margin-top:18px; line-height:1.7}

/* ===== エリア選択トップ ===== */
a.brand{text-decoration:none; color:inherit}
.back-link{font-size:12px; color:var(--muted); text-decoration:none;
  border:1px solid var(--line); border-radius:999px; padding:4px 11px}
.back-link:hover{border-color:var(--accent); color:var(--accent)}
.section-title{font-size:15px; font-weight:700; margin:6px 0 14px}
.area-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:12px; margin-bottom:10px}
.area-card{display:flex; flex-direction:column; justify-content:center; gap:7px;
  background:var(--panel); border:1px solid var(--line); border-radius:14px;
  padding:24px 16px; text-decoration:none; color:inherit;
  transition:transform .12s ease, border-color .12s ease}
.area-card:hover{transform:translateY(-3px); border-color:var(--accent)}
.area-name{font-size:21px; font-weight:800}
.area-count{font-size:12px; color:var(--muted)}
.area-count b{color:var(--accent); font-size:15px}

/* ===== 一覧カードの描画高速化（画面外はレンダリングを省略） ===== */
.card{content-visibility:auto; contain-intrinsic-size:auto 280px}

@media(max-width:520px){
  .grid{grid-template-columns:repeat(2,1fr); gap:10px}
  .area-grid{grid-template-columns:repeat(2,1fr)}
  .f-sort{flex:1 1 100%}
}
