/* 万米サイト。配色はユーザー指定 (2026-11-04): 背景 #0D111D / カード #171E2D / 境界線 #2B3548 / 文字 #FFFFFF / 補助文字 #9AA6B8 / 水色 #65C7F5 / ゴールド #D8B43F */
:root {
  color-scheme: dark;
  --bg: #0d111d;
  --card: #1d2638;       /* ヘッダー・帯 (カードより少し明るい) */
  --card-2: #171e2d;     /* カード */
  --gold: #d8b43f;
  --on-gold: #1a1405;
  --ink: #ffffff;
  --sub: #9aa6b8;
  --blue: #65c7f5;
  --on-blue: #0d111d;
  --green: #5fd68f;
  --minus: #ff7b8a;
  --line: #2b3548;
  --badge: #243049;
  --sun: #ff7b8a;
  --sat: #65c7f5;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }      /* 固定したヘッダーの下に見出しが隠れないように */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));      /* 下のメニューの高さ + iPhone の下の余白 */
}
a { color: var(--blue); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* 頭とメニュー */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--card);
  border-bottom: 4px solid var(--gold);
  padding: max(8px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: block; flex: 0 1 245px; min-width: 0; }
.brand img { display: block; width: 100%; height: auto; }
/* 右上の X へのリンク: キャラクターの画像。ヘッダーの高さは変えず、押せる範囲は 44px 以上にする */
.x-link { flex: none; display: block; width: 44px; height: 48px; margin: -4px 0 -4px auto; }
.x-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* アイコン (Lucide)。線の太さと大きさはカテゴリと下のメニューで同じ */
.ico { display: block; flex: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  background: var(--card);
  border-top: 2px solid var(--gold);
  padding: 4px max(4px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px));
}
.tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.tabs a[aria-current] { color: var(--blue); border-color: var(--blue); background: rgba(101, 199, 245, .1); box-shadow: 0 0 6px rgba(101, 199, 245, .28); }

/* 中身の幅 */
.wrap { max-width: 720px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.wrap.wide { max-width: 1040px; }

/* 見出し (大きい数字 + 縦線 + 太い見出し) */
.mast { display: flex; align-items: stretch; gap: 14px; margin: 4px 0 16px; }
.mast-num {
  color: var(--blue);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  align-self: center;
}
.mast-num small { font-size: 20px; color: var(--ink); margin-left: 2px; font-weight: 900; letter-spacing: 0; }
.mast-text { border-left: 2px solid var(--line); padding-left: 14px; min-width: 0; align-self: center; }
.mast-plain .mast-text { border-left: 0; padding-left: 0; }
.mast-part { display: inline-block; }
.mast h1 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; }
.mast-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 13px; color: var(--sub); }
.mast-sub [data-relday] { color: var(--gold); font-weight: 700; }
.mast-sub [data-relday]:empty { display: none; }
.count { font-weight: 700; color: var(--ink); }
/* 店舗リストの低い形: 左に日付、細い縦線、右に「店舗リスト」と「今日 48店」 */
.mast.compact { gap: 12px; margin: 0 0 10px; }
.mast.compact .mast-num { font-size: 40px; }
.mast.compact .mast-num small { font-size: 16px; }
.mast.compact .mast-text { border-left-width: 1px; padding-left: 12px; }
.mast.compact h1 { font-size: 18px; }
.mast.compact .mast-sub { margin-top: 2px; }

/* 絞り込み: 県は選ぶと金色、種類は選ぶと水色 */
.filters { display: grid; gap: 6px; margin-bottom: 12px; }
.chips { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 36px;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chips-pref .chip { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; }
.cat-grid { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 4px; }
.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 56px;
  padding: 8px 0 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.cat-btn[aria-pressed="true"] { color: var(--blue); border-color: var(--blue); background: rgba(101, 199, 245, .12); box-shadow: 0 0 8px rgba(101, 199, 245, .3); }

/* 店舗リスト: 画像の「▌全体最終データ」の見出しと、店ごとのカード */
.sec { margin-bottom: 16px; }
.sec h2, h2.plain, .prose h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sec h2::before, h2.plain::before, .prose h2::before {
  content: "";
  flex: none;
  width: 5px;
  height: .95em;
  background: var(--gold);
  align-self: center;
}
.sec-n { font-size: 13px; font-weight: 500; color: var(--sub); font-variant-numeric: tabular-nums; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row { position: relative; padding: 9px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: start; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; }
.row .tags { grid-column: 1 / -1; }
/* カード全体が店舗ページへのリンク (店名のリンクをカードいっぱいに広げる)。右端に小さな矢印 */
.row-link { padding-right: 28px; }
.row-link:active { background: var(--card); }
.row-link::after { content: ""; position: absolute; top: 50%; right: 12px; width: 7px; height: 7px; border-top: 2px solid var(--sub); border-right: 2px solid var(--sub); transform: translateY(-50%) rotate(45deg); pointer-events: none; }
.row-link a.store::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.row-link a.store:focus-visible { outline: none; }
.row-link a.store:focus-visible::after { outline: 3px solid var(--gold); outline-offset: 2px; }
.row-link .result-btn { position: relative; z-index: 1; }
.result-btn { display: inline-block; padding: 2px 12px; border-radius: 99px; background: var(--blue); color: var(--on-blue); font-size: 12.5px; font-weight: 900; line-height: 1.5; text-decoration: none; white-space: nowrap; }
/* 店舗ページの過去のイベント */
.month-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 8px; }
.month-pager b { font-size: 14px; font-weight: 900; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.month-btn { min-height: 34px; padding: 3px 12px; border: 1.5px solid var(--gold); border-radius: 99px; background: transparent; color: var(--gold); font-size: 13.5px; font-weight: 700; justify-self: start; }
.month-btn[data-next] { justify-self: end; }
.hits a.result-btn { color: var(--on-blue); font-weight: 900; }
.ev-rows li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.ev-rows li .tags { grid-column: 1 / -1; }
.store { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
a.store { text-decoration: none; }
a.post-store { color: var(--ink); text-decoration: none; }
a.map-name { color: var(--ink); text-decoration: underline; text-decoration-color: #4a5670; text-underline-offset: 3px; }
.tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; }
/* 種類の色は3つ: 金 = 周年・リニューアル・特定日 / 水色 = 取材・来店 / 灰 = 景品・その他 */
.tag { font-size: 12.5px; line-height: 1.4; padding: 1px 7px; border-radius: 5px; background: transparent; color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.tag.t-anniv, .tag.t-renew, .tag.t-day { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); font-weight: 700; }
.tag.t-event { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 500; }
.tag.t-visit { color: var(--green); box-shadow: inset 0 0 0 1px var(--green); font-weight: 500; }
.tag.t-closed { background: transparent; color: var(--minus); box-shadow: inset 0 0 0 1px var(--minus); font-weight: 700; }
.empty { padding: 24px 0; text-align: center; color: var(--sub); }
.none-text { color: var(--sub); font-size: 14px; font-weight: 400; margin: 0; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin: 18px 0 6px; font-weight: 700; }
.pager a { text-decoration: none; padding: 10px 2px; }
.pager > :last-child { text-align: right; }
.note { color: var(--sub); font-size: 12.5px; margin: 10px 0; }

/* 月の表 */
.mg-list { display: grid; gap: 20px; }
.mg h3 { margin: 0 0 6px; font-size: 15px; font-weight: 900; }
.mg-head, .mg-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mg-head span { text-align: center; font-size: 12px; color: var(--sub); }
.mg-cell { min-height: 50px; border-radius: 6px; padding: 5px 2px; text-align: center; font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #5c6680; text-decoration: none; }
.mg-cell b { font-weight: 500; }
.mg-cell.blank { visibility: hidden; }
.mg-cell.on { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.mg-cell.on b { font-weight: 900; font-size: 15px; }
.mg-cell.on small { font-size: 11px; color: var(--sub); font-variant-numeric: tabular-nums; }
.mg-cell.on.sun b { color: var(--sun); }
.mg-cell.on.sat b { color: var(--sat); }

/* 検索 */
.search { margin-bottom: 16px; }
.search label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--gold); border-radius: 8px; background: var(--card-2); color: var(--ink); }
.search input::placeholder { color: #6b7590; }
.hit-count { color: var(--sub); font-size: 13px; margin: 0 0 8px; }
.hits { list-style: none; margin: 0 0 18px; padding: 0; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hits li { padding: 10px 12px; display: grid; gap: 4px; }
.hits li:nth-child(even) { background: var(--card); }
.hits a { font-weight: 700; text-decoration: none; color: var(--blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hits .hit-store { font-weight: 700; }
.hits .hit-topic { display: block; font-size: 13px; color: var(--sub); overflow-wrap: anywhere; }

/* データまとめ */
.posts { display: grid; gap: 12px; }
.post { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.post-area { margin: 0; font-size: 12.5px; color: var(--sub); }
.post h3 { margin: 0; font-size: 18px; font-weight: 900; overflow-wrap: anywhere; }
.post-topic { margin: 2px 0 10px; font-size: 13.5px; color: var(--gold); overflow-wrap: anywhere; }
.post-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.post-nums div { background: var(--card); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.post-nums dt { font-size: 12px; color: var(--sub); }
.post-nums dd { margin: 0; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.plus { color: var(--blue); }
.minus { color: var(--minus); }
.post-sec h4 { margin: 8px 0 2px; font-size: 13px; font-weight: 700; color: var(--ink); }
.post-sec ul { list-style: none; margin: 0; padding: 0; }
.post-sec li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; }
.post-sec li + li { border-top: 1px dashed var(--line); }
.val { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.post-note { font-size: 12.5px; color: var(--sub); margin: 8px 0 0; overflow-wrap: anywhere; }

/* データまとめ: 総合データの画像と同じ項目 */
.reports { display: grid; gap: 12px; }
/* データページの配色 (ユーザー指定 2026-11-04): 境界線 #303B50 / 数値パネル #20283A / カードの角丸 14px */
.data-page { --line: #303b50; --card: #20283a; --radius: 14px; }
.report { min-width: 0; scroll-margin-top: 8px; padding: 16px 16px 0; }
.report .post-area { line-height: 1.4; }
.report .post-topic { margin: 0 0 8px; }
.report .post-nums { margin: 0; }
.post-nums dd small { font-size: 12px; font-weight: 700; margin-left: 2px; }
/* 詳細の開閉ボタン: カードの下に幅いっぱい。矢印は開閉に合わせて向きを変える */
.report-toggle { width: 100%; min-height: 44px; margin-top: 8px; display: flex; justify-content: center; align-items: center; gap: 8px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--blue); font-size: 14px; font-weight: 700; }
.report-toggle i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.report-toggle[aria-expanded="true"] i { transform: translateY(2px) rotate(-135deg); }
.report-body { display: grid; gap: 8px; margin: 0 -8px; padding-bottom: 16px; min-width: 0; }
.report-body .panel { border-radius: 10px; }
.report-body .post-note { margin: 0 8px; }
/* カレンダー */
.data-page .cal-title { margin-top: 24px; }
.mg-cell.selected, .mg-cell.on.selected { border: 2px solid var(--blue); }
button.mg-cell { width: 100%; background: none; border: 1px solid transparent; font: inherit; font-size: 13px; color: #5c6680; cursor: pointer; }
.data-page .mg-cell { min-height: 52px; }
.data-page .mg-cell.on small { color: var(--gold); font-size: 13px; font-weight: 900; }
.mg-empty { margin: 8px 0 0; padding: 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: 13.5px; color: var(--sub); }

/* 店舗ページ (ユーザー指定 2026-11-04): 金 #D9B342 / 角丸 12px / 店名が主役 */
.shop-page { --gold: #d9b342; --radius: 12px; display: grid; gap: 16px; }
.shop-page > .sec { margin: 0; }
.shop-hero { display: grid; gap: 4px; }
.shop-labels { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--sub); }
.shop-pref { padding: 1px 8px; border-radius: 99px; background: var(--badge); color: var(--ink); font-weight: 700; }
.shop-hero h1 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.fact { min-width: 0; padding: 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); }
.fact dt { font-size: 12px; color: var(--sub); }
.fact dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fact .none-text, .info-rows .none-text { font-size: 13px; font-weight: 400; }
.shop-basic { background: var(--card-2); }
.info-rows { margin: 0; padding: 4px 12px; }
.info-rows div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 8px 0; }
.info-rows div + div { border-top: 1px solid var(--line); }
.info-rows dt { font-size: 13px; color: var(--sub); }
.info-rows dd { margin: 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.shop-empty { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); }
.shop-empty h2 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.shop-links { display: grid; gap: 8px; }
.shop-links h3 { margin: 0; font-size: 14px; font-weight: 700; }
.near-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.near-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-size: 13px; text-decoration: none; }
.more-link { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 8px 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.more-link i { width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.panel { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.panel h4 { margin: 0; background: var(--card); padding: 8px 12px; font-size: 16px; font-weight: 900; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.panel h4::before { content: ""; flex: none; width: 5px; height: 1em; background: var(--gold); }
.report-mid { display: grid; gap: 12px; min-width: 0; }
/* 末尾別の縦棒: 0 の線の上がプラス、下がマイナス */
.vchart { --h: 140px; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); padding: 26px 6px 8px; }
.vcol { display: flex; flex-direction: column; min-width: 0; }
.vup { height: calc(var(--h) * var(--u)); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-bottom: 1.5px solid var(--ink); }
.vdown { height: calc(var(--h) * var(--d)); display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.vup i, .vdown i { flex: none; display: block; width: 62%; max-width: 34px; }
.vup i { background: var(--blue); }
.vdown i { background: var(--minus); }
.vl { flex: none; font-size: clamp(9.5px, 2.75vw, 13px); font-weight: 700; line-height: 1.5; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vx { text-align: center; font-size: 13px; font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vcol.zoro .vup i { background: var(--gold); }
.vcol.zoro .vl.plus, .vcol.zoro .vx { color: var(--gold); }
.k-head { display: none; }
.kishu, .dai { list-style: none; margin: 0; padding: 4px 8px 8px; }
.kishu li { display: grid; grid-template-columns: 1.5em minmax(0, 1fr) auto 4.2em; grid-template-areas: "rk name name name" ". val g win"; gap: 0 8px; align-items: baseline; padding: 6px 6px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.kishu li:nth-child(odd), .dai li:nth-child(odd) { background: var(--card); }
.kishu .rk { grid-area: rk; }
.k-name { grid-area: name; font-size: 14.5px; overflow-wrap: anywhere; }
.k-val { grid-area: val; font-size: 16px; font-weight: 900; }
.k-g { grid-area: g; font-size: 13.5px; color: var(--ink); text-align: right; }
.k-win { grid-area: win; font-size: 13px; text-align: right; }
.k-win i { display: block; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.k-win u { display: block; height: 100%; background: var(--blue); }
.rk { font-weight: 900; color: var(--sub); text-align: center; font-variant-numeric: tabular-nums; }
.rk.r1 { color: #ffd84d; }
.rk.r2 { color: #c7d0e0; }
.rk.r3 { color: #e0975a; }
.rk.r5 { color: #52d6a8; }
.rk.r10 { color: #6fd1ff; }
.rk.r20 { color: #5c6680; }
.dai li { display: grid; grid-template-columns: 1.7em 3.6em minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.d-num { background: var(--badge); border: 1px solid var(--line); border-radius: 6px; text-align: center; font-weight: 700; font-size: 13.5px; padding: 1px 0; }
.d-name { font-size: 13.5px; overflow-wrap: anywhere; line-height: 1.3; }
.dai b { font-size: 15.5px; font-weight: 900; white-space: nowrap; }
ul.plain { list-style: none; margin: 0; padding: 8px 12px; display: grid; gap: 4px; font-size: 14px; }

/* 万米参戦日誌・店舗の一覧 */
.entries { list-style: none; margin: 0; padding: 0; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.entries li:nth-child(even) { background: var(--card); }
.entries a { display: grid; gap: 3px; padding: 12px; text-decoration: none; color: var(--ink); }
.entries b { font-size: 16px; font-weight: 900; overflow-wrap: anywhere; }
.entry-date { color: var(--gold); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--sub); font-weight: 500; font-variant-numeric: tabular-nums; }
.entry-excerpt { font-size: 13.5px; color: var(--sub); overflow-wrap: anywhere; }
.entry-info { display: grid; gap: 8px; margin: 0 0 16px; padding: 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); }
.entry-info div { display: grid; grid-template-columns: 4.2em 1fr; gap: 8px; }
.entry-info dt { color: var(--sub); font-size: 13px; }
.entry-info dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; min-width: 0; font-variant-numeric: tabular-nums; }
.asof { font-size: 12px; font-weight: 400; color: var(--sub); }
/* 日誌の記事: 文章の間に見出しと写真が入るブログの形 */
.article { max-width: 720px; font-size: 16px; line-height: 1.8; }
.article p { margin: 0 0 16px; }
.article h2 { margin: 24px 0 8px; }
.article figure { margin: 16px 0 86px; }
.article figure img { width: 100%; height: auto; display: block; border-radius: 8px; }
.article figcaption { margin-top: 4px; color: var(--sub); font-size: 12.5px; line-height: 1.5; }
.article-gap { height: 96px; }
.article figure + .article-gap { display: none; }
.article .article-big { font-size: 30px; font-weight: 900; line-height: 1.4; }
.article .result-link { display: block; margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--blue); color: var(--on-blue); font-size: 15px; font-weight: 900; line-height: 1.5; text-align: center; text-decoration: none; }
/* 日誌の一覧: 左に写真、右に題名と書き出し */
.diary-row a { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
.diary-row img { width: 88px; height: 88px; object-fit: cover; object-position: top; border-radius: 8px; display: block; background: #c2cad5; }
.diary-text { display: grid; gap: 3px; min-width: 0; }
.shop-map { display: block; }
.shop-map img { width: 100%; height: auto; display: block; border-radius: 8px; background: #c2cad5; }

/* 注目カレンダー */
.month-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.month-tabs a { padding: 5px 14px; border-radius: 99px; border: 1.5px solid var(--gold); text-decoration: none; color: var(--gold); font-weight: 700; font-size: 14px; }
.month-tabs a[aria-current] { background: var(--gold); color: var(--on-gold); }
.cal-head { display: none; }
.cal-body { display: grid; gap: 6px; }
.day { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; display: grid; gap: 5px; align-content: start; }
.day.pad, .day.none { display: none; }
.day.today { border: 2px solid var(--gold); }
.dnum { display: flex; align-items: baseline; gap: 4px; }
.dnum b { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dnum .dw { font-size: 12.5px; color: var(--sub); }
.dnum.sun b, .dnum.sun .dw { color: var(--sun); }
.dnum.sat b, .dnum.sat .dw { color: var(--sat); }
.hol { font-size: 12px; color: var(--sun); margin-left: auto; }
.ev { display: block; border-radius: 6px; padding: 5px 9px; font-size: 13.5px; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.ev b { display: block; font-weight: 900; }
.ev span { display: block; font-size: 12.5px; }
.ev.ev-anniv { background: var(--gold); color: var(--on-gold); }
.ev.ev-note { background: var(--badge); color: var(--blue); }
.ev.bday { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #5c6680; }
.ev.bday em { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink); background: var(--badge); padding: 0 6px; border-radius: 3px; margin-bottom: 3px; }

/* 島図 */
.maps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.map { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.map img { width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; object-position: top; background: #c2cad5; border-radius: 5px; display: block; }
.map-name { font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.map small { font-size: 12px; color: var(--sub); }
.save-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; }
.save-btn .ico { width: 18px; height: 18px; }

/* 固定ページ */
.prose { max-width: 40em; }
.prose h2 { margin-top: 22px; }
.prose p, .prose ul { margin: 0 0 8px; overflow-wrap: anywhere; }
.prose ul { padding-left: 1.3em; }

/* 一番下: オープンチャットの誘導 */
.foot { max-width: 1040px; margin: 16px auto 0; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); color: var(--sub); font-size: 12px; }
.foot p { margin: 0; }
.foot-links { display: flex; gap: 16px; margin-top: 8px !important; }
.foot-links a { color: var(--sub); }
/* iPhone のホーム画面への追加の案内: Safari の共有ボタンの方を指す吹き出し */
.a2hs { position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(72px + env(safe-area-inset-bottom, 0px)); max-width: 420px; margin: 0 auto; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 12px 34px 12px 12px; border-radius: var(--radius); background: var(--gold); color: var(--on-gold); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.a2hs::after { content: ""; position: absolute; left: 50%; bottom: -10px; margin-left: -11px; border: solid transparent; border-width: 11px 11px 0; border-top-color: var(--gold); }
.a2hs img { display: block; border-radius: 12px; }
.a2hs p { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.a2hs b { font-weight: 900; }
.a2hs small { display: block; margin-top: 3px; font-size: 11.5px; }
.a2hs svg { width: 16px; height: 16px; margin: 0 2px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a2hs button { position: absolute; top: 2px; right: 2px; width: 34px; height: 34px; border: 0; background: none; color: var(--on-gold); font: inherit; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }
.foot-notice { max-width: 720px; margin: 0 auto 12px; line-height: 1.5; }
.openchat { display: block; margin: 0 auto 12px; max-width: 720px; }
.openchat img { width: 100%; height: auto; display: block; border-radius: 12px; }

@media (max-width: 359px) {
  .cat-btn { font-size: 11px; }
}

@media (min-width: 760px) {
  body { padding-bottom: 0; font-size: 15.5px; }
  .top { padding-left: 24px; padding-right: 24px; gap: 24px; }
  .brand { flex: 0 0 269px; }
  .mast.compact .mast-num { font-size: 52px; }
  .mast.compact .mast-num small { font-size: 20px; }
  .mast.compact h1 { font-size: 22px; }
  .chips-pref .chip { flex: none; min-width: 76px; }
  .x-link:hover { opacity: .8; }
  .tabs { position: static; display: flex; gap: 2px; background: none; border: 0; padding: 0; flex: 1; }
  .tabs a { min-height: 0; padding: 4px 13px; font-size: 12px; }
  .tabs a:hover { background: var(--badge); }
  .tabs a[aria-current]:hover { background: rgba(101, 199, 245, .1); }
  .wrap { padding-top: 24px; }
  .mast-num { font-size: 72px; }
  .mast-num small { font-size: 26px; }
  .mast h1 { font-size: 30px; }
  .chips { margin: 0; padding: 0 0 2px; flex-wrap: wrap; overflow: visible; }
  .row { grid-template-columns: minmax(150px, 34%) minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
  .row .tags { grid-column: 2; grid-row: 1; }
  .row .result-btn { grid-column: 3; grid-row: 1; }
  .hits li { grid-template-columns: 90px 1fr; gap: 10px; align-items: baseline; }
  .ev-rows li { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .ev-rows li .tags { grid-column: 2; grid-row: 1; }
  .ev-rows li .result-btn { grid-column: 3; grid-row: 1; }
  .hits li:has(.hit-store) { display: block; }
  .posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
  .vchart { --h: 170px; }
  .report-mid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .k-head { display: grid; grid-template-columns: 1.5em minmax(0, 1fr) 6em 4.4em 4.6em; gap: 0 8px; padding: 6px 14px 0; font-size: 12px; color: var(--sub); text-align: right; }
  .kishu li { grid-template-columns: 1.5em minmax(0, 1fr) 6em 4.4em 4.6em; grid-template-areas: "rk name val g win"; align-items: center; padding: 5px 6px; }
  .k-val { text-align: right; }
  .dai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(10, auto); grid-auto-flow: column; column-gap: 16px; }
  .dai li:nth-child(odd) { background: var(--card); }
  .mg-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .maps { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 7px 7px 0 0; font-weight: 700; text-align: center; padding: 5px 0; margin-bottom: 4px; }
  .cal-head .sun { color: var(--sun); }
  .cal-head .sat { color: var(--sat); }
  .cal-body { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .day, .day.none { display: grid; min-height: 104px; padding: 6px; border-radius: 8px; }
  .day.pad { display: block; background: none; border: 0; }
  .dnum .dw { display: none; }
  .ev { padding: 4px 6px; font-size: 12.5px; }
  .ev span { font-size: 11.5px; }
}

@media (prefers-reduced-motion: no-preference) {
  .chip, .cat-btn, .tabs a { transition: background-color .12s, color .12s; }
}
