/* PoKeBo トップページ。色はアプリの共通色（lib/app/theme.dart）と白だけ。枠線は使わず、面の色と影で区切る。
   絵は art_source/landing_v2 で生成（KVのポケット・小物・最後の狐と狸）。 */
@font-face { font-family: 'Rounded Mplus'; src: url('/assets/fonts/RoundedMplus-500.ttf') format('truetype'); font-weight: 100 500; font-display: swap; }
@font-face { font-family: 'LP Black'; src: url('/assets/fonts/MPLUSRounded1c-Black-lp.woff') format('woff'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Rounded Mplus'; src: url('/assets/fonts/RoundedMplus-700.ttf') format('truetype'); font-weight: 600 900; font-display: swap; }

:root {
  color-scheme: light;
  --surface: #fbf5e9;   /* cafeSurface */
  --ink: #2b2016;       /* cafeInk */
  --accent: #b84c2a;    /* cafeAccent */
  --felt: #3e6b4f;      /* cafeFelt */
  --white: #fff;
  --sub: #2b2016b3;
  --shadow-s: 0 1px 2px #2b20160f, 0 4px 12px #2b201612;
  --shadow-m: 0 2px 6px #2b201610, 0 14px 32px #2b20161c;
  --shadow-l: 0 8px 20px #2b201618, 0 32px 64px #2b201626;
  --max: 1160px;
  --gutter: 24px;
  --display: 'LP Black', 'Rounded Mplus', 'Hiragino Maru Gothic ProN', sans-serif;
  --font: 'Rounded Mplus', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --dots: url('/assets/lp/dots-alpha.png');
  --wall: #ede0c8;      /* デザイナーの絵の壁紙（和紙）の色。ページの地はこの一色 */
  --paper: var(--wall) url('/assets/lp/paper.webp') 0 0 / 580px auto;
  --panel: #e9d7a2;     /* ルームのパネル（からし色の紙） */
  --note: #f6eedb;      /* 壁に貼った紙（面の差は影でつける） */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--wall); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  color: var(--ink); background: var(--paper);
  font: 500 16px/1.85 var(--font); letter-spacing: .03em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; }
.phrase { display: inline-block; }
html:not([lang="ja"]) .phrase { display: inline; }
html:not([lang="ja"]) .phrase + .phrase::before { content: " "; }
#download, #movie, #games, #faq, #community { scroll-margin-top: 24px; }

body.lp-top .site-header { background: transparent; }
.lp-top .site-header .nav-link:hover { color: var(--accent); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: block; border-radius: 10px; transition: transform .2s var(--ease); }
.stores a:hover { transform: translateY(-3px); }
.stores img { height: 56px; width: auto; filter: drop-shadow(0 6px 10px #2b201626); }

/* ================= KV：ポケットからスマホとボードゲームが飛び出す ================= */
.kv {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-72px - env(safe-area-inset-top, 0px));
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
  background: var(--dots) 0 0 / 143px 143px, var(--paper);
}
.kv-inner {
  position: relative; z-index: 1;
  width: min(calc(100% - var(--gutter) * 2), 1240px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: end;
}
.kv-copy { align-self: center; padding: 40px 0 140px; }
.kv-title { font-weight: 700; font-size: clamp(44px, 5.4vw, 76px); line-height: 1.3; letter-spacing: .02em; }
.kv-title .phrase { display: block; white-space: nowrap; }
.kv-title .phrase:last-child { color: var(--accent); }
.kv .stores { margin-top: 40px; }

.kv-art { position: relative; width: 100%; max-width: 680px; justify-self: end; aspect-ratio: 1; margin-bottom: -48px; }
.kv-pocket { position: relative; z-index: 2; width: 100%; height: auto; }
/* 箱は本物のパッケージ。ポケットから飛び出した道具の間に置く */
.kv-art .kv-box { position: absolute; z-index: 0; height: auto; filter: drop-shadow(0 12px 14px #2b201640); }
.kv-art .b1 { width: 20%; left: 4%; top: 12%; rotate: -9deg; }
.kv-art .b2 { width: 19%; left: 74%; top: 3%; rotate: 6deg; }
.kv-art .b3 { width: 17%; left: 80%; top: 29%; rotate: 10deg; z-index: 1; }
.kv-bunting { position: absolute; z-index: 0; left: 0; right: 0; top: calc(56px + env(safe-area-inset-top, 0px)); height: 84px; background: url('/assets/lp/bunting.webp') 0 0 / auto 84px repeat-x; }
.kv-screen { position: absolute; z-index: 1; left: 32.4%; top: 6.4%; width: 35.3%; height: 62%; overflow: hidden; border-radius: 9% / 5%; background: var(--ink); }
.kv-screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.kv-props .prop { position: absolute; z-index: 0; filter: drop-shadow(0 10px 10px #2b201626); }
.kv-props .p1 { width: 86px; left: 33%; top: 64%; rotate: -14deg; }
.kv-props .p2 { width: 64px; left: 44%; top: 74%; rotate: 12deg; }
.kv-props .p3 { width: 56px; left: 3%; top: 82%; rotate: -8deg; }
.kv-props .p4 { width: 70px; left: 4%; top: 76%; rotate: 16deg; }

@media (prefers-reduced-motion: no-preference) {
  .kv-title .phrase { animation: rise .9s var(--ease) both; }
  .kv-title .phrase:nth-child(2) { animation-delay: .12s; }
  .kv .stores { animation: rise .9s .3s var(--ease) both; }
  .kv-art { animation: pocket-in 1.1s .1s var(--ease) both; }
  .kv-art .kv-box { animation: pop-in .8s var(--pop) both; }
  .kv-art .b1 { animation-delay: .7s; } .kv-art .b2 { animation-delay: .85s; } .kv-art .b3 { animation-delay: 1s; }
  .kv-props .prop { animation: pop-in .8s var(--pop) both, drift 6s ease-in-out infinite; }
  .kv-props .p1 { animation-delay: .6s, 1.4s; } .kv-props .p2 { animation-delay: .7s, 2s; }
  .kv-props .p3 { animation-delay: .8s, 1.7s; } .kv-props .p4 { animation-delay: .9s, 2.4s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes pocket-in { from { opacity: 0; transform: translateY(80px) scale(.94); } }
@keyframes pop-in { from { opacity: 0; scale: .4; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ================= 白い紙：KVの上に重なって始まる ================= */
.sheet { position: relative; z-index: 2; background: var(--paper); padding-top: 40px; }
.sheet::before { content: ''; position: absolute; left: 0; right: 0; top: -26px; height: 64px; background: url('/assets/lp/awning.webp') center top / auto 100% repeat-x; filter: drop-shadow(0 8px 10px #2b201633); }

.sec { position: relative; padding: 128px 0; }
.sec-head { margin-bottom: 56px; }
.sec-head.center { text-align: center; }
.sec-title { font-weight: 700; font-size: clamp(32px, 4vw, 50px); line-height: 1.4; letter-spacing: .03em; }
.sec-lead { margin-top: 20px; font-size: 17px; line-height: 1.9; color: var(--sub); }
.sec-head.center .sec-lead .phrase { display: inline; }

.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.is-in) { opacity: 1; transform: none; } }

/* ---------- いつでも、どこでも、誰とでも ---------- */
.people { overflow: hidden; }
.peek { position: absolute; width: 150px; top: 88px; filter: drop-shadow(0 10px 10px #2b201622); }
.peek.fox { left: max(16px, calc((100% - var(--max)) / 2 - 40px)); rotate: -8deg; }
.peek.tanuki { right: max(16px, calc((100% - var(--max)) / 2 - 40px)); rotate: 8deg; }
.people-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.scene { margin: 0; }
.scene img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-m); }
.scene figcaption { margin-top: 18px; font-weight: 700; font-size: 22px; }
.people-row .scene:nth-child(even) { margin-top: 56px; }
.people-row .scene:nth-child(2) { transition-delay: .1s; }
.people-row .scene:nth-child(3) { transition-delay: .2s; }
.people-row .scene:nth-child(4) { transition-delay: .3s; }

/* ---------- 動画：フェルトの卓 ---------- */
.movie { background: #8a6c4b url('/assets/lp/wood.webp') 0 0 / 1100px auto; color: var(--white); overflow: hidden; }
.movie .sec-title { text-shadow: 0 2px 12px #2b201673; }
.video-frame { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; border-radius: 30px; overflow: hidden; background: var(--ink); border: 10px solid var(--ink); outline: 8px solid var(--note); box-shadow: 0 0 0 18px var(--ink), 0 30px 70px #00000059; }
.pv-video { width: 100%; height: auto; }
.pv-video.tall { display: none; }
.movie-props .prop { position: absolute; filter: drop-shadow(0 14px 14px #00000040); }
.movie-props .m1 { width: 120px; left: 5%; top: 64px; rotate: -12deg; }
.movie-props .m2 { width: 96px; right: 7%; top: 96px; rotate: 14deg; }
.movie-props .m3 { width: 110px; left: 3%; bottom: 80px; rotate: 10deg; }
.movie-props .m4 { width: 90px; right: 4%; bottom: 140px; rotate: -6deg; }
.movie-props .m5 { width: 64px; right: 13%; bottom: 72px; rotate: 18deg; }
@media (prefers-reduced-motion: no-preference) {
  .movie-props .prop { animation: drift 7s ease-in-out infinite; }
  .movie-props .m2 { animation-delay: -2s; } .movie-props .m3 { animation-delay: -4s; }
  .movie-props .m4 { animation-delay: -1s; } .movie-props .m5 { animation-delay: -3s; }
}

/* ---------- 注目作 ---------- */
.games { padding-bottom: 64px; }
.spot-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 360px; gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px max(var(--gutter), calc((100% - var(--max)) / 2)) 40px;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}
.spot-track::-webkit-scrollbar { display: none; }
.spot-card { scroll-snap-align: start; padding: 26px 26px 24px; border: 22px solid transparent; border-image: url('/assets/lp/popup-frame.png') 44 44 43 44 fill / 22px 22px 22px 22px stretch; filter: drop-shadow(0 12px 18px #2b201633); }
.spot-visual { position: relative; margin: -26px -26px 0; height: 340px; border-radius: 4px; background: var(--spot-bg, var(--panel)) center / cover; overflow: hidden; }
.spot-box { position: absolute; width: 48%; left: 7%; bottom: 16%; rotate: -6deg; filter: drop-shadow(0 12px 12px #2b201633); transition: rotate .5s var(--pop), translate .5s var(--pop); }
.spot-phone { position: absolute; width: 42%; right: 8%; bottom: -14%; transition: translate .5s var(--ease); }
.spot-card:hover .spot-box { rotate: -10deg; translate: 0 -8px; }
.spot-card:hover .spot-phone { translate: 0 -18px; }
.phone { background: var(--ink); padding: 3.2%; border-radius: 15% / 7%; box-shadow: var(--shadow-l); }
.phone-screen { position: relative; aspect-ratio: 390 / 844; border-radius: 12% / 5.6%; overflow: hidden; background: var(--surface); }
.phone-screen video, .phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.spot-catch { display: inline-block; margin-top: 22px; padding: 4px 14px; border-radius: 999px; background: var(--accent); color: var(--white); font-weight: 700; font-size: 14px; }
.spot-name { margin-top: 10px; font-weight: 700; font-size: 22px; line-height: 1.5; }
.spot-visual + .spot-name { margin-top: 22px; }
.spot-nav { display: flex; justify-content: flex-end; gap: 12px; }
.spot-arrow { width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--note); box-shadow: var(--shadow-s); cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease), background .2s, opacity .2s; }
.spot-arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.spot-arrow:hover { transform: translateY(-2px); }
.spot-arrow:disabled { opacity: .35; cursor: default; transform: none; }

/* ---------- 棚：全作品をアプリの棚に並べる ---------- */
.shelf { padding-top: 64px; }
.shelf-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 56px; }
.shelf-head .sec-head { margin: 0; }
.note-card { padding: 28px 32px; border-radius: 28px; background: var(--panel); box-shadow: var(--shadow-m); }
.note-card p + p { margin-top: 8px; }
.note-strong { font-weight: 700; font-size: 18px; color: var(--accent); }
.note-small { font-size: 14px; color: var(--sub); }
.lineup { position: relative; padding: 48px 0 0; }
.lineup-count { position: absolute; top: 0; left: 0; padding: 6px 20px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 15px; }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px; }
.g-item { display: flex; flex-direction: column; }
.g-open { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.g-box { display: flex; align-items: flex-end; justify-content: center; height: 180px; padding: 0 10%; }
.g-box img { max-height: 100%; width: auto; max-width: 100%; filter: drop-shadow(0 8px 8px #2b201638); transform-origin: 50% 100%; transition: transform .35s var(--pop); }
.g-open:hover .g-box img, .g-open:focus-visible .g-box img { transform: translateY(-10px) rotate(-3deg); }
.g-open:focus-visible { outline: none; }
.g-open:focus-visible .g-name { color: var(--accent); }
.g-plank { display: block; height: 30px; margin-top: -6px; filter: drop-shadow(0 8px 8px #2b201626); background: url('/assets/lp/shelf-plank.webp') center / auto 100% repeat-x; }
.g-name { padding: 12px 10px 0; font-weight: 700; font-size: 14px; line-height: 1.5; }
.g-plus { display: grid; place-items: center; width: 68%; aspect-ratio: 369 / 520; border-radius: 10px; background: var(--note); color: var(--accent); font-size: 40px; font-weight: 700; box-shadow: var(--shadow-s); }
.g-soon .g-name { color: var(--sub); }
.locale-note { margin: 0 0 20px; font-size: 13px; color: var(--sub); }
.pill-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; padding: 15px 30px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; text-decoration: none; transition: transform .2s var(--ease); }
.pill-link:hover { transform: translateY(-2px); }

/* ---------- ゲームのポップアップ ---------- */
.game-modal, .dl-pop { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; }
.game-modal::backdrop, .dl-pop::backdrop { background: #2b201680; }
.game-modal[open], .dl-pop[open] { display: grid; place-items: center; padding: 24px; }
.gm-card, .dl-card { position: relative; width: min(100%, 900px); background: var(--paper); border-radius: 36px; box-shadow: var(--shadow-l); outline: none; overflow: hidden; }
.game-modal[open] .gm-card, .dl-pop[open] .dl-card { animation: modal-in .45s var(--pop) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.gm-close, .dl-close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--note); box-shadow: var(--shadow-s); cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease); }
.gm-close span, .dl-close span { position: relative; width: 18px; height: 18px; }
.gm-close span::before, .gm-close span::after, .dl-close span::before, .dl-close span::after { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 2.4px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.gm-close span::after, .dl-close span::after { transform: rotate(-45deg); }
.gm-close:hover, .dl-close:hover { transform: rotate(90deg); }
.gm-body { display: grid; grid-template-columns: 1fr 1fr; }
.gm-visual { position: relative; min-height: 460px; background: var(--spot-bg, var(--felt)) center / cover; }
.gm-box { position: absolute; width: 40%; left: 7%; bottom: 14%; rotate: -6deg; filter: drop-shadow(0 12px 12px #2b201633); }
.gm-phone { position: absolute; width: 42%; right: 8%; top: 9%; background: var(--ink); padding: 3.2%; border-radius: 15% / 7%; box-shadow: var(--shadow-l); }
.gm-phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 12% / 5.6%; }
.gm-copy { align-self: center; padding: 56px 48px; }
.gm-title { font-weight: 700; font-size: 30px; line-height: 1.4; padding-right: 32px; }
.gm-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.gm-meta li { padding: 4px 14px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 14px; }
.gm-summary { margin-top: 22px; font-size: 17px; line-height: 1.9; }
.gm-more { display: inline-flex; margin-top: 32px; padding: 15px 26px; border-radius: 999px; background: var(--accent); color: var(--white); font-weight: 700; text-decoration: none; transition: transform .2s var(--ease); }
.gm-more:hover { transform: translateY(-2px); }
html:has(dialog[open]) { overflow: hidden; }

/* ---------- レビュー（/reviews も同じ見た目） ---------- */
.community { padding: 128px 0; }
.community-tag { display: inline-block; color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: .1em; margin-bottom: 8px; }
.community .section-title { font-weight: 700; font-size: clamp(32px, 4vw, 50px); line-height: 1.4; }
.community .section-lead { margin-top: 20px; font-size: 17px; color: var(--sub); max-width: 760px; }
.community-grid { margin-top: 48px; }
.review-fallback { display: inline-block; margin: 8px 12px; font-size: 13px; color: var(--sub); }
.community-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.community-actions a, .community-actions button { display: inline-flex; align-items: center; padding: 13px 24px; border: 0; border-radius: 999px; background: var(--note); box-shadow: var(--shadow-s); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease); }
.community-actions a:first-child { background: var(--ink); color: var(--white); }
.community-actions a:hover, .community-actions button:hover { transform: translateY(-2px); }
.community-note { margin-top: 20px; font-size: 13px; color: var(--sub); }
.community { background: #d39f65 url('/assets/lp/cork.webp') 0 0 / 720px auto; box-shadow: inset 0 14px 24px -14px #2b201640, inset 0 -14px 24px -14px #2b201640; }
.community-card { position: relative; }
.community-card::before { content: ''; position: absolute; z-index: 3; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e07a52, var(--accent) 55%, #7d2f18); box-shadow: 0 3px 4px #2b201659; }
.community .community-tag { color: var(--ink); }
.community .section-lead, .community .community-note { color: var(--ink); }

/* ---------- よくあるご質問 ---------- */
.faq { padding-top: 64px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 32px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--note); border-radius: 22px; box-shadow: var(--shadow-s); transition: box-shadow .25s; }
.faq-item[open] { box-shadow: var(--shadow-m); }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 24px 28px; cursor: pointer; font-weight: 700; font-size: 17px; line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; flex: 0 0 34px; height: 34px; margin-left: auto; border-radius: 50%; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2016' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 28px 26px; color: var(--sub); }
.faq-a p + p { margin-top: 8px; }

/* ---------- 最後のダウンロード ---------- */
.cta { position: relative; overflow: hidden; padding: 112px 0 0; background: var(--dots) 0 0 / 143px 143px, var(--paper); }
.cta::after { content: ''; display: block; height: 120px; margin-top: -40px; background: #8a6c4b url('/assets/lp/wood.webp') 0 0 / 1100px auto; box-shadow: inset 0 10px 16px -8px #2b201659; }
.cta-inner { position: relative; z-index: 1; width: min(calc(100% - var(--gutter) * 2), var(--max)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.cta-copy { padding-bottom: 120px; }
.cta-icon { width: 104px; height: 104px; border-radius: 26px; box-shadow: var(--shadow-m); }
.cta-title { margin-top: 28px; font-weight: 700; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.35; }
.cta-title .phrase { display: block; white-space: nowrap; }
.cta-title .phrase:last-child { color: var(--accent); }
.cta .stores { margin-top: 36px; }
.cta-art { width: 100%; height: auto; max-width: 560px; justify-self: end; }

/* ---------- ダウンロードのポップアップ ---------- */
.dl-card { width: min(100%, 440px); padding: 48px 32px 36px; }
.dl-card .icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow-m); }
.dl-title { margin-top: 24px; font-weight: 700; font-size: 26px; line-height: 1.45; }
.dl-title .phrase { display: block; }
.dl-card p { margin-top: 12px; color: var(--sub); }
.dl-card .stores { margin-top: 28px; }
.dl-card .stores img { height: 48px; }

/* ---------- フッター ---------- */
body.lp-top > footer, body.lp > footer { background: var(--paper); color: var(--ink); box-shadow: none; }
body > footer .footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
body > footer .footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
body > footer .footer-links a { text-decoration: none; }
body > footer .footer-links a:hover { color: var(--accent); }

/* ================= タブレット ================= */
@media (max-width: 1000px) {
  .kv-inner { grid-template-columns: 1fr; gap: 0; }
  .kv-copy { padding: 32px 0 0; }
  .kv-art { justify-self: center; max-width: 620px; margin-top: 8px; }
  .people-row { grid-template-columns: repeat(2, 1fr); }
  .peek { display: none; }
  .shelf-head { grid-template-columns: 1fr; gap: 32px; }
  .g-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .faq-grid .sec-head { position: static; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-art { justify-self: center; }
}

/* ================= スマホ ================= */
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .kv-props { display: none; }
  .kv-copy { padding: 20px 0 0; }
  .kv-title { font-size: clamp(32px, 9.4vw, 42px); }
  .kv .stores { margin-top: 22px; gap: 10px; }
  .kv .stores img { height: 44px; }
  .kv-art { width: calc(100% + 24px); margin: 4px -12px -32px; }

  .sheet::before { height: 44px; top: -18px; }
  .kv-bunting { height: 52px; background-size: auto 52px; }
  .sec, .community { padding: 80px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-head.center { text-align: left; }
  .sec-title, .community .section-title { font-size: clamp(27px, 7.6vw, 34px); }
  .sec-lead, .community .section-lead { font-size: 15px; margin-top: 16px; }
  .sec-head .sec-lead .phrase, .sec-head.center .sec-lead .phrase { display: block; }

  .people-row { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 70%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 24px; scroll-padding-inline: var(--gutter); }
  .people-row::-webkit-scrollbar { display: none; }
  .people-row .scene:nth-child(even) { margin-top: 0; }
  .scene { scroll-snap-align: start; }
  .scene img { border-radius: 22px; }
  .scene figcaption { font-size: 18px; margin-top: 12px; }

  .movie-props .m1 { width: 64px; left: auto; right: 4%; top: 28px; }
  .movie-props .m2, .movie-props .m4, .movie-props .m5 { display: none; }
  .movie-props .m3 { width: 64px; left: 4%; bottom: 28px; }
  .video-frame { border-radius: 22px; width: min(calc(100% - 36px), 380px); border-width: 6px; outline-width: 6px; box-shadow: 0 0 0 12px var(--ink), 0 20px 40px #00000059; }
  .pv-video.wide { display: none; }
  .pv-video.tall { display: block; }

  .spot-track { grid-auto-columns: 78%; gap: 14px; padding: 4px var(--gutter) 24px; scroll-padding-inline: var(--gutter); }
  .spot-visual { height: 270px; }
  .spot-card { padding: 20px 18px 18px; border-width: 16px; border-image-width: 16px; }
  .spot-card .spot-visual { margin: -20px -18px 0; }
  .spot-name { font-size: 18px; }
  .spot-nav { display: none; }

  .shelf { padding-top: 40px; }
  .shelf-head { margin-bottom: 44px; }
  .note-card { padding: 22px 22px; border-radius: 22px; }
  .note-strong { font-size: 16px; }
  .lineup { padding-top: 48px; }
  .lineup-count { left: 28px; }
  .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .g-box { height: 128px; padding: 0 9%; }
  .g-plank { height: 16px; }
  .g-name { font-size: 12px; padding: 8px 8px 0; }
  .pill-link { margin: 32px 12px 0; }

  .game-modal[open] { place-items: end center; padding: 0; }
  .gm-card { width: 100%; border-radius: 28px 28px 0 0; max-height: 92svh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .game-modal[open] .gm-card { animation: sheet-in .45s var(--ease) both; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  .gm-body { grid-template-columns: 1fr; }
  .gm-visual { min-height: 0; height: 320px; }
  .gm-box { width: 34%; left: 9%; bottom: 14%; }
  .gm-phone { width: 33%; right: 16%; top: 8%; }
  .gm-copy { padding: 28px 24px 36px; }
  .gm-title { font-size: 22px; }
  .gm-summary { font-size: 15px; }

  .community-actions { flex-direction: column; align-items: flex-start; }
  .faq { padding-top: 40px; }
  .faq-item summary { padding: 18px 20px; font-size: 15px; }
  .faq-a { padding: 0 20px 20px; }

  .cta { padding: 72px 0 24px; }
  .cta-icon { width: 80px; height: 80px; border-radius: 20px; }
  .cta-title { font-size: clamp(30px, 8.6vw, 40px); }
  .cta .stores img { height: 44px; }
  .cta-art { width: 100%; max-width: 420px; margin: 16px auto 0; }
  .cta-copy { padding-bottom: 0; }
  .cta::after { height: 80px; }
}

/* 日本語以外は語で折り返す（「ポケットに、」「ボードゲームを。」の2行組みは日本語だけ） */
html:not([lang="ja"]) .kv-title .phrase, html:not([lang="ja"]) .cta-title .phrase { display: inline; white-space: normal; }
html:not([lang="ja"]) .kv-title { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.2; }

/* 見出し・名前・ボタンは肉かるたと同じ太い丸ゴシック（M PLUS Rounded 1c Black） */
.kv-title, .sec-title, .cta-title, .dl-title, .gm-title, .spot-name, .spot-catch, .scene figcaption, .lineup-count, .note-strong,
.pill-link, .gm-more, .community-actions a, .g-name, .faq-item summary, .site-header .nav-link, .site-header .nav-cta, .mobile-download-bar .nav-cta { font-family: var(--display) !important; font-weight: 900; }
.kv-title, .sec-title, .cta-title { letter-spacing: .04em; }

/* ゲームのポップアップもアプリの汎用ポップアップ（木枠）で囲む */
.gm-card { border: 22px solid transparent; border-image: url('/assets/lp/popup-frame.png') 44 44 43 44 fill / 22px stretch; border-radius: 0; background: none; overflow: visible; box-shadow: none; filter: drop-shadow(0 24px 40px #2b201659); }
.gm-visual { border-radius: 0; }
.gm-close { top: 10px; right: 10px; background: var(--ink); box-shadow: none; }
.gm-close span::before, .gm-close span::after { background: var(--white); }
@media (max-width: 700px) {
  .gm-card { border-width: 16px; border-image-width: 16px; max-height: 92svh; overflow-y: auto; border-radius: 0; }
  .game-modal[open] { padding: 12px; place-items: end center; }
}

/* KV：大きなスマホ1台＋本物の箱3つ＋アプリの狐と狸（脇役） */
.kv-art { aspect-ratio: 1 / .98; }
.kv-art .kv-phone { position: absolute; z-index: 2; left: 50%; top: 4%; width: 42%; translate: -50% 0; background: var(--ink); padding: 2.6%; border-radius: 13% / 6%; box-shadow: 0 30px 60px #2b201640, 0 6px 14px #2b201630; }
.kv-art .kv-phone .phone-screen { border-radius: 10.5% / 4.9%; }
.kv-art .kv-phone::before { content: ''; position: absolute; z-index: 1; left: 50%; top: 3.2%; width: 26%; height: 2.6%; translate: -50% 0; border-radius: 999px; background: var(--ink); }
.kv-art .kv-box { z-index: 1; }
.kv-art .b1 { width: 23%; left: 2%; top: 6%; rotate: -9deg; }
.kv-art .b2 { width: 22%; left: 6%; top: 46%; rotate: 6deg; }
.kv-art .b3 { width: 23%; left: 75%; top: 4%; rotate: 8deg; }
.kv-art .b4 { width: 23%; left: 73%; top: 46%; rotate: -6deg; }

.kv-art .b4 { animation-delay: 1.1s; }
/* キャッチコピーはロゴ画像（日本語）。狐と狸はロゴのそばに。日本語以外は文字で出す */
.kv-logo-wrap { position: relative; padding: 56px 12% 10px 0; }
.kv-logo { display: block; width: 100%; max-width: 600px; height: auto; filter: drop-shadow(0 10px 14px #2b201626); }
.kv-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not([lang="ja"]) .kv-logo { display: none; }
html:not([lang="ja"]) .kv-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
.kv-logo-wrap .kv-char { position: absolute; width: 22%; max-width: 130px; filter: drop-shadow(0 8px 8px #2b201630); }
.kv-logo-wrap .kv-char.fox { left: -4%; top: -14%; width: 18%; rotate: -8deg; }
.kv-logo-wrap .kv-char.tanuki { left: 84%; bottom: -8%; width: 17%; rotate: 6deg; }
html:not([lang="ja"]) .kv-logo-wrap .kv-char { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .kv-logo { animation: rise .9s var(--ease) both; }
  .kv-logo-wrap .kv-char { animation: pop-in .7s var(--pop) both, drift 4s 2s ease-in-out infinite; }
  .kv-logo-wrap .kv-char.fox { animation-delay: .5s, 2s; } .kv-logo-wrap .kv-char.tanuki { animation-delay: .65s, 2.6s; }
}
@media (max-width: 700px) {
  .kv-logo-wrap { padding: 28px 16% 6px 4%; }
  .kv-logo-wrap .kv-char { width: 18%; }
  .kv-logo-wrap .kv-char.tanuki { left: auto; right: 0; bottom: 0; width: 17%; }
}

/* 木枠の紙の上に色の面を「はめる」：紙のへりから均等に内側へ置き、角を丸めて内側に影 */
.gm-visual { margin: 12px 0 12px 12px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px #2b20161f, inset 0 6px 14px #2b201626; }
.spot-card .spot-visual { margin: -14px -14px 0; border-radius: 10px; box-shadow: inset 0 0 0 1px #2b20161f, inset 0 6px 14px #2b201626; }
@media (max-width: 700px) {
  .gm-visual { margin: 10px 10px 0; }
  .spot-card .spot-visual { margin: -10px -8px 0; }
}

/* ---------- 2026-11-01：横長の場面絵・全作品の注目棚・後半の動き ---------- */
/* いつでも、どこでも、誰とでも：場面絵は元の横長のまま見せる（2列・右列を少し下げる） */
.people-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
.people-row .scene:nth-child(even) { margin-top: 72px; }
.people-row .scene:nth-child(3), .people-row .scene:nth-child(4) { margin-top: -24px; }
.people-row .scene:nth-child(4) { margin-top: 48px; }
.scene img { aspect-ratio: 1400 / 788; }
@media (max-width: 700px) {
  .people-row { grid-template-columns: none; grid-auto-columns: 86%; gap: 14px; }
  .people-row .scene:nth-child(n) { margin-top: 0; }
}

/* 今日は、どれで遊ぶ？：全作品。押すと棚と同じポップアップ、ホバーで一言がひょいと出る */
.spot-card { appearance: none; display: flex; flex-direction: column; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: translate .45s var(--pop), opacity .9s var(--ease), transform .9s var(--ease); transition-delay: 0s, calc(var(--i, 0) * .08s), calc(var(--i, 0) * .08s); }
.spot-card:hover, .spot-card:focus-visible { translate: 0 -8px; }
.spot-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.spot-visual { display: block; }
.spot-name { display: block; margin-top: 22px; }
.spot-catch { position: absolute; z-index: 3; top: 18px; left: 18px; max-width: calc(100% - 36px); margin: 0; padding: 9px 16px; border-radius: 16px; background: var(--note); color: var(--ink); box-shadow: 0 8px 18px #2b201633; font-size: 15px; line-height: 1.5; text-align: left;
  opacity: 0; transform: translateY(16px) scale(.6) rotate(-4deg); transform-origin: 24px 100%; transition: opacity .2s var(--ease), transform .45s var(--pop); pointer-events: none; }
.spot-catch::after { content: ''; position: absolute; left: 22px; bottom: -8px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--note); }
.spot-card:hover .spot-catch, .spot-card:focus-visible .spot-catch { opacity: 1; transform: none; }
@media (hover: none) { .spot-catch { opacity: 1; transform: none; } }

/* 後半の動き：まとまり（.stagger）が画面に入ったら、中身を1つずつ弾ませて出す */
@media (prefers-reduced-motion: no-preference) {
  .js .stagger:not(.is-in) > * { opacity: 0; }
  .stagger.is-in > * { animation: stagger-in .8s var(--pop) backwards; }
  .stagger.is-in > :nth-child(2) { animation-delay: .08s; } .stagger.is-in > :nth-child(3) { animation-delay: .16s; }
  .stagger.is-in > :nth-child(4) { animation-delay: .24s; } .stagger.is-in > :nth-child(5) { animation-delay: .32s; }
  .stagger.is-in > :nth-child(6) { animation-delay: .4s; } .stagger.is-in > :nth-child(7) { animation-delay: .48s; }
  .stagger.is-in > :nth-child(8) { animation-delay: .56s; } .stagger.is-in > :nth-child(n+9) { animation-delay: .64s; }
  /* 棚の箱は上から落ちてきて、木の板で小さく跳ねる */
  .g-grid.is-in > * { animation-name: box-drop; animation-duration: .7s; }
  /* 感想は、コルクに留められる紙のように：傾いて落ちてきて、ピンがぽんと刺さる */
  .community-grid.is-in > * { animation-name: note-pin; animation-duration: .9s; }
  .community-grid.is-in > *::before { animation: pin-pop .45s var(--pop) backwards; }
  .community-grid.is-in > :nth-child(1)::before { animation-delay: .5s; } .community-grid.is-in > :nth-child(2)::before { animation-delay: .62s; } .community-grid.is-in > :nth-child(3)::before { animation-delay: .74s; }
  /* 件数はぽんと弾む */
  .js .community-count:not(.is-in) { opacity: 0; }
  .community-count.is-in { animation: count-pop .7s var(--pop) .2s backwards; }
  /* よくある質問は左右から交互にすべりこむ */
  .faq-list.is-in > * { animation-name: slide-in-l; }
  .faq-list.is-in > :nth-child(even) { animation-name: slide-in-r; }
  /* 最後の案内：文字はせり上がり、狐と狸は跳ねて手招き */
  .cta-inner.is-in .cta-art { animation: beckon-in 1s var(--pop) .3s both, beckon 2.6s ease-in-out 1.4s infinite; transform-origin: 50% 100%; }
  .cta-inner.is-in .cta-title .phrase { animation: rise .8s var(--ease) both; }
  .cta-inner.is-in .cta-title .phrase:last-child { animation-delay: .12s; }
}
.community-card { transform: rotate(var(--tilt, 0deg)); }
.community-grid > :nth-child(3n+1) { --tilt: -1.4deg; } .community-grid > :nth-child(3n+2) { --tilt: .9deg; } .community-grid > :nth-child(3n) { --tilt: -.6deg; }
.community-card { transition: transform .35s var(--pop); }
.community-card:hover { transform: rotate(0deg) translateY(-6px) scale(1.01); }
.faq-item { overflow: hidden; transition: box-shadow .25s, transform .25s var(--pop); }
.faq-item:hover { transform: translateY(-2px); }
.faq-item summary::after { transition: transform .45s var(--pop), background-color .2s; }
.faq-item[open] summary::after { background-color: var(--accent); }
@keyframes stagger-in { from { opacity: 0; transform: translateY(46px) scale(.94); } }
@keyframes box-drop { 0% { opacity: 0; transform: translateY(-60px) rotate(-6deg); } 60% { opacity: 1; transform: translateY(6px) rotate(1deg); } 80% { transform: translateY(-3px); } 100% { transform: none; } }
@keyframes note-pin { 0% { opacity: 0; transform: translateY(-70px) rotate(calc(var(--tilt, 0deg) * 5)); } 65% { opacity: 1; transform: translateY(6px) rotate(var(--tilt, 0deg)); } 100% { transform: rotate(var(--tilt, 0deg)); } }
@keyframes pin-pop { from { opacity: 0; transform: scale(2.4) translateY(-10px); } }
@keyframes count-pop { 0% { opacity: 0; transform: scale(.3) rotate(-12deg); } 70% { transform: scale(1.12) rotate(4deg); } 100% { transform: rotate(-4deg); } }
@keyframes slide-in-l { from { opacity: 0; transform: translateX(-56px); } }
@keyframes slide-in-r { from { opacity: 0; transform: translateX(56px); } }
@keyframes beckon-in { from { opacity: 0; transform: translateY(80px) scale(.85); } }
@keyframes beckon { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-1.6deg) translateY(-4px); } }

/* 感想の件数：見出しの横に貼った丸い札 */
.community .section-title { display: inline-block; vertical-align: middle; }
.community-count { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; vertical-align: middle; width: 112px; height: 112px; margin-left: 20px; border-radius: 50%; background: var(--accent); color: var(--white); box-shadow: 0 10px 18px #2b201640, inset 0 0 0 4px #ffffff33; transform: rotate(-4deg); font-family: var(--display); font-weight: 900; line-height: 1.1; }
.community-count:empty { display: none; }
.community-count b { font-size: 38px; }
.community-count span { font-size: 13px; }
@media (max-width: 700px) { .community-count { width: 84px; height: 84px; margin-left: 12px; } .community-count b { font-size: 28px; } .community-count span { font-size: 11px; } }
.community .community-tag { display: block; width: fit-content; }

/* 2026-11-01 14回目 */
/* 1人が買えば：短い札＋一文 */
.note-card { align-self: center; }
.note-tag { display: inline-block; padding: 5px 16px; border-radius: 999px; background: var(--accent); color: var(--white); font-family: var(--display); font-weight: 900; font-size: 15px; }
.note-card .note-strong { margin-top: 12px; color: var(--ink); font-size: 24px; line-height: 1.5; }
@media (max-width: 700px) { .note-card .note-strong { font-size: 19px; } }
/* コルクの上の文字は生成りのふちで読みやすく */
.community .section-title, .community .community-tag { paint-order: stroke fill; -webkit-text-stroke: 8px var(--note); text-shadow: 0 4px 10px #2b201640; }
.community .community-tag { -webkit-text-stroke-width: 5px; }
.community .community-note { display: inline-block; padding: 6px 14px; border-radius: 12px; background: #fbf5e9e6; }
/* スマホ：注目作の枠が上下で切れないよう余白、指で触れても浮かせない */
@media (max-width: 700px) { .spot-track { padding-top: 16px; padding-bottom: 32px; } }
@media (hover: none) { .spot-card:hover { translate: none; } }
/* スマホのポップアップは画面の中央に（下寄せは端末によって上にずれる） */
.game-modal, .dl-pop { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; height: 100dvh; }
@media (max-width: 700px) {
  .game-modal[open] { place-items: center; padding: 12px; }
  .game-modal .gm-card { max-height: calc(100dvh - 24px); }
  .game-modal[open] .gm-card { animation: modal-in .45s var(--pop) both; }
}
@media (max-width: 700px) {
  .spot-catch { top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 7px 12px; font-size: 13px; }
  .gm-phone { right: 20%; top: 11%; }
}
/* おすそ分けの札は、アプリの汎用ポップアップ（木枠＋紙）で */
.note-card { padding: 26px 30px; border: 22px solid transparent; border-image: url('/assets/lp/popup-frame.png') 44 44 43 44 fill / 22px stretch; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 12px 18px #2b201633); text-align: left; }
@media (max-width: 700px) { .note-card { padding: 18px 18px; border-width: 16px; border-image-width: 16px; } }

/* 2026-11-01 16回目 */
/* 今日は、どれで遊ぶ？の一言は最初から出しておく */
.spot-catch, .spot-card:hover .spot-catch { opacity: 1; transform: rotate(-2deg); }
/* 棚の箱にマウスを乗せると一言がひょいと出る */
.g-open { position: relative; }
.g-catch { position: absolute; z-index: 4; left: 50%; bottom: calc(100% - 18px); width: max-content; max-width: 220px; padding: 8px 14px; border-radius: 14px; background: var(--note); color: var(--ink); box-shadow: 0 8px 18px #2b201633; font-family: var(--display); font-weight: 900; font-size: 14px; line-height: 1.5; text-align: left; pointer-events: none;
  opacity: 0; transform: translate(-50%, 18px) scale(.5); transform-origin: 50% 100%; transition: opacity .2s var(--ease), transform .45s var(--pop); }
.g-catch::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--note); }
.g-open:hover .g-catch, .g-open:focus-visible .g-catch { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (hover: none) { .g-catch { display: none; } }
/* 画鋲は投稿の上端に刺さるように */
.community-card::before { top: 12px; z-index: 6; }
.community-grid.is-in > :nth-child(4)::before { animation-delay: .86s; } .community-grid.is-in > :nth-child(5)::before { animation-delay: .98s; }
/* スマホは3件まで */
@media (max-width: 700px) { .community-grid > :nth-child(n+4) { display: none; } }
