/* おでかけ図鑑 本デザイン
   ブランド: 黄×黒の看板路線(docs/plan.md「デザイン・ブランド」参照)
   - 看板イエロー #FFC400 / 古紙クリーム #F6ECD2 / 墨 #221B10 / 赤 #D9382A
   - ロゴ・見出し: Dela Gothic One / 本文: Zen Kaku Gothic New / 手書き: Yusei Magic
   - S/A/B 評価はハンコ風スタンプ(S=赤, A=琥珀, B=青灰) */
:root {
  --bg: #F6ECD2;         /* 古紙クリーム */
  --surface: #FFFBEE;    /* 紙 */
  --ink: #221B10;        /* 墨(ほぼ黒) */
  --muted: #6E6249;
  --line: #D8C89E;
  --main: #FFC400;       /* 看板イエロー */
  --main-soft: #FFEDAE;
  --cta: #D9382A;        /* 赤(ボタン・ハンコ) */
  --sky: #3E93B8;
  --sky-soft: #E1EFF5;
  --leaf: #5E9A50;
  --leaf-soft: #E6F0E2;
  --warn: #B5482C;
  --warn-soft: #F6E0D6;
  --pop-sky: #2FA8E0;    /* 高彩度・青(トップ舞台/アクセント) */
  --pop-leaf: #43B24A;   /* 高彩度・緑(丘) */
  --rank-s: #D9382A;     /* Sスタンプ */
  --rank-a: #C07C10;     /* Aスタンプ */
  --rank-b: #5E7385;     /* B以下スタンプ */
  --shadow: rgba(34, 27, 16, 0.9);
  --shadow-soft: rgba(34, 27, 16, 0.14);
  --font-display: "Dela Gothic One", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-hand: "Yusei Magic", "Klee", "Hiragino Kaku Gothic ProN", sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.8; margin: 0; padding: 0 16px 80px;
}

.wrap { max-width: 760px; margin: 0 auto; }

/* ---- ヘッダー: 一枚看板ロゴ ---- */
header.site { padding: 22px 0 8px; }
header.site a {
  display: inline-block;
  font-family: var(--font-display); font-weight: 400;
  font-size: 19px; letter-spacing: 0.06em;
  color: var(--ink); text-decoration: none;
  background: var(--main);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 6px 18px 8px;
  transform: rotate(-0.6deg);
}
header.site a:hover { transform: rotate(-0.6deg) translateY(-1px); }
header.site .tag { font-size: 12px; color: var(--muted); margin-top: 10px; }

nav.crumbs { font-size: 13px; margin: 10px 0 16px; color: var(--muted); }
nav.crumbs a { color: var(--sky); }

/* ---- 見出し ----
   飾りフォント(Dela)は小さい文字だと見づらいため「ロゴ・看板・スタンプ限定」
   (2026-08-20 本人指示)。見出しは読みやすい極太ゴシック */
h1 {
  font-family: var(--font-body); font-weight: 900;
  font-size: 27px; line-height: 1.45;
  margin: 20px 0 8px; letter-spacing: 0.01em;
}
h2 {
  font-family: var(--font-body); font-weight: 900;
  font-size: 20px; margin: 32px 0 12px; letter-spacing: 0.01em;
}
.lede { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

/* ---- 宣言(ミニ看板) ---- */
.manifest {
  background: var(--main);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--shadow);
  border-radius: 6px;
  padding: 14px 18px; font-size: 14px; font-weight: 700;
  margin: 18px 0 22px;
}

/* ---- ボタン ---- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px;
  font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer;
  font-family: var(--font-body);
  border: 2.5px solid var(--ink); color: var(--ink); background: var(--surface);
  box-shadow: 3px 3px 0 var(--shadow);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.primary { background: var(--cta); color: #FFFBEE; }
.btn.small { padding: 7px 14px; font-size: 13px; box-shadow: 2px 2px 0 var(--shadow); }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }

/* ---- カード ---- */
.card {
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--shadow-soft);
  padding: 16px 18px; margin-bottom: 16px;
}
.card.honmei {
  border-width: 3px;
  background: #FFF6D8;
  box-shadow: 5px 5px 0 var(--shadow);
  position: relative;
}
.card .rank {
  display: inline-block;
  font-family: var(--font-display); font-weight: 400; font-size: 12px;
  color: var(--cta); border: 2px solid var(--cta); border-radius: 4px;
  padding: 1px 8px; margin-bottom: 6px;
  transform: rotate(-2deg);
}
.card a.title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 17px; color: var(--ink); text-decoration: none;
}
.card a.title:hover { background: linear-gradient(transparent 60%, var(--main) 60%); }
.card .meta { font-size: 13px; color: var(--muted); margin: 3px 0 8px; }
.card .why {
  font-family: var(--font-hand);
  font-size: 13.5px; background: var(--main-soft);
  border-left: 4px solid var(--main);
  border-radius: 0 8px 8px 0; padding: 8px 12px; margin-top: 10px;
}

/* ---- チップと評価スタンプ ---- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--bg); color: var(--muted); border: 1.5px solid var(--line); margin-right: 4px;
}
.chip:hover .spr { animation: chirojump .5s ease; }
.chip.rating {
  font-family: var(--font-display); font-weight: 400;
  background: var(--surface); border-radius: 6px;
  padding: 2px 10px; margin-right: 6px;
  transform: rotate(-2deg);
  color: var(--rank-b); border: 2.5px solid var(--rank-b);
  box-shadow: 1px 1px 0 var(--shadow-soft);
}
.chip.rating.r-S { color: var(--rank-s); border-color: var(--rank-s); }
.chip.rating.r-A { color: var(--rank-a); border-color: var(--rank-a); }
.chip.ok { background: var(--leaf-soft); color: var(--leaf); border-color: var(--leaf-soft); }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-soft); }
.chips { margin-bottom: 8px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 0; }

/* ---- 診断の質問 ---- */
.q {
  background: var(--surface); border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--shadow-soft);
  padding: 16px 18px; margin-bottom: 16px;
}
.q h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.q .note { font-size: 12px; color: var(--muted); margin-top: 8px; font-family: var(--font-hand); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  border: 2px solid var(--line); border-radius: 8px; padding: 8px 16px;
  font-size: 14px; cursor: pointer; user-select: none;
  background: var(--surface); font-weight: 700;
}
.opt:hover { border-color: var(--ink); }
.opt.sel {
  border-color: var(--ink); background: var(--main);
  box-shadow: 2px 2px 0 var(--shadow); font-weight: 800;
}

/* ---- 詳細ページ ---- */
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; margin: 12px 0; }
.facts .l { color: var(--muted); font-size: 11.5px; display: block; }
.history {
  font-family: var(--font-hand);
  font-size: 13px; color: var(--ink);
  background: var(--main-soft); border-left: 4px solid var(--main);
  border-radius: 0 8px 8px 0; padding: 8px 12px; margin: 14px 0;
}
section.spot-sec { border-top: 2px dashed var(--line); margin-top: 20px; padding-top: 14px; }
section.spot-sec h3 { font-size: 15px; margin: 0 0 8px; font-weight: 800; }
section.spot-sec ul { margin: 0; padding-left: 20px; font-size: 14px; }
section.spot-sec li { margin-bottom: 6px; }
.empty { font-size: 13px; color: var(--muted); font-family: var(--font-hand); }
.update { display: flex; gap: 12px; font-size: 14px; margin-bottom: 8px; }
.update .d { color: var(--muted); font-size: 12px; white-space: nowrap; padding-top: 2px; }

/* ---- 図鑑のフィルタ・天気 ---- */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.weather-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sky-soft); border: 2px solid var(--sky); border-radius: 8px;
  padding: 6px 14px; font-size: 13.5px; font-weight: 700;
}

footer.site { margin-top: 56px; font-size: 12px; color: var(--muted); border-top: 3px dashed var(--line); padding-top: 16px; }

/* =======================================================
   トップページ: 舞台ヒーロー(案C6-B「ゆかいな遠足号」承認版)
   丘と地平線のある「ひとつの世界」。動きの振り付けは
   docs/design-handoff-c6.md 参照。全アニメは reduced-motion で停止
   ======================================================= */
body.stagehome { padding: 0; }
body.stagehome .wrap { padding: 0 16px 80px; }

/* キャラスプライト(assets/zoo-chars.js を data-zoo 属性で差し込み) */
.spr { display: inline-block; width: var(--w, 60px); line-height: 0; }
.spr svg { width: 100%; height: auto; display: block; }
.flip svg { transform: scaleX(-1); }

.stage { position: relative; min-height: min(94vh, 920px); overflow: hidden; }

/* --- 空のかざり --- */
.bunting { position: absolute; left: -4vw; right: -4vw; top: 24px; z-index: 4; pointer-events: none; border-top: 4px solid var(--ink); display: flex; justify-content: space-between; padding: 0 2vw; transform: rotate(-1.8deg); transform-origin: left center; animation: gsway 6.5s ease-in-out infinite alternate; }
@keyframes gsway { from { transform: rotate(-2.4deg); } to { transform: rotate(-1.2deg); } }
.bunting i { width: 28px; height: 40px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bunting i:nth-child(4n+1) { background: var(--main); }
.bunting i:nth-child(4n+2) { background: var(--cta); }
.bunting i:nth-child(4n+3) { background: var(--pop-sky); }
.bunting i:nth-child(4n+4) { background: var(--pop-leaf); }

.sun { position: absolute; top: 44px; left: 22px; z-index: 4; pointer-events: none; animation: sunrock 6s ease-in-out infinite alternate; }
@keyframes sunrock { from { rotate: -9deg; } to { rotate: 9deg; } }
/* たいようのちょい芸: たまにぐるんと1回転 */
.sunspin { animation: sungo 11s ease-in-out infinite; }
@keyframes sungo {
  0%, 76%  { rotate: 0turn; scale: 1; }
  81%      { scale: 1.18; }
  90%      { rotate: 1turn; scale: 1; }
  100%     { rotate: 1turn; }
}

/* 虹: たまにスッとかかって消える */
.rainbow { position: absolute; left: 23%; bottom: 27vh; width: 440px; height: 220px; z-index: 1; pointer-events: none; opacity: 0; animation: rainbowshow 34s linear infinite; animation-delay: -6s; }
.rainbow i { position: absolute; border: 14px solid var(--c); border-bottom: none; border-radius: 999px 999px 0 0; }
@keyframes rainbowshow { 0%, 52% { opacity: 0; } 58%, 78% { opacity: .85; } 86%, 100% { opacity: 0; } }

/* ゾウのちょい芸: 鼻からプシューっと水しぶき */
.zspray { position: absolute; left: 13%; top: 50%; width: 12px; height: 16px; background: var(--pop-sky); border: 2.5px solid var(--ink); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; opacity: 0; animation: spray 7s linear infinite; animation-delay: var(--dl, 0s); pointer-events: none; }
@keyframes spray {
  0%, 72% { opacity: 0; transform: translate(0, 0) scale(.5); }
  77%     { opacity: 1; transform: translate(calc(var(--dx, -30px) * .5), calc(var(--dy, -70px) * .95)) scale(1); }
  87%     { opacity: 1; transform: translate(var(--dx, -30px), calc(var(--dy, -70px) * .25)) scale(1); }
  93%     { opacity: 0; transform: translate(calc(var(--dx, -30px) * 1.2), 26px) scale(.8); }
  100%    { opacity: 0; transform: translate(0, 0) scale(.5); }
}

.confetti { position: absolute; top: -30px; left: var(--x); z-index: 3; pointer-events: none; width: var(--s, 11px); height: calc(var(--s, 11px) * 1.4); background: var(--c, var(--main)); border: 2px solid var(--ink); animation: cfall var(--t, 16s) linear infinite; animation-delay: var(--dl, 0s); }
@keyframes cfall {
  from { transform: translateY(-4vh) rotate(0turn) translateX(0); }
  50%  { transform: translateY(50vh) rotate(1.5turn) translateX(22px); }
  to   { transform: translateY(106vh) rotate(3turn) translateX(-16px); }
}
/* 紙吹雪の一部はタイトルの前にも降る */
.confetti.front { z-index: 5; }

/* --- 空のできごと(みんな同じ空をゆっくり) --- */
/* クジラは開幕タイトルの左にいて、そこから右へ泳ぎだす */
.skywhale { position: absolute; top: 4%; left: -420px; z-index: 1; pointer-events: none; animation: whaleR 120s linear infinite; animation-delay: -6s; }
@keyframes whaleR { to { transform: translateX(calc(100vw + 900px)); } }
.banner { position: absolute; top: 13%; left: 0; z-index: 1; pointer-events: none; display: flex; align-items: center; gap: 4px; animation: bannerR 30s linear infinite; animation-delay: -8s; }
@keyframes bannerR { from { transform: translateX(-620px); } 62% { transform: translateX(calc(100vw + 80px)); } to { transform: translateX(calc(100vw + 80px)); } }
.banner .cloth { font-family: var(--font-display); font-weight: 400; font-size: 22px; background: var(--main); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow); padding: 3px 14px; white-space: nowrap; }
.rise { position: absolute; bottom: -240px; left: var(--x); z-index: 1; pointer-events: none; animation: riseUp var(--t, 50s) linear infinite; animation-delay: var(--dl, 0s); }
@keyframes riseUp { to { transform: translateY(calc(-100vh - 500px)); } }
.fall { position: absolute; top: -280px; left: var(--x); z-index: 1; pointer-events: none; animation: fallDown var(--t, 70s) linear infinite; animation-delay: var(--dl, 0s); }
@keyframes fallDown { to { transform: translateY(calc(100vh + 560px)); } }
.sway { display: inline-block; line-height: 0; animation: swayr 3.6s ease-in-out infinite alternate; }
@keyframes swayr { from { translate: -12px 0; rotate: -6deg; } to { translate: 12px 0; rotate: 6deg; } }

/* --- 地平線のかんらんしゃ(ゆっくり回る)。左に大きく --- */
.wheelspot { position: absolute; left: 1%; bottom: 27vh; z-index: 1; pointer-events: none; opacity: .95; }
.wheelspin { transform-box: fill-box; transform-origin: center; animation: wheelturn 60s linear infinite; }
@keyframes wheelturn { to { rotate: 360deg; } }

/* --- 雲(ゆっくり流れる) --- */
.cloud { position: absolute; top: var(--y); left: -180px; z-index: 0; pointer-events: none; animation: cloudR var(--t, 95s) linear infinite; animation-delay: var(--dl, 0s); }
@keyframes cloudR { to { transform: translateX(calc(100vw + 360px)); } }

/* --- 丘の花と茂み(風にゆれる) --- */
.deco { position: absolute; z-index: 2; pointer-events: none; line-height: 0; }
.deco.sway2 { transform-origin: bottom center; animation: decosway 3.6s ease-in-out infinite alternate, decohop 9s linear infinite; animation-delay: var(--dl, 0s), calc(var(--dl, 0s) * 4); }
@keyframes decosway { from { rotate: -5deg; } to { rotate: 5deg; } }
/* 花のちょい芸: ときどきぴょこんと2度跳ね */
@keyframes decohop { 0%, 87%, 100% { translate: 0 0; } 90% { translate: 0 -11px; } 93% { translate: 0 0; } 95.5% { translate: 0 -5px; } 98% { translate: 0 0; } }

/* --- ナナメに飛ぶアヒル --- */
.diagduck { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; animation: diagfly 30s linear infinite; animation-delay: -9s; }
@keyframes diagfly { from { transform: translate(-240px, 66vh); } to { transform: translate(calc(100vw + 240px), 4vh); } }
.tilt svg { transform: scaleX(-1) rotate(14deg); }

/* --- タコは風船にぶら下がって空をゆっくり流れていく --- */
.takodrift { position: absolute; top: 6%; left: 0; z-index: 1; pointer-events: none; animation: takomove 105s linear infinite; animation-delay: -38s; }
@keyframes takomove { from { transform: translateX(calc(100vw + 180px)); } to { transform: translateX(-280px); } }
.takofloat { display: flex; flex-direction: column; align-items: center; animation: floaty 6s ease-in-out infinite alternate; }
@keyframes floaty { from { translate: 0 -14px; rotate: -3deg; } to { translate: 0 18px; rotate: 3deg; } }

/* --- 丘 --- */
.hill { position: absolute; bottom: -10vh; left: -15%; width: 130%; height: 36vh; z-index: 2; background: var(--pop-leaf); border: 4px solid var(--ink); border-radius: 50% 50% 0 0 / 90% 90% 0 0; animation: hillup .7s ease-out both; }
@keyframes hillup { from { translate: 0 42vh; } }

/* --- イルカの飛び出し(丘のうしろから) --- */
.fishjump { position: absolute; left: 34%; bottom: 16vh; z-index: 1; pointer-events: none; animation: fjump 13s ease-in-out infinite 3s; transform: translateY(26vh); }
@keyframes fjump {
  0%, 48% { transform: translateY(26vh) rotate(4deg); }
  62%     { transform: translateY(-7vh) rotate(-12deg); }
  84%     { transform: translateY(26vh) rotate(10deg); }
  100%    { transform: translateY(26vh) rotate(4deg); }
}

/* --- 大行進(等間隔・同じ速さ・そろった足並み) --- */
.parade { position: absolute; left: 0; right: 0; bottom: 13vh; height: 150px; z-index: 4; overflow: hidden; pointer-events: none; opacity: 0; animation: fadein .8s ease 1.5s both; }
@keyframes fadein { to { opacity: 1; } }
.ptrack { display: flex; align-items: flex-end; gap: 52px; width: max-content; padding-right: 52px; animation: pmove 48s linear infinite; }
@keyframes pmove { to { transform: translateX(-50%); } }
.ptrack .step { line-height: 0; animation: walkbob .62s ease-in-out infinite alternate; }
.ptrack .step:nth-child(2n) { animation-delay: -.31s; }
@keyframes walkbob { from { translate: 0 2px; rotate: -3.5deg; } to { translate: 0 -3px; rotate: 3.5deg; } }

/* --- くろいスポーツカー: たまにビューン!と爆速で駆け抜ける --- */
.glide { position: absolute; bottom: 5vh; left: 0; z-index: 3; pointer-events: none; transform: translateX(-360px); animation: zoomR 15s linear infinite; animation-delay: -3s; }
@keyframes zoomR {
  0%   { transform: translateX(-360px); }
  19%  { transform: translateX(calc(100vw + 360px)); }
  100% { transform: translateX(calc(100vw + 360px)); }
}
.glide .lean { display: inline-block; line-height: 0; transform: rotate(-2.5deg); position: relative; }
/* 車のうしろのスピード線 */
.glide .lean::before, .glide .lean::after { content: ""; position: absolute; right: 100%; height: 6px; background: var(--ink); border-radius: 3px; opacity: .55; }
.glide .lean::before { width: 120px; top: 38%; margin-right: 14px; }
.glide .lean::after { width: 78px; top: 62%; margin-right: 34px; }

/* --- ティラノ: たまに丘のうしろからのっそり現れて沈む --- */
.trexrise { position: absolute; right: 15%; bottom: 12vh; z-index: 1; pointer-events: none; transform: translateY(34vh); animation: trex 21s ease-in-out infinite 7s; }
@keyframes trex {
  0%, 48%  { transform: translateY(34vh) rotate(0deg); }
  58%      { transform: translateY(0) rotate(-3deg); }
  76%      { transform: translateY(1vh) rotate(2deg); }
  86%      { transform: translateY(34vh) rotate(0deg); }
  100%     { transform: translateY(34vh) rotate(0deg); }
}

/* --- タイトルまわりの立ち位置(ゾウは右のヌシ) --- */
.cast { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.castItem { position: absolute; pointer-events: auto; cursor: pointer; animation: pop .55s cubic-bezier(.3, 1.9, .4, 1) both; animation-delay: var(--pd, .6s); }
@keyframes pop { from { transform: scale(0) rotate(-15deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } }
/* ジャンプは登場アニメと別のレイヤーで(触っても消えない) */
.hoverer { display: inline-block; line-height: 0; }
.castItem:hover .hoverer { animation: jump .5s ease; }
@keyframes jump { 30% { transform: translateY(-24px) scale(1.06, .94); } 60% { transform: translateY(0) scale(.95, 1.07); } }
.castItem .spr { animation: idle 2.6s ease-in-out infinite alternate; animation-delay: var(--id, 0s); }
@keyframes idle { from { translate: 0 3px; } to { translate: 0 -5px; } }

/* --- 突然でかいのが通るギミック(タイトルの前と後ろ) --- */
.giant { position: absolute; left: -400px; top: var(--y); z-index: 6; pointer-events: none; animation: giantL var(--t, 60s) linear infinite; animation-delay: var(--dl, 0s); }
.giant.mid { z-index: 3; }
.giant.r { animation-name: giantR; }
.giant.r .spr svg { transform: scaleX(-1); }
@keyframes giantL {
  0%   { transform: translateX(calc(100vw + 2 * var(--w, 300px))); }
  30%  { transform: translateX(calc(-2.2 * var(--w, 300px))); }
  100% { transform: translateX(calc(-2.2 * var(--w, 300px))); }
}
@keyframes giantR {
  0%   { transform: translateX(calc(-2.2 * var(--w, 300px))); }
  30%  { transform: translateX(calc(100vw + 2 * var(--w, 300px))); }
  100% { transform: translateX(calc(100vw + 2 * var(--w, 300px))); }
}
.giant .bob { display: inline-block; line-height: 0; animation: walkbob var(--wb, .9s) ease-in-out infinite alternate; }

/* --- たまに空から降ってくる巨大ペンギン --- */
.pengdrop { position: absolute; left: 57%; top: 0; z-index: 1; pointer-events: none; transform: translateY(-460px); animation: pengfall 47s linear infinite; animation-delay: -7s; }
@keyframes pengfall {
  0%, 78% { transform: translateY(-460px) rotate(0deg); }
  81%     { transform: translateY(12vh) rotate(-5deg); }
  84%     { transform: translateY(32vh) rotate(4deg); }
  88%     { transform: translateY(80vh) rotate(-2deg); }
  100%    { transform: translateY(80vh) rotate(0deg); }
}

/* ---- 切り貼りタイトル ---- */
.heroText { position: relative; z-index: 4; text-align: center; padding: 9vh 16px 0; } /* 15vh→9vh(ロゴ上の余白詰め 2026-09-14 本人指示) */
.titleboard { position: relative; display: inline-block; padding: 10px 6px 6px; animation: slam .5s cubic-bezier(.2, 1.5, .4, 1) both .12s; }
@keyframes slam { from { transform: scale(2.1) rotate(4deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } }
/* タイトルの後光(背景がにぎやかでも読めるように白くふわっと) */
.titleboard::before { content: ""; position: absolute; inset: -48px -80px; z-index: 0; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 251, 238, .96) 55%, rgba(255, 251, 238, 0)); }
.tb-line { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; gap: 2px; }
.tb-line + .tb-line { margin-top: 6px; }
.ch { display: inline-block; line-height: 1.15; padding: 2px 6px 4px; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--shadow); transform: rotate(var(--r, 0deg)) translateY(var(--dy, 0)); animation: chwob var(--t, 3.4s) ease-in-out infinite alternate, chhop 7.5s linear infinite; animation-delay: var(--dl, 0s), var(--hd, 0s); }
/* タイトルのちょい芸: 数秒おきに1文字ずつ順番にぴょんと波打つ */
@keyframes chhop { 0%, 90%, 100% { translate: 0 0; } 93.5% { translate: 0 -14px; } 97% { translate: 0 2px; } }
.tb-line.l1 .ch { font-size: clamp(24px, 6.6vw, 44px); }
.tb-line.l2 .ch { font-size: clamp(40px, 11.5vw, 84px); border-width: 5px; box-shadow: 7px 7px 0 var(--shadow); padding: 2px 8px 6px; }
/* スマホ: 「おでかけ図鑑」6文字が必ず1行に収まるよう、札を画面幅から逆算して縮める
   (「鑑」だけ改行される問題の対策。2026-08-19 本人指摘) */
@media (max-width: 540px) {
  .tb-line { flex-wrap: nowrap; }
  .tb-line.l2 .ch { font-size: calc((100vw - 170px) / 6); padding: 2px 5px 4px; border-width: 4px; box-shadow: 4px 4px 0 var(--shadow); }
}
@keyframes chwob {
  from { transform: rotate(calc(var(--r, 0deg) - 2.5deg)) translateY(calc(var(--dy, 0px) - 3px)); }
  to   { transform: rotate(calc(var(--r, 0deg) + 2.5deg)) translateY(calc(var(--dy, 0px) + 3px)); }
}
/* フォントは極太(Dela)主体に、たまに Reggae/Potta を混ぜる */
.ch.f0 { font-family: "Dela Gothic One", sans-serif; }
.ch.f2 { font-family: "Reggae One", sans-serif; }
.ch.f3 { font-family: "Potta One", sans-serif; }
.ch.c0 { background: var(--main); color: var(--ink); }
.ch.c1 { background: var(--cta); color: #FFFBEE; }
.ch.c2 { background: var(--pop-sky); color: #FFFBEE; }
.ch.c3 { background: var(--ink); color: var(--main); }
.ch.c4 { background: var(--pop-leaf); color: #FFFBEE; }
.ch.c5 { background: var(--surface); color: var(--ink); }

/* PR文言はぜんぶ空へ: ひこうきの垂れ幕+風船吊りの空飛ぶ看板 */
.flysign { position: absolute; top: var(--y); left: 0; z-index: 1; pointer-events: none; animation: bannerR var(--t, 60s) linear infinite; animation-delay: var(--dl, 0s); }
.flysign.l { animation-name: bannerL; }
@keyframes bannerL { from { transform: translateX(calc(100vw + 120px)); } 62% { transform: translateX(-560px); } to { transform: translateX(-560px); } }
.hangsign { display: flex; flex-direction: column; align-items: center; animation: swayr 4.2s ease-in-out infinite alternate; }
.hangsign .balloons { display: flex; gap: 6px; align-items: flex-end; margin-bottom: -14px; }
.airboard { font-family: var(--font-display); font-weight: 400; font-size: var(--fs, 19px); background: var(--bc, var(--cta)); color: var(--tc, #FFFBEE); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow); padding: 5px 16px; border-radius: 6px; white-space: nowrap; }

.hero-copy { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 7vw, 46px); margin: 34px 0 6px; line-height: 1.4; transform: rotate(-1.2deg); }
.hero-copy .marker { background: linear-gradient(transparent 55%, var(--main) 55%); padding: 0 2px; }
.stage .lede { color: var(--ink); font-size: 14px; margin: 0 auto 20px; max-width: 30em; background: rgba(255, 251, 238, .85); border-radius: 8px; padding: 4px 10px; }

/* 動きが苦手な人にはぜんぶ止める(承認済みデザインの必須条件) */
@media (prefers-reduced-motion: reduce) {
  .bunting, .sun, .confetti, .skywhale, .banner, .rise, .fall, .sway, .wheelspin, .fishjump,
  .ptrack, .ptrack .step, .glide, .trexrise, .castItem, .castItem .spr, .hill, .giant, .giant .bob,
  .flysign, .hangsign, .cloud, .takofloat, .takodrift, .diagduck, .deco.sway2, .sunspin, .zspray, .rainbow, .ch,
  .pengdrop, .titleboard { animation: none; }
  .parade { opacity: 1; }
  .trexrise, .fishjump, .giant, .glide, .diagduck, .zspray, .rainbow, .pengdrop { display: none; }
  .castItem { transform: none; opacity: 1; }
}

/* ---- 見出し・ボタン内のキャラアイコン ---- */
h2.zoo-h2 { display: flex; align-items: center; gap: 10px; }
.btn .spr { vertical-align: middle; margin: -4px 2px 0 0; }

.home-sec { margin-top: 56px; }
.btn.big { font-size: 18px; padding: 15px 36px; box-shadow: 5px 5px 0 var(--shadow); border-radius: 10px; }

/* ---- 図鑑ピクチャーカード ---- */
/* 検索結果バーとカードの間に呼吸の余白(2026-09-10 本人指示) */
#zukan-zone { margin-top: 34px; }
/* ジャンルタグ廃止に合わせてカードはひとまわりコンパクトに(2026-09-10 本人指示) */
.zukan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 14px; }
.pcard {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  background: var(--surface);
  border: 2.5px solid var(--ink); border-radius: 12px;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--shadow-soft);
}
.pcard:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--shadow); }
.pcard.hero {
  grid-column: 1 / -1;
  border-width: 3.5px;
  background: #FFF6D8;
  box-shadow: 6px 6px 0 var(--shadow);
}
/* 写真は必ず枠の高さで切り抜く(overflow: hidden が無いと実写真が
   枠を突き破って本文に覆いかぶさる。2026-08-20 本人報告のバグで判明) */
.pcard-photo {
  position: relative; height: 130px; overflow: hidden;
  border-bottom: 2.5px solid var(--ink);
}
.pcard.hero .pcard-photo { height: 220px; }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stamp-round {
  position: absolute; top: 8px; right: 8px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 400; font-size: 17px;
  background: rgba(255, 251, 238, 0.94);
  border: 3px double var(--rank-b); color: var(--rank-b);
  transform: rotate(8deg);
}
.stamp-round.r-S { border-color: var(--rank-s); color: var(--rank-s); }
.stamp-round.r-A { border-color: var(--rank-a); color: var(--rank-a); }
.pcard.hero .stamp-round { width: 68px; height: 68px; font-size: 26px; top: 12px; right: 12px; border-width: 4px; }
.pcard-body { padding: 9px 13px 12px; }
.pcard-title { font-family: var(--font-body); font-weight: 900; font-size: 16.5px; line-height: 1.5; letter-spacing: .01em; }
.pcard.hero .pcard-title { font-size: 25px; }
.pcard-meta { font-size: 12px; color: var(--muted); margin: 3px 0 7px; }
.pcard-chips .chip { margin-bottom: 4px; }
.pcard-strength {
  font-family: var(--font-hand);
  font-size: 13.5px;
  background: var(--main-soft);
  border-left: 4px solid var(--main);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px; margin-top: 10px;
}

/* =======================================================
   案D「ふたつの入口」+案2改「空と丘のつづき」部品
   (2026-08-20 本組み。経緯は docs/plan.md 参照)
   ======================================================= */
html { scroll-behavior: smooth; }

/* さわるとぴょこん(遊び心の共通アニメ) */
@keyframes chirojump { 30% { translate: 0 -10px; rotate: -4deg; } 60% { translate: 0 0; rotate: 0deg; } 80% { translate: 0 -4px; } }
.guide { cursor: pointer; }
.guide:hover { animation: chirojump .55s ease; }
.btn .spr { transition: translate .15s ease; }
.btn:hover .spr { translate: 0 -4px; }

/* ---- ふたつの入口(押すとページ内の各ゾーンへスクロール) ---- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; margin: 18px auto 0; position: relative; z-index: 4; }
@media (max-width: 600px) { .doors { grid-template-columns: 1fr; gap: 10px; max-width: 320px; } }
.door { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--shadow); padding: 10px 14px; text-decoration: none; color: var(--ink); transition: translate .15s ease, box-shadow .15s ease; }
.door:hover { translate: 0 -3px; box-shadow: 6px 6px 0 var(--shadow); }
.door:hover .spr { animation: chirojump .55s ease; }
.door .spr { margin: -14px 0 -8px; flex-shrink: 0; }
.door.red { background: var(--cta); color: #FFFBEE; transform: rotate(-.8deg); }
.door.yellow { background: var(--main); transform: rotate(.8deg); }
.door b { display: block; font-family: var(--font-body); font-weight: 900; font-size: 16px; line-height: 1.45; white-space: nowrap; letter-spacing: .01em; }
.door .sub { display: block; font-size: 11px; opacity: .9; white-space: nowrap; }
.door .arrow { margin-left: auto; font-weight: 900; font-size: 18px; flex-shrink: 0; }

/* ---- ゾーン見出し(大きく+黄マーカー+案内キャラ) ---- */
.zonehead { font-family: var(--font-body); font-weight: 900; font-size: clamp(26px, 6vw, 34px); letter-spacing: .01em; line-height: 1.4; margin: 10px 0 6px; display: flex; align-items: flex-end; gap: 14px; }
.zonehead .zh { background: linear-gradient(transparent 62%, var(--main) 62%); padding: 0 2px; }
.zonehead .guide { margin-bottom: -2px; }

/* ---- 診断ゾーン: 6問+αを一気に答える ---- */
.quickquiz { background: var(--surface); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--shadow); padding: 6px 20px; }
.qrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; flex-wrap: wrap; }
.qrow + .qrow { border-top: 2px dashed var(--line); }
.qrow .ql { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; min-width: 12em; }
.qrow.subq .ql { padding-left: 1.6em; }
.qrow .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.qrow .opt { padding: 4px 13px; font-size: 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.qrow .qnote { flex-basis: 100%; font-size: 12px; color: var(--muted); font-family: var(--font-hand); margin: -2px 0 2px; }
@media (max-width: 600px) { .qrow .ql { min-width: 100%; } .qrow { padding: 10px 0; } }

/* 診断するボタン: 大きく。スマホでは画面いっぱい
   ※クラス名は .xl。旧名 .giant は舞台の「巨大通過ギミック」と衝突し
   ボタンが画面を横切って消えるバグになった(2026-08-20 本人報告で発覚) */
.btnrow.center { justify-content: center; }
.btn.xl { width: min(100%, 560px); font-size: 20px; padding: 18px 40px; border-radius: 12px; box-shadow: 6px 6px 0 var(--shadow); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .btn.xl { width: 100%; font-size: 19px; padding: 17px 20px; } }

/* ---- 診断結果 ---- */
.result-head { display: flex; align-items: center; gap: 12px; margin: 34px 0 6px; flex-wrap: wrap; }
.result-head .honmei-tag { font-family: var(--font-body); font-weight: 900; font-size: 15px; background: var(--cta); color: #FFFBEE; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow); padding: 3px 16px; transform: rotate(-2deg); }
.result-head .relaxed { font-size: 12.5px; color: var(--muted); }
.reco2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .reco2 { grid-template-columns: 1fr; } }
.whybox { font-family: var(--font-hand); font-size: 13.5px; background: var(--main-soft); border-left: 4px solid var(--main); border-radius: 0 8px 8px 0; padding: 8px 12px; margin-top: 10px; }

/* ---- 図鑑ゾーン: キャラ付きジャンルボタン ---- */
.genrechips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 14px 4px 8px; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 2px 2px 0 var(--shadow); text-decoration: none; color: var(--ink); transition: translate .12s ease; user-select: none; }
.gchip:hover { translate: 0 -3px; }
.gchip:hover .spr { animation: chirojump .5s ease; }
.gchip.sel { background: var(--main); }

/* ---- 写真カード(キービジュアル+ジャンルバッジ) ---- */
.pcard-photo img { transition: transform .35s ease; }
.pcard:hover .pcard-photo img { transform: scale(1.05) rotate(.4deg); }
.pcard-photo.noimg { background: linear-gradient(#CDEBF7 55%, #CDEBF7 55%); display: grid; place-items: center; overflow: hidden; }
.pcard-photo.noimg::after { content: ""; position: absolute; bottom: -30px; left: -12%; width: 124%; height: 58px; background: var(--pop-leaf); border: 3px solid var(--ink); border-radius: 50% 50% 0 0 / 90% 90% 0 0; }
.pcard-photo.noimg .spr { position: relative; z-index: 1; margin-bottom: -10px; }
.gbadge { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,251,238,.95); border: 2.5px solid var(--ink); border-radius: 999px; padding: 2px 12px 2px 7px; font-size: 12px; font-weight: 800; box-shadow: 2px 2px 0 var(--shadow); }
.pcard:hover .gbadge .spr { animation: chirojump .5s ease; }
.stamp-round { z-index: 2; transition: transform .2s ease; }
.pcard:hover .stamp-round { transform: rotate(0deg) scale(1.1); }

/* ---- 中ページ(スポット詳細)の枠: 空バンド+丘footer ---- */
body.midpage { padding: 0; }
body.midpage .wrap { padding: 0 16px; }
.skyband { position: relative; height: 150px; background: linear-gradient(#CDEBF7 0%, rgba(246,236,210,0) 100%); overflow: hidden; }
.skyband .bunting2 { position: absolute; left: -4vw; right: -4vw; top: 16px; border-top: 4px solid var(--ink); display: flex; justify-content: space-between; padding: 0 2vw; transform: rotate(-1.4deg); }
.skyband .bunting2 i { width: 22px; height: 32px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.skyband .bunting2 i:nth-child(4n+1) { background: var(--main); }
.skyband .bunting2 i:nth-child(4n+2) { background: var(--cta); }
.skyband .bunting2 i:nth-child(4n+3) { background: var(--pop-sky); }
.skyband .bunting2 i:nth-child(4n+4) { background: var(--pop-leaf); }
.skyband .sun2 { position: absolute; top: 34px; left: 18px; animation: sunrock 6s ease-in-out infinite alternate; cursor: pointer; }
.skyband .sun2:hover { animation: sungo1 .9s ease; }
@keyframes sungo1 { to { rotate: 1turn; } }
.skyband .cloud2 { position: absolute; left: -180px; top: var(--y); animation: cloudR var(--t, 95s) linear infinite; animation-delay: var(--dl, 0s); }
.skyband header.site { position: absolute; left: 50%; transform: translateX(-50%) rotate(-.6deg); top: 66px; text-align: center; white-space: nowrap; z-index: 2; padding: 0; }
.skyband header.site a:hover { transform: none; translate: 0 -3px; }

.hillfoot { position: relative; margin-top: 70px; height: 170px; overflow: hidden; }
.hillfoot .hill2 { position: absolute; bottom: -40px; left: -10%; width: 120%; height: 120px; background: var(--pop-leaf); border: 4px solid var(--ink); border-radius: 50% 50% 0 0 / 90% 90% 0 0; }
.hillfoot .parade2 { position: absolute; left: 0; right: 0; bottom: 52px; overflow: hidden; }
.hillfoot .ptrack2 { display: flex; align-items: flex-end; gap: 46px; width: max-content; padding-right: 46px; animation: pmove 40s linear infinite; }
.hillfoot .step { line-height: 0; animation: walkbob .62s ease-in-out infinite alternate; }
.hillfoot .step:nth-child(2n) { animation-delay: -.31s; }
.hillfoot .fnote { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 12px; color: #FFFBEE; z-index: 2; }

/* ---- スポット詳細: 貼った写真(キー1枚+3枚・コメントなし) ---- */
.spotname { font-family: var(--font-body); font-weight: 900; letter-spacing: .01em; }
h1.spot-h1 { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
h1.spot-h1 .guide { margin-bottom: -2px; }
h1.spot-h1 .stamp-round { position: static; display: inline-grid; }
.photoboard { margin: 18px 0 6px; }
.polaroid { position: relative; display: block; background: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow-soft); padding: 8px; transform: rotate(var(--r, -1deg)); transition: transform .2s ease, box-shadow .2s ease; }
.polaroid:hover { transform: rotate(0deg) scale(1.02); box-shadow: 6px 6px 0 var(--shadow); }
.polaroid img { width: 100%; display: block; object-fit: cover; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; translate: -50% 0; width: 86px; height: 22px; background: rgba(255,196,0,.75); border: 1.5px solid rgba(34,27,16,.35); rotate: -2deg; z-index: 1; }
.polaroid.key { --r: -.6deg; margin-bottom: 18px; }
.polaroid.key img { height: 280px; }
.photo3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo3 .polaroid img { height: 120px; }
.photo3 .polaroid:nth-child(1) { --r: -2deg; }
.photo3 .polaroid:nth-child(2) { --r: 1.4deg; }
.photo3 .polaroid:nth-child(3) { --r: -1deg; }
@media (max-width: 560px) { .photo3 { grid-template-columns: 1fr 1fr; } .polaroid.key img { height: 200px; } }
.empty { display: flex; align-items: center; gap: 12px; }
section.spot-sec h3 { display: flex; align-items: center; gap: 8px; }
section.spot-sec h3 .spr:hover { animation: chirojump .5s ease; }

@media (prefers-reduced-motion: reduce) {
  .guide, .door .spr, .gchip .spr, .gbadge .spr, .chip .spr, .btn .spr,
  .skyband .sun2, .skyband .cloud2, .hillfoot .ptrack2, .hillfoot .step { animation: none !important; transition: none !important; }
  .pcard:hover .pcard-photo img, .pcard:hover .stamp-round { transform: none; }
  .polaroid, .polaroid:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ================= トップ最終形(案G3ミニマル・2026-08-24 本組み) ================= */

/* ポスト風プロフィール(一行カード) */
/* ---- 名乗りと導線(2026-08-24 ゼロベース再設計) ----
   雲ふきだしは廃止。①タイトル直下の一行 ②署名カード ③aboutページ の3点セット */

/* Xロゴ入りフォローボタン(共通) */
.xfollow { display: inline-flex; align-items: center; gap: 8px; background: #000; color: #FFFBEE; border: 2.5px solid var(--ink); border-radius: 999px; padding: 8px 20px; font-size: 13.5px; font-weight: 900; text-decoration: none; box-shadow: 3px 3px 0 var(--shadow); transition: translate .12s ease; }
.xfollow:hover { translate: 0 -3px; }
/* 右上ナビ版: 「このサイトについて」と同格のサイズ+ロゴ大きめ(2026-09-13 本人指示) */
.xfollow.small { padding: 6px 16px; font-size: 12px; gap: 7px; box-shadow: 2px 2px 0 var(--shadow); }
.xfollow .xmark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #000; flex: none; }
.xfollow .xmark svg { width: 14px; height: 14px; display: block; }
.xfollow.small .xmark { width: 22px; height: 22px; }
.xfollow.small .xmark svg { width: 15px; height: 15px; }

/* ①右上の固定ヘッダー(全ページ共通・常時表示): フォロー+このサイトについて */
.sitenav { position: fixed; top: 12px; right: 12px; z-index: 940; display: flex; gap: 8px; align-items: center; }
.aboutbtn { display: inline-flex; align-items: center; background: var(--surface); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 16px; font-size: 12px; font-weight: 900; text-decoration: none; box-shadow: 2px 2px 0 var(--shadow); transition: translate .12s ease; }
.aboutbtn:hover { translate: 0 -3px; }
@media (max-width: 600px) {
  .sitenav { top: 8px; right: 8px; gap: 6px; }
  .aboutbtn { font-size: 11px; padding: 5px 12px; }
  .sitenav .xfollow.small { font-size: 11px; padding: 4px 11px; }
}

/* ②「この図鑑を書いた人」署名カード */
.authorcard { position: relative; max-width: 600px; margin: 40px auto 0; background: var(--surface); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--shadow); padding: 20px 22px 18px; text-align: left; }
.ac-label { position: absolute; top: -14px; left: 18px; background: var(--main); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 14px; font-size: 11.5px; font-weight: 900; }
.ac-flex { display: flex; gap: 16px; align-items: flex-start; }
/* Xのアイコン画像(assets/img/owner.png)。届くまではプレースホルダーの円が見える */
.ac-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ink); background: var(--main-soft); overflow: hidden; display: grid; place-items: center; position: relative; }
.ac-avatar::after { content: "アイコン\A準備中"; white-space: pre; text-align: center; font-family: var(--font-hand); font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.ac-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ac-main b { font-size: 17px; font-weight: 900; display: block; margin-bottom: 3px; }
.ac-pat { font-size: 13px; line-height: 1.95; color: var(--muted); }
.ac-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 600px) { .ac-avatar { width: 58px; height: 58px; } }

/* ④スポット詳細「Xでもっと詳しく」ポスト一覧 */
.xposts { border-top: 2px dashed var(--line); margin-top: 20px; padding-top: 14px; }
.xposts h3 { font-size: 15px; margin: 0 0 4px; font-weight: 800; }
.xposts .xposts-lede { font-family: var(--font-hand); font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.xpostlist { display: flex; flex-direction: column; gap: 9px; max-width: 560px; }
.xpostbtn { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--shadow); padding: 11px 16px; font-size: 13.5px; font-weight: 900; color: var(--ink); text-decoration: none; transition: translate .12s ease; }
.xpostbtn:hover { translate: 0 -3px; }
.xpostbtn .xmark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #000; flex: none; }
.xpostbtn .xmark svg { width: 15px; height: 15px; display: block; }
.xpostbtn .arr { margin-left: auto; color: var(--muted); font-weight: 900; }

/* ---- 名乗りの帯(初見向け対策 2026-09-14 本人確定) ----
   案内所(絞り込みバー)の上段に置くキャッチコピー+サイト説明。
   文字階層は「コピー23 / 説明14 / 行ラベル14 / チップ・タイル12」の4段、書体は本文書体に統一 */
.p1big { text-align: center; font-family: var(--font-body); font-weight: 900; font-size: 23px; letter-spacing: .09em; line-height: 1.55; padding: 18px 0 4px; }
.p1big .hl { background: linear-gradient(transparent 62%, var(--main) 62%); padding: 0 4px; }
.profstrip { text-align: center; padding: 8px 0 14px; border-bottom: 2px dashed var(--line); }
/* 改行位置は本人指定の<br>固定。PCで2行がそのまま収まる幅 */
.profstrip .p2 { max-width: 42em; margin: 0 auto; font-size: 14px; font-weight: 700; line-height: 1.9; }
@media (max-width: 600px) {
  .p1big { font-size: 17.5px; letter-spacing: .06em; }
  /* スマホは固定改行を解除して自然に折り返す(行バランスは自動調整) */
  .profstrip .p2 { font-size: 13px; text-wrap: balance; }
  .profstrip .p2 br { display: none; }
}

/* ---- スマホのトップ構成(2026-09-15 本人確定・「被せ型」) ----
   スマホでは top.js が、コピー+説明文(.spmeishi)を舞台のロゴ下へ被せて独立表示し、
   絞り込みの箱(#herofilter)を図鑑の直前へ移動する。
   舞台は短くして、ファーストビューの下端に「どこ行く?」の頭が見えるようにする */
@media (max-width: 600px) {
  .stage { min-height: min(66vh, 920px); }
  .heroText { padding-top: 6vh; }
  /* コピー+説明文の白い後光(広め・濃いめ。隅の文字が見づらい指摘への対応) */
  .spmeishi { position: relative; margin-top: 10px; }
  .spmeishi::before { content: ""; position: absolute; inset: -34px -56px; z-index: -1; background: radial-gradient(closest-side, rgba(255, 251, 238, .96) 66%, rgba(255, 251, 238, 0)); }
  .spmeishi .p1big { padding: 8px 0 2px; }
  .spmeishi .profstrip { border-bottom: none; padding: 4px 0 0; }
  /* 箱の上から覗くゾウが丘・大行進(z4)に隠れないように前へ */
  .wrap #herofilter { margin-top: 14px; position: relative; z-index: 5; }
  /* 舞台の整理: 落下物・重なりがちな飾りは隠す。「巨大動物がちょくちょく通る」(.giant)は面白いので残す */
  .trexrise, .takodrift, .diagduck, .pengdrop,
  .fall, .flysign, .confetti.front { display: none; }
  /* クジラはスマホでも復活(2026-09-18 本人指示)。タイトルロゴの帯に重なる高さで
     「ロゴのすぐ後ろ」を通過させる: 他の飾り(太陽・ガーランド・風船・観覧車など)より
     前、ロゴ(.heroText)よりは後ろ、の重なり順にする。サイズはPC比1.5倍相当の81vw
     (inline styleに勝つため!important) */
  .skywhale { top: 4vh !important; z-index: 5; --w: 81vw !important; }
  .heroText { z-index: 6; }
  /* 大行進はコピーと被らないよう下へ。車(.glide)は動物と重なって走り抜けてOK(本人確認済み) */
  .parade { bottom: 4vh; }
  /* 観覧車(左・高め)とゾウ(右)の平行を解消: ゾウは低めの斜め配置(inline styleに勝つため!important) */
  .cast .castItem { bottom: 16vh !important; }

  /* --- 巨大動物の前面通過(2026-09-18 本人指示) ---
     top.js が5体を舞台からこのレイヤーへ移す。レイヤーはページ上端から135vh
     (=舞台+絞り込みの箱のあたりまで)を覆い、動物はロゴ・コピー・絞り込みの
     手前を通過する。タップは全部すり抜ける(pointer-events:none) */
  .giantlayer { position: absolute; top: 0; left: 0; width: 100%; height: 135vh; overflow: hidden; pointer-events: none; z-index: 10; }
  .giantlayer .giant { top: var(--ysp, var(--y)); z-index: auto; }
  /* キリンは「でかすぎて邪魔」が正解のサイズ(inline styleに勝つため!important)。
     横幅は画面の約1.7倍(2倍は本人確認でデカすぎ→20%減。2026-09-18)。
     レーンは --ysp:2vh(画面上端)+縦約98vhで頭から足まで画面を覆う */
  .giantlayer .gkirin { --w: min(168vw, 656px) !important; }
  .giantlayer .gkirin .spr { --w: min(168vw, 656px) !important; }
  /* キリンの登場をスマホだけ少し早める: 24秒→16秒(周期66秒はそのまま) */
  .giantlayer .gkirin { animation-delay: -50s; }
}

/* 「何したい?」はキャラ主役のタイル(絵が大きく、言葉は小さく。2026-09-14 本人確定) */
#mood-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: 100%; }
#mood-chips .opt { flex-direction: column; justify-content: flex-start; height: auto; padding: 10px 4px 8px; gap: 5px; border-radius: 12px; font-size: 12px; line-height: 1.35; text-align: center; }
#mood-chips .opt .spr { height: 32px; }
@media (max-width: 600px) { #mood-chips { grid-template-columns: repeat(3, 1fr); } }
/* 文字階層の統一(帯と揃える) */
#herofilter .frow .fl { font-size: 14px; }
#herofilter .areachip { font-size: 12px; font-weight: 700; }
#herofilter .areachip.on { font-weight: 900; }

/* サイトの基準を伝える看板3つ(2026-09-14 トップから廃止。モックページで使用中のため定義は残す) */
.featrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.feat {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 2.5px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--shadow); padding: 6px 16px 6px 10px;
  font-weight: 900; font-size: 13.5px; white-space: nowrap;
}
.feat:nth-child(odd) { transform: rotate(-1.2deg); }
.feat:nth-child(even) { transform: rotate(1.1deg); }
@media (max-width: 600px) { .feat { font-size: 12px; padding: 5px 12px 5px 8px; } .featrow { gap: 7px; } }

/* 絞り込みバー(ゾウの案内所) */
#herofilter { max-width: 780px; margin: 26px auto 0; text-align: left; }
.annaibar { position: relative; background: var(--surface); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--shadow); padding: 8px 22px; }
.frow { display: flex; align-items: center; gap: 14px; padding: 13px 0; flex-wrap: wrap; }
.frow + .frow { border-top: 2px dashed var(--line); }
.frow .fl { min-width: 7.5em; font-weight: 900; font-size: 14.5px; }
.frow .opts { display: flex; flex-wrap: wrap; gap: 8px; }
/* チップは高さをそろえ、アイコンと文字の間は半角スペースぶん空ける。
   キャラの縦横比がまちまちなので、幅でなく高さ基準(20px)でそろえる */
.frow .opt { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; font-size: 12.5px; border-radius: 999px; }
.frow .opt .spr { width: auto; height: 20px; display: flex; align-items: center; }
.frow .opt .spr svg { width: auto; height: 100%; }
.peek { position: absolute; right: 18px; top: -44px; line-height: 0; }
.peek .spr { display: block; }
.annaibar:hover .peek .spr { animation: chirojump .55s ease; }
/* 「何したい?」の注釈(5つまで) */
.fl .flnote { display: block; font-family: var(--font-hand); font-size: 11.5px; color: var(--muted); font-weight: 400; }
.fl .flnote.beside { display: inline; margin-left: 8px; }
/* スマホ: チップは1行に2つのグリッドに(縦長になりすぎ対策。2026-09-10 本人指示) */
@media (max-width: 600px) {
  .frow .fl { min-width: 100%; margin-bottom: -4px; }
  .frow .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: 100%; }
  .frow .opt, .frow .areachip { width: 100%; box-sizing: border-box; justify-content: flex-start; padding-left: 9px; padding-right: 8px; }
}

/* 検索結果◯件(バー最下段。絞り込み中は濃黄+赤数字) */
.resultrow { justify-content: center; align-items: baseline; gap: 8px; padding: 11px 22px 9px; background: var(--main-soft); margin: 0 -22px; border-radius: 0 0 9px 9px; }
.resultrow .rlabel { font-weight: 900; font-size: 14px; }
.resultrow .rnum { font-family: var(--font-display); font-size: 44px; line-height: 1; letter-spacing: .02em; }
.resultrow .runit { font-weight: 900; font-size: 17px; }
.resultrow.on { background: var(--main); }
.resultrow.on .rnum { color: var(--cta); }
.resultrow .btn.small { margin-left: 14px; }
@media (max-width: 600px) { .resultrow .rnum { font-size: 38px; } }

/* すっきりチップ(枠線は軽く、アイコンは復活) */
.calm .opt { border-color: var(--line); font-weight: 700; }
.calm .opt.sel { border-color: var(--ink); font-weight: 900; }
.calm .areachip { border-color: var(--line); }
.calm .areachip:hover, .calm .areachip.on { border-color: var(--ink); }

/* 方面チップ: 行きたいエリアを押すと黄色く点灯(案B 2026-09-10 本人承認)。
   ×除外式は友人テストで「押す=選ぶ」と誤解されたため廃止。「どこでも」が初期点灯 */
.areachip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 2px solid var(--line); border-radius: 999px;
  padding: 4px 13px; font-size: 12.5px; font-weight: 800; cursor: pointer;
  user-select: none; transition: all .15s ease;
}
.areachip:hover { border-color: var(--ink); translate: 0 -2px; }
.areachip.on { background: var(--main); border-color: var(--ink); box-shadow: 2px 2px 0 var(--shadow); }
.areachip.on::before { content: "✓"; font-weight: 900; }

/* 上限オーバー時のプルプル */
@keyframes annaishake { 0%,100% { translate: 0 0; } 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.shake { animation: annaishake .3s ease 1; }

/* 図鑑上の件数看板は廃止(2026-08-24 本人指示。件数は絞り込みバー内の「検索結果◯件」に一本化) */

/* =======================================================
   「この図鑑を書いた人」名札カード(2026-09-10 本人確定: まんなか配置)
   ======================================================= */
.acwrap { margin-top: 64px; }
.acfr { position: relative; max-width: 460px; margin: 0 auto; background: var(--main); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--shadow); padding: 8px; text-align: left; } /* 620→460(自己紹介の文章量に合わせて 2026-09-14) */
.acfr .inner { background: var(--surface); border: 2.5px solid var(--ink); border-radius: 12px; padding: 52px 20px 20px; text-align: center; }
.acfr .peek { position: absolute; top: -33px; right: 28px; display: flex; align-items: flex-end; gap: 6px; line-height: 0; }
.ac-av { position: absolute; top: -42px; left: 50%; margin-left: -46px; width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--ink); background: var(--main-soft); overflow: hidden; display: grid; place-items: center; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); z-index: 2; }
.ac-av::after { content: "アイコン\A準備中"; white-space: pre; text-align: center; font-family: var(--font-hand); font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.ac-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.acfr .lb { font-size: 11.5px; font-weight: 900; letter-spacing: .22em; color: var(--muted); }
.acfr .name { font-family: var(--font-display); font-size: 21px; line-height: 1.5; margin: 4px 0 12px; }
.acfr p { margin: 0 auto; font-size: 13.5px; line-height: 2.0; color: var(--muted); }
.acfr .acts { display: flex; justify-content: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.aboutbtn2 { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 900; color: var(--ink); text-decoration: none; box-shadow: 0 3px 0 var(--shadow-soft); }
.aboutbtn2:hover { translate: 0 -2px; }
.aboutbtn2 .arr { font-weight: 900; }
@media (max-width: 600px) {
  .acfr .inner { padding: 52px 16px 18px; }
  .acfr .name { font-size: 18px; }
  /* スマホでは自己紹介の固定改行を解除して自然に折り返す(2026-09-14 本人指示) */
  .acfr p br { display: none; }
}
