/* =========================================================
   風俗サガスケ 共通スタイル
   画面幅：〜767px スマホ ／ 768〜1023px タブレット ／ 1024px〜 PC
   ========================================================= */
:root {
  /* ブランド色（指示書の配色。ヘッダー・フッターはロゴ画像の地に合わせた濃紺緑） */
  --night: #00131A;      /* ヘッダー・フッター・年齢確認 */
  --teal: #0F3D3E;       /* ナイトティール：最初の画面・総額パネル・選択中の状態 */
  --teal-2: #1C5455;     /* ティールの上の区切り線・選択欄 */
  --teal-light: #7FD6D2; /* 暗い地の上の差し色（ロゴの「サガスケ」の色） */
  --coral: #F07A63;      /* シグナルコーラル：塗り（今すぐ・予約ボタン）。上の文字は墨にする */
  --coral-ink: #C4503B;  /* コーラルを生成り地の文字に使うとき（読みやすさのため濃く） */
  --paper: #F2EEE6;      /* 生成り */
  --ink: #161B1C;
  --gray: #6A7271;
  --line: #D7D0C3;
  --bg: #F2EEE6;
  --card: #FBF9F5;
  --mint: #D5E6E0;
  --mint-ink: #0F3D3E;
  --img: #CFC7B8;
  --font: "M PLUS 1", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- ボタン・タグ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; padding: 11px 24px; font-weight: 700; border: 1px solid transparent;
  transition: background .15s, color .15s;
}
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { background: #E8664D; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 5px 12px; border-radius: 999px; background: var(--mint); color: var(--mint-ink);
}
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 10px; border-radius: 999px;
}
.badge-pr { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.badge-now { background: var(--coral); color: var(--ink); }
.img-ph { background: var(--img); }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--night); color: var(--paper); border-bottom: 1px solid var(--teal); }
/* ヘッダーのロゴはロゴ画像を切り出したもの。端をぼかしてヘッダーの地になじませる */
.logo-img { display: block; flex: none; line-height: 0; }
.logo-img img {
  display: block; height: 52px; width: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.site-header .container { display: flex; align-items: center; gap: 44px; height: var(--header-h); }
.logo {
  display: inline-flex; align-items: center; gap: 0; white-space: nowrap;
  font-weight: 900; font-size: 30px; letter-spacing: -.02em; line-height: 1;
  --logo-a: #161B1C; --logo-b: #1F7F80;
}
.logo-a { color: var(--logo-a); }
.logo-b { color: var(--logo-b); }
.logo-mark { width: 1.05em; height: 1.05em; margin-left: .08em; color: var(--logo-b); flex: none; }
/* 暗い地（フッター・ティールの面）に置くとき */
.logo-dark { --logo-a: #F2EEE6; --logo-b: #7FD6D2; }
.gnav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.gnav a:hover { color: var(--teal-light); }
.header-keep {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; font-size: 14px; font-weight: 500; padding: 6px 0;
}
.header-keep:hover { color: var(--teal-light); }
.count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: var(--ink);
  font-size: 11px; font-weight: 700; display: inline-grid; place-items: center;
}
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 6px; color: var(--paper); }

/* ---------- トップの最初の画面 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--teal); color: var(--paper);
}
.hero-visual {
  position: absolute; top: 0; right: 0; bottom: 0; width: 56%;
  background: linear-gradient(180deg, #0F3D3E 0%, #0B3233 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
.hero-visual i {
  position: absolute; bottom: 0; left: var(--x); width: var(--w); height: var(--h);
  background-color: #2B5E5F;
  background-image:
    linear-gradient(90deg, var(--c, #0B3233) 0 3px, transparent 3px),
    linear-gradient(0deg, var(--c, #0B3233) 0 4px, transparent 4px);
  background-size: 11px 10px;
  opacity: .55;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,61,62,.2), rgba(15,61,62,.6));
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 48px; align-items: center;
  padding-block: 32px 40px;
}
.hero-lead { font-size: 14px; font-weight: 500; line-height: 1.8; opacity: .85; }
.hero-title {
  font-size: clamp(36px, 5.2vw, 66px); font-weight: 900; letter-spacing: -.03em; line-height: 1.15;
  margin: 12px 0 28px;
}
.hero-title em { font-style: normal; color: var(--coral); }
.search { display: flex; gap: 10px; align-items: center; }
.mode {
  display: inline-flex; flex: none; background: var(--mint); border: 0; border-radius: 999px; padding: 3px; color: var(--ink);
}
.mode button {
  border: 0; background: none; border-radius: 999px; padding: 11px 26px; font-size: 13px; font-weight: 600;
}
.mode button[aria-pressed="true"] { background: var(--teal); color: var(--paper); }
.search-box {
  flex: 1; min-width: 0; display: flex; align-items: center;
  background: var(--paper); color: var(--ink); border: 1px solid transparent; border-radius: 999px; padding: 3px 3px 3px 16px;
}
.search-box .icon { color: var(--gray); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 11px 10px; }
.search-box input::placeholder { color: var(--gray); }
.search-box button {
  border: 0; background: var(--coral); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 8px 28px;
}
.search-box:focus-within { border-color: var(--coral); }

.market { background: #0B3233; border: 1px solid var(--teal-2); border-radius: 0; padding: 16px 22px 8px; }
.market h2 { font-size: 15px; font-weight: 700; letter-spacing: .06em; opacity: .8; padding-bottom: 10px; border-bottom: 1px solid var(--teal-2); }
.market-row {
  display: grid; grid-template-columns: 52px 18px minmax(0, 1fr) 46px auto; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed var(--teal-2);
}
.market-row:last-child { border-bottom: 0; }
.market-row .area { color: var(--coral); font-weight: 700; font-size: 18px; }
.market-row .sep { opacity: .5; }
.market-row .type { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-row .min { font-size: 13px; }
.market-row .price { color: var(--paper); font-weight: 800; font-size: 26px; letter-spacing: -.01em; text-align: right; }
.market-note { font-size: 11px; opacity: .65; text-align: right; padding: 4px 0 6px; }

/* ---------- 業態タブ ---------- */
.tabs-bar { padding-block: 16px 20px; }
.tabs {
  display: inline-grid; grid-template-columns: repeat(4, 130px);
  background: var(--card); border: 1px solid var(--ink); border-radius: 999px;
}
.tabs button {
  border: 0; background: none; padding: 10px 0; font-size: 14px; font-weight: 600; border-radius: 999px;
  border-left: 1px solid var(--line);
}
.tabs button:first-child { border-left: 0; }
.tabs button[aria-selected="true"] { background: var(--teal); color: var(--paper); border-color: transparent; }
.tabs button[aria-selected="true"] + button { border-left-color: transparent; }

/* ---------- 一覧と絞り込み ---------- */
.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 64px; }
.filter-layer { display: contents; }
.filter {
  background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 16px 18px 20px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.filter-title { font-size: 18px; font-weight: 800; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.filter fieldset { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.filter legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.filter label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; clear: both; }
.filter input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.filter-reset { margin-top: 16px; background: none; border: 0; padding: 0; font-size: 13px; color: var(--gray); text-decoration: underline; }
.filter-sheet-head, .filter-apply { display: none; }

.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.list-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.list-head h2 .num { color: var(--teal); font-size: 18px; margin-left: 6px; }
.list-tools { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.list-tools select {
  border: 1px solid var(--line); background: var(--card); border-radius: 2px; padding: 7px 30px 7px 12px; font-size: 13px;
}
.filter-open { display: none; }
.search-note {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px;
  background: var(--mint); padding: 8px 12px; border-radius: 2px;
}
.search-note button { background: none; border: 0; text-decoration: underline; padding: 0; color: var(--gray); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 10px 10px 14px;
  transition: border-color .15s;
}
.card:hover { border-color: var(--ink); }
.card:hover .card-name { color: var(--teal); }
.card-img { position: relative; aspect-ratio: 16 / 7; border-radius: 2px; margin-bottom: 6px; }
.card-name { font-size: 17px; font-weight: 700; line-height: 1.4; padding-inline: 2px; }
.card-place { font-size: 13px; color: var(--gray); padding-inline: 2px; }
.card .tag { align-self: flex-start; margin: 2px 2px 0; }
.card-total { display: flex; align-items: baseline; gap: 14px; padding-inline: 2px; margin-top: 4px; }
.card-total b { font-size: 14px; }
.price { color: var(--ink); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card-total .price { font-size: 24px; }

.card-guide .card-img { overflow: hidden; }
.card-guide h3 { font-size: 17px; font-weight: 700; padding-inline: 2px; }
.card-guide p { font-size: 13px; padding-inline: 2px; }
.card-guide .btn { margin-top: auto; padding-block: 8px; }

.city {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #00131A 0%, #0F3D3E 70%, #1C5455 100%);
}
.city i {
  position: absolute; bottom: 0; left: var(--x); width: var(--w); height: var(--h);
  background-color: #E9C98F;
  background-image:
    linear-gradient(90deg, #0B2628 0 3px, transparent 3px),
    linear-gradient(0deg, #0B2628 0 3px, transparent 3px);
  background-size: 8px 7px;
}
.city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,19,26,.35)); }

.feature {
  display: grid; grid-template-columns: auto 84px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 10px 16px;
}
.feature .badge { position: static; }
.feature .img-ph { height: 44px; border-radius: 2px; }
.feature b { display: block; font-size: 14px; }
.feature span { font-size: 12px; color: var(--gray); }
.feature:hover b { color: var(--teal); }
.empty { grid-column: 1 / -1; background: var(--card); border: 1px dashed var(--line); border-radius: 2px; padding: 40px 20px; text-align: center; color: var(--gray); }
.empty button { margin-top: 12px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--night); color: #C9D3D0; padding-block: 36px 40px; font-size: 13px; }
.site-footer .container { display: grid; gap: 18px; }
.site-footer .logo { font-size: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }
.footer-note { color: #8FA09D; font-size: 12px; line-height: 1.8; }

/* ---------- スマホの下部ナビ ---------- */
.bottom-nav { display: none; }

/* ---------- 開閉パネル ---------- */
.panel-layer {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 19, 26, .55);
  opacity: 0; transition: opacity .2s;
}
.panel-layer.is-open { opacity: 1; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s;
}
.panel-layer.is-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1.5px solid var(--ink); }
.drawer-head h2 { font-size: 17px; }
.close-btn { background: none; border: 0; padding: 6px; }
.drawer-body { padding: 18px 20px; overflow-y: auto; }
.drawer-empty { color: var(--gray); line-height: 1.9; }
.drawer-note { font-size: 12px; color: var(--gray); margin-top: 10px; }
.drawer-nav { display: grid; }
.drawer-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.compare-wrap { overflow-x: auto; }
.compare { border-collapse: collapse; width: 100%; font-size: 13px; }
.compare th, .compare td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: top; }
.compare thead th a { color: var(--teal); font-weight: 700; }
.compare tbody th { color: var(--gray); font-weight: 500; white-space: nowrap; }
.compare td.is-min { color: var(--coral-ink); font-weight: 800; }
.compare td.is-min::after { content: " 最安"; font-size: 10px; background: var(--coral); color: var(--ink); padding: 1px 5px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gray); text-decoration: underline; font-size: 12px; }

/* ---------- 年齢確認 ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: var(--night); color: var(--paper);
}
.age-box { width: min(440px, 100%); background: var(--night); border: 1px solid var(--teal-2); border-radius: 2px; padding: 32px 28px 36px; display: grid; gap: 16px; text-align: center; justify-items: center; }
.age-logo {
  display: block; width: min(357px, 100%); height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.age-text { font-size: 13px; color: #B9C6C3; line-height: 1.8; }
.age-q { font-size: 22px; font-weight: 800; }
.age-box .btn-outline { background: transparent; border-color: var(--paper); color: var(--paper); }
.age-box .btn-outline:hover { background: var(--paper); color: var(--night); }
.age-actions { display: grid; gap: 10px; margin-top: 4px; width: 100%; }

/* =========================================================
   店舗詳細
   ========================================================= */
.crumb { font-size: 12px; color: var(--gray); padding-block: 16px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb a:hover { color: var(--teal); }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-bottom: 64px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 330px; }
.gallery div { border-radius: 2px; }
.gallery div:first-child { grid-row: 1 / 3; }
.shop-head { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.shop-head h1 { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.verified {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; line-height: 1;
  padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--teal); color: var(--teal);
}
.shop-meta { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 13px; }
.shop-meta dt { color: var(--gray); }
.shop-meta dd { margin: 0; }
.block { margin-top: 32px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.block-head h2 { font-size: 20px; font-weight: 800; }
.block-head h2 .num { color: var(--teal); margin-left: 4px; }
.block-head span { font-size: 12px; color: var(--gray); }
.shift-row { display: grid; grid-template-columns: 72px 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); background: var(--card); }
.shift-row .time { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.shift-row .time.is-now { color: var(--coral-ink); }
.shift-row .ph { width: 48px; aspect-ratio: 3 / 4; border-radius: 2px; }
.shift-row .nm { font-weight: 600; }
.st { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; line-height: 1; white-space: nowrap; }
.st-now { background: var(--coral); color: var(--ink); }
.st-reserve { background: var(--mint); color: var(--mint-ink); }
.st-closed { border: 1px solid var(--line); color: var(--gray); font-weight: 500; }
.more-btn { margin-top: 12px; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px; font-weight: 600; font-size: 13px; }
.price-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 14px; }
.price-table th, .price-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { font-weight: 500; color: var(--gray); width: 40%; }
.price-table td { font-weight: 700; font-variant-numeric: tabular-nums; }
.price-note { font-size: 12px; color: var(--gray); margin-top: 8px; }

.calc { position: sticky; top: calc(var(--header-h) + 16px); background: var(--teal); color: var(--paper); border-radius: 0; padding: 20px; display: grid; gap: 12px; }
.calc h2 { font-size: 18px; font-weight: 700; }
.calc-field { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.calc-field select { width: 100%; border: 1px solid var(--teal-2); background: var(--teal-2); color: var(--paper); border-radius: 0; padding: 8px 10px; }
.calc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.calc-check input { accent-color: var(--coral); width: 16px; height: 16px; margin: 0; }
.calc-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; border-top: 1px solid var(--teal-2); padding-top: 12px; font-variant-numeric: tabular-nums; }
.calc-sum dd { margin: 0; text-align: right; }
.calc-total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1.5px solid var(--paper); padding-top: 10px; }
.calc-total b { font-size: 15px; }
.calc-total .price { font-size: 36px; color: var(--coral); }
.calc .btn-outline { border-color: rgba(242,238,230,.6); color: var(--paper); }
.calc .btn-outline:hover { background: var(--paper); color: var(--teal); }
.calc .btn { width: 100%; }
.calc-tel { font-size: 12px; opacity: .75; text-align: center; }
.keep-btn { background: none; border: 0; padding: 4px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.keep-btn[aria-pressed="true"] { color: var(--teal); }
.cta-bar { display: none; }
.notfound { padding: 80px 0; text-align: center; display: grid; gap: 16px; justify-items: center; }

/* =========================================================
   タブレット（768〜1023px）
   ========================================================= */
@media (max-width: 1023px) {
  .gnav { gap: 20px; }
  .site-header .container { gap: 28px; }
  .logo { font-size: 26px; }
  .hero .container { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .layout { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-open {
    display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--ink);
    border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
  }
  /* 絞り込みは下から出るシートにする */
  .filter-layer { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(0, 19, 26, .55); opacity: 0; transition: opacity .2s; }
  .filter-layer.is-shown { display: block; }
  .filter-layer.is-open { opacity: 1; }
  .filter {
    position: absolute; left: 0; right: 0; bottom: 0; top: auto; max-height: 85vh; overflow-y: auto;
    border-radius: 2px 2px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%); transition: transform .2s;
  }
  .filter-layer.is-open .filter { transform: none; }
  .filter-sheet-head { display: flex; justify-content: space-between; align-items: center; }
  .filter-sheet-head .filter-title { border: 0; padding: 0; }
  .filter > .filter-title { display: none; }
  .filter-apply { display: flex; width: 100%; margin-top: 16px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
}

/* =========================================================
   スマホ（〜767px）
   ========================================================= */
@media (max-width: 767px) {
  :root { --header-h: 56px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .container { padding-inline: 16px; }
  .logo { font-size: 22px; }
  .gnav, .header-keep { display: none; }
  .menu-btn { display: block; }
  .logo-img img { height: 44px; }

  .hero-visual { display: none; }
  .hero .container { grid-template-columns: 1fr; gap: 20px; padding-block: 18px 22px; }
  .hero-lead { font-size: 12px; }
  .hero-title { font-size: clamp(30px, 9.4vw, 40px); margin: 8px 0 16px; }
  .search { flex-direction: column; align-items: stretch; }
  .mode { align-self: flex-start; }
  .mode button { padding: 9px 26px; }
  .search-box button { padding: 10px 20px; }
  .market { padding: 12px 14px 4px; }
  .market h2 { font-size: 16px; }
  .market-row { grid-template-columns: 40px 14px minmax(0, 1fr) 36px auto; padding: 8px 0; }
  .market-row .area { font-size: 14px; }
  .market-row .type { font-size: 12px; }
  .market-row .min { font-size: 11px; }
  .market-row .price { font-size: 18px; }

  .tabs-bar { padding-block: 14px 12px; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .tabs button { font-size: 13px; padding: 8px 0; }
  .layout { padding-bottom: 32px; }
  .list-head h2 { font-size: 18px; }
  .list-head h2 .num { font-size: 15px; }
  .list-tools label span { display: none; }

  .cards { grid-template-columns: 1fr; gap: 8px; }
  .card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto; column-gap: 12px; row-gap: 2px; padding: 8px; align-items: start; }
  .card-img { grid-row: 1 / 6; aspect-ratio: 4 / 3; margin: 0; }
  .card .badge { top: 4px; left: 4px; font-size: 10px; padding: 3px 6px; }
  .card-name { font-size: 14px; }
  .card-place { font-size: 11px; }
  .card .tag { font-size: 10px; padding: 3px 8px; justify-self: start; }
  .card-total { gap: 10px; margin-top: 0; }
  .card-total b { font-size: 12px; }
  .card-total .price { font-size: 16px; }
  .card-guide .btn { grid-column: 2; padding-block: 6px; font-size: 12px; margin-top: 6px; }
  .card-guide h3 { font-size: 14px; }
  .card-guide p { font-size: 11px; }
  .feature { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 12px; gap: 10px; }
  .feature .img-ph { display: none; }

  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--card); border-top: 1.5px solid var(--ink);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav a, .bottom-nav button {
    position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 0;
    background: none; border: 0; font-size: 11px; font-weight: 600; border-left: 1px solid var(--line);
  }
  .bottom-nav > :first-child { border-left: 0; }
  .bottom-nav .is-active { color: var(--teal); font-weight: 800; }
  .bottom-nav .icon { width: 22px; height: 22px; }
  .bottom-nav .count { position: absolute; top: 0; left: calc(50% + 8px); }

  /* 店舗詳細 */
  .crumb { padding-block: 12px 10px; }
  .shop-layout { grid-template-columns: 1fr; gap: 0; padding-bottom: 24px; }
  .gallery { height: 220px; margin-inline: -16px; gap: 4px; }
  .shop-head h1 { font-size: 26px; }
  .calc { position: static; margin-top: 24px; }
  .calc-total .price { font-size: 32px; }
  .shift-row { grid-template-columns: 56px 40px minmax(0, 1fr) auto; gap: 10px; }
  .shift-row .time { font-size: 15px; }
  .shift-row .ph { width: 40px; }
  .page-shop .bottom-nav { display: none; }
  .cta-bar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--card); border-top: 1.5px solid var(--ink);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .cta-bar .label { font-size: 11px; color: var(--gray); display: block; }
  .cta-bar .price { font-size: 22px; color: var(--coral-ink); }
  .cta-bar .btn { padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

