/* ===== tokens ===== */
:root {
  --bg: #fbf8f5;
  --surface: #ffffff;
  --surface-alt: #f3eee9;
  --ink: #221d1f;
  --ink-soft: #5d5458;
  --ink-mute: #958b8f;
  --line: #e6ded8;
  --accent: #c2416b;          /* コンカフェ */
  --accent-soft: #fbe7ee;
  --shisha: #2f7c78;          /* シーシャ */
  --shisha-soft: #e0f0ee;
  --mixed: #7a5cc2;
  --mixed-soft: #ece6fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 29, 31, .05), 0 6px 20px rgba(34, 29, 31, .06);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17141a;
    --surface: #211d24;
    --surface-alt: #1c1920;
    --ink: #f1ecef;
    --ink-soft: #c4bac0;
    --ink-mute: #8a8086;
    --line: #342e37;
    --accent: #f07ca1;
    --accent-soft: #3a2230;
    --shisha: #6cc4bd;
    --shisha-soft: #1d3332;
    --mixed: #b39cf0;
    --mixed-soft: #2c2540;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}

/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .02em;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-mute); }
.is-empty { color: var(--ink-mute); }

.preview-bar {
  background: #f2c94c; color: #3a2e00;
  text-align: center; font-size: 13px; font-weight: 700; padding: 4px 16px;
}

/* ===== header / footer ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.logo__mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--accent) 0 50%, var(--shisha) 50% 100%);
}
.logo__text { font-size: 16px; }
.site-nav { display: flex; gap: 4px; font-size: 14px; font-weight: 600; }
.site-nav a { text-decoration: none; padding: 6px 10px; border-radius: 999px; color: var(--ink-soft); }
.site-nav a:hover { background: var(--surface-alt); color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; color: var(--ink-soft); font-size: 13px; }
.site-footer .container { display: grid; gap: 10px; }
.site-footer__name { font-weight: 800; color: var(--ink); font-size: 15px; }
.site-footer__nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer__copy { color: var(--ink-mute); }

/* ===== hero ===== */
.hero { padding: 48px 0 40px; }
.hero__title { font-size: clamp(26px, 5vw, 40px); font-weight: 800; letter-spacing: .01em; max-width: 18em; }
.hero__lead { margin-top: 12px; color: var(--ink-soft); max-width: 36em; }
.hero__stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.hero__stats strong { color: var(--ink); font-size: 18px; margin: 0 2px; font-variant-numeric: tabular-nums; }

.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: 28px; }
.entry {
  --c: var(--accent); --c-soft: var(--accent-soft);
  display: grid; gap: 6px; padding: 22px 22px 18px;
  border-radius: var(--radius); text-decoration: none;
  background: var(--c-soft); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.entry--shisha { --c: var(--shisha); --c-soft: var(--shisha-soft); }
.entry:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.entry__name { font-size: 20px; font-weight: 800; color: var(--c); }
.entry__name::after { content: " →"; }
.entry__lead { font-size: 14px; color: var(--ink-soft); }
.entry__count { font-size: 13px; font-weight: 700; color: var(--c); }

/* ===== sections ===== */
.section { padding: 48px 0; }
.section--alt { background: var(--surface-alt); }
.section__title { font-size: 22px; font-weight: 800; }
.section__title::before {
  content: ""; display: inline-block; width: 6px; height: 1em; margin-right: 10px; vertical-align: -2px;
  border-radius: 3px; background: linear-gradient(var(--accent), var(--shisha));
}
.section__lead { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }

/* genre */
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-top: 20px; }
.genre {
  display: grid; gap: 2px; height: 100%; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none;
}
a.genre:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.genre__name { font-weight: 700; }
.genre__desc { font-size: 12px; color: var(--ink-mute); line-height: 1.6; }
.genre__count { font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 4px; }
.genre.is-empty { background: transparent; border-style: dashed; }
.genre.is-empty .genre__name { color: var(--ink-soft); }
.genre.is-empty .genre__count { color: var(--ink-mute); font-weight: 400; }

/* area */
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 15px;
}
.chip:hover { border-color: var(--accent); }
.chip__sub { font-size: 12px; font-weight: 400; color: var(--ink-mute); }
.chip__count { font-size: 12px; color: #fff; background: var(--accent); border-radius: 999px; padding: 0 8px; font-variant-numeric: tabular-nums; }

.region-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 20px 28px; margin-top: 28px; }
.region__name { font-size: 13px; font-weight: 700; color: var(--ink-mute); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 8px; }
.pref-list { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.pref-list a { font-weight: 700; text-decoration: none; }
.pref-list a:hover { color: var(--accent); }
.pref-list__count { font-size: 11px; color: var(--accent); margin-left: 3px; vertical-align: super; }

/* shop card */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.shop-card { --c: var(--accent); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--c); transition: box-shadow .15s ease, transform .15s ease; }
.shop-card--shisha { --c: var(--shisha); }
.shop-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.shop-card__link { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px 18px; text-decoration: none; }
.shop-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 11px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 6px; background: var(--surface-alt); color: var(--ink-soft); }
.badge--concafe { background: var(--accent-soft); color: var(--accent); }
.badge--shisha { background: var(--shisha-soft); color: var(--shisha); }
.badge--mixed { background: var(--mixed-soft); color: var(--mixed); }
.shop-card__name { font-size: 17px; font-weight: 800; }
.shop-card__catch { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.shop-card__meta { display: grid; gap: 2px; margin: 4px 0 0; font-size: 13px; }
.shop-card__meta div { display: grid; grid-template-columns: 3.5em 1fr; }
.shop-card__meta dt { color: var(--ink-mute); }
.shop-card__meta dd { margin: 0; }
.shop-card__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-mute); }
.shop-card__foot .age { font-weight: 700; color: var(--ink-soft); }

/* guide */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.guide { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.guide h3 { font-size: 16px; margin-bottom: 6px; }
.guide p { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 600px) {
  .site-header__inner { padding-top: 8px; padding-bottom: 8px; }
  .site-nav { width: 100%; overflow-x: auto; }
  .hero { padding: 32px 0 28px; }
  .section { padding: 36px 0; }
  .shop-grid { grid-template-columns: 1fr; }
  .genre-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .genre { padding: 12px; }
}

/* ===== common parts ===== */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0 0; margin: 0; list-style: none; font-size: 12px; color: var(--ink-mute); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { padding: 6px 12px; font-size: 13px; }

.note { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.7; }
.notice { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; background: #fff4d6; color: #6b4e00; }
.notice--closed { background: #fde2e2; color: #8a1f1f; }
a.badge { text-decoration: none; }
a.badge:hover { filter: brightness(.95); }

/* ===== shop page ===== */
.shop-head { padding-top: 20px; padding-bottom: 24px; }
.shop-head__name { font-size: clamp(24px, 4vw, 32px); font-weight: 800; margin-top: 10px; }
.shop-head__catch { margin-top: 6px; color: var(--ink-soft); }
.shop-head__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.shop-head__meta .verified { color: var(--ink-mute); }

.shop-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-bottom: 48px; }
.shop-section { padding: 22px 0; border-top: 1px solid var(--line); }
.shop-section:first-child { border-top: 0; padding-top: 0; }
.shop-section__title { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.shop-desc { font-size: 15px; line-height: 2; }

.hours, .info { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours th, .hours td, .info th, .info td { text-align: left; padding: 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.hours th { width: 3em; font-weight: 700; }
.hours td { font-variant-numeric: tabular-nums; }
.hours .is-closed td, .hours .is-closed th { color: var(--ink-mute); }
.info th { width: 7.5em; font-weight: 400; color: var(--ink-mute); }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag-list li { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }

.shop-side { display: grid; gap: 16px; position: sticky; top: 76px; }
.side-box { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-box__title { font-size: 15px; font-weight: 800; }
.side-box .note { margin-top: 0; }
.address { font-size: 14px; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 10px; background: var(--surface-alt); }
.link-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.link-list a { display: block; text-align: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-size: 13px; font-weight: 700; }
.link-list a:hover { border-color: var(--accent); color: var(--accent); }
.side-foot { font-size: 12px; color: var(--ink-mute); }

/* ===== list page ===== */
.list-head { padding: 20px 0 8px; }
.list-head__title { font-size: clamp(24px, 4vw, 30px); font-weight: 800; }
.list-head__lead { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.subnav__label { font-size: 12px; color: var(--ink-mute); margin-right: 4px; }
.section--tight { padding-top: 16px; }

.list-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.list-layout:not(:has(.filters)) { grid-template-columns: minmax(0, 1fr); }
.filters { display: grid; gap: 16px; position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.filters legend { font-size: 12px; font-weight: 700; color: var(--ink-mute); margin-bottom: 6px; padding: 0; }
.check { cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.check input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-list__count { font-size: 14px; color: var(--ink-soft); }
.shop-list__count strong { font-size: 20px; color: var(--ink); margin-right: 2px; }
.shop-list .shop-grid { margin-top: 12px; }
.shop-list__empty { margin-top: 16px; padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }

/* ===== prose ===== */
.prose { max-width: 760px; padding-top: 24px; padding-bottom: 56px; }
.prose h1 { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.prose h2 { font-size: 19px; font-weight: 800; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 10px; }
.prose ol { padding-left: 1.4em; margin: 10px 0; }

@media (max-width: 860px) {
  .shop-body, .list-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-side, .filters { position: static; }
}
@media (prefers-color-scheme: dark) {
  .notice { background: #3b3014; color: #f5d68a; }
  .notice--closed { background: #3d1b1b; color: #f3a5a5; }
}
