/* ころころ倉庫（Tumble Depot）の LP の見た目。手本はリドルインクの web/lp/site.css（作りと段の並びを写し、色と形をこのゲームに替えた）。
   ゲームの色（scripts/ui/art.gd）：紙の地・焦げ茶の字・差し色の橙・章の壁の色。形はサイコロの目（段の番号・区切り）と木の倉庫。
   書体は Noto Sans JP の1つ（ゲームと同じ。fonts/ に切り出して同梱）。ダークモードは作らない（11/26 利用者）。
   やらないこと：太い黒縁・ずらしたベタの影・ネオン・お金や賭けを思わせる見た目。 */

@font-face { font-family: "TD Sans"; src: url("fonts/NotoSansJP-sub.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fff6e8; --paper2: #f7e8d0; --sheet: #fffdf8; --wood: #e9c99c;
  --ink: #45301f; --muted: #7a6350; --rule: #ecd8bb;
  --or: #ff8f21; --or-t: #b9520a; --or-d: #cc5e0d; --or-s: #ffe6c8;
  --c1: #c76b4a; --c2: #5f8fbd; --c3: #3f8a70; --c4: #9e704d;
  --sans: "TD Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --r: 16px;
  --sh: 0 1px 2px rgba(69,48,31,.06), 0 12px 30px rgba(69,48,31,.10);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.7), rgba(255,255,255,0) 60%);
  overflow-x: clip;
}
:lang(en) body, body:lang(en) { letter-spacing: 0; line-height: 1.7; }
p { text-wrap: pretty; margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or-t); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--or-d); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 800; line-height: 1.4; letter-spacing: .03em; margin: 0; }
:lang(en) h1, :lang(en) h2, :lang(en) h3 { letter-spacing: 0; }
h1:lang(ja), h2:lang(ja), h3:lang(ja) { word-break: keep-all; overflow-wrap: anywhere; }
.nb { display: inline-block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* 頭の帯（sticky。fixed にしない：jan-quest が上に帯を足す） */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,246,232,.94); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(6px)) { .site-head { background: rgba(255,246,232,.82); backdrop-filter: blur(8px); } }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; min-height: 48px; }
.brand img { width: 34px; height: auto; }
.brand b { font-weight: 900; font-size: 19px; letter-spacing: .08em; line-height: 1.1; white-space: nowrap; color: var(--or-d); }
:lang(en) .brand b { letter-spacing: .01em; }
.brand small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.site-nav a:hover { color: var(--or-t); }
.site-nav a.lang { min-width: 48px; justify-content: center; border: 1px solid var(--rule); border-radius: 99px; padding: 0 14px; margin-left: 6px; background: var(--sheet); font-size: 13px; }
@media (max-width: 860px) { .site-nav a:not(.lang):not(.keep) { display: none; } }
@media (max-width: 359px) { .site-nav a.keep { display: none; } }
@media (max-width: 419px) { :lang(en) .site-nav a.keep { display: none; } }

/* 段の番号（サイコロの目）と見出し */
.folio { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.folio::after { content: ""; flex: 1; height: 1px; background: var(--rule); max-width: 220px; }
.die { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 3px rgba(69,48,31,.16)); }
.die rect { fill: #fff; stroke: var(--rule); stroke-width: 1.2; }
.die circle { fill: #2b3a6b; }
.die circle.one { fill: #d8432f; r: 4.2px; }
.sec { padding: 72px 0; }
@media (min-width: 960px) { .sec { padding: 100px 0; } }
.sec.tint { background: linear-gradient(180deg, var(--paper2), #fbeedb); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec h2 { font-size: clamp(26px, 5.4vw, 40px); margin-bottom: 18px; }
.sec .lead { font-size: 16.5px; max-width: 40em; }
.pips-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto; max-width: 1120px; padding: 0 16px; }
.pips-rule::before, .pips-rule::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.pips-rule span { display: inline-flex; gap: 8px; }
.pips-rule i { width: 8px; height: 8px; border-radius: 50%; background: #2b3a6b; opacity: .55; }
.pips-rule i:nth-child(3) { background: #d8432f; opacity: .8; }

/* ボタンと札 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 14px; font: 800 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 0; }
.btn-main { background: var(--or); color: #fff; box-shadow: 0 6px 16px rgba(204,94,13,.28); }
.btn-main:hover { background: var(--or-d); color: #fff; }
.seal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 12px; border: 1.5px solid var(--or); color: var(--or-t); border-radius: 99px; font-weight: 800; font-size: 14px; background: rgba(255,230,200,.6); letter-spacing: .08em; }
.seal::before { content: ""; width: 8px; height: 8px; background: var(--or); border-radius: 50%; flex: none; }
.seal.light { border-color: rgba(255,255,255,.9); color: #fff; background: rgba(255,255,255,.16); }
.seal.light::before { background: #fff; }

/* 最初の画面 */
.hero { padding: 36px 0 56px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 56px 0 88px; } .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.kick { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .1em; margin: 0 0 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kick .pill { background: var(--or-s); color: var(--or-t); border-radius: 99px; padding: 2px 12px; }
.kick .latin { letter-spacing: .3em; font-size: 12px; }
.logo { font-weight: 900; color: var(--or-d); letter-spacing: .04em; line-height: 1.08; font-size: clamp(56px, 15vw, 104px); margin: 0 0 14px;
  text-shadow: 0 2px 0 #fff, 0 0 22px rgba(255,255,255,.9), 0 8px 24px rgba(204,94,13,.22); }
:lang(en) .logo { letter-spacing: -.01em; font-size: clamp(50px, 12vw, 92px); line-height: 1.0; }
.logo .sub { display: block; font-size: .32em; letter-spacing: .02em; color: var(--muted); margin-top: .35em; }
br.sp { display: none; }
@media (max-width: 520px) { br.sp { display: inline; } }
.catch { font-size: clamp(22px, 4.6vw, 30px); font-weight: 800; line-height: 1.45; margin: 0 0 16px; }
.hero .lead { font-size: 16.5px; max-width: 32em; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.hero-art { position: relative; margin: 0 auto; width: 100%; max-width: 460px; }
.hero-art .frame { border-radius: 22px; overflow: hidden; box-shadow: var(--sh), 0 0 0 6px #fff, 0 0 0 7px var(--rule); background: var(--paper2); aspect-ratio: 1024 / 1300; }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.hero-art figcaption { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }

/* 倉庫（章） */
.world-grid { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 640px) { .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .world-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.world-card { background: var(--sheet); border-radius: var(--r); box-shadow: var(--sh), 0 0 0 1px rgba(236,216,187,.8); padding: 14px 14px 20px; border-top: 6px solid var(--c1); }
.world-card.c2 { border-top-color: var(--c2); } .world-card.c3 { border-top-color: var(--c3); } .world-card.c4 { border-top-color: var(--c4); }
.world-card .pic { border-radius: 10px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 16 / 9; }
.world-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.world-card .chap { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--c1); margin: 0 4px 2px; }
.world-card.c2 .chap { color: var(--c2); } .world-card.c3 .chap { color: var(--c3); } .world-card.c4 .chap { color: var(--c4); }
.world-card h3 { font-size: 21px; margin: 0 4px 6px; }
.world-card p:last-child { font-size: 15px; margin: 0 4px; }
.cast { margin-top: 48px; }
.cast > h3 { font-size: 20px; margin-bottom: 16px; }
.cast-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .cast-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.cast-card { margin: 0; background: var(--sheet); border-radius: var(--r); box-shadow: 0 0 0 1px var(--rule); padding: 16px 18px 20px; display: grid; gap: 10px; align-content: start; }
.cast-pics { display: flex; justify-content: center; align-items: flex-end; gap: 4px; min-height: 150px; background: radial-gradient(ellipse at 50% 85%, var(--paper2), transparent 70%); border-radius: 12px; }
.cast-pics img { width: 46%; max-width: 170px; }
.cast-card.kid .cast-pics img { width: 48%; max-width: 200px; }
.cast-pics.dice img { width: 34%; max-width: 110px; }
.cast-card figcaption { font-size: 15px; line-height: 1.75; }
.cast-card figcaption b { display: block; font-size: 19px; font-weight: 800; }
.cast-card figcaption small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; letter-spacing: .06em; }

/* 画面（端末の枠） */
.phone { margin: 0; border-radius: 24px; padding: 7px; background: #3b2a1d; box-shadow: var(--sh); }
.phone img { border-radius: 18px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--paper2); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 44px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 36px; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.step { display: grid; gap: 18px; align-content: start; }
.step .phone { width: 100%; max-width: 230px; margin: 0 auto; }
@media (max-width: 719px) { .step > div { max-width: 34em; margin: 0 auto; width: 100%; } }
@media (min-width: 720px) { .step .phone { max-width: 260px; margin: 0 auto; } }
.step .no { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--or); color: #fff; font-weight: 900; font-size: 16px; margin-bottom: 8px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; margin: 0; }
.more-shots { margin-top: 56px; }
.more-shots h3 { font-size: 18px; margin-bottom: 16px; }
.shot-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
@media (min-width: 720px) { .shot-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.shot-row figure { margin: 0; }
.shot-row figcaption, .shot-cap { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.shot-cap { margin-top: 18px; }

/* 仕掛け */
.tricks { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 768px) { .tricks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.trick { max-width: 320px; margin: 0 auto; width: 100%; }
@media (min-width: 768px) { .trick { max-width: none; } }
.trick .phone { max-width: 260px; margin: 0 auto; }
.trick h3 { font-size: 19px; margin: 18px 0 6px; padding-left: 12px; border-left: 5px solid var(--c2); }
.trick.c3 h3 { border-left-color: var(--c3); } .trick.c4 h3 { border-left-color: var(--c4); }
.trick p { font-size: 15px; margin: 0; }

/* 特長 */
.features { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.feature { background: var(--sheet); border-radius: var(--r); padding: 22px 22px 24px; box-shadow: var(--sh), 0 0 0 1px rgba(236,216,187,.8); display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; }
.feature .ico { width: 76px; height: 76px; object-fit: contain; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { font-size: 15px; margin: 0; }
@media (max-width: 420px) { .feature { grid-template-columns: 1fr; } .feature .ico { width: 64px; height: 64px; } }

/* よくある質問・対応 */
.qa { margin: 28px 0 0; display: grid; gap: 12px; max-width: 860px; }
.qa > div { background: var(--sheet); border-radius: 14px; padding: 16px 20px; box-shadow: 0 0 0 1px var(--rule); }
.qa dt { font-weight: 800; font-size: 16.5px; display: flex; gap: 10px; word-break: keep-all; overflow-wrap: anywhere; }
.qa dt::before { content: "Q"; color: #fff; background: var(--or); border-radius: 7px; width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 2px; }
.qa dd { margin: 6px 0 0 36px; font-size: 15px; }
.spec { display: grid; margin: 40px 0 0; border-top: 1px solid var(--rule); max-width: 860px; }
.spec > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .spec > div { grid-template-columns: 180px 1fr; gap: 24px; } }
.spec dt { font-weight: 800; }
.spec dd { margin: 0; font-size: 15.5px; }

/* 締め（ゲームの色の大きな段） */
.release { padding: 8px 0 88px; }
.release-in { position: relative; overflow: hidden; border-radius: 28px; color: #fff; padding: 44px 24px 0; text-align: center;
  background: radial-gradient(ellipse at 30% 0%, #ffb35c, transparent 60%), linear-gradient(160deg, #ff9a2e, #e5650c 70%, #c9540a);
  box-shadow: 0 16px 40px rgba(204,94,13,.30); display: grid; gap: 8px; justify-items: center; }
@media (min-width: 860px) { .release-in { grid-template-columns: 300px 1fr; text-align: left; justify-items: start; align-items: end; padding: 48px 56px 0; gap: 40px; } }
.release-in .kid { width: 240px; order: 2; margin-bottom: -6px; filter: drop-shadow(0 10px 18px rgba(90,40,5,.35)); }
@media (min-width: 860px) { .release-in .kid { order: 0; width: 300px; } .release-in > div { padding-bottom: 56px; } }
.release-in .logo.small { font-size: clamp(36px, 8vw, 56px); color: #fff; text-shadow: 0 4px 18px rgba(120,50,5,.35); margin: 0 0 6px; }
.release-in h2 { font-size: clamp(22px, 4.4vw, 30px); margin: 0 0 10px; }
.release-in p { margin: 0 0 18px; color: #fff4e6; }
.release-in .die-a, .release-in .die-b { position: absolute; width: 96px; opacity: .95; filter: drop-shadow(0 8px 12px rgba(90,40,5,.3)); }
.release-in .die-a { right: 22px; top: 18px; transform: rotate(10deg); }
.release-in .die-b { right: 96px; bottom: 26px; width: 76px; transform: rotate(-8deg); }
@media (max-width: 859px) { .release-in .die-a, .release-in .die-b { display: none; } }

/* 足 */
.site-foot { border-top: 1px solid var(--rule); padding: 32px 0 40px; font-size: 13px; color: var(--muted); }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 12px; }
.site-foot .links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; font-size: 14px; }
.site-foot p { margin: 0 0 6px; max-width: 60em; }

/* 文の頁（プライバシー） */
.doc { max-width: 760px; padding-top: 34px; padding-bottom: 48px; }
.doc .lab { font-weight: 800; letter-spacing: .14em; color: var(--or-t); margin: 0 0 6px; }
.doc h1 { font-size: clamp(26px, 5.4vw, 36px); margin: 0 0 18px; }
.doc h2 { font-size: clamp(20px, 4.2vw, 24px); margin: 34px 0 10px; }
.doc p, .doc li { font-size: 16px; text-wrap: pretty; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc a { color: var(--or-t); }
.doc .muted { color: var(--muted); font-size: 14px; }
.doc .doc-lang { margin: -8px 0 18px; font-size: 14px; }
