/* ─── 出店・出展者一覧（exhibitors.html） ───
   2026-09-23追加。style.css の共通トークン（--bg / --cream / --gold …）と
   テーマ切替（html[data-theme]）の上に載せる。TOPページと同じくライトが既定 */

.shops-page {
  --shop-paper: var(--bg2);
  --shop-line: rgba(245, 238, 234, 0.14);
}

html[data-theme="light"] .shops-page {
  --shop-paper: #FFFDF7;
  --shop-line: rgba(43, 28, 18, 0.14);
}

/* ジャンルの色。
   --accent は面・罫用（market-config.js の MARKET_COLORS と同系）。
   --ink は文字用で、地の上で 4.5:1 以上になるよう明度をずらした値
   （index-visitor-test.html の .genre-chip と同じ値） */
.shops-page [data-kind="gourmet"]       { --accent: #E2604C; --ink: #E8564A; }
.shops-page [data-kind="farmers"]       { --accent: #4CAE6E; --ink: #52C077; }
.shops-page [data-kind="craft"]         { --accent: #B5651D; --ink: #D69050; }
.shops-page [data-kind="international"] { --accent: #F0B03C; --ink: #F0B03C; }

html[data-theme="light"] .shops-page [data-kind="gourmet"]       { --ink: #B3170B; }
html[data-theme="light"] .shops-page [data-kind="farmers"]       { --ink: #1F7A3C; }
html[data-theme="light"] .shops-page [data-kind="craft"]         { --ink: #964F12; }
html[data-theme="light"] .shops-page [data-kind="international"] { --ink: #8C5E0B; }

.shops-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 44px 20px 64px;
}

/* ── ページ見出し ── */
.shops-header {
  margin-bottom: 26px;
}

.shops-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: clamp(24px, 6.4vw, 32px);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 8px;
}

html[data-theme="light"] .shops-title { color: var(--cream); }

.shops-sub {
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: 0.04em;
  line-height: 1.8;
  margin-bottom: 18px;
}

.shops-lead {
  font-size: clamp(13px, 3.4vw, 15px);
  color: var(--cream);
  line-height: 2;
  letter-spacing: 0.03em;
}

.shops-lead a,
.shops-inline-link {
  color: var(--gold);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ── エリアへのジャンプ。スクロールしても上に残す ── */
.genre-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 -20px 8px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--shop-line);
}

.genre-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.genre-chip small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.genre-chip:hover,
.genre-chip:focus-visible {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.genre-chip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ── しぼりこみ ── */
.shop-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
}

.shop-filter[hidden] { display: none; }

.shop-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  margin-right: 2px;
}

.filter-chip {
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cream) 26%, transparent);
  background: transparent;
  color: var(--cream);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-chip:hover { border-color: var(--gold); }

.filter-chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--shop-paper);
}

.filter-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.shop-filter-result {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--cream-dim);
  min-height: 1em;
}

/* しぼりこみで1軒も残らなかったエリア・EAST/WEST の小見出しは隠す */
.shop-area[hidden],
.shop-subarea[hidden] { display: none; }

/* ── エリア ── */
.shop-area {
  /* 上に残るジャンプ用の帯のぶん、アンカーで飛んだ先をずらす */
  scroll-margin-top: 72px;
  padding-top: 36px;
}

.shop-area-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: clamp(19px, 5vw, 23px);
  color: var(--ink);
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}

.shop-area-illust {
  width: 52px;
  height: 40px;
  object-fit: contain;
  align-self: flex-end;
  margin-right: -2px;
}

.shop-area-en {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream-dim);
}

.shop-area-count {
  margin-left: auto;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--cream-dim);
}

.shop-area-lead {
  font-size: 13px;
  color: var(--cream);
  line-height: 1.95;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

/* クラフトの EAST / WEST */
.shop-subarea {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 22px 0 10px;
}

.shop-subarea:first-of-type { margin-top: 4px; }

/* ── 店のカード（屋台） ──
   上辺にジャンル色のしましまテント（のれん）を付けて、屋台が並んでいる様子にする。
   テントの下辺の波は mask の円で抜いている。
   角丸の方針（2026-09-25）: 曲線はテントの裾だけに使い、カード・写真・札・点線枠は
   角ばらせる（2px以下）。ピル型は押せるもの（エリアへのジャンプ・しぼりこみ）だけ */
.shop-list {
  list-style: none;
  display: grid;
  gap: 18px 14px;
}

.shop {
  position: relative;
  background: var(--shop-paper);
  border: 1px solid var(--shop-line);
  border-top: none;
  border-radius: 0 0 2px 2px;
  padding: 26px 14px 14px;
  margin-top: 4px;
}

.shop::before {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: -4px;
  height: 20px;
  border-radius: 2px 2px 0 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, var(--awning-light, #FFF8EC) 18px 36px);
  /* 上11pxは帯、その下に縞1本ぶん（18px）ごとの半円を垂らす */
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% 11px no-repeat,
    radial-gradient(9px at 50% 11px, #000 97%, #0000) 0 0 / 18px 20px repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% 11px no-repeat,
    radial-gradient(9px at 50% 11px, #000 97%, #0000) 0 0 / 18px 20px repeat-x;
}

html[data-theme="dark"] .shop::before { --awning-light: #F5E6CF; }

.shop[hidden] { display: none; }

.shop-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.shop-photo {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 2px;
  object-fit: cover;
  background: color-mix(in srgb, var(--accent) 12%, var(--shop-paper));
}

/* 写真の無いお店はジャンルのイラストを小さく置く */
.shop-photo.is-illust {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-photo.is-illust img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  opacity: 0.85;
}

.shop-head-text {
  min-width: 0;
  flex: 1;
}

.shop-intro {
  font-size: 13px;
  color: var(--cream);
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin-top: 12px;
}

/* 収穫感謝祭スペシャルメニュー。券の半券と同じ点線で囲って「この日だけ」を表す */
.shop-special {
  margin-top: 12px;
  padding: 10px 12px 11px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 0;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.shop-special-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.shop-special-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.5;
  margin-top: 3px;
}

.shop-special-desc {
  font-size: 12px;
  color: var(--cream-dim);
  line-height: 1.75;
  margin-top: 3px;
}

.shop-workshop {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 12px;
  font-size: 12px;
  color: var(--cream);
  line-height: 1.75;
}

.shop-workshop-label {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 2px;
  color: var(--shop-paper);
  background: var(--ink);
}

.shop-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.6;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.shop-desc {
  font-size: 12px;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-top: 2px;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.shop-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 2px;
  color: var(--cream-dim);
  background: color-mix(in srgb, var(--cream) 8%, transparent);
}

/* 体験（ワークショップ）あり。マップの★と同じ意味 */
.shop-tag.is-workshop {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 9px;
}

.shop-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

.shop-link svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.shop-link:hover span,
.shop-link:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }

/* ── マップへの導線 ── */
.shops-map {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(196, 26, 14, 0.25);
}

.shops-map-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--white);
  margin-bottom: 14px;
}

html[data-theme="light"] .shops-map-title { color: var(--cream); }

.shops-map .map-figure { margin-bottom: 8px; }

.shops-note {
  font-size: 12px;
  color: var(--cream-dim);
  line-height: 1.8;
  margin-top: 30px;
}

.shops-back {
  margin-top: 26px;
  font-size: 13px;
}

.shops-back a {
  color: var(--gold);
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .shop-list { grid-template-columns: 1fr 1fr; }
}

/* ── 左の欄（エリア・しぼりこみ・会場マップ） ──
   スマホ〜タブレットでは枠そのものを無いことにして（display: contents）、
   中のエリアボタンとしぼりこみを今までどおり本文の流れに並べる。縮小マップは出さない */
.shops-side { display: contents; }
.shops-side-map { display: none; }

/* 右下に浮かぶ「会場マップ」ボタン（押せるものなのでピル型） */
.shops-map-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 18px 0 15px;
  border-radius: 999px;
  background: var(--red);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.shops-map-fab svg { width: 19px; height: 19px; flex: none; }

.shops-map-fab:active { transform: translateY(1px); }

.shops-map-fab:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ボタンがページ末尾の文字（戻るリンク等）に重ならないよう、下に余白を足す */
.shops-page:not(.stage-page) .shops-main { padding-bottom: 104px; }

@media (min-width: 768px) {
  .shops-main {
    max-width: 760px;
    padding: 60px 32px 80px;
  }

  .genre-nav {
    margin: 0 -32px 8px;
    padding: 12px 32px;
  }
}


/* ── PC（1100px以上）: 左に固定の欄、右に一覧 ──
   760pxのままだと広い画面で左右が大きく空くので、空いた左側を
   「エリアへのジャンプ・しぼりこみ・会場マップ」の欄に使う（stage-v2 の目次と同じ組み方） */
@media (min-width: 1100px) {
  .shops-page:not(.stage-page) .shops-main {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 264px minmax(0, 870px);
    justify-content: center;
    column-gap: 56px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .shops-page:not(.stage-page) .shops-main > * { grid-column: 2; }

  .shops-side {
    display: block;
    grid-column: 1 !important;
    grid-row: 1 / span 9;
    align-self: start;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 18px 18px 16px;
    background: var(--shop-paper);
    border: 1px solid var(--shop-line);
    border-top: 4px solid var(--red);
    border-radius: 2px;
  }

  /* エリアのボタンは縦に並べ、店数を右端に */
  .shops-side .genre-nav {
    position: static;
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }

  .shops-side .genre-chip { justify-content: space-between; }

  .shops-map-fab { display: none; }

  .shops-side .shop-filter { margin-top: 18px; }
  .shops-side .shop-filter-label { flex-basis: 100%; margin-bottom: 2px; }

  .shops-side-map {
    display: block;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--shop-line);
  }

  .shops-side-map-link {
    display: block;
    text-decoration: none;
  }

  .shops-side-map .map-save-link {
    margin-top: 10px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .shops-side-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--cream-dim);
    margin-bottom: 8px;
  }

  .shops-side-map img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--shop-line);
    border-radius: 2px;
    background: #FFFFFF;
  }

  .shops-side-zoom {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
  }

  .shops-side-map-link:hover .shops-side-zoom,
  .shops-side-map-link:focus-visible .shops-side-zoom { text-decoration: underline; text-underline-offset: 3px; }

  /* 左の欄から飛んだ先が画面の一番上にくっつかないように（上に張り付く帯が無くなるので詰める） */
  .shop-area { scroll-margin-top: 24px; }
}