/* となりいきもの トップページ — 高齢の方にも子どもにも見やすい大きめの文字とボタン */
/* 見た目は しずかに: 地は 生成りの 1色、作品は 白い 札。なかまの 色は 見出しの 線と とぶ ボタンの 文字 だけ（2026-11 案H）*/
:root {
  --ink: #26312f;
  --sub: #4d5a57;
  --jh: 64px;   /* 上で 止まる「なかまへ とぶ」ボタンの 列の 高さ（見出しは この 下に 止まる） */
  --bg: #f6f4ee;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
}

.site-header { position: relative; max-width: 1100px; margin: 0 auto; padding: 30px 20px 14px; }
.site-header h1 { font-size: 32px; margin: 0; letter-spacing: .03em; }

/* ===== 絵と なまえ（いきもの の 棚でも、せかい の 札でも 同じ形）===== */
.index {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: grid; gap: 18px 10px;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  --name-size: 16px; --name-lh: 1.3;
}
.tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%;
  color: inherit; text-decoration: none; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.thumb {
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 1 / 1; font-size: 76px; line-height: 1;
  transition: transform .15s;
}
/* 名前は 少なくとも 2行分の 高さ。1行のときは 上端に 置き、2行目の 空きに ふだ（あたらしい など）が 入る。
   折り返しても 行の 高さ・絵との 距離が ずれない（同じ 行の 札は subgrid で そろう） */
.foot {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 2px;
}
.body { display: grid; place-items: center; width: 100%; height: 100%; }
.body img { width: 100%; height: auto; max-height: 100%; object-fit: contain; display: block; }   /* 絵は 200×140 の横長 */
.tile:hover .thumb, .tile:focus-visible .thumb { transform: translateY(-3px) scale(1.06); }
.tile:active .thumb { transform: scale(.92); }
/* 地図のアイコンを押した直後。大きさの枠は動かさず、絵だけ小さく跳ねてから移動する（ふだんの hop とは別） */
@keyframes press {
  0% { transform: none; }
  40% { transform: translateY(-8px) scale(1.06); }
  100% { transform: none; }
}
.tile.go .thumb { animation: press .18s ease-out; }
.tile:focus-visible { outline: 4px solid #e08a2c; outline-offset: 3px; border-radius: 18px; }
.site-header h1:focus { outline: none; }
.name {
  justify-self: stretch; min-width: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: calc(var(--name-size) * var(--name-lh) * 2);   /* ふだが ある ときは のびる（同じ 行の 札は subgrid で そろう） */
  font-size: var(--name-size); font-weight: bold; line-height: var(--name-lh); text-align: center;
  background: none; padding: 0;
}
.label {
  display: block; max-width: 100%; min-width: 0;
  text-align: center; text-wrap: balance; line-break: strict;
  word-break: keep-all; overflow-wrap: normal;
  border-radius: 10px; padding: 0 2px;
}
#map .label { padding: 0 4px; }
.name.long { font-size: 15px; letter-spacing: -.03em; }

/* ばしょ・いきもの の 棚 は 同じ 幅（中身 1068px・左右 16px） */
.wide { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* あたらしい・かわった・このまえ あそんだ・にんき: 名前の すぐ 下の 小さな 文字の ふだ（絵に かからない）。
   前は 右上の 色の 点 だけ だったが、意味が わからなかった（2026-11） */
.mark {
  display: inline-block; margin: 3px 0 4px;
  padding: 2px 9px 1px; border-radius: 999px;
  font-size: 13px; font-weight: 800; line-height: 1.3; letter-spacing: .02em; white-space: nowrap;
  color: #fff;
}
.mark.new { background: #d9541f; }
.mark.upd { background: #2a7f62; }
.mark.pop { background: #f6c443; color: #5b3b00; }
.mark.recent { background: #5b7286; }
/* 「このまえ あそんだ」は 8字と 長いので、字を 少し 小さく・つめて 1行に 入れる（スマホ縦の 札でも 入る）。
   それでも 入らない とき（端末の 文字の 大きさ など）だけ ことばの 区切りで 2行に */
.mark.recent { font-size: 12px; letter-spacing: -.04em; padding-left: 6px; padding-right: 6px;
  white-space: normal; word-break: keep-all; max-width: 100%; box-sizing: border-box; }
.mark:empty { display: none; }
/* 開いた 回数: 札の 右上に 小さく（絵の じゃまを しない うすい 字。押しても 反応しない） */
.views {
  position: absolute; top: 5px; right: 8px; z-index: 1; pointer-events: none;
  font-size: 11px; font-weight: 700; line-height: 1; color: #9a9d93; font-variant-numeric: tabular-nums;
}
/* 作品の 札（白・角丸）。絵・名前 を 行ごとに そろえる */
.index .tile { background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(40, 40, 30, .07); padding: 8px 4px 6px; transition: box-shadow .15s; }
.index .tile:hover { box-shadow: 0 3px 10px rgba(40, 40, 30, .12); }
#map .index, .world.index { grid-auto-rows: auto auto; row-gap: 10px; column-gap: 10px; }
#map .index > li, #map .tile, .world.index > li, .world .tile { display: grid; grid-template-rows: subgrid; grid-row: span 2; min-width: 0; }
#map .tile, .world .tile { gap: 0; height: auto; }
#map .thumb, .world .thumb { align-self: end; padding-bottom: 2px; }
#map .foot, .world .foot { align-self: start; }

/* ===== なかまへ とぶ ボタン（棚の 上で 止まる）===== */
.jump {
  position: sticky; top: 0; z-index: 4; height: var(--jh); margin-top: 0;
  background: rgba(246, 244, 238, .94); box-shadow: 0 1px 0 rgba(38, 49, 47, .08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.jump-in {
  max-width: 1100px; height: 100%; margin: 0 auto; padding: 6px 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px;
}
.jbtn {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
  border-radius: 999px; color: var(--nc, var(--ink)); background: #fff; box-shadow: 0 1px 2px rgba(40, 40, 30, .08); text-decoration: none; white-space: nowrap;
  font-weight: bold; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s;
}
.jbtn .jt { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 18px; line-height: 1.05; }
.jbtn .jk { font-size: 10px; line-height: 1; letter-spacing: .02em; opacity: .85; }
.jbtn:hover { box-shadow: 0 2px 6px rgba(40, 40, 30, .14); }
/* なかまの ピクトグラム（文字と 同じ 色。目などは 地の 色で ぬく）*/
.pg { flex: none; width: 26px; height: 26px; display: block; }
.pg .e { fill: #fff; }
.pg .es { fill: none; stroke: #fff; stroke-width: 1.4; }
.jbtn.on .pg .e { fill: var(--nc); }
.jbtn.on .pg .es { stroke: var(--nc); }
.sign .pgh { width: 40px; height: 40px; color: var(--nc); align-self: center; }
.sign .pgh .e { fill: var(--bg); }
.sign .pgh .es { stroke: var(--bg); }
.jbtn:active { transform: translateY(1px); }
.jbtn.on { background: var(--nc, #3f5a52); color: #fff; }
.jbtn:focus-visible { outline: 4px solid #e08a2c; outline-offset: -2px; }

/* ===== いきもの の なかまの 棚 ===== */
#map { position: relative; margin-top: 4px; }
.zone {
  scroll-margin-top: var(--jh);   /* とんだ とき、なかまの 見出しが ボタンの 列の すぐ 下に 来る */
  position: relative; display: flow-root; padding: 0;
}
.zone > .inner { margin-bottom: 28px; }
#map .zone:last-child > .inner { margin-bottom: 96px; }
.inner { position: relative; max-width: 1100px; margin: 0 auto; --pad: 16px; padding: 0 var(--pad); }
/* スクロール中も、いまの なかまの 見出しを 上に 残す。次の なかまが 来たら 押し出される（▲ うえへ より下） */
.signbar {
  position: sticky; top: var(--jh); z-index: 3;
  padding-top: 14px;
  background: var(--bg);
}
.signbar .inner { padding-bottom: 10px; }
/* 見出し: 漢字（上に ふりがな）と 一言 説明 */
.sign {
  display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 14px; row-gap: 0; margin: 0; padding: 0 0 0 12px;
  border-left: 5px solid var(--nc, #3f5a52); color: var(--ink); font-size: 30px; font-weight: bold; line-height: 1.15;
}
.stitle { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sign .sk { font-size: 13px; line-height: 1; letter-spacing: .06em; color: var(--sub); }
.sign .sj { line-height: 1.05; }
.sdesc { font-size: 16px; font-weight: normal; color: #6b736f; padding-bottom: 3px; }

/* 棚の あとの おまけ（ちきゅうの しんか）*/
.intro { padding-top: 0; padding-bottom: 96px; }
#map .zone:last-of-type > .inner { margin-bottom: 28px; }
.introcard {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 18px;
  background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(40, 40, 30, .07); transition: transform .15s, box-shadow .15s;
}
.introcard:hover { box-shadow: 0 5px 0 rgba(38, 49, 47, .14); transform: translateY(-1px); }
.introcard:focus-visible { outline: 4px solid #e08a2c; outline-offset: 2px; }
.introcard .ip { flex: none; display: grid; place-items: center; width: 84px; height: 60px; }
.introcard .ip img { max-width: 100%; max-height: 100%; }
.introcard .ie { font-size: 48px; line-height: 1; }
.introcard .it { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.introcard b { font-size: 22px; }
.introcard .ihead { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.introcard .ihead .mark { margin: 0; }
.introcard small { font-size: 15px; color: var(--sub); }

/* ===== いきものの ゆれ（絵だけが その場で うごく。transform だけなので 軽い）===== */
.zone .body { animation: var(--anim) var(--d, 4s) ease-in-out var(--dl, 0s) infinite; }
.m-walk  { --anim: walk; }
.m-hop   { --anim: hop; }
.m-swim  { --anim: swim; }
.m-bug   { --anim: bug; }
.m-float { --anim: float; }
.zone .m-bug { animation-timing-function: steps(1); }
/* けもの: いきを して、ときどき 少し 向きを かえる */
@keyframes walk {
  0%, 100% { transform: translateX(0) scale(1, 1); }
  25% { transform: translateX(-3px) rotate(-2deg) scale(1.02, .98); }
  50% { transform: translateX(2px) scale(1, 1); }
  75% { transform: translateX(3px) rotate(1.5deg) scale(1.02, .98); }
}
/* とり など: じっと して、ぴょん ぴょん */
@keyframes hop {
  0%, 62%, 100% { transform: translateY(0); }
  68% { transform: translateY(-12px) rotate(-3deg); }
  74% { transform: translateY(0) scale(1.04, .96); }
  80% { transform: translateY(-7px) rotate(2deg); }
  86% { transform: translateY(0); }
}
/* さかな: ゆらゆら 行ったり 来たり */
@keyframes swim {
  0%, 100% { transform: translateX(-6px) rotate(-3deg); }
  50% { transform: translateX(6px) rotate(3deg); }
}
/* むし: ちょこ ちょこ 止まりながら */
@keyframes bug {
  0%   { transform: translate(0, 0); }
  30%  { transform: translate(2px, -1px); }
  36%  { transform: translate(4px, 0) rotate(3deg); }
  42%  { transform: translate(5px, -1px); }
  70%  { transform: translate(2px, 1px) rotate(-2deg); }
  76%  { transform: translate(0, 0); }
}
/* ただよう */
@keyframes float {
  0%, 100% { transform: translateY(-5px) rotate(-1deg); }
  50% { transform: translateY(5px) rotate(1deg); }
}
/* 指や マウスが 来たら ゆれを 止めて 押しやすく。画面の外も 止める */
.tile:hover .body, .tile:focus-visible .body, .zone.still .body { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .zone .body, .tile.go .thumb { animation: none !important; }
}

/* いちばん うえへ もどる ボタン（下のほうを 見ているときだけ出る） */
.to-top {
  position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(48px + env(safe-area-inset-bottom));   /* 画面の 下はしは ブラウザの ボタンや ホームの 線と かさなって 押しづらいので 少し 上に */
  padding: 14px 20px; border-radius: 999px; background: #3f5a52; color: #fff;
  font-size: 20px; font-weight: bold; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); z-index: 5;
  /* 見えないときは visibility でも かくして、Tab キーで 止まらないように（きえるときは うすくなってから かくす） */
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.to-top.show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .2s, transform .2s; }

/* タブレット縦（601〜820px）：場所へ とぶ ボタンは 横に ならべると 名前が となりに はみ出すので、スマホと 同じく 絵を 上・名前を 下に */
@media (min-width: 601px) and (max-width: 820px) {
  .jump-in { gap: 4px; padding: 5px 12px; }
  .jbtn { flex-direction: column; gap: 2px; border-radius: 16px; }
  .jbtn .jt { font-size: 14px; }
}

/* 文字が ボタンに 入りきらない ときに JS（index.html の fitBar）が つける。画面の はばの きまりより あとに 効く */
.jump.fit1 .jbtn { flex-direction: column; gap: 1px; border-radius: 16px; }   /* 丸に 近い 形だと 角で 字が 欠けるので 角丸の 四角に */
.jump.fit2 .jt { font-size: 12px; letter-spacing: -.04em; }
.jump.fit3 .jt { font-size: 10px; letter-spacing: -.06em; }
.jump.fit3 .jk { letter-spacing: -.06em; }
/* それでも 入らない（端末の 文字が とても 大きい）ときは、ふりがなを ボタンから 外す（見出しには ある） */
.jump.fit4 .jn .jk { display: none; }
@media (min-width: 601px) { .jump.fit4 .jn .jt { font-size: 12px; } }   /* ふりがなを 外した ぶん 漢字を 少し もどす（スマホは もとから ふりがな なし） */

/* スマホ：1行に4こ */
@media (max-width: 600px) {
  /* なかまへ とぶ ボタンは 1列に 7つ: ピクトグラムを 大きく、下に 漢字（ふりがなは 見出しに ある）。ばしょ は 文字 */
  :root { --jh: 68px; }
  :root.m-basho { --jh: 60px; }
  .jump-in { padding: 5px 6px; gap: 4px; }
  .jn .jbtn { flex-direction: column; gap: 1px; border-radius: 14px; }
  .jn .jbtn .jk { display: none; }
  .jn .jbtn .jt { font-size: 12px; letter-spacing: -.04em; }
  .jn .jbtn .pg { width: 30px; height: 30px; }
  .jb .jbtn .jt { font-size: 18px; }
  .sign .pgh { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; }
  .sign:has(.pgh) { position: relative; padding-left: 56px; }
  .to-top { padding: 12px 18px; font-size: 18px; right: calc(12px + env(safe-area-inset-right)); bottom: calc(88px + env(safe-area-inset-bottom)); }
  .name.mid { font-size: 12px; letter-spacing: -.05em; }
  #map .label { padding: 0 3px; }
  .site-header { padding: 22px 14px 10px; }
  .site-header h1 { font-size: 26px; }
  .wide { padding: 0 10px; }
  .inner { --pad: 10px; }
  .index { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; --name-size: 14px; }
  #map .index, .world.index { row-gap: 8px; column-gap: 8px; }
  .thumb { font-size: 58px; aspect-ratio: 10 / 7; }
  .foot { column-gap: 1px; }
  .label { letter-spacing: -.03em; }
  .name.long { font-size: 11.5px; letter-spacing: -.05em; }
  .sign { font-size: 25px; padding-left: 10px; column-gap: 10px; flex-direction: column; align-items: flex-start; }
  .sign .sk { font-size: 11px; }
  .sdesc { font-size: 14px; padding-bottom: 0; }
  .introcard { padding: 8px 12px; gap: 10px; }
  .introcard .ip { width: 70px; height: 50px; }
  .introcard b { font-size: 19px; }
  .introcard small { font-size: 13px; }
}

/* ===== あそびかたの 切りかえ（いきもの／ばしょ）===== */
.mode { margin: 0 auto 14px; }
.mode-in { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px; border-radius: 18px; background: #e8e4da; }
.mbtn {
  display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 6px 10px;
  border: 0; border-radius: 14px; font: inherit; font-size: 21px; font-weight: bold; cursor: pointer;
  background: transparent; color: #747a76; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.mbtn:hover { color: var(--ink); }
.mbtn.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(40, 40, 30, .15); }
.mbtn:focus-visible { outline: 4px solid #e08a2c; outline-offset: 2px; }
#map[hidden], .jump[hidden], .jump-in[hidden], .mode[hidden] { display: none; }

/* ===== ばしょ で あそぶ（日本地図と ピン）===== */
.places { margin-top: 8px; }
.places-in { position: relative; }
/* 札は 地図の 上（地図の 左上は 沖縄の 枠） */
.places .sign {
  position: relative; display: inline-block; z-index: 3; margin: 0 0 8px;
  padding: 6px 16px; border-radius: 10px;
  background: #2d6b93; box-shadow: 0 3px 0 #1d4d6c, 0 4px 12px rgba(29, 77, 108, .25); font-size: 20px;
}
.jmap {
  position: relative; width: 100%; height: 420px; margin: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 30%, #bfe6f5, #8fcbe6); border-radius: 22px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6), 0 3px 0 rgba(45, 107, 147, .25);
}
.jmap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jmap .land { fill: #cfe5a6; stroke: #8fae6a; stroke-width: .6; stroke-linejoin: round; }
.jmap .ice { fill: #f4f8fb; stroke: #c3d3dc; }   /* 南極 */
.jmap .near { fill: #dcebc4; stroke: #b4c99a; stroke-width: .5; stroke-linejoin: round; opacity: .75; }
.jmap .inset { fill: #a9d9ee; stroke: #fff; stroke-width: .8; stroke-dasharray: 2 1.5; }   /* 枠の 中は 海の 色（大陸に かさねても 島が 見える） */
/* 番号: 動かない 場所の 点（.pdot）と、番号の まる（.pin。ふだんは 点の 真上、かさなる ときだけ JS が ずらして 線（.plead）で つなぐ）。
   番号か 凡例（.prow）に カーソル・Tab で 両方が 赤く（.hl） */
.pdot {
  position: absolute; z-index: 3; width: 11px; height: 11px; transform: translate(-50%, -50%); pointer-events: none;
  border-radius: 50%; background: #e8553a; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.plead {
  position: absolute; z-index: 0; height: 2px; margin-top: -1px; transform-origin: 0 50%; pointer-events: none;
  background: #1d4d6c; border-radius: 1px;
}
.pin {
  position: absolute; z-index: 2; display: grid; place-items: center; box-sizing: border-box;
  width: 36px; height: 36px; border-radius: 50%; background: #2d6b93; border: 3px solid #fff; color: #fff;
  font-size: 18px; font-weight: bold; line-height: 1; text-decoration: none; box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
  transition: transform .12s, background-color .12s; -webkit-tap-highlight-color: transparent;
}
.pin:hover, .pin:focus-visible, .pin.hl, .pin.sel { z-index: 3; background: #d9482b; transform: scale(1.3); }
.pin:active { transform: scale(1.1); }
.pin:focus-visible { outline: 3px solid #e08a2c; outline-offset: 2px; }
/* PC は 地図の 右に 凡例、せまい 画面は 下に */
/* 地図（＋札）と 凡例は 下はしを そろえる: 札は 地図の 列の 下はし、凡例の 行は 高さいっぱいに のばす */
.pbody { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; }
.pbody .pmapcol { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.plegend {
  flex: 1.15 1 500px; list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); grid-auto-rows: 1fr;
}
.prow {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; box-sizing: border-box;
  padding: 8px 4px 6px; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 rgba(45, 107, 147, .15);
  color: inherit; text-decoration: none; transition: background-color .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent;
}
.pnum {
  display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: #2d6b93; color: #fff; font-size: 14px; font-weight: bold; line-height: 1; transition: background-color .12s;
}
.prow .pnum { position: absolute; top: 6px; left: 6px; }
@media (min-width: 601px) { .pworld .plegend { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } }   /* せかいは 9か所を 2行に（地図が 横長で 低いので）*/
.prow .mark { margin-top: 1px; font-size: 12px; padding: 1px 7px 0; letter-spacing: 0; }   /* ばしょの 凡例: 名前の 下 */
.ppic { display: grid; place-items: center; flex: none; font-size: 44px; line-height: 1; }
.ppic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prow .ppic { width: 92px; height: 66px; margin-top: 4px; }
.prow .pname { white-space: normal; word-break: keep-all; text-align: center; line-height: 1.25; }
.pname { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: bold; white-space: nowrap; letter-spacing: -.03em; }
.prow:hover, .prow:focus-visible, .prow.hl, .prow.sel { background: #fff3df; box-shadow: inset 0 0 0 3px #d9482b; }
.prow:hover .pnum, .prow:focus-visible .pnum, .prow.hl .pnum, .prow.sel .pnum { background: #d9482b; }
.prow:active { transform: scale(.96); }
.prow:focus-visible { outline: none; }
/* えらんだ 場所の 札（地図の すぐ 下） */
.psel {
  position: relative; margin: 0; min-height: 76px; box-sizing: border-box;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-radius: 18px;
  background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); color: inherit; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.psel.empty { justify-content: center; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 2px #e3dfd4; cursor: default; }
.psel .phint { font-size: 17px; font-weight: bold; color: #8a908c; }
.psel .ppic { width: 84px; height: 60px; }
.psel .pname { flex: 1; min-width: 0; font-size: 20px; }
.psel .pnum { background: #d9482b; }
.psel .pgo {
  flex: none; display: inline-flex; align-items: center; min-height: 50px; padding: 0 16px; border-radius: 14px;
  background: #e07b2c; box-shadow: 0 3px 0 #a9541a; color: #fff; font-size: 18px; font-weight: bold;
}
.psel:active .pgo { transform: translateY(2px); box-shadow: 0 1px 0 #a9541a; }
.places .psub { margin: 22px 0 10px; padding-left: 12px; border-left: 5px solid #2d6b93; font-size: 26px; font-weight: bold; line-height: 1.2; color: var(--ink); }
.places .psub.pfirst { margin-top: 4px; }
.places .psub:has(.pgh) { display: flex; align-items: center; gap: 10px; }
.places .psub .pgh { width: 36px; height: 36px; color: #2d6b93; }
.places .psub .pgh .es { stroke: var(--bg); }
.places .psub { scroll-margin-top: calc(var(--jh) + 10px); }   /* とんだ とき 上の ボタンの 列に かくれない */
@media (max-width: 600px) {
  .mbtn { min-height: 50px; font-size: 19px; }
  .mode { margin-bottom: 10px; }
  .places .sign { font-size: 18px; }
  .pin { width: 34px; height: 34px; font-size: 17px; border-width: 2.5px; }
  .plegend { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .prow .ppic { width: 84px; height: 60px; }
  .prow .pname { font-size: 14px; letter-spacing: -.05em; }
  .prow .pnum { width: 24px; height: 24px; font-size: 13px; top: 5px; left: 5px; }
  .psel { gap: 6px; padding: 6px 8px; min-height: 62px; }
  .psel .phint { font-size: 15px; }
  .psel .ppic { width: 64px; height: 48px; }
  .psel .pname { font-size: 17px; gap: 4px; }
  .psel .pgo { min-height: 46px; padding: 0 12px; font-size: 16px; }
  .places .psub { font-size: 22px; margin: 18px 0 8px; padding-left: 10px; }
}
