/* GAMES のページ（2026-11-26 本人「その方向に進めてください」。見本 制作\games_mock\games_mock.src.html の ②）
   紙の色・墨の線・黄色のボタン（ドローンの入口と同じ決まり）。携帯がいちばん（幅は 520px まで）
   釣り・カプセルトイの見た目は、本体の style.css から写した（下の「ここから本体の写し」）。紫〜青のグラデーションや光る枠は使わない */
:root {
  --wall: #fde27c; --wall2: #f6cf5a; --yellow: #f6cf5a; --red: #e0523f; --blue: #3f8fd0; --sea: #3d9ad8; --green: #8fd0a6;
  --ink: #4a3a30; --paper: #fff8ee; --pink: #ff8fb3; --sub: #7a6a5c;
  --f: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; touch-action: manipulation; }   /* ダブルタップでの拡大を止める。ピンチの拡大は残す（ゲームの中だけ games.js が止める） */
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--f); font-weight: 500; line-height: 1.7; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.wrap { max-width: 520px; margin: 0 auto; }

/* いちばん上：墨の帯に GAMES の字。右下にピィちゃん、右上にことばの切り替え */
/* 帯は header.top だけに効かせる。前は .top だけで書いていて、カプセルの上半分（.gacha-cap .top）にも余白が付き、形が崩れた（2026-11-26 本人の写真） */
header.top { position: relative; background: var(--ink); color: var(--paper); padding: 18px 16px 16px; }
header.top .logo { margin: 0; font: 900 34px/1 var(--f); letter-spacing: .12em; }
header.top .logo small { display: block; font: 700 12px var(--f); letter-spacing: .04em; margin-top: 8px; opacity: .85; }
header.top .pii { position: absolute; right: 16px; bottom: 6px; width: 64px; }
.lang { position: absolute; right: 12px; top: 12px; display: flex; gap: 1px; background: var(--paper); border: 2px solid var(--paper); border-radius: 999px; padding: 2px; }
.lang button { font-size: 12px; font-weight: 900; padding: 1px 10px; border-radius: 999px; line-height: 1.6; white-space: nowrap; color: var(--ink); }
.lang button.on { background: var(--ink); color: var(--paper); }

.pad { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
/* 記録の注記（あとで、ここがセーブの箱・じゅもんの入口になる） */
.save { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 8px 12px; font-size: 13px; font-weight: 700; line-height: 1.45; }
.save .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #5cb87a; border: 2px solid var(--ink); }
/* セーブの帯（2026-11-27）。「じゅもん」は黄色の小さなボタン。「スクショしておこう」のときは帯を黄色にして、そっと目立たせる */
.savebox { display: flex; flex-direction: column; gap: 6px; }
.save .save-t { display: flex; flex-direction: column; min-width: 0; }
.save .save-t b { font-size: 13px; font-weight: 900; }
.save .save-t span { font-size: 12px; font-weight: 700; color: var(--sub); }
.save.nudge { background: var(--wall); }
.save.nudge .save-t span { color: var(--ink); }
.save-j { margin-left: auto; flex: none; font: 900 13px var(--f); color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; text-decoration: none; box-shadow: 0 3px 0 var(--ink); }
.save-j:active { transform: translateY(3px); box-shadow: none; }
.save-cont { align-self: flex-end; font-size: 12px; font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
.list-head { font: 900 13px var(--f); color: var(--sub); letter-spacing: .06em; margin: 4px 0 -4px; }
/* ゲームの札：押すと、そのゲームの所へ（ドローンはお弁当のゲームのページへ） */
.gcard { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; background: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 10px; box-shadow: 0 6px 0 var(--ink);
  color: var(--ink); text-decoration: none; transition: transform .08s, box-shadow .08s; }
a.gcard:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
a.gcard:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.gcard .ic { width: 72px; height: 72px; border: 3px solid var(--ink); border-radius: 12px; position: relative; overflow: hidden; }
.gcard .ic img { position: absolute; bottom: -4px; left: 50%; translate: -50% 0; width: 70%; }
.gcard b { display: block; font: 900 16px/1.35 var(--f); }
.gcard span { display: block; font-size: 12px; color: var(--sub); line-height: 1.5; }
.gcard .tag { display: inline-block; width: fit-content; font: 900 11px var(--f); color: var(--ink); background: var(--wall); border: 2px solid var(--ink); border-radius: 999px; padding: 0 8px; margin-top: 4px; }
.gcard.soon { opacity: .5; box-shadow: 0 6px 0 #b9ab9a; border-color: #b9ab9a; }
/* 押せる札は、ときどきカタカタ揺れる（2026-11-26 本人「ボタンって感じがしない。ちょっとだけ揺れる効果を各ボタンに」。ドローンの入口のお弁当の札と同じ動き）
   札ごとに少しずつ時間をずらして、いっせいに揺れないようにする。押している間と、動きを減らす設定の端末では揺らさない */
a.gcard { animation: kata 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
a.gcard:nth-of-type(2) { animation-delay: .7s; }
a.gcard:nth-of-type(3) { animation-delay: 1.4s; }
a.gcard:nth-of-type(4) { animation-delay: 2.1s; }
a.gcard:active { animation: none; }
@keyframes kata { 0%, 64%, 100% { rotate: 0deg; } 68% { rotate: -1.6deg; } 72% { rotate: 1.6deg; } 76% { rotate: -1.1deg; } 80% { rotate: 1.1deg; } 84% { rotate: -.4deg; } 88% { rotate: 0deg; } }
@media (prefers-reduced-motion: reduce) { a.gcard { animation: none; } }
/* ゲームのページの上の帯：左に「←」（一覧へ戻る） */
.game-page header.top { padding-left: 58px; }
.toback { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); font: 900 20px/1 var(--f); text-decoration: none; }
.toback:focus-visible { outline: 3px solid var(--wall); outline-offset: 2px; }
.game-page .sec { padding-top: 34px; }
.game-page .fish::before, .game-page .gacha::before { display: none; }

/* ゲームの節 */
.sec { padding: 56px 16px 40px; position: relative; }
.fish::before, .gacha::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 20px; background: radial-gradient(circle at 12px 20px, currentColor 12px, transparent 13px) 0 0 / 24px 20px repeat-x; }
.head { margin: 0 auto 26px; text-align: center; line-height: 1.1; }
.head span { display: inline-block; font-size: 28px; font-weight: 900; color: var(--paper); -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; filter: url(#wobble); transform: rotate(-2deg); }
.head small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .4em; color: var(--ink); opacity: .6; }
.head small:empty { display: none; }
.note { font-size: 12px; opacity: .7; }
.btn { background: var(--red); color: #fff; font-weight: 900; padding: 8px 18px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: none; }
.back { display: block; width: fit-content; margin: 22px auto 0; font-size: 13px; font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
#fish, #gacha { touch-action: pan-x pan-y; }   /* ゲームの節では、指で送るのはよいがピンチで拡大しない（本体と同じ。11/12 本人） */
html[lang="ja"] .en-only { display: none; }

html[lang="en"] .ja-only { display: none; }

/* 下：作品名（いつもの色）とコピーライト。墨の字が見えるように、紙の色の地に墨の線（2026-11-26 本人「いつものデザインに」。前は暗い茶の地） */
.foot { background: var(--paper); color: var(--ink); border-top: 4px solid var(--ink); text-align: center; padding: 22px 16px 30px; font-size: 12px; line-height: 1.6; }
.foot p { margin: 0 auto; max-width: 520px; }
.foot .brand { font: 900 20px/1.3 var(--f); letter-spacing: .04em; }
.foot .brand b { font-weight: 900; }
.foot .b-s { color: var(--blue); } .foot .b-b { color: var(--ink); } .foot .b-i { color: var(--red); }
.foot .en-only { font-size: 17px; }
.foot .copy { margin-top: 6px; font-size: 11px; color: var(--sub); letter-spacing: .04em; }

/* 文字を選ぶと出る、元の日本語（英語のときだけ。本体と同じ） */
.ja-pop { position: fixed; z-index: 70; max-width: min(340px, calc(100vw - 16px)); background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 4px 14px 8px; box-shadow: 0 4px 0 var(--ink); pointer-events: none; }
.ja-pop[hidden] { display: none; }
.ja-pop small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; opacity: .6; }
.ja-pop span { display: block; font-size: 16px; font-weight: 900; line-height: 1.5; white-space: pre-line; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- ここから本体の写し（site\style.css の釣り・カプセルトイ。2026-11-26 GAMES へ移した） ---------- */
/* パパの釣り（2026-11-10）：空と海の舞台。舟のパパ・糸・浮き・場所の札・ゲージ・釣れたもの */
.fish { background: #cfe8f2; }
/* 携帯で「巻く」を長押しすると近くの字が選ばれてしまう（11/10 本人）→ 指で操作する端末だけ、釣りの節の字を選べないようにする。
   パソコン（マウス）では選べるままにする：字を選ぶと元の日本語が出る仕組みを、釣りでも使えるように（11/10 本人） */
@media (hover: none) { .fish { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; } }
.fish::before { color: #cfe8f2; }
.fish-text { text-align: center; margin: -10px auto 12px; max-width: 420px; min-height: 3.6em; font-weight: 700; }
.fish-stage { position: relative; max-width: 420px; height: 320px; margin: 0 auto; border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; touch-action: none;
  background: linear-gradient(#bfe6ff 0 calc(36% + 2px), var(--sea) 0 100%); }   /* 空を波の頭より2px下まで伸ばす。36% ちょうどで切ると、端数の行に海の色が細い横線になって出ていた（11/10 本人） */
.fish-stage::before { content: ''; position: absolute; left: -20px; right: -20px; top: 36%; height: 10px; background: radial-gradient(circle at 10px 0, #bfe6ff 9px, transparent 10px) 0 0 / 20px 10px repeat-x; animation: wavetop 2.4s linear infinite; }
/* 波を動かす（2026-11-26 本人「パパの後ろの波も動いた方がいい。白と青とザブザブ」）
   波の頭（空色の丸の切り欠き）は右へ流れる。上下にはゆらさない（ゆらすと、空と海のあいだに細い横線が出た。11/10 と同じ不具合。11/26 本人「線は消して」）
   同じ形の白い縁（波頭のしぶき）が、ところどころに ちょこちょこ現れては消える（11/26 本人「白い玉はいらない。波と同じ形の白いのが ちょこちょこ」）
   白い縁は波の頭と同じ速さで流れるので、形がずれない。現れる場所は、縁の上をすべる「窓」（mask）で決める。動きを減らす設定の端末では止める */
.fish-stage::after { content: ''; position: absolute; left: -20px; right: -20px; top: 36%; height: 11px; pointer-events: none;
  background: radial-gradient(circle at 10px 0, transparent 8.6px, #ffffff 9.2px, #ffffff 10.6px, transparent 11.2px) 0 0 / 20px 11px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 18%, #000 24% 31%, transparent 37% 58%, #000 63% 68%, transparent 73% 100%); mask-image: linear-gradient(90deg, transparent 0 18%, #000 24% 31%, transparent 37% 58%, #000 63% 68%, transparent 73% 100%);
  -webkit-mask-size: 260px 100%; mask-size: 260px 100%; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  animation: wavetop 2.4s linear infinite, foamwin 7s linear infinite, foamblink 3.1s ease-in-out infinite; }
@keyframes wavetop { from { translate: 0 0; } to { translate: 20px 0; } }
@keyframes foamwin { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: -260px 0; mask-position: -260px 0; } }
@keyframes foamblink { 0%, 100% { opacity: 0; } 30%, 65% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .fish-stage::before { animation: none; } .fish-stage::after { animation: none; opacity: .6; } }
/* 音の あり・なし（ゲームの節の右上） */
.sndbtn { display: block; width: fit-content; margin: -18px 0 10px auto; position: relative; z-index: 3; font: 900 13px var(--f); color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px; box-shadow: 0 3px 0 var(--ink); }
.sndbtn.off { background: #e9e2d6; color: var(--sub); }
.sndbtn:active { transform: translateY(3px); box-shadow: none; }
.sndbtn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.fish-boat { position: absolute; left: 4%; top: 12%; width: 30%; z-index: 2; animation: sway2 3s ease-in-out infinite alternate; }
.fish-boat img { display: block; width: 62%; margin: 0 0 -14% 18%; position: relative; transform-origin: 50% 90%; transition: transform .12s ease-out; }
/* パパの動き（2026-11-10 本人「パパも引きに合わせて動きが欲しい」）：引かれると前へ、巻くとのけぞる（JS で傾ける）。釣れたら跳ね、逃げたらがっくり */
.fish-boat img.yay { animation: fishyay .45s ease-in-out 3; }
.fish-boat img.gaan { animation: fishgaan .7s ease-out forwards; }
.fish-boat img.jolt { animation: fishjolt .3s ease-out; }
@keyframes fishyay { 40% { transform: translateY(-22%) rotate(-6deg); } 70% { transform: translateY(2%) scaleY(.94); } }
@keyframes fishgaan { 30% { transform: rotate(10deg) translateY(4%); } 100% { transform: rotate(14deg) translateY(8%) scaleY(.92); } }
@keyframes fishjolt { 30% { transform: rotate(12deg) translateX(6%); } }
.fish-boat .hull { display: block; width: 100%; }
/* 糸のゲージが赤（張り 85% 以上）になったら、パパが汗をかく（11/10 本人）。頭の左右から汗が飛ぶ */
.sweat { position: absolute; left: 18%; top: 0; width: 62%; height: 60%; pointer-events: none; opacity: 0; transition: opacity .15s; transform-origin: 50% 90%; }   /* 枠と傾きは JS がパパの絵に合わせる */
.sweat.on { opacity: 1; }
.sweat i { position: absolute; width: 10px; height: 14px; border: 2px solid var(--ink); border-radius: 50% 0 50% 50%; background: #9fd3ef; opacity: 0; }
.sweat i:nth-child(1) { right: -8%; top: 6%; transform: rotate(-45deg); }
.sweat i:nth-child(2) { right: -14%; top: 26%; transform: rotate(-30deg); }
.sweat i:nth-child(3) { left: -8%; top: 8%; transform: rotate(-135deg); }
.sweat.on i { animation: sweat .6s ease-out infinite; }
.sweat.on i:nth-child(2) { animation-delay: .2s; }
.sweat.on i:nth-child(3) { animation-delay: .4s; }
@keyframes sweat { 0% { opacity: 0; translate: 0 0; } 15%, 65% { opacity: 1; } 100% { opacity: 0; translate: var(--dx, 7px) 9px; } }
.sweat i:nth-child(3) { --dx: -6px; }
@keyframes sway2 { to { transform: rotate(3deg) translateY(3px); } }
.fish-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }   /* 浮きは岩や島の手前に落ちるので、糸も岩や島の手前に描く（ゲージと釣れた札はあとに書いてあるので、その下になる） */
.bobber { position: absolute; left: var(--x, 50%); top: var(--y, 60%); width: 20px; height: 26px; margin: -13px 0 0 -10px; z-index: 3; opacity: 0; transition: left .5s ease-out, top .5s ease-out, opacity .2s; }
.bobber i { display: block; width: 100%; height: 100%; border-radius: 50% 50% 45% 45%; border: 3px solid var(--ink); background: linear-gradient(var(--red) 0 50%, #fff 50%); }
.bobber.on { opacity: 1; }
.bobber.on i { animation: bob 1.2s ease-in-out infinite; }
.bobber.bite i { animation: dunk .35s ease-in-out infinite; }
.bobber.pull i { animation: dunk .2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
@keyframes dunk { 50% { transform: translateY(12px); } }
/* 場所の絵（岩礁・小島・鳥山）。押せることは、ゆれと手前の波紋で伝える */
.fish-spots .spot { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: translate(-50%, -50%); z-index: 3; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fish-spots .spot svg { display: block; width: 100%; animation: spotbob 2.4s ease-in-out infinite alternate; transition: transform .15s; }
.fish-spots .spot:nth-child(2) svg { animation-delay: -.8s; }
.fish-spots .spot:nth-child(3) svg { animation-delay: -1.6s; }
.fish-spots .spot:hover svg, .fish-spots .spot:focus-visible svg { transform: scale(1.08); }
.fish-spots .spot:active svg { transform: scale(.94); }
.fish-spots .spot .gull { animation: gull .6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.fish-spots .spot .g2 { animation-delay: -.2s; } .fish-spots .spot .g3 { animation-delay: -.4s; }
@keyframes spotbob { to { transform: translateY(2px); } }
@keyframes gull { to { transform: scaleY(.6) translateY(2px); } }
/* 沖の鳥山（11/10 本人「おすすめで」）：カモメが輪を描いて回り、魚がときどき跳ねる。投げたあとは跳ねを止めて、浮きを見やすくする */
.fish-spots .spot[data-spot="far"] svg { overflow: visible; }
.fish-spots .spot .orbit { animation: orbit 5s linear infinite; }
.fish-spots .spot .o2 { animation-duration: 6.5s; animation-delay: -2s; animation-direction: reverse; }
.fish-spots .spot .o3 { animation-duration: 5.8s; animation-delay: -3.5s; }
@keyframes orbit { 0% { transform: translate(0, 0); } 25% { transform: translate(10px, 4px); } 50% { transform: translate(0, 8px); } 75% { transform: translate(-10px, 4px); } 100% { transform: translate(0, 0); } }
.fish-spots .spot .jump { animation: spotjump 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; opacity: 0; }
@keyframes spotjump { 0% { transform: translate(-10px, 12px) rotate(-35deg); opacity: 0; } 4% { opacity: 1; } 14% { transform: translate(0, -10px) rotate(0); } 26% { transform: translate(10px, 12px) rotate(40deg); opacity: 1; } 28%, 100% { transform: translate(10px, 12px) rotate(40deg); opacity: 0; } }
.fish-spots .spot .drop { animation: drop 3.6s ease-out infinite; transform-box: fill-box; transform-origin: center; opacity: 0; }
@keyframes drop { 0%, 22% { opacity: 0; transform: translateY(2px); } 27% { opacity: 1; transform: translateY(-3px); } 40%, 100% { opacity: 0; transform: translateY(-7px); } }
.fish-spots.off .spot .jump, .fish-spots.off .spot .drop { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fish-spots .spot svg, .fish-spots .spot svg * { animation: none !important; } .fish-spots .spot .jump { opacity: 1; } }
.fish-spots .spot .cast { position: absolute; left: 50%; top: calc(100% + 16px); width: 0; height: 0; }   /* 浮きが落ちる所＝下の波紋の真ん中 */
.fish-spots .spot::after { content: ''; position: absolute; left: 50%; top: 100%; width: 34px; height: 10px; margin: 6px 0 0 -17px; border: 2px solid #fff8; border-radius: 50%; animation: ripple 1.6s ease-out infinite; }
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.fish-spots.off .spot { pointer-events: none; }   /* 投げたあとも景色として残す（押せないだけ） */
.fish-spots.off .spot::after { display: none; }
/* 大漁（みかん・長靴以外の4種がそろったとき、1回だけ）：大漁旗がはためいて、紙吹雪 */
.tairyo { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 10px; background: #1d2a35; cursor: pointer; animation: tairyoin .3s ease-out; }
.tairyo[hidden] { display: none; }
/* 全部そろったときのパパの謎のひと言：暗くした海で、沖（鳥山の場所）がきらっと光る（11/12 本人） */
.fish-hint { position: absolute; inset: 0; z-index: 7; background: rgba(20, 32, 44, .82); cursor: pointer; animation: tairyoin .4s ease-out; }
.fish-hint[hidden] { display: none; }
.hint-star { position: absolute; left: 82%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; background: #fff3b0; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 8px #f3c234); animation: hintstar 1.4s ease-in-out infinite; }
@keyframes hintstar { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
.hint-say { position: absolute; left: 6%; right: 6%; bottom: 10%; display: flex; align-items: flex-end; gap: 8px; }
.hint-say img { width: 26%; max-width: 90px; flex: none; }
.hint-say p { margin: 0 0 14px; padding: 8px 14px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; font-weight: 900; font-size: 15px; line-height: 1.5; }
.tairyo-flag { width: 74%; max-width: 300px; transform-origin: 0 50%; animation: flagin .6s cubic-bezier(.3, 1.6, .5, 1), flagwave 1.2s ease-in-out .6s infinite alternate; }
.tairyo-flag svg { display: block; width: 100%; filter: drop-shadow(0 4px 0 #4a3a30); }
.tairyo-msg { margin: 0 16px; padding: 6px 14px; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; font-weight: 900; font-size: 14px; text-align: center; }
.kami i { position: absolute; top: -12px; width: 8px; height: 12px; background: var(--red); animation: kami 2.4s linear infinite; }
.kami i:nth-child(3n+1) { background: #f3b13c; } .kami i:nth-child(3n+2) { background: #3b8fd0; }
.kami i:nth-child(1) { left: 6%; animation-delay: 0s; }    .kami i:nth-child(2) { left: 14%; animation-delay: -.9s; }
.kami i:nth-child(3) { left: 22%; animation-delay: -1.7s; } .kami i:nth-child(4) { left: 31%; animation-delay: -.4s; }
.kami i:nth-child(5) { left: 40%; animation-delay: -1.2s; } .kami i:nth-child(6) { left: 49%; animation-delay: -2s; }
.kami i:nth-child(7) { left: 58%; animation-delay: -.6s; }  .kami i:nth-child(8) { left: 66%; animation-delay: -1.5s; }
.kami i:nth-child(9) { left: 74%; animation-delay: -.2s; }  .kami i:nth-child(10) { left: 82%; animation-delay: -1.1s; }
.kami i:nth-child(11) { left: 90%; animation-delay: -1.9s; } .kami i:nth-child(12) { left: 96%; animation-delay: -.8s; }
.tairyo-tai { animation: taijump .9s ease-in-out infinite alternate; }   /* 旗の上で真鯛が跳ねる */
.tairyo-drop { animation: taidrop .9s ease-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes taijump { from { transform: translate(-3px, 5px) rotate(-6deg); } to { transform: translate(3px, -5px) rotate(8deg); } }
@keyframes taidrop { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.1) translateY(-3px); opacity: 1; } }
@keyframes tairyoin { from { opacity: 0; } }
@keyframes flagin { from { transform: scale(.2) rotate(-20deg); opacity: 0; } }
@keyframes flagwave { from { transform: skewY(-3deg) scaleX(.97); } to { transform: skewY(3deg) scaleX(1); } }
@keyframes kami { to { transform: translateY(360px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .tairyo-flag, .kami i, .tairyo-tai, .tairyo-drop { animation: none; } }
.fish-gauge[hidden], .catch[hidden] { display: none; }   /* display: grid が hidden を打ち消して、見えない枠が場所の札を押せなくしていた */
.fish-gauge { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center;
  background: #fff8eee6; border: 3px solid var(--ink); border-radius: 12px; padding: 6px 10px; font-size: 12px; }
.fish-gauge span { height: 12px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.fish-gauge i { display: block; height: 100%; width: 0; background: var(--green); }
.fish-gauge .prog i { background: var(--blue); }
.catch { position: absolute; inset: 14px; z-index: 5; background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 10px; animation: pop2 .3s ease-out; }
@keyframes pop2 { from { transform: scale(.7); opacity: 0; } }
.catch-pic svg { width: 120px; height: 80px; display: block; }
.catch-name { margin: 0; font-size: 20px; font-weight: 900; }
.catch-logic { list-style: none; margin: 0; padding: 0; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.5; }
.catch-logic li { opacity: 0; transform: translateY(6px); transition: .3s; }
.catch-logic li.on { opacity: 1; transform: none; }
.catch-logic li:last-child { color: #d0457e; font-weight: 900; }
/* 宝の地図の札だけ「渦潮と泡」の特別版（11/12 本人）：青緑の海・金の縁・来島海峡の渦がゆっくり回り、泡がのぼる。字はクリームに */
.catch.sp-map { overflow: hidden; isolation: isolate; color: #fffaf0; border-color: #d9a640; box-shadow: inset 0 0 0 3px #f3c234; background: radial-gradient(circle at 50% 32%, #9fe0e6, #3aa6c0 55%, #1f6f93); }
.catch.sp-map > :not(.sp) { position: relative; z-index: 2; }
.catch.sp-map .catch-name { color: #fff3c4; text-shadow: 0 2px 0 #1f4f66; }
.catch.sp-map .catch-logic { text-shadow: 0 1px 0 #1f4f66; }
.catch.sp-map .catch-logic li:last-child { color: #ffe27a; }
.sp-whirl { position: absolute; z-index: 1; left: 50%; top: 32%; width: 300px; height: 300px; margin: -150px 0 0 -150px; opacity: .55; animation: spwhirl 9s linear infinite; }
@keyframes spwhirl { to { transform: rotate(360deg); } }
.sp-bub { position: absolute; z-index: 1; bottom: -14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: rgba(255,255,255,.15); animation: spbub ease-in infinite; }
@keyframes spbub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-330px) translateX(10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sp-whirl, .sp-bub { animation: none; } }
.fish-ctrl { text-align: center; margin-top: 14px; min-height: 48px; }
.fish-btn { font: inherit; font-weight: 900; font-size: 18px; padding: 10px 28px; touch-action: none; user-select: none; -webkit-user-select: none; }
.fish-btn.hold { transform: translateY(4px); box-shadow: none; }
.fish-book-head { text-align: center; margin: 10px 0 0; font-size: 16px; }   /* 見出しは図鑑の下に置く（ボタンの近くに字を置かない。11/10 本人） */
.fish-book { list-style: none; margin: 40px auto 0; padding: 0; max-width: 420px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fish-book li { background: #fff8ee; border: 3px solid var(--ink); border-radius: 12px; padding: 6px 4px; text-align: center; font-size: 12px; font-weight: 700; }
.fish-book li svg { width: 64px; height: 42px; display: block; margin: 0 auto; }
.fish-book li.none svg { filter: brightness(0) opacity(.18); }
.fish-book li { min-height: 103px; display: flex; flex-direction: column; justify-content: center; }   /* 釣れる前と後で札の高さが変わらないように */
.fish-book li.none { position: relative; align-items: center; }   /* まだ釣れていない札：シルエットを真ん中に、？？？ をその上に重ねる */
.fish-book li.none .q { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--ink); }
.fish-book li b { display: block; color: var(--red); }

/* くう子のガチャ（2026-11-11）：くう子のリボンの桃色。お店の壁と床の2色。名物の絵は 制作\meibutsu と同じ */
.gacha { background: #ffe1ea; }
.gacha::before { color: #ffe1ea; }
@media (hover: none) { .gacha { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; } }
.gacha-stage { position: relative; max-width: 420px; height: 320px; margin: 0 auto; border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; touch-action: pan-x pan-y;   /* 指で送るのはよいが、ピンチ・ダブルタップで拡大しない */
  background: linear-gradient(var(--paper) 0 74%, var(--ink) 74% calc(74% + 3px), #f2c79c calc(74% + 3px)); }
.gacha-kuuko { position: absolute; left: 4%; bottom: 8%; width: 30%; transform-origin: 50% 90%; }
.gacha-kuuko.push { animation: kpush .3s ease-in-out 3; }
.gacha-kuuko.yay { animation: fishyay .45s ease-in-out 3; }
.gacha-kuuko.doki { animation: kdoki .5s ease-in-out infinite alternate; }   /* カプセルを待つあいだ、ドキドキで小さく弾む */
@keyframes kdoki { to { transform: translateY(-4%) scale(1.03); } }
@keyframes kpush { 50% { transform: rotate(6deg) translateX(4%); } }
.gacha-machine { position: absolute; right: 5%; bottom: 5%; width: 44%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gacha-machine svg { display: block; width: 100%; }
.gacha-machine:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; border-radius: 12px; }
.gacha-machine .gacha-handle { transform-box: fill-box; transform-origin: center; }
.gacha-machine.spin { animation: gshake .15s ease-in-out 8; }
.gacha-machine.spin .gacha-handle { animation: gturn 1.2s ease-in-out; }
.gacha-machine.spin #gachaBalls { animation: gballs .2s ease-in-out 6 alternate; }
@keyframes gshake { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
@keyframes gturn { to { transform: rotate(720deg); } }
@keyframes gballs { to { transform: translateY(-6px); } }
.gacha-cap { position: absolute; z-index: 3; width: 54px; height: 54px; margin: -27px 0 0 -27px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gacha-cap[hidden] { display: none; }
.gacha-cap i { position: absolute; left: 0; right: 0; height: 50%; border: 4px solid var(--ink); transition: transform .35s ease-in, opacity .35s; }
.gacha-cap .top { top: 0; border-radius: 27px 27px 0 0; background: var(--cap, var(--red)); border-bottom-width: 2px; }
.gacha-cap .bot { bottom: 0; border-radius: 0 0 27px 27px; background: var(--paper); border-top-width: 2px; }
.gacha-cap.drop { animation: gdrop .7s cubic-bezier(.3, 1.5, .5, 1), gwait 1s ease-in-out .7s infinite alternate; }
.gacha-cap.open { animation: none; }
.gacha-cap.open .top { transform: translate(-18px, -34px) rotate(-40deg); opacity: 0; }
.gacha-cap.open .bot { transform: translate(18px, 30px) rotate(30deg); opacity: 0; }
@keyframes gdrop { from { transform: translate(var(--dx, 0), var(--dy, -34px)) scale(.4) rotate(-200deg); opacity: 0; } 20% { opacity: 1; } }
@keyframes gwait { to { transform: scale(1.08) rotate(6deg); } }
.gacha-card { position: absolute; inset: 14px; z-index: 5; background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 10px; text-align: center; animation: pop2 .3s ease-out; }
.gacha-card[hidden], .gacha-comp[hidden] { display: none; }
.gacha-pic svg { width: 136px; height: 136px; display: block; }
.gacha-name { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.3; }
.gacha-place { margin: 0; font-size: 12px; font-weight: 700; opacity: .7; }
.gacha-say { margin: 6px 0 0; font-size: 15px; font-weight: 900; color: #d0457e; line-height: 1.5; }
.gacha-new { position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff; font-weight: 900; font-size: 13px; padding: 2px 10px; border: 3px solid var(--ink); border-radius: 999px; transform: rotate(8deg); }
.gacha-new[hidden] { display: none; }
.gacha-comp { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 12px; background: #3a2a35; cursor: pointer; animation: tairyoin .3s ease-out; }
.gacha-comp-big { margin: 0; font-size: 40px; font-weight: 900; color: var(--pink); -webkit-text-stroke: 8px var(--paper); paint-order: stroke fill; animation: flagin .6s cubic-bezier(.3, 1.6, .5, 1); }
@media (prefers-reduced-motion: reduce) { .gacha-machine.spin, .gacha-machine.spin *, .gacha-cap.drop, .gacha-kuuko, .gacha-comp-big { animation: none !important; } }
.gacha-book { list-style: none; margin: 40px auto 0; padding: 0; max-width: 420px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }   /* 18品＝6列×3段 */
.gacha-book li { background: var(--paper); border: 3px solid var(--ink); border-radius: 10px; padding: 3px 1px; text-align: center; font-size: 9px; font-weight: 700; line-height: 1.25;
  min-height: 92px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; overflow-wrap: anywhere; }
.gacha-book li svg { width: 42px; height: 42px; display: block; }
.gacha-book li.none svg { filter: brightness(0) opacity(.18); }
.gacha-book li.none .q { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); font-size: 12px; }
.gacha-book li b { display: block; color: var(--red); }

/* ---------- じゅもんの札のページ（/games/save/。2026-11-27 見本 ③ ④） ---------- */
.savepage .pad { gap: 18px; }
.savepage [hidden] { display: none !important; }   /* display を決めた部品（.rk・.picker など）でも hidden で消えるように */
.sv { display: flex; flex-direction: column; gap: 12px; }
.sv + .sv { border-top: 3px dashed #d9cfbf; padding-top: 22px; }
.sv-h { margin: 0; font: 900 20px/1.4 var(--f); text-align: center; }
.sv-lead { margin: -4px 0 0; font-size: 13px; font-weight: 700; text-align: center; color: var(--sub); }
.sv-none { margin: 0; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 700; text-align: center; }
.btn.sub { background: #fff; color: var(--ink); }
.btn:disabled { opacity: .45; box-shadow: 0 4px 0 #b9ab9a; border-color: #b9ab9a; cursor: default; transform: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
/* ③ 札：黄色の地に墨の太い線、外に白と墨のふち（ステッカーのように）。いちばん下に3羽がぴょこぴょこ */
.jcard { position: relative; margin: 10px 9px 4px; background: var(--wall); border: 5px solid var(--ink); border-radius: 26px; padding: 16px 14px 0; overflow: hidden; text-align: center; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--ink); }
.jcard .hd { font: 900 13px var(--f); letter-spacing: .08em; color: var(--red); }
.jcard h3 { margin: 0; font: 900 20px var(--f); }
.jcard .words { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 2px; }
.jcard .words span { font: 900 18px/1.5 var(--f); background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 1px 10px; }
.jcard .order { margin: 0 0 10px; font-size: 12px; font-weight: 900; }
.qrrow { display: flex; align-items: center; gap: 12px; justify-content: center; }
.qr { flex: none; width: 132px; height: 132px; background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 4px; }
.qr svg { display: block; width: 100%; height: 100%; }
.qrrow ul { margin: 0; padding: 0; list-style: none; text-align: left; font: 700 12px/1.6 var(--f); }
.qrrow li::before { content: '・'; }
.jfam { position: relative; height: 96px; margin-top: 6px; }
.jfam img { position: absolute; bottom: -6px; translate: -50% 0; }
@media (prefers-reduced-motion: no-preference) { .jfam .hop { animation: hop 1s ease-in-out infinite; transform-origin: 50% 100%; } .jfam .hop2 { animation-delay: .25s; } .jfam .hop3 { animation-delay: .5s; } }
@keyframes hop { 0%, 100% { translate: -50% 0; } 45% { translate: -50% -7%; } }
.rk { display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* このページの中の確かめ（alert・confirm は使わない） */
.ask { background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 5px 0 var(--ink); }
.ask p { margin: 0 0 10px; font-size: 14px; font-weight: 900; text-align: center; }
.ask-b { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.svmsg { margin: 0; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 900; text-align: center; }
.svmsg.err { background: #fde3de; }
.svmsg.ok { background: #dff3e6; }
.togames { display: block; width: fit-content; margin: 0 auto; text-decoration: none; }
/* ④ つづきから：戻し方の札（1 がいちばん使う道なので黄色） */
.way { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; background: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 12px; box-shadow: 0 6px 0 var(--ink); cursor: pointer; color: var(--ink); }
.way:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.way.main { background: var(--wall); }
input.vh:focus-visible + .way, .way:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.way .n { width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); display: grid; place-items: center; font: 900 20px var(--f); }
.way.main .n { background: #fff; }
.way-t b { display: block; font: 900 16px/1.35 var(--f); }
.way-t span { display: block; font-size: 12px; color: var(--sub); line-height: 1.5; }
.priv { margin: 0; background: #fff; border: 2px dashed var(--ink); border-radius: 12px; padding: 8px 12px; font-size: 12px; line-height: 1.6; }
/* ことばを えらぶ：えらんだ5つ → さがす → 行（あ か さ…）→ ことばのボタン */
.picker { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pick-left { margin: 0; font-size: 13px; font-weight: 900; text-align: center; }
.chosen { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.chosen button, .chosen .slot { min-height: 40px; border: 3px solid var(--ink); border-radius: 10px; font: 900 13px/1.2 var(--f); padding: 2px; overflow-wrap: anywhere; }
.chosen button { background: var(--yellow); position: relative; }
.chosen button i { position: absolute; top: -8px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font: 900 11px/18px var(--f); font-style: normal; }
.chosen .slot { border-style: dashed; border-color: #b9ab9a; }
.pick-q { font: 700 16px var(--f); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 14px; background: var(--paper); width: 100%; }   /* 16px より小さいと iPhone が拡大する */
.rows { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.rows button { font: 900 14px/1 var(--f); border: 2px solid var(--ink); border-radius: 8px; padding: 8px 0; background: var(--paper); }
.rows button.on { background: var(--ink); color: var(--paper); }
.wgrid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 300px; overflow-y: auto; padding: 2px; }
.wgrid button { font: 900 15px/1.4 var(--f); background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 4px 10px; }
.wgrid button.on { background: var(--yellow); }
.wgrid .none { margin: 0; color: var(--sub); }