/* 共有のリンクの受け皿のページ（buzzmap.srapps.us）。色・字・角・影は DESIGN.md と app/src/styles.css に合わせる。
   机の色の地に、紙のカードを置く。外のフォントは読まない（見る人の端末から Google などへ通信させないため）。
   丸ゴシックは端末にあれば使い、iPhone ではヒラギノ丸ゴになる。 */
:root {
  --table: #efe9df;
  --board: #e6ecd9;
  --wood: #c9a06a;
  --wood-2: #9a7243;
  --paper: #ffffff;
  --paper-2: #f7f4ee;
  --ink: #2b2a28;
  --ink-2: #6b665e;
  --line: #e4ded2;
  --accent: #e4572e;
  --visited: #2b9467;
  --saved: #ffd23f;
  --shadow-1: 0 2px 8px rgba(60, 45, 25, 0.16);
  --font-body: 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --font-head: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--table); }
body {
  margin: 0; min-height: 100vh; background: var(--table); color: var(--ink);
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
a { color: inherit; }
h1 { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.4; margin: 4px 0 2px; overflow-wrap: anywhere; }
p { margin: 8px 0; }

.top { max-width: 480px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 0 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
/* 盤の上の駒（ピン）を、色と形だけで描いた印 */
.brand-pin { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); box-shadow: inset 0 0 0 5px var(--accent), inset 0 0 0 9px #fff; }

.wrap { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow-1); padding: 16px; }
.kicker { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.where { margin: 2px 0 0; font-weight: 600; }
.sub { color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.lead { margin: 0 0 12px; }
/* 店のカード。ジャンル・店名・町・住所の4行だけなので、行の間を詰めすぎず、上下の余白をそろえる */
.shop { padding: 20px 16px 18px; }
.shop h1 { font-size: 22px; margin: 6px 0 4px; }
.shop .where { margin: 0; }
.shop .sub { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }

.gdot { width: 10px; height: 10px; border-radius: 50%; background: var(--g); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 15px;
  background: var(--paper); border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.block { width: 100%; }

.get { background: var(--paper-2); box-shadow: none; border: 1px solid var(--line); }
.soon { display: flex; align-items: center; gap: 12px; }
.soon .sub { margin: 0; }
/* 準備中の判子（DESIGN.md の .stamp と同じ形） */
.stamp {
  flex: none; padding: 2px 10px; border: 2px solid var(--ink-2); border-radius: 6px; background: var(--paper); color: var(--ink-2);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; transform: rotate(-8deg);
}

.steps { margin: 12px 0 4px; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 8px; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 10px; min-height: 32px; }
.steps li::before {
  content: counter(step); width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 13px;
}

/* 共有されたマップの一覧 */
.count { font-variant-numeric: tabular-nums; }
.group { margin-top: 14px; }
.group h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.4; }
.group h2 .count { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rows { list-style: none; margin: 0 -16px; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border-top: 1px solid var(--line); text-decoration: none; }
.row .mark { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--g); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.row .mark.want { box-shadow: 0 0 0 3px var(--saved); }
.row .mark.visited { background: var(--visited); }
.row .mark.visited::after { content: ''; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.row .main { flex: 1; min-width: 0; }
.row .name, .row .main .sub { display: block; }
.row .name { font-weight: 600; font-size: 15px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .chev { flex: none; color: var(--ink-2); font-size: 18px; }
.empty { color: var(--ink-2); margin: 4px 0 0; }
.credit { color: var(--ink-2); font-size: 12px; line-height: 1.5; margin: 0 4px; }

/* ジャンルの色（app/src/store.ts の GENRE_COLOR） */
.g-ramen { --g: #d9502f; }
.g-cafe { --g: #8a5a3b; }
.g-sweets { --g: #d9608f; }
.g-sushi { --g: #2f78b7; }
.g-yakiniku { --g: #a8323e; }
.g-izakaya { --g: #c98a00; }
.g-bakery { --g: #b9772a; }
.g-curry { --g: #6f8f1e; }
.g-washoku { --g: #4b5fa8; }
.g-yoshoku { --g: #1e8c8c; }
.g-chinese { --g: #9b4fb0; }
.g-other { --g: #6b7280; }

@media (min-width: 560px) {
  body { padding-top: 24px; }
}
