/* まるごとおそうじの LP の見た目。手本はリドルインク（riddle-quest web/lp）。
   ゲームと同じ作り（scripts/ui_kit.gd）：生成りの地 #fff7e6・こげ茶の字 #3a2412・押せる物はオレンジ #f08a24 の一色。
   線は細く（1px）か無し・影はぼかし・字は地にそのまま置く・書体は 2 つ（本文 Noto Sans JP、数字と欧文 Barlow Condensed）。
   やらないこと：太い縁・ずらした平らな影・白縁の字・色をたくさん・お金を思わせる見た目。ダークモードは作らない。 */

@font-face { font-family: "SW Sans"; src: url("fonts/sw-sans.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "SW TC"; src: url("fonts/sw-tc.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "SW KR"; src: url("fonts/sw-kr.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "SW Num"; src: url("fonts/sw-num.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --cream: #fff7e6; --cream2: #f6ead2; --sheet: #fffdf7; --edge: #ead9b8;
  --ink: #3a2412; --muted: #6e5a44; --rule: #e6d5b5;
  --orange: #f08a24; --orange-t: #a9520d; --orange-s: #fde5c8;
  --lawn: #8fae5a;
  --sans: "SW Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --num: "SW Num", "SW Sans", "Arial Narrow", sans-serif;
  --r: 18px;
  --sh: 0 2px 4px rgba(58,36,18,.05), 0 12px 30px rgba(58,36,18,.10);
}
* { box-sizing: border-box; }
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.85; letter-spacing: .02em; background: var(--cream); overflow-x: clip; }
p { text-wrap: pretty; margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-t); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 800; line-height: 1.4; letter-spacing: .03em; margin: 0; }
h1:lang(ja), h2:lang(ja), h3:lang(ja), h1:lang(ko), h2:lang(ko), h3:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
/* ほかの言語：繁體中文・韓国語は各々の書体を先に。欧文は字間を詰める */
:lang(zh-Hant-TW) { --sans: "SW TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
:lang(ko) { --sans: "SW KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh-Hant-TW) { --num: "SW Num", "SW TC", "Arial Narrow", sans-serif; }
:lang(ko) { --num: "SW Num", "SW KR", "Arial Narrow", sans-serif; }   /* 韓国語は語（空白）の区切りで折る */
html:lang(en) body, html:lang(es) body, html:lang(pt-BR) body { letter-spacing: 0; line-height: 1.7; }
html:lang(en) h1, html:lang(es) h1, html:lang(pt-BR) h1, html:lang(en) h2, html:lang(es) h2, html:lang(pt-BR) h2 { letter-spacing: 0; }
.nb { display: inline-block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* 頭の帯（sticky。fixed にしない） */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,247,230,.9); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(6px)) { .site-head { background: rgba(255,247,230,.78); backdrop-filter: blur(8px); } }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 48px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 1px 4px rgba(58,36,18,.16); }
.brand b { font-weight: 900; font-size: 19px; letter-spacing: .06em; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--orange-t); 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 11px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; border-radius: 99px; }
.site-nav a:hover { background: var(--orange-s); color: var(--ink); }
@media (max-width: 860px) { .site-nav { display: none; } }
/* 言語の切り替え（頭の帯の右） */
.lang-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 2px; font-size: 12.5px; }
.lang-row a, .lang-row .lang-cur { display: inline-flex; align-items: center; min-height: 44px; padding: 0 7px; color: var(--muted); text-decoration: none; white-space: nowrap; font-family: system-ui, sans-serif; }
.lang-row a:hover { color: var(--orange-t); }
.lang-row .lang-cur { color: var(--ink); font-weight: 700; }
.brand { flex-shrink: 0; }
.site-nav { white-space: nowrap; min-width: 0; }
@media (max-width: 1100px) { .site-nav { display: none; } }
.lang-menu { position: relative; flex-shrink: 0; margin-left: auto; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 99px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang-menu .lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; min-width: 170px; padding: 6px; background: var(--sheet); border-radius: 14px; box-shadow: var(--sh), 0 0 0 1px var(--rule); }
.lang-menu .lang-list a, .lang-menu .lang-list .lang-cur { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.lang-menu .lang-list a:hover { background: var(--orange-s); }
.lang-menu .lang-list .lang-cur { font-weight: 800; color: var(--orange-t); }
.site-foot .lang-row { justify-content: flex-start; font-size: 14px; margin: 0 0 6px -7px; }

/* 配信準備中の札（押せない・ボタンの形にしない） */
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 12px; color: var(--orange-t); font-weight: 800; font-size: 14px; letter-spacing: .1em; border-bottom: 2px solid var(--orange); }
.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.soon-light { color: #fff; border-bottom-color: rgba(255,255,255,.8); }
.soon-light::before { background: #fff; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 14px; font: 800 15px/1.2 var(--sans); text-decoration: none; letter-spacing: .04em; }
.btn-main { background: var(--orange); color: #3a2412; box-shadow: 0 6px 16px rgba(240,138,36,.32); }
.btn-main:hover { background: #f59a3c; color: #3a2412; }

/* 最初の画面 */
.hero { padding: 36px 0 56px; }
.hero .wrap { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 56px 0 84px; } .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }
.kick { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .12em; margin: 0 0 12px; }
.kick img { width: 22px; height: 22px; }
.hero h1 { font-size: clamp(52px, 14vw, 96px); font-weight: 900; line-height: 1.08; letter-spacing: .04em; margin-bottom: 20px; }
.hero h1 small { display: block; font-family: var(--num); font-weight: 800; font-size: clamp(18px, 4vw, 24px); letter-spacing: .34em; color: var(--orange); margin-top: 14px; }
.tagline { font-size: clamp(22px, 5.4vw, 32px); font-weight: 800; line-height: 1.5; margin: 0 0 16px; }
.hero .lead { font-size: 16.5px; max-width: 32em; color: var(--ink); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.hero-art { margin: 0 auto; width: 100%; max-width: 470px; }
.hero-art .frame { border-radius: 26px; overflow: hidden; box-shadow: var(--sh); aspect-ratio: 720 / 980; background: var(--cream2); }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.hero-art figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; line-height: 1.6; }
.shot-cap { word-break: keep-all; overflow-wrap: anywhere; font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: left; line-height: 1.6; }

/* 段の境目：落ち葉が3枚 */
.leaf-rule { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 0 16px; }
.leaf-rule::before, .leaf-rule::after { content: ""; flex: 1; max-width: 380px; height: 1px; background: var(--rule); }
.leaf-rule img { width: 26px; height: 26px; }
.leaf-rule img:nth-child(2) { transform: rotate(-18deg); }
.leaf-rule img:nth-child(3) { transform: rotate(24deg); }

/* 段の見出し */
.sec { padding: 56px 0 8px; }
@media (min-width: 960px) { .sec { padding: 72px 0 8px; } }
.folio { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.folio .no { font-family: var(--num); color: var(--orange); font-size: 26px; letter-spacing: .02em; line-height: 1; }
.folio::after { content: ""; flex: 1; max-width: 200px; height: 1px; background: var(--rule); }
.sec h2 { font-size: clamp(27px, 5.6vw, 42px); margin-bottom: 16px; }
.sec .lead { font-size: 16.5px; max-width: 40em; }
.num { font-family: var(--num); color: var(--orange-t); letter-spacing: .1em; font-size: 15px; margin: 0 0 2px; }

/* 場面 */
.scene-grid { display: grid; gap: 26px; margin-top: 34px; }
@media (min-width: 860px) { .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.scene-card { background: var(--sheet); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; display: flex; flex-direction: column; }
.scene-card .pic { aspect-ratio: 16 / 10; overflow: hidden; }
.scene-card .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.scene-card .body { padding: 20px 22px 22px; }
.scene-card h3 { font-size: 24px; margin-bottom: 6px; }
.scene-card p { font-size: 15px; }
.tool-strip { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.tool-strip li { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 11.5px; line-height: 1.35; font-weight: 600; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.tool-strip img { width: 100%; max-width: 56px; margin-bottom: 4px; }
@media (max-width: 420px) { .tool-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; } }

/* 登場する人 */
.cast { margin-top: 28px; background: var(--sheet); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; display: grid; gap: 18px; align-items: center; }
@media (min-width: 860px) { .cast { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; padding: 26px 32px; } }
.faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.faces figure { margin: 0; text-align: center; }
.faces img { width: 100%; border-radius: 50%; background: var(--cream); }
.faces figcaption { line-height: 1.35; font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.cast h3 { font-size: 24px; margin-bottom: 8px; }
.cast p { font-size: 15px; }
.say { font-weight: 700; background: var(--cream); border-radius: 14px; padding: 10px 14px; margin: 0; }

/* 画面（端末の枠） */
.phone { margin: 0; border-radius: 26px; padding: 6px; background: #3a2412; box-shadow: var(--sh); }
.phone img { border-radius: 20px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--cream2); }
.steps { list-style: none; margin: 36px 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: 240px; margin: 0 auto; }
@media (min-width: 720px) { .step .phone { max-width: 260px; margin: 0; } }
@media (max-width: 719px) { .step > div { max-width: 34em; margin: 0 auto; width: 100%; } }
.step .no { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #3a2412; font-family: var(--num); font-size: 22px; line-height: 1; margin-bottom: 8px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.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(3, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: 0 auto; }
.more-shots h3, .more-shots .shot-cap { max-width: 760px; margin-left: auto; margin-right: auto; }
.shot-row figure { margin: 0; }
.shot-row .phone { border-radius: 18px; padding: 4px; }
.shot-row .phone img { border-radius: 14px; }
.shot-row figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
@media (max-width: 480px) { .shot-row { gap: 10px; } .shot-row figcaption { font-size: 12px; } }

/* 見どころ */
.moments { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 40px; }
.moment { width: 100%; max-width: 300px; margin: 0 auto; }
@media (min-width: 640px) { .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .moment { max-width: none; } }
@media (min-width: 860px) { .moments { gap: 32px; max-width: 980px; } }
.moment .media { border-radius: 20px; overflow: hidden; aspect-ratio: 9 / 16; box-shadow: var(--sh); }
.moment .media img { width: 100%; height: 100%; object-fit: cover; }
.moment h3 { font-size: 19px; margin: 14px 0 6px; }
.moment p { font-size: 15px; margin: 0; }

/* 特長 */
.features { display: grid; gap: 22px; margin-top: 34px; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.feature { background: var(--sheet); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; }
.feature .pic { border-radius: 14px; overflow: hidden; aspect-ratio: 9 / 16; background: var(--cream); }
.feature .pic img { width: 100%; height: 100%; object-fit: cover; }
.feature .pic.tools { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; }
.feature .pic.tools img { width: 88px; height: 88px; object-fit: contain; }
.feature h3 { font-size: 20px; margin: 4px 0 8px; }
.feature p { font-size: 15px; margin: 0; }
@media (max-width: 480px) { .feature { grid-template-columns: 1fr; } .feature .pic { aspect-ratio: auto; max-height: 260px; } .feature .pic img { object-position: 50% 48%; } .feature:nth-child(3) .pic img { object-position: 50% 100%; } .feature:nth-child(4) .pic img { object-position: 50% 56%; } .feature .pic.tools { flex-direction: row; } }

/* よくある質問 */
.qa { margin: 26px 0 0; display: grid; gap: 12px; }
.qa > div { background: var(--sheet); border-radius: 14px; box-shadow: 0 1px 3px rgba(58,36,18,.06); padding: 16px 20px; }
.qa dt { font-weight: 800; display: flex; gap: 10px; }
.qa dt::before { content: "Q."; font-weight: 900; color: var(--orange-t); flex: none; }
.qa dd { text-wrap: pretty; margin: 6px 0 0 30px; font-size: 15px; color: var(--ink); }

/* 締め：ゲームの色の大きな段 */
.finale { margin-top: 72px; background: var(--orange); color: #3a2412; padding: 56px 0 60px; }
.finale .wrap { display: grid; gap: 20px; justify-items: center; text-align: center; }
@media (min-width: 760px) { .finale .wrap { grid-template-columns: 220px auto; justify-content: center; justify-items: start; text-align: left; gap: 40px; align-items: center; } }
.finale .kara { width: 180px; height: 180px; border-radius: 50%; background: var(--cream); box-shadow: 0 10px 30px rgba(58,36,18,.18); }
@media (min-width: 760px) { .finale .kara { width: 220px; height: 220px; } }
.finale h2 { font-size: clamp(30px, 6.4vw, 48px); font-weight: 900; margin-bottom: 10px; }
.finale p { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.finale .soon-light { color: #3a2412; border-bottom-color: #3a2412; }
.finale .soon-light::before { background: #3a2412; }

/* 足 */
.site-foot { padding: 26px 0 34px; font-size: 13px; color: var(--muted); }
.site-foot p { margin: 0; }

/* 狭い画面（〜420px）：頭の帯は名前と「言語」だけ。欧文の札は字間を詰めて1行に */
@media (max-width: 420px) {
  .brand small { display: none; }
  .lang-menu summary { padding: 0 12px; }
  html:lang(en) .soon, html:lang(es) .soon, html:lang(pt-BR) .soon { letter-spacing: .02em; font-size: 13px; }
}
.faces figcaption .nb { white-space: nowrap; }
@media (max-width: 380px) { .faces { gap: 6px; } .faces figcaption { font-size: 11px; letter-spacing: 0; } }
.lang-menu .globe { flex: none; }
@media (max-width: 420px) { .lang-menu .lang-en { display: none; } }
@media (max-width: 380px) {
  .site-head .wrap { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand b { font-size: 16px; letter-spacing: .03em; }
  .lang-menu summary { padding: 0 10px; gap: 4px; font-size: 13px; }
}

/* プライバシー・サポートのページ（2026-11-30） */
.doc { max-width: 760px; padding-top: 34px; padding-bottom: 48px; }
.doc .lab { font-weight: 800; letter-spacing: .14em; color: var(--orange-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, .doc dd { font-size: 16px; text-wrap: pretty; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc .box { background: var(--sheet); border-radius: 14px; box-shadow: 0 1px 3px rgba(58,36,18,.06); padding: 14px 18px; }
.doc .muted { color: var(--muted); font-size: 14px; }
.doc .doc-lang { margin: -8px 0 18px; font-size: 14px; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; }
.doc [lang="ko"] { word-break: keep-all; white-space: nowrap; font-family: "SW KR", "Apple SD Gothic Neo", sans-serif; }

/* ストアの公式バッジ（12/2 配信開始・兄弟作リドルインクと同じ。img/badges/SOURCE.txt の決まり：Apple は高さ 40px 以上・周りに高さの 1/4 以上の余白。絵は変えない） */
.get { display: flex; flex-wrap: wrap; align-items: center; margin: 6px 0 10px; }
.get-center { justify-content: center; margin-top: 18px; }
.tray { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 12px; background: #fbfaf4; border-radius: 14px; padding: 4px 14px; }
.tray a { display: block; padding: 8px 0; }
.tray img { display: block; max-width: none; }
