/* エリア別ページ・チェーン別の料金ページ（普通にスクロールする文書）用のスタイル。
   地図アプリ本体の style.css は画面固定レイアウト専用なので共用できない。

   見た目の方針：飾らない情報ページにする。
   - 背景は白、文字は黒、リンクは青の下線。ベージュ系の地色・角丸のカード・
     影・色付きの大きなボタンは使わない（生成AIで作ったページっぽく見えるため）
   - 罫線は 1px のグレーだけ。表は普通の罫線つきの表
   カラオケ版の area.css とは 2026-11-13 から別物（ダーツ版だけ先にこの方針にした）
--------------------------------------------------------------------------*/

:root {
  --bg: #ffffff;
  --text: #222222;
  --text-muted: #555555;
  --text-faint: #777777;
  --line: #d4d4d4;
  --head-bg: #f2f2f2;
  --link: #0b57d0;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic Medium", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
}

/* ------------------------------------------------------------------ 見出し */

.page-top {
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}

.page-home {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}

.crumbs {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.crumbs a {
  color: var(--text-muted);
}

h1 {
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 10px;
}

h2 {
  font-size: 16px;
  margin: 30px 0 8px;
}

p {
  margin: 0 0 12px;
}

.lead {
  margin: 0 0 12px;
}

.note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.maplink {
  margin: 14px 0 0;
  font-weight: 700;
}

/* -------------------------------------------------------------------- 料金表 */

/* 店名が長いときもスマホ幅で横スクロールさせないため、表は3列だけにしている */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.price-table th,
.price-table td {
  padding: 7px 8px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  background: var(--head-bg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.price-table th[scope="row"] {
  font-weight: 400;
}

.price-table th[scope="row"] a {
  font-weight: 600;
}

.price-table .chain {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
}

.price-table .addr {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.price-table .addr a {
  color: inherit;
}

.price-table .num {
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.price-table .num.none {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-faint);
}

.price-table .cat {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-faint);
}

.price-table td.map {
  width: 1%;
  white-space: nowrap;
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ 一覧 */

.chain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.chain-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.chain-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chain-name {
  font-weight: 600;
}

.chain-note {
  font-size: 12px;
  color: var(--text-faint);
}

.chain-list .count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.area-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0 16px;
}

.area-links li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 0;
  font-size: 14px;
}

.area-links .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
}

/* チェーン別ページの絞り込み・並び替え */
.list-tools {
  margin: 16px 0 10px;
}

.list-tools input[type="search"] {
  width: 100%;
  font: inherit;
  font-size: 16px; /* iOS で入力時に拡大されないよう 16px 以上 */
  padding: 6px 8px;
  border: 1px solid #999;
  border-radius: 2px;
  background: #fff;
  color: var(--text);
}

.sort-links {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.sort-links button {
  font: inherit;
  padding: 0;
  margin-left: 10px;
  border: none;
  background: none;
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
}

.sort-links button[aria-pressed="true"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

#store-count {
  margin-left: 12px;
}

/* -------------------------------------------------------------------- 脚注 */

.page-foot {
  border-top: 1px solid var(--line);
  padding: 16px 16px 30px;
  font-size: 12px;
  color: var(--text-muted);
}

.page-foot p {
  max-width: 760px;
  margin: 0 auto 8px;
}

.page-updated {
  color: var(--text-faint);
  font-size: 11px;
}
