/* 標識のような、迷わない見た目。インラインの style 属性は CSP が拒否するのでここに書く。 */
:root {
  --paper: #FAF7F0; --ink: #14213D; --sub: #4A5568; --line: #D9D3C4;
  --green: #1B9E4B; --yellow: #F2B705; --orange: #E4572E; --gray: #8A8F98;
  --btn-ok: #0F6B32; --btn-ng: #B3361A; --warn: #FFD60A;
  --foot: 46px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; font-family: var(--font); color: var(--ink); background: #e8e4d8; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
#map { position: absolute; inset: 0; z-index: 0; touch-action: none; }

/* 上部: C1 案内 / C2 凡例 / 帯 / C3 言語 */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 1000; padding: 8px; pointer-events: none; }
.top-main { max-width: 420px; display: flex; flex-direction: column; gap: 6px; }
.top-main > * { pointer-events: auto; }
.card { background: var(--paper); border-radius: 6px; box-shadow: 0 1px 4px rgba(20,33,61,.35); padding: 8px 10px; }
.guide { padding-right: 140px; }
.app-title { margin: 0 0 2px; font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.guide p { margin: 0; font-size: 12.5px; line-height: 1.4; font-weight: 700; }
.legend { list-style: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; font-size: 12px; font-weight: 700; padding: 6px 10px; }
.legend li { display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.dot-green { background: var(--green); } .dot-yellow { background: var(--yellow); } .dot-orange { background: var(--orange); } .dot-gray { background: var(--gray); }
.lang { position: absolute; top: 8px; right: 8px; z-index: 1001; display: flex; pointer-events: auto; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; }
.lang button { min-width: 60px; min-height: 44px; padding: 0 10px; border: 0; background: transparent; font-size: 13px; font-weight: 700; }
.lang button.on { background: var(--ink); color: var(--paper); }
#banners { display: flex; flex-direction: column; gap: 6px; }
.banner { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; line-height: 1.4; background: var(--paper); box-shadow: 0 1px 4px rgba(20,33,61,.35); pointer-events: auto; }
.banner-text { flex: 1; }
.banner.attention { background: var(--warn); border: 2px solid var(--ink); }
.banner.warn { background: #FFE9A8; border: 1px solid var(--ink); }
.btn-small { flex: none; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); font-weight: 700; font-size: 13px; }

/* ボタン類 */
.fabs { position: absolute; right: 8px; bottom: calc(var(--foot) + 10px); z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fab { min-width: 48px; min-height: 48px; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: 0 2px 5px rgba(20,33,61,.4); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; font-weight: 700; font-size: 14px; }
.fab-icon { font-size: 20px; line-height: 1; }
.leaflet-bottom.leaflet-left { margin-bottom: calc(var(--foot) + 4px); }
.leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
body.sheet-open .fabs { display: none; }
body.sheet-open .leaflet-bottom.leaflet-left { display: none; }

/* 下端: C4 位置情報の一言 / C5 帰属表示（シートで隠れない） */
.foot { position: absolute; left: 0; right: 0; bottom: 0; min-height: var(--foot); z-index: 1300; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 12px; padding: 3px 10px; background: var(--paper); border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.5; }
.foot a { color: var(--ink); padding: 2px 0; }

/* シート S2 / S3 */
.sheet { position: absolute; left: 0; right: 0; bottom: var(--foot); max-height: 62%; overflow-y: auto; z-index: 1200; background: var(--paper); border-radius: 12px 12px 0 0; box-shadow: 0 -2px 10px rgba(20,33,61,.4); padding: 6px 16px 14px; visibility: hidden; transform: translateY(105%); transition: transform .2s ease, visibility 0s .2s; overscroll-behavior: contain; }
.sheet.open { visibility: visible; transform: none; transition: transform .2s ease; }
.grip { width: 44px; height: 4px; border-radius: 2px; background: var(--line); margin: 2px auto 8px; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.badge { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 5px solid; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.badge-green { border-color: var(--green); } .badge-yellow { border-color: var(--yellow); } .badge-orange { border-color: var(--orange); } .badge-gray { border-color: var(--gray); }
.sheet-title { flex: 1; min-width: 0; }
.sheet-title h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.sub { margin: 2px 0 0; font-size: 12.5px; color: var(--sub); font-weight: 500; }
.icon-btn { flex: none; width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; border-radius: 6px; }
.stats { margin: 6px 0 4px; }
.big { display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.big-num { font-size: 52px; font-weight: 800; line-height: 1.1; }
.big-unit { font-size: 22px; font-weight: 800; }
.c-green { color: #0F6B32; } .c-yellow { color: #7A5A00; } .c-orange { color: #A93217; } .c-gray { color: var(--sub); }
.stats p { margin: 2px 0; font-size: 14px; }
.ratio { font-weight: 700; font-variant-numeric: tabular-nums; }
.color-line { font-weight: 800; }
.few, .last { color: var(--sub); font-size: 13px !important; }
.stats-none { font-size: 15px !important; font-weight: 700; line-height: 1.5; }
.result { margin: 8px 0; padding: 10px 12px; border-left: 6px solid var(--ink); background: #fff; border-radius: 4px; }
.result p { margin: 2px 0; font-size: 14px; font-weight: 700; line-height: 1.45; }
.err { margin: 8px 0; padding: 8px 10px; background: #FDE3DC; border-left: 6px solid var(--btn-ng); border-radius: 4px; font-size: 14px; font-weight: 700; }
.note { margin: 8px 0; padding: 8px 10px; background: #E1F3E7; border-left: 6px solid var(--btn-ok); border-radius: 4px; font-size: 14px; font-weight: 700; }
.vote { display: flex; gap: 10px; margin-top: 10px; }
.vote-btn { flex: 1; min-height: 56px; padding: 6px 10px; border: 2px solid transparent; border-radius: 8px; font-size: 16px; font-weight: 800; line-height: 1.25; color: #fff; }
.vote-ok { background: var(--btn-ok); } .vote-ng { background: var(--btn-ng); }
.vote-btn:disabled { background: #D9D6CC; color: #3F4654; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.dup { background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 10px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.dup p { margin: 0; font-size: 14px; font-weight: 700; }
.dup .btn-ghost { min-height: 48px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.hint-move { font-size: 13px; font-weight: 700; margin: 8px 0; }
.field { display: block; margin: 10px 0; font-size: 13px; font-weight: 700; }
.field input { display: block; width: 100%; margin-top: 4px; min-height: 48px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.kinds { border: 0; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 4px; }
.kind { position: relative; flex: 1 1 auto; }
.kind input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.kind span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; font-size: 14px; font-weight: 700; text-align: center; }
.kind input:checked + span { background: var(--ink); color: var(--paper); }
.kind input:focus-visible + span, button:focus-visible, a:focus-visible, .field input:focus-visible { outline: 3px solid #2B6CB0; outline-offset: 2px; }

/* 登録用の十字（地図の見える部分の中心） */
.crosshair { position: absolute; z-index: 900; left: 50%; top: 24%; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: none; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.crosshair::before { left: 21px; top: 0; width: 2px; height: 44px; }
.crosshair::after { top: 21px; left: 0; height: 2px; width: 44px; }
.press-hint { position: absolute; z-index: 1000; pointer-events: none; transform: translate(-50%, -150%); }
.press-hint span { display: block; padding: 6px 10px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; white-space: nowrap; }
[hidden] { display: none !important; }

/* ピン: 標識のような「白い円＋太い色の縁＋記号」 */
.pin-wrap, .here-wrap { background: none; border: 0; }
.pin { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.pin-dot { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 6px solid var(--gray); box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(0,0,0,.45); font-weight: 800; color: var(--ink); line-height: 1; }
.pin-green .pin-dot { width: 40px; height: 40px; font-size: 20px; border-color: var(--green); }
.pin-yellow .pin-dot { width: 34px; height: 34px; font-size: 17px; border-color: var(--yellow); }
.pin-orange .pin-dot { width: 30px; height: 30px; font-size: 16px; border-color: var(--orange); }
.pin-gray .pin-dot { width: 24px; height: 24px; font-size: 13px; border-width: 4px; opacity: .85; }
.pin-best .pin-dot { animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(27,158,75,.7); } 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 16px rgba(27,158,75,0); } }
.pin-bounce .pin-dot { animation: bounce .5s ease-out 1; }
@keyframes bounce { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 100% { transform: scale(1); } }
.here { position: relative; width: 44px; height: 44px; }
.here i { position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: #2B6CB0; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(43,108,176,.35), 0 1px 3px rgba(0,0,0,.5); }
.here-tag { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); white-space: nowrap; padding: 2px 8px; border-radius: 10px; background: #1E4E8C; color: #fff; font-size: 12px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .pin-best .pin-dot, .pin-bounce .pin-dot { animation: none; }
  .sheet, .sheet.open { transition: none; }
}

/* PC: シートは右の側面パネル */
@media (min-width: 768px) {
  :root { --foot: 30px; }
  .guide { padding-right: 10px; }
  .sheet { left: auto; top: 0; bottom: var(--foot); right: 0; width: 400px; max-height: none; border-radius: 0; transform: translateX(105%); padding-top: 14px; }
  .sheet.open { transform: none; }
  .grip { display: none; }
  body.sheet-open .lang { right: 408px; }
  body.sheet-open .fabs { display: flex; right: 408px; }
  body.adding .crosshair { left: calc(50% - 200px); top: 50%; }
  .foot { flex-wrap: nowrap; }
}
@media (max-width: 767px) { body.adding .crosshair { top: 39%; } }
@media (min-width: 768px) { body.sheet-open .top-main { max-width: min(420px, max(240px, calc(100vw - 560px))); } }

/* 仕上げ: 「ここが確実です」のタグ、遠いときのピン縮小、狭い画面の折り返し */
.pin { position: relative; }
.pin-tag { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 8px; white-space: nowrap; padding: 3px 9px; border-radius: 10px; background: var(--btn-ok); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.45); pointer-events: none; text-align: center; line-height: 1.25; }
.pin-tag b { display: block; font-size: 12px; font-weight: 800; }
.pin-tag i { display: block; font-style: normal; font-size: 11px; font-weight: 700; }
.pin-tentative .pin-tag { background: #fff; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; }
.pin-tentative .pin-tag b { font-weight: 700; }
.z-far .pin-dot { transform: scale(.7); }
.z-far .pin-best .pin-dot, .z-far .pin-bounce .pin-dot { transform: scale(.9); }
.z-mid .pin-gray .pin-dot { transform: scale(.85); }
.banner-text { min-width: 0; overflow-wrap: anywhere; }
.guide p, .legend li, .stats p, .result p { overflow-wrap: anywhere; }
@media (max-width: 400px) { .legend { font-size: 11.5px; gap: 3px 6px; } .guide { padding-right: 132px; } .guide p { font-size: 12px; } }

/* 修正: F4 候補0件の帯のあいだ登録ボタンを強調する */
.fab-add.fab-emphasis { background: var(--btn-ok); color: #fff; border-color: #fff; min-height: 60px; padding: 0 20px; font-size: 17px; font-weight: 800; box-shadow: 0 0 0 3px var(--btn-ok), 0 3px 8px rgba(20,33,61,.5); animation: fab-pulse 1.3s ease-out infinite; }
.fab-add.fab-emphasis .fab-icon { font-size: 26px; }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 3px var(--btn-ok), 0 0 0 3px rgba(15,107,50,.6); } 100% { box-shadow: 0 0 0 3px var(--btn-ok), 0 0 0 18px rgba(15,107,50,0); } }
@media (prefers-reduced-motion: reduce) { .fab-add.fab-emphasis { animation: none; } }

/* 修正: F8 重複の確認が出ているあいだは欄を畳み、ボタンを横並びにしてシートを低く保つ */
#add-sheet.has-dup .field, #add-sheet.has-dup .kinds, #add-sheet.has-dup > .vote, #add-sheet.has-dup .err { display: none; }
#add-sheet.has-dup .dup { flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; padding: 8px; }
#add-sheet.has-dup .dup p { flex: 1 1 100%; font-size: 13.5px; }
#add-sheet.has-dup .dup button { flex: 1 1 0; min-height: 48px; padding: 4px 6px; font-size: 13px; line-height: 1.25; }
#add-sheet.has-dup .sub { display: none; }
#add-sheet.has-dup { padding-bottom: 8px; }

/* 周回1: 確実タグの根拠、ここへ行く、記録後の演出、取り消し */
.pin-dot { transition: border-color .8s ease, width .6s ease, height .6s ease, font-size .6s ease, opacity .6s ease; }
.dist { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.why { margin: 6px 0; padding: 6px 10px; border-left: 6px solid var(--btn-ok); background: #E1F3E7; border-radius: 4px; font-size: 13px; font-weight: 700; line-height: 1.45; }
.why-tentative { border-left-color: var(--sub); background: #EEEAE0; font-weight: 500; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0; }
.go-title { flex: 1 1 100%; font-size: 13px; font-weight: 800; }
.go-link { flex: 1 1 0; min-width: 130px; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; }
.vote-btn { transition: transform .08s ease, filter .08s ease; }
.vote-btn:active:not(:disabled) { transform: translateY(3px) scale(.95); filter: brightness(.85); }
.undo-btn { position: relative; overflow: hidden; display: block; width: 100%; margin-top: 8px; min-height: 48px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font-size: 15px; font-weight: 800; }
.undo-btn:disabled { opacity: .6; cursor: default; }
.undo-btn.counting::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--ink); transform-origin: left; animation: undo-count 5s linear forwards; }
@keyframes undo-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* 記録後は板を低くして、地図とピンの色の変化を見せる（スマホ） */
@media (max-width: 767px) {
  .sheet.lowered { max-height: 44%; }
  .sheet.lowered .go, .sheet.lowered .why, .sheet.lowered .few, .sheet.lowered .last, .sheet.lowered .color-line { display: none; }
  .sheet.lowered .big-num { font-size: 34px; }
  .sheet.lowered .stats { margin: 2px 0; }
  .sheet.dropping { animation: sheet-drop .45s ease-out; }
  @keyframes sheet-drop { from { transform: translateY(-90px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .pin-dot, .vote-btn { transition: none; } .sheet.dropping { animation: none; } .undo-btn.counting::after { animation-duration: 5s; } }

/* 周回2: 種類の絵つきピン、灰ピンの縮小とまとめ、札の収まり、近い順の一覧 */
.pin-dot { position: relative; }
.pin-ico { font-size: 17px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.pin-green .pin-ico { font-size: 19px; }
.pin-yellow .pin-ico { font-size: 16px; }
.pin-orange .pin-ico { font-size: 14px; }
.pin-gray .pin-dot { width: 20px; height: 20px; border-width: 3px; opacity: .6; box-shadow: 0 0 0 1px #fff; }
.pin-gray .pin-ico { font-size: 10px; }
.pin-sym { position: absolute; right: 1px; bottom: 1px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; line-height: 15px; text-align: center; pointer-events: none; }
.pin-tag { z-index: 2; }
.cluster { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gray); color: #fff; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); font-size: 13px; font-weight: 800; opacity: .85; cursor: pointer; }
/* 「ここにいる」の札は点の右横に出して、ピンと重ならないようにする */
.here-tag { left: 30px; top: 30px; transform: none; }
/* 凡例のカードは不透明。地図の文字を透かさない */
.legend { background: #FAF7F0; opacity: 1; position: relative; z-index: 2; }
.legend .legend-kinds { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 4px; color: var(--sub); }
.legend .legend-kinds { display: block; }

.nearby { position: absolute; z-index: 1000; left: 8px; right: 8px; bottom: calc(var(--foot) + 6px); margin: 0; padding: 3px 4px; max-height: 19%; overflow: hidden; background: #FAF7F0; border-radius: 8px; box-shadow: 0 1px 6px rgba(20,33,61,.45); }
.nearby-title { display: none; margin: 0; padding: 6px 8px 4px; font-size: 14px; font-weight: 800; }
.nearby ol { list-style: none; margin: 0; padding: 0; }
.nearby li:nth-child(n+4) { display: none; }
.nearby li + li { border-top: 1px solid var(--line); }
.nearby-row { width: 100%; height: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 0 8px 0 14px; border: 0; background: transparent; text-align: left; font-size: 12.5px; font-weight: 700; position: relative; }
.nearby-row::before { content: ""; position: absolute; left: 3px; top: 10px; bottom: 10px; width: 5px; border-radius: 3px; background: var(--gray); }
.nb-green::before { background: var(--green); } .nb-yellow::before { background: var(--yellow); } .nb-orange::before { background: var(--orange); }
.nb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-rate { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb-walk { color: var(--sub); white-space: nowrap; font-weight: 500; }
.nb-gray .nb-rate { color: var(--sub); font-weight: 500; }
body.sheet-open .nearby, body.adding .nearby { display: none; }
/* 一覧の分、右下のボタンと拡大縮小を押し上げる */
body:not(.sheet-open) .fabs { bottom: calc(var(--foot) + 138px); }
body:not(.sheet-open) .leaflet-bottom.leaflet-left { margin-bottom: calc(var(--foot) + 134px); }
@media (min-width: 1024px) {
  .nearby { left: auto; right: 8px; top: 64px; bottom: auto; width: 330px; max-height: calc(100% - 64px - var(--foot) - 130px); overflow-y: auto; padding: 4px; }
  .nearby-title { display: block; }
  .nearby li:nth-child(n+4) { display: list-item; }
  .nearby-row { height: 46px; font-size: 13.5px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 0; padding: 4px 8px 4px 14px; }
  .nearby-row::before { top: 8px; bottom: 8px; }
  .nb-walk { grid-column: 1 / -1; font-size: 12px; }
  .nearby-row .nb-name { grid-row: 1; } .nearby-row .nb-rate { grid-row: 1; } .nb-walk { grid-row: 2; }
  body:not(.sheet-open) .fabs { bottom: calc(var(--foot) + 10px); right: 346px; }
  body:not(.sheet-open) .leaflet-bottom.leaflet-left { margin-bottom: calc(var(--foot) + 4px); }
}

/* 周回3: 共有ボタン・お礼 */
.share-btn { flex: none; min-height: 44px; padding: 0 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; border-radius: 8px; }
.result .thanks { color: var(--ink); }

/* 周回3修正: 開いた場所のピンを目立たせる、一覧の「確実」の印 */
.pin-spot .pin-dot { animation: pin-spot 1.2s ease-out 2; }
@keyframes pin-spot { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20,33,61,.7); } 40% { transform: scale(1.6); box-shadow: 0 0 0 14px rgba(20,33,61,.25); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20,33,61,0); } }
@media (prefers-reduced-motion: reduce) { .pin-spot .pin-dot { animation: none; transform: scale(1.4); } }
.nb-badge { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.nb-badge.few { background: #fff; color: var(--ink); border: 1px solid var(--ink); }

/* F14 一言チップ（tm-note-）。横スクロールの1段 */
.tm-note-top { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-note-row { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 8px; height: 40px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tm-note-row::-webkit-scrollbar { display: none; }
.tm-note-chip { flex: none; height: 40px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tm-note-chip.tm-note-on { background: var(--ink); color: #fff; }
@media (max-height: 760px) and (max-width: 767px) { .tm-note-short { display: none; } }
.tm-note-done { display: none; }
