/* ぱれっとすとあ 公式サイト — 見た目(全部のページで、この 1 つを読む)
   色と形は、ゲームの見た目から取った。絵の具の色は、ゲームの色の表(ColorPalette)と同じ。
   外への通信はしない: 書体も絵も、この assets/ の中に置いてある。

   もくじ: 1 書体 / 2 色・土台・共通の部品 / 3 足もとの帯 / 4 トップ / 5 開店(看板・シャッター・札) / 6 英語のページ / 7 ポリシー・招待の案内・見つからないページ */

/* ==================== 1. 書体(ページに出る字だけにしてある。足した字は、端末の書体で出る) ==================== */
/* トップの字(源泉丸ゴシック)と、ロゴ・足もとの帯の字、英字(Unbounded) */
@font-face { font-family: "PS Maru"; src: url("fonts/maru-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PS Maru"; src: url("fonts/maru-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PS Maru"; src: url("fonts/maru-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "PS Head"; src: url("fonts/head-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
/* 本文の字(ポリシー・招待の案内)。言語ごとに、ゲームがその言語で使っている書体。開いたページの言語の分だけ読みこまれる */
@font-face { font-family: "PS Text"; src: url("fonts/text-latin.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "PS Text"; src: url("fonts/text-ja.woff2") format("woff2"); font-display: swap; unicode-range: U+3000-30FF, U+4E00-9FFF, U+FF00-FFEF; }
@font-face { font-family: "PS CN"; src: url("fonts/text-zh-hans.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PS TW"; src: url("fonts/text-zh-hant.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PS KR"; src: url("fonts/text-ko.woff2") format("woff2"); font-display: swap; }
/* 言語の名前だけの小さな書体(言語の切り替えで、ほかの言語の名前を出すのに使う) */
@font-face { font-family: "PS Name JA"; src: url("fonts/name-ja.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PS Name CN"; src: url("fonts/name-zh-hans.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PS Name TW"; src: url("fonts/name-zh-hant.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PS Name KR"; src: url("fonts/name-ko.woff2") format("woff2"); font-display: swap; }

/* ==================== 2. 色・土台・共通の部品(絵の具・ロゴ・ボタン・小さなパレット) ==================== */

:root {
  --paper: #fffcf5;        /* 紙の地 */
  --cream: #fff6de;        /* 札の地 */
  --cream2: #faf2de;
  --ink: #4a392d;          /* 字(こげ茶) */
  --ink2: #8a7763;         /* うすい字 */
  --line: #ecdcc0;
  --btn: #f7bd47;          /* ゲームの黄色いボタン */
  --btn-e: #d18a2a;
  --wood: #cb9d5b;         /* 木の札 */
  --wood-e: #a8773d;
  --board: #4d7a66;        /* 黒板 */
  --board-d: #3b6453;
  --chalk: #fff6de;
  --shutter: #dba68f;      /* シャッター */
  --shutter-d: #c68b74;
  --housing: #784f48;
  --ok: #2db58c;           /* お渡しできる絵の具のふち */
  --rush: #dd4f5d;
  --blue: #5f9be6;         /* ゲームの青いボタン */
  /* 屋号(Crois Studio)の色: 家族のしるしに使う */
  --cs-bg: #0e0e12; --cs-fg: #f6f2ea; --cs-ink: #131316; --cs-y: #ffd23f; --cs-pink: #ff9ec4; --cs-mint: #8be9c9; --cs-lilac: #b9a3ff;
  --pop: cubic-bezier(.3, 1.5, .45, 1);   /* 少し行きすぎて戻る(屋号のサイトと同じ はずみ) */
  --out: cubic-bezier(.16, 1, .3, 1);
  --g: clamp(18px, 4.4vw, 68px);
  --jp: "PS Maru", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --latin: "Unbounded", "PS Maru", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--jp); font-weight: 400; font-size: 16px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--btn); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 18px; border-radius: 100px; background: var(--btn); color: var(--ink); font-weight: 700; transform: translateY(-200%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
.nb { white-space: nowrap; }
/* 日本語の折り返し: 見出しと、切れ目(wbr)を決めてある文は、言葉の途中で切らない。ふつうの文は、禁則どおりに折り返す(行の頭に「。」を出さない) */
html[lang="ja"] p, html[lang="ja"] li, html[lang="ja"] dd { line-break: strict; overflow-wrap: anywhere; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] p:has(> wbr), html[lang="ja"] dd:has(> wbr) { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.en { font-family: var(--latin); }
/* 言語の名前は、その言語の書体で出す */
.langs li:lang(zh-Hans) { font-family: "PS Name CN", var(--jp); } .langs li:lang(zh-Hant) { font-family: "PS Name TW", var(--jp); } .langs li:lang(ko) { font-family: "PS Name KR", var(--jp); }

/* ---------- 絵の具(ゲームの絵の具と同じ形: 角丸・こいふち・上のてかり) ---------- */
.pc {
  --f: #e24b4a; --e: #791f1f; --t: #fff;
  position: relative; display: grid; place-items: center; flex: none;
  width: var(--pc, 64px); height: var(--pc, 64px); font-size: var(--pc, 64px);
  border-radius: 31%; background: var(--f); color: var(--t);
  box-shadow: inset 0 0 0 .045em var(--e), inset 0 -.11em .1em -.04em rgba(0, 0, 0, .22), inset 0 .1em .12em -.05em rgba(255, 255, 255, .4), 0 .05em .06em rgba(60, 40, 20, .18);
}
.pc::before { content: ""; position: absolute; left: 19%; right: 19%; top: 13%; height: 19%; border-radius: 1em; background: rgba(255, 255, 255, .34); }
.pc > span { position: relative; z-index: 1; font-size: .2em; font-weight: 700; line-height: 1.12; letter-spacing: .02em; text-align: center; white-space: nowrap; padding-top: .5em; }
.pc[data-c="0"]  { --f: #e24b4a; --e: #791f1f; }
.pc[data-c="1"]  { --f: #378add; --e: #0c447c; }
.pc[data-c="2"]  { --f: #f2c037; --e: #8a6a06; --t: #8a6a06; }
.pc[data-c="3"]  { --f: #7f77dd; --e: #3c3489; }
.pc[data-c="4"]  { --f: #e8853c; --e: #993c1d; --t: #8a3516; }
.pc[data-c="5"]  { --f: #63b22f; --e: #3b6d11; }
.pc[data-c="6"]  { --f: #b05085; --e: #6e2f52; }
.pc[data-c="7"]  { --f: #5e55c9; --e: #34307e; }
.pc[data-c="8"]  { --f: #d85a30; --e: #7a3015; }
.pc[data-c="9"]  { --f: #efa827; --e: #85540b; --t: #85540b; }
.pc[data-c="10"] { --f: #1d9e75; --e: #085041; }
.pc[data-c="11"] { --f: #97c459; --e: #56732a; --t: #4c6723; }
.pc[data-c="12"] { --f: #8a7b66; --e: #4f4538; }
.pc[data-c="13"] { --f: #26211c; --e: #6b6258; }
.pc[data-c="14"] { --f: #7c1f2e; --e: #b05566; }
.pc[data-c="15"] { --f: #1f3d6e; --e: #5b7fb8; }
.pc[data-c="16"] { --f: #77741f; --e: #a8a455; }
/* お渡しできる絵の具: みどりのふちが光る */
.pc.is-ok::after { content: ""; position: absolute; inset: -.085em; border-radius: 36%; border: .04em solid var(--ok); animation: okglow 1.1s ease-in-out infinite alternate; }
@keyframes okglow { from { box-shadow: 0 0 0 0 rgba(45, 181, 140, 0); } to { box-shadow: 0 0 .16em .02em rgba(45, 181, 140, .55); } }

/* ---------- ロゴ(ゲームのタイトルと同じ: 1 字ずつ色のちがう、ふちどりの丸い字) ---------- */
.pslogo { display: inline-flex; flex-wrap: nowrap; font-family: "PS Head", var(--jp); font-weight: 900; line-height: 1.1; letter-spacing: .02em; white-space: nowrap; }
.pslogo i { font-style: normal; display: block; color: var(--f); -webkit-text-stroke: .13em var(--e); paint-order: stroke fill; text-shadow: 0 .04em 0 rgba(255, 255, 255, .0); }
.pslogo i:nth-child(7n+1) { --f: #fbc3d2; --e: #ee7f9f; }
.pslogo i:nth-child(7n+2) { --f: #bcd8fb; --e: #6aa0ea; }
.pslogo i:nth-child(7n+3) { --f: #fde9a4; --e: #e9b949; }
.pslogo i:nth-child(7n+4) { --f: #c7e9c0; --e: #73bd74; }
.pslogo i:nth-child(7n+5) { --f: #d9cbf7; --e: #9a82e0; }
.pslogo i:nth-child(7n+6) { --f: #fdd6b3; --e: #f09a52; }
.pslogo i:nth-child(7n) { --f: #c4e9e7; --e: #66bcc0; }
.psdots { display: flex; justify-content: center; gap: .5em; font-size: 14px; }
.psdots i { display: block; width: 1em; height: 1em; border-radius: 50%; background: var(--f); box-shadow: inset 0 0 0 .14em var(--e), inset 0 .3em .2em -.16em rgba(255, 255, 255, .6); }
.psdots i:nth-child(1) { --f: #e24b4a; --e: #9c2c2c; }
.psdots i:nth-child(2) { --f: #f2c037; --e: #a77d12; }
.psdots i:nth-child(3) { --f: #63b22f; --e: #3b6d11; }
.psdots i:nth-child(4) { --f: #378add; --e: #1b5aa0; }
.psdots i:nth-child(5) { --f: #7f77dd; --e: #4a4399; }

/* ---------- ゲームのボタン・木の札・黒板・丸い札 ---------- */
.gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: .5em 1.6em .58em; border-radius: 100px;
  background: var(--btn); color: #4a2f08; font-weight: 700; font-size: 17px; letter-spacing: .12em; line-height: 1.3;
  box-shadow: 0 5px 0 var(--btn-e); transition: transform .5s var(--pop), box-shadow .2s;
}
.gbtn:hover, .gbtn:focus-visible { transform: translateY(-2px) scale(1.03); }
.gbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-e); transition-duration: .08s; }
.gbtn--cream { background: var(--cream2); color: var(--ink2); box-shadow: 0 5px 0 #e2d3b4; }
.plaque { display: inline-block; padding: .28em 1.1em .34em; border-radius: 100px; background: linear-gradient(#d3a665, #c4954f); color: #fffaf0; font-weight: 700; letter-spacing: .1em; line-height: 1.3; box-shadow: inset 0 0 0 2.5px var(--wood-e), inset 0 5px 0 rgba(255, 255, 255, .14); }
.pill { display: inline-block; padding: .34em 1em .4em; border-radius: 100px; background: #fff; color: var(--ink); font-weight: 700; line-height: 1.3; letter-spacing: .06em; box-shadow: inset 0 0 0 2px var(--line); }
/* 「近日公開」の札 */
.soon { display: inline-block; padding: .36em 1.05em .42em 1.2em; border-radius: 100px; background: var(--cs-y); color: var(--cs-ink); font-weight: 900; letter-spacing: .15em; line-height: 1.25; white-space: nowrap; box-shadow: inset 0 -.1em 0 rgba(0, 0, 0, .16), 0 0 0 1.5px rgba(0, 0, 0, .55); }
/* 屋号のしるし: 黄色い角丸の「×」の札 */
.xb { position: relative; display: inline-block; flex: none; width: 1em; height: 1em; border-radius: 30% 27% 31% 28% / 28% 31% 27% 30%; background: var(--cs-y); rotate: 9deg; box-shadow: inset 0 -.05em 0 rgba(0, 0, 0, .16); vertical-align: -.14em; }
.xb::before, .xb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 54%; height: .11em; border-radius: 1em; background: var(--cs-ink); transform: translate(-50%, -50%) rotate(45deg); }
.xb::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- スマホの わく(画面写しを入れる) ---------- */
.phone { position: relative; display: block; padding: 5px; border-radius: 19px; background: #2b2420; box-shadow: 0 26px 40px -22px rgba(90, 60, 30, .55), inset 0 0 0 2px rgba(255, 255, 255, .08); }
.phone img { height: 100%; width: auto; max-width: none; border-radius: 14px; }

/* ---------- 小さなパレット(まぜて、お渡しする遊び。ゲームの盤と同じ並び) ---------- */
.pb { --n: 4; --rows: 4; --cw: 25%; position: relative; width: 100%; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.pb__orders { display: flex; align-items: flex-end; justify-content: center; gap: 8px; min-height: 104px; }
.ord { position: relative; display: grid; justify-items: center; gap: 2px; width: 84px; padding: 13px 6px 7px; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 #efe3cb, 0 0 0 1.5px #f3e8d2; font-size: 12px; line-height: 1.25; color: var(--ink2); text-align: center; transition: transform .5s var(--pop), opacity .3s; }
.ord .pc { --pc: 46px; }
.ord .pc > span { display: none; }
.ord b { font-weight: 700; color: var(--ink); font-size: 12px; white-space: nowrap; letter-spacing: 0; }
.ord small { font-size: 11px; }
.ord em { position: absolute; left: 50%; top: -9px; translate: -50% 0; padding: 1px 8px 2px; border-radius: 100px; background: #9b8f86; color: #fff; font-style: normal; font-size: 10px; font-weight: 700; white-space: nowrap; }
.ord--rush { background: #fdecee; box-shadow: 0 3px 0 #f2c6cb, 0 0 0 1.5px var(--rush); }
.ord--rush em { background: var(--rush); }
.ord--rush small { color: var(--rush); font-weight: 700; }
.ord.is-new { animation: ordin .7s var(--pop) backwards; }
.ord.is-done { animation: orddone .6s var(--pop) forwards; }
@keyframes ordin { from { transform: translateY(-26px) scale(.6); opacity: 0; } }
@keyframes orddone { 30% { transform: scale(1.18) rotate(-4deg); } to { transform: scale(0); opacity: 0; } }
.pb__stage { position: relative; margin-top: 10px; }
/* チューブ */
.pb__tube { position: relative; z-index: 3; height: 92px; margin: 0 12px; }
.tube { --f: #e24b4a; position: absolute; left: calc((var(--col, 0) + .5) * var(--cw)); bottom: -8px; width: 50px; height: 104px; margin-left: -25px; transition: left .32s var(--out); filter: drop-shadow(0 4px 3px rgba(90, 60, 30, .18)); }
.tube svg { width: 100%; height: 100%; overflow: visible; }
.tube .tb { fill: var(--f); transition: fill .25s; }
.tube.is-squeeze { animation: squeeze .34s var(--out); }
@keyframes squeeze { 40% { transform: scale(.9, 1.06) translateY(4px); } }
.pb__next { display: grid; justify-items: center; gap: 1px; padding: 5px 9px 7px; border-radius: 16px; background: #fff7df; box-shadow: inset 0 0 0 2px #f2dca6; font-size: 10px; line-height: 1.2; color: var(--ink2); }
.pb__next .pc { --pc: 26px; }
.pb__next .pc > span { display: none; }
/* 盤 */
.pb__board { position: relative; z-index: 2; padding: 16px 12px 22px; border-radius: 26px; background: #fff; box-shadow: 0 10px 24px -14px rgba(120, 80, 30, .35), 0 0 0 1.5px #f6ecd9; }
.pb__board::before { content: ""; position: absolute; left: 12px; right: 12px; top: 9px; height: 2px; border-radius: 2px; background: #f4dfc2; }
.pb__board::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 9px; height: 14px; border-radius: 5px; background: linear-gradient(#f3e0b8, #ead2a2); box-shadow: inset 0 0 0 1.5px #d6b77c; }
.pb__cols { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); height: calc(var(--rows) * var(--rh, 62px)); }
.pb__col { position: relative; margin: 0 3px; border-radius: 12px; background: #fafaf8; transition: background-color .2s; }
button.pb__col { display: block; height: 100%; width: auto; }
.pb__col.is-on, button.pb__col:hover, button.pb__col:focus-visible { background: #f7eddb; }
.pb__chips { position: absolute; inset: 0; pointer-events: none; }
.pb__chips .pc {
  position: absolute; --pc: min(calc(var(--rh, 62px) - 4px), calc(var(--cwpx, 70px) - 12px));
  left: calc((var(--c) + .5) * var(--cw)); bottom: calc(var(--r) * var(--rh, 62px) + 3px); margin-left: calc(var(--pc) / -2);
  transition: bottom .3s cubic-bezier(.5, 0, .9, .55); pointer-events: none;
}
.pb__chips .pc.is-land { animation: land .42s var(--pop); }
.pb__chips .pc.is-pop { animation: mixpop .6s var(--pop); }
.pb__chips .pc.is-mud { animation: mudshake .5s ease-out; }
.pb__chips .pc.is-ok { pointer-events: auto; cursor: pointer; }
@keyframes land { 0% { transform: scale(1.12, .8) translateY(8%); } 100% { transform: none; } }
@keyframes mixpop { 0% { transform: scale(.6); } 45% { transform: scale(1.28) rotate(-5deg); } 100% { transform: none; } }
@keyframes mudshake { 20% { transform: translateX(-6%) rotate(-4deg); } 45% { transform: translateX(5%) rotate(3deg); } 70% { transform: translateX(-3%); } }
.pb__fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: visible; }
.pb__drop { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 42%; opacity: 0; }
.pb__word { position: absolute; z-index: 6; translate: -50% -50%; padding: .2em .8em .28em; border-radius: 100px; background: #fff; color: var(--ink); font-weight: 900; font-size: 15px; letter-spacing: .06em; white-space: nowrap; box-shadow: 0 4px 0 rgba(120, 80, 30, .16), 0 0 0 2px var(--c, var(--line)); animation: word 1.25s var(--out) forwards; pointer-events: none; }
@keyframes word { 0% { transform: translateY(10px) scale(.4); opacity: 0; } 18% { transform: translateY(-6px) scale(1.12); opacity: 1; } 30% { transform: translateY(-8px) scale(1); } 80% { opacity: 1; } 100% { transform: translateY(-34px) scale(1); opacity: 0; } }
/* 得点と、ふきだし */
.pb__hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pb__score { display: inline-flex; align-items: baseline; gap: .6em; padding: .3em 1.1em .36em; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 #efe3cb, 0 0 0 1.5px #f3e8d2; font-size: 11px; color: var(--ink2); line-height: 1.2; }
.pb__score b { font-size: 21px; font-weight: 700; color: var(--ink); min-width: 2.6em; text-align: right; font-variant-numeric: tabular-nums; }
.pb__coach { position: relative; margin-top: 14px; min-height: 3.4em; padding: .62em 1.1em .7em; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 #efe3cb, 0 0 0 1.5px #f3e8d2; font-weight: 700; font-size: 15px; line-height: 1.5; text-align: center; white-space: pre-line; }
.pb__coach.is-bump { animation: bump .5s var(--pop); }
@keyframes bump { 0% { transform: scale(.92); } }
.pb__again { margin: 12px auto 0; display: none; }
.pb.is-over .pb__again, .pb.is-attract .pb__again { display: flex; }
/* 見本の間: 「やってみる」のボタンを、ふきだしの右に重ねて置く(最初の画面におさまるように) */
.pb.is-attract .pb__coach { display: flex; align-items: center; text-align: left; padding-right: 148px; }
.pb.is-attract .pb__again { position: absolute; right: 8px; bottom: 8px; margin: 0; min-height: 44px; padding: .3em 1.1em .38em; font-size: 16px; letter-spacing: .08em; animation: nudge 1.6s ease-in-out infinite; }
.pb__again:disabled { opacity: .6; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-4px) scale(1.04); } }
.pb.is-over .pb__cols { opacity: .55; }

/* ---------- スクロールで出す(JS が動くときだけ かくす) ---------- */
.js [data-rv] { opacity: 0; transform: translate3d(0, 30px, 0) rotate(1.5deg); }
.js [data-rv].in { opacity: 1; transform: none; transition: opacity .5s linear, transform .9s var(--pop); transition-delay: calc(var(--d, 0) * 90ms); }

/* ---------- 言語の切り替え ---------- */
.lang { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 100px; font-family: var(--latin); font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .04em; box-shadow: inset 0 0 0 1.5px var(--line); background: rgba(255, 255, 255, .7); }
.lang [aria-current] { color: var(--ink); }
.lang a, .lang .off { color: var(--ink2); opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pc.is-ok::after { animation: none; box-shadow: 0 0 .16em .02em rgba(45, 181, 140, .55); }
  .ord.is-new, .pb__chips .pc.is-land, .pb__chips .pc.is-pop, .pb__chips .pc.is-mud, .tube.is-squeeze, .pb__coach.is-bump { animation: none; }
  .tube, .pb__chips .pc, .gbtn { transition: none; }
  .pb.is-attract .pb__again { animation: none; }
}

/* ==================== 3. 足もとの帯(Crois Studio の作品のサイトで、同じ形) ==================== */
.fam {
  --fam-bg: #0e0e12;                     /* 帯の地 */
  --fam-fg: #f6f2ea;                     /* 字 */
  --fam-line: rgba(246, 242, 234, .22);  /* 丸い札のふち */
  --fam-x: #ffd23f;                      /* 矢印の丸(屋号の黄色) */
  --fam-ink: #131316;                    /* 矢印の色 */
  --fam-pop: cubic-bezier(.3, 1.5, .45, 1);
  position: relative; z-index: 1; box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  padding: 18px clamp(18px, 4.4vw, 68px) calc(22px + env(safe-area-inset-bottom));
  background: var(--fam-bg); color: var(--fam-fg);
  font-size: 14px; line-height: 1.4; font-weight: 900; letter-spacing: .04em;
}
.fam *, .fam *::before, .fam *::after { box-sizing: border-box; }
.fam p { margin: 0; }
.fam a { color: inherit; text-decoration: none; }
.fam__mark { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-family: "PS Head", var(--jp); }
.fam__chips { display: inline-flex; flex: none; }
.fam__chips i { display: block; width: 14px; height: 14px; border-radius: 34%; transition: transform .6s var(--fam-pop); }
.fam__chips i:nth-child(1) { background: #ff5a5f; }
.fam__chips i:nth-child(2) { background: #3d8bff; margin-left: -3px; }
.fam__chips i:nth-child(3) { background: #ffd23f; margin-left: -3px; }
.fam:hover .fam__chips i:nth-child(1) { transform: translateY(-5px) rotate(-12deg); }
.fam:hover .fam__chips i:nth-child(2) { transform: translateY(-8px); transition-delay: .06s; }
.fam:hover .fam__chips i:nth-child(3) { transform: translateY(-5px) rotate(12deg); transition-delay: .12s; }
.fam__name { font-family: "Unbounded Fam", "Unbounded", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.fam__link {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 100px;
  border: 1.5px solid var(--fam-line);
  font-family: "Unbounded Fam", "Unbounded", sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0; line-height: 1;
  transition: transform .55s var(--fam-pop), background-color .25s, color .25s, border-color .25s;
}
.fam__link b { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--fam-x); color: var(--fam-ink); transition: transform .55s var(--fam-pop); }
.fam__link b svg { display: block; width: 12px; height: 12px; }
.fam__link:hover, .fam__link:focus-visible { transform: scale(1.05) rotate(-1.5deg); background: var(--fam-fg); color: var(--fam-bg); border-color: var(--fam-fg); }
.fam__link:hover b, .fam__link:focus-visible b { transform: rotate(45deg) scale(1.1); }
.fam__link:focus-visible { outline: 3px solid var(--fam-x); outline-offset: 4px; }
.fam__c { font-family: "Unbounded Fam", "Unbounded", sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0; opacity: .72; }
@media (max-width: 560px) {
  .fam { gap: 10px 12px; }
  .fam__mark { flex: 1 0 100%; }
  .fam__c { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .fam__chips i, .fam__link, .fam__link b { transition: none; }
}

/* ==================== 4. トップ ==================== */
/* 地は、ゲームの背景の絵(紙と、絵の具のしみ)。上下を折り返してつないだ絵なので、くり返しても つぎ目が出ない */
.home { background: var(--paper) url("img/paper-tile.webp") center top / max(100%, 760px) auto repeat-y; }
@media (max-width: 760px) { .home { background-image: linear-gradient(rgba(255, 252, 245, .45), rgba(255, 252, 245, .45)), url("img/paper-s-tile.webp"); background-size: auto, 100% auto; } }


/* ---------- 最初の画面 ---------- */
/* 最初の画面は、いつも 1 画面ぶんの高さを取る(シャッターが、画面の下まで とどくように) */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: clamp(24px, 4vw, 72px); min-height: 100vh; min-height: 100svh; padding: calc(var(--fh) + 36px) var(--g) 40px; max-width: 1500px; margin: 0 auto; }
.hero__copy { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; }
.hero__copy .psdots { font-size: clamp(14px, 1.5vw, 22px); margin-left: .5em; }
.hero__logo { margin-top: .12em; font-size: clamp(40px, calc((100vw - 2 * var(--g) - 520px - 4vw) / 7.6), 104px); line-height: 1; }
.hero__logo .pslogo i { transition: transform .5s var(--pop); }
.hero__logo .pslogo i:hover { transform: translateY(-8%) rotate(-5deg) scale(1.06); }
.hero__tag { margin-top: .9em; font-weight: 700; font-size: clamp(17px, 2vw, 29px); line-height: 1.55; letter-spacing: .04em; }
.hero__pills { margin-top: 1.3em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hero__pills .pill { font-size: clamp(13px, 1.1vw, 16px); }
html:not(.js) .js [data-in] { opacity: 0; transform: translate3d(0, 22px, 0); }
.js.is-in [data-in] { opacity: 1; transform: none; transition: opacity .5s linear, transform .9s var(--pop); transition-delay: calc(var(--d, 0) * 70ms + 1.05s); }   /* シャッターが上がってから出す */
.js .pslogo i { transform: translateY(60%) rotate(10deg) scale(.4); opacity: 0; }
.js.is-in .pslogo i { transform: none; opacity: 1; transition: transform .8s var(--pop), opacity .3s linear; transition-delay: calc(var(--i, 0) * 60ms + 1.15s); }
.js.is-in .hero__logo .pslogo i:hover { transition-delay: 0s; }

/* お店のカウンター(小さなパレット)。後ろに、色のついた板がずれて見える(屋号のサイトの札と同じ形) */
.counter { position: relative; --rad: clamp(28px, 3vw, 44px); }
.counter__slab { position: absolute; inset: 0; border-radius: var(--rad); background: var(--btn); transform: translate3d(9px, 10px, 0) rotate(1.2deg); }
.counter__card { position: relative; border-radius: var(--rad); background: var(--cream); padding: clamp(14px, 1.6vw, 22px); box-shadow: inset 0 0 0 2px #f6e6bd; }
.pb { --rh: 64px; }
.nojs { display: grid; gap: 14px; justify-items: center; padding: 30px 10px; text-align: center; font-weight: 700; }
.nojs__eq { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; }
.nojs__eq .pc { --pc: 68px; }

/* ---------- 見出し(丸い札) ---------- */
.sec-head { display: flex; align-items: center; gap: 14px; }
.sec-head h2 { font-weight: 900; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: .1em; padding: .42em 1.1em .5em; border-radius: 100px; background: var(--ink); color: var(--paper); line-height: 1.3; transform: rotate(-1.5deg); }
.sec-head p { font-size: 12px; font-weight: 500; color: var(--ink2); letter-spacing: .02em; }

/* ---------- あそびかた ---------- */
.how { position: relative; padding: clamp(50px, 7vw, 110px) var(--g) 0; max-width: 1500px; margin: 0 auto; }
.lead { margin-top: clamp(22px, 3vw, 40px); font-weight: 900; font-size: clamp(24px, 3.5vw, 54px); line-height: 1.45; letter-spacing: .03em; max-width: 21em; }
.steps { margin-top: clamp(30px, 4vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px); }
.step { position: relative; border-radius: clamp(24px, 2.6vw, 38px); background: #fff; padding: clamp(12px, 1.3vw, 18px) clamp(12px, 1.3vw, 18px) clamp(20px, 2vw, 30px); box-shadow: 0 6px 0 #f0e4cc, 0 0 0 1.5px #f3e8d2; }
.step h3 { margin: 6px clamp(6px, .8vw, 12px) 0; font-weight: 900; font-size: clamp(20px, 1.9vw, 28px); letter-spacing: .05em; line-height: 1.4; }
.step > p:last-child { margin: 8px clamp(6px, .8vw, 12px) 0; font-size: 15px; line-height: 1.8; color: #6a5847; }
.step__no { margin: 16px clamp(6px, .8vw, 12px) 0; display: inline-grid; place-items: center; min-width: 46px; height: 28px; padding: 0 12px; border-radius: 100px; background: var(--acc); color: #fff; font-weight: 700; font-size: 12px; line-height: 1; }
.step__art { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 16 / 10; border-radius: clamp(16px, 1.8vw, 26px); background: var(--tint); overflow: hidden; --pc: clamp(46px, 5.2vw, 70px); }
.step--a { --tint: #fdebd3; --acc: #e8853c; }
.step--b { --tint: #e6dcf8; --acc: #7f77dd; }
.step--c { --tint: #d9f2e4; --acc: #1d9e75; }
.art-well { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; width: calc(var(--pc) + 26px); height: 76%; padding: 8px 0 10px; border-radius: 18px; background: #fff; }
.art-gt, .art-arrow { font-weight: 900; font-size: 34px; line-height: 1; color: var(--ink); }
.art-tube { position: absolute; left: 50%; top: 2%; width: 34px; margin-left: -17px; z-index: 2; animation: tubeslide 3.6s var(--out) infinite; }
.art-wells { position: absolute; left: 50%; bottom: 0; translate: -50% 0; display: flex; gap: 6px; height: 60%; }
.art-wells i { display: flex; align-items: flex-end; justify-content: center; width: calc(var(--pc) + 12px); padding-bottom: 8px; border-radius: 14px 14px 0 0; background: #fff; }
.art-wells i.on { background: #fff7e6; }
.art-wells .pc { animation: plop 3.6s var(--out) infinite; }
.art-arrow { position: absolute; top: 14%; opacity: .5; }
.art-arrow--l { left: 22%; } .art-arrow--r { right: 22%; }
@keyframes tubeslide { 0%, 100% { transform: translateX(-70px); } 30%, 62% { transform: translateX(0); } 80% { transform: translateX(70px); } }
@keyframes plop { 0%, 34% { transform: translateY(-160%) scale(.6); opacity: 0; } 44% { transform: translateY(0) scale(1.1, .86); opacity: 1; } 52%, 92% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
.step--c .ord { rotate: -4deg; }
.art-tap { position: absolute; left: 58%; top: 56%; width: 30px; height: 30px; border-radius: 50%; background: rgba(74, 57, 45, .22); box-shadow: 0 0 0 0 rgba(74, 57, 45, .3); animation: tap 1.8s ease-out infinite; }
@keyframes tap { 0% { transform: scale(1.5); opacity: 0; } 30% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(74, 57, 45, .3); } 70% { opacity: 1; box-shadow: 0 0 0 16px rgba(74, 57, 45, 0); } 100% { opacity: 0; box-shadow: 0 0 0 16px rgba(74, 57, 45, 0); } }

.tips { margin-top: clamp(16px, 2vw, 30px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px); }
.tips li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; border-radius: clamp(22px, 2.2vw, 32px); padding: 16px 20px 18px 16px; border: 2px dashed #e7d6b6; background: rgba(255, 255, 255, .6); }
.tips__art { grid-row: span 2; display: flex; align-items: center; gap: 4px; font-weight: 900; font-size: 15px; --pc: 40px; }
.tips__art .ord { width: 78px; margin-top: 8px; }
.tips__art .ord .pc { --pc: 40px; }
.tips h3 { font-weight: 900; font-size: 17px; letter-spacing: .06em; line-height: 1.4; align-self: end; }
.tips li > p:last-child { font-size: 13.5px; line-height: 1.7; color: #6a5847; align-self: start; }
.chainw { display: inline-block; padding: .3em .9em .36em; border-radius: 100px; background: #fff; box-shadow: 0 4px 0 rgba(120, 80, 30, .16), 0 0 0 2px var(--btn); font-size: 15px; white-space: nowrap; rotate: -5deg; }

/* ---------- 4つのモード(丸い札。後ろに色の板) ---------- */
.modes { position: relative; padding: clamp(70px, 9vw, 140px) var(--g) 0; max-width: 1500px; margin: 0 auto; }
.tiles { margin-top: clamp(26px, 3.4vw, 50px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 46px); align-items: start; }
.tile { position: relative; --rad: clamp(26px, 3vw, 44px); }
.tile:nth-child(odd) { transform: rotate(-1deg); }
.tile:nth-child(even) { transform: rotate(1deg); margin-top: clamp(0px, 4vw, 60px); }
.tile__slab { position: absolute; inset: 0; border-radius: var(--rad); background: var(--acc); }
.tile__card { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; border-radius: var(--rad); background: #fff; overflow: hidden; transform: translate3d(-6px, -7px, 0); transition: transform .65s var(--pop); box-shadow: inset 0 0 0 1.5px rgba(74, 57, 45, .08); }
.tile:nth-child(even) .tile__card { transform: translate3d(6px, -7px, 0); }
.tile:hover .tile__card { transform: translate3d(-14px, -16px, 0) rotate(-.6deg); }
.tile:nth-child(even):hover .tile__card { transform: translate3d(14px, -16px, 0) rotate(.6deg); }
.tile__art { position: relative; background: var(--tint); min-height: clamp(300px, 29vw, 420px); overflow: hidden; }
/* 遊んでいる画面: スマホの形の わく に入れて、画面の全部が見える大きさで置く */
.tile__art .phone { position: absolute; left: 50%; top: 50%; height: 90%; translate: -50% -50%; rotate: -5deg; transition: rotate .7s var(--pop), scale .7s var(--pop); }
.tile:nth-child(even) .tile__art .phone { rotate: 5deg; }
.tile:hover .tile__art .phone { rotate: 0deg; scale: 1.05; }
/* 画面の一部を切り出した絵(ひがわり ちゅうもん の札): 写真のように、白いふちを付けて置く */
.tile__art--card img { position: absolute; left: 50%; top: 50%; width: 88%; translate: -50% -50%; rotate: -3deg; border-radius: 14px; box-shadow: 0 0 0 4px #fff, 0 18px 28px -16px rgba(40, 80, 60, .6); transition: rotate .7s var(--pop), scale .7s var(--pop); }
.tile:hover .tile__art--card img { rotate: 1deg; scale: 1.05; }
.tile__text { padding: clamp(18px, 2.2vw, 34px) clamp(16px, 2vw, 30px); align-self: center; }
.tile__no { display: inline-grid; place-items: center; min-width: 46px; height: 28px; padding: 0 12px; border-radius: 100px; background: var(--acc); color: var(--no, #fff); font-weight: 700; font-size: 12px; line-height: 1; }
.tile h3 { margin-top: 12px; font-weight: 900; font-size: clamp(24px, 2.7vw, 42px); line-height: 1.25; letter-spacing: .02em; }
.tile__desc { margin-top: 10px; font-weight: 700; font-size: clamp(15px, 1.4vw, 20px); line-height: 1.6; letter-spacing: .04em; }
.tile__more { margin-top: 6px; font-size: 14px; color: #6a5847; line-height: 1.7; }
.tile--classic { --acc: var(--btn); --tint: #fdf0cf; --no: #6a4a10; }
.tile--sprint { --acc: #f09a7f; --tint: #fde3d8; }
.tile--daily { --acc: var(--board); --tint: #dcebe3; }
.tile--friend { --acc: var(--blue); --tint: #dde9fb; }

/* ---------- おしらせ(丸い行) ---------- */
.info { position: relative; padding: clamp(80px, 10vw, 160px) var(--g) clamp(50px, 7vw, 100px); max-width: 1500px; margin: 0 auto; }
.facts { margin-top: clamp(22px, 3vw, 40px); display: grid; gap: 12px; max-width: 1120px; }
.facts__row { display: grid; grid-template-columns: minmax(7.5em, 2.4fr) 9fr; column-gap: 20px; align-items: center; padding: clamp(16px, 2vw, 28px) clamp(20px, 2.6vw, 38px); border-radius: clamp(22px, 2.4vw, 34px); background: rgba(255, 255, 255, .82); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .3s; --c: var(--btn); }
.facts__row--b { --c: var(--blue); } .facts__row--g { --c: #63b22f; } .facts__row--p { --c: #ee7f9f; }
.facts__row:hover { background: color-mix(in srgb, var(--c) 16%, #fff); }
.facts dt { font-size: 14px; letter-spacing: .08em; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.facts dt::before { content: ""; width: 13px; height: 13px; border-radius: 34%; background: var(--c); flex: none; }
.facts dd { font-weight: 900; font-size: clamp(19px, 2.1vw, 30px); line-height: 1.45; letter-spacing: .02em; }
.facts dd .soon { font-size: clamp(17px, 1.7vw, 24px); rotate: -2deg; margin-right: 14px; }
.facts__lead { display: inline-block; font-size: 14px; font-weight: 400; letter-spacing: .04em; color: #6a5847; }
.facts dd > .facts__lead:first-child { display: block; margin-bottom: 4px; }
.langs { display: flex; flex-wrap: wrap; gap: 7px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.langs li { padding: 5px 13px 6px; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--ink); line-height: 1.3; }
.mail { font-weight: 600; font-size: .82em; letter-spacing: -.03em; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .5s var(--out); }
.mail:hover { background-size: 0 2px; background-position: 100% 100%; }

/* ---------- いちばん下 ---------- */
.foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px var(--g) 22px; border-top: 1.5px solid var(--line); font-size: 13px; font-weight: 700; }
.foot__links { margin-right: auto; }
.foot__links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.foot__top a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--line); background: rgba(255, 255, 255, .7); }

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: calc(var(--fh) + 74px) 14px 26px; min-height: 0; align-content: start; }
  .hero__copy { position: static; justify-items: center; text-align: center; }
  .hero__copy .psdots { margin-left: 0; font-size: 12px; }
  .hero__logo { font-size: min(12.4vw, 76px); }
  .hero__tag { margin-top: .5em; font-size: clamp(13.5px, 3.9vw, 20px); }
  .hero__tag wbr { display: none; }
  /* 「iPhone・Android」の札は、ぶら下がった札の右に置く(最初の画面の高さをかせぐ) */
  .hero__pills { position: absolute; right: 14px; top: calc(var(--fh) + 27px); z-index: 2; margin: 0; }
  .hero__pills .pill { font-size: 12.5px; }
    .counter { max-width: 520px; width: 100%; margin: 0 auto; }
  .counter__slab { transform: translate3d(5px, 6px, 0) rotate(.8deg); }
  .counter__card { padding: 12px 10px 14px; }
  .pb { --rh: clamp(48px, 13vw, 60px); }
  .pb__orders { min-height: 98px; }
  .pb__tube { height: 78px; }
  .tube { height: 84px; width: 40px; margin-left: -20px; }
  .steps, .tips { grid-template-columns: minmax(0, 1fr); }
  .tips li { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; row-gap: 6px; padding: 16px; }
  .tips__art { grid-row: auto; }
  .tips .nb { white-space: normal; }
  .step__art { aspect-ratio: 16 / 9; --pc: 60px; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tile:nth-child(even) { margin-top: 0; }
  .tile__card { transform: translate3d(-4px, -5px, 0); }
  .tile:nth-child(even) .tile__card { transform: translate3d(4px, -5px, 0); }
  .tile__art { min-height: 250px; }
  .facts__row { display: block; }
  .facts dt { margin-bottom: 8px; }
  .mail { font-size: min(.82em, 4.6vw); }
}
@media (max-width: 420px) {
  .tile__card { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .tile h3 { font-size: 22px; }
  .tile__text { padding: 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-in], .js .pslogo i { opacity: 1 !important; transform: none !important; transition: none !important; }
  .art-tube, .art-wells .pc, .art-tap { animation: none; }
}

/* ==================== 5. 開店: お店の看板・シャッター・ぶら下がった札 ==================== */
.home { --fh: calc(56px + env(safe-area-inset-top)); }
/* 看板(シャッターの箱)。上に、屋号のしるしと、言語の切り替えを乗せる */
.fascia { position: absolute; left: 0; right: 0; top: 0; z-index: 20; height: var(--fh); display: flex; align-items: center; gap: 10px; padding: env(safe-area-inset-top) var(--g) 0; background: linear-gradient(#f0c7b1 0 5px, #8f5f55 5px 9px, #784f48 9px); box-shadow: 0 3px 0 rgba(60, 30, 20, .25); }
.fascia::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 64px; height: 6px; margin-left: -32px; border-radius: 4px; background: #5e3c36; box-shadow: inset 0 1px 0 rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .16); }
.top__x { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin: 4px auto 0 0; padding: 7px 14px 8px; border-radius: 100px; background: var(--chalk); color: var(--ink); font-weight: 900; font-size: 13px; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.top__x .xb { font-size: 16px; }
.top__x a { font-weight: 700; font-size: 12px; letter-spacing: -.01em; }
.top__x a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fascia .lang { position: relative; z-index: 1; margin-top: 4px; background: rgba(255, 246, 222, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 246, 222, .4); color: var(--chalk); }
.fascia .lang [aria-current] { color: var(--chalk); }
.fascia .lang a { color: rgba(255, 246, 222, .72); opacity: 1; transition: color .2s; }
.fascia .lang a:hover, .fascia .lang a:focus-visible { color: var(--cs-y); }
.fascia :focus-visible { outline-color: var(--cs-y); }

/* シャッター: はじめは閉まっていて、上がって開店する。JS が動かないとき・動きを減らす設定のときは、はじめから開いている */
.shutter { position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: 5; pointer-events: none; transform: translateY(calc(-100% + var(--fh) + 14px)); }
.shutter__slats { position: absolute; inset: 0 0 16px; background: repeating-linear-gradient(180deg, #7c514a 0 3px, #b68271 3px 6px, #d39f8a 6px 10px, #dba68f 10px 22px, #e5b59e 22px 34px); box-shadow: inset 12px 0 0 #a37061, inset -12px 0 0 #a37061; }
.shutter__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: linear-gradient(#a37061, #84574d); box-shadow: 0 4px 6px rgba(60, 30, 20, .3); }
.shutter__bar i { position: absolute; left: 50%; top: 5px; width: 90px; height: 8px; margin-left: -45px; border-radius: 5px; background: #f0c7b1; }
.js .shutter { transform: none; }
.js.is-in .shutter { animation: openup 1.7s cubic-bezier(.6, 0, .25, 1) .45s both; }
@keyframes openup { 0% { transform: none; } 6% { transform: translateY(14px); } 72% { transform: translateY(calc(-100% + var(--fh))); } 86% { transform: translateY(calc(-100% + var(--fh) + 22px)); } 100% { transform: translateY(calc(-100% + var(--fh) + 14px)); } }

/* ぶら下がった札「近日公開」。公開したら、HTML の札(p.sign)ごと消す */
.sign { position: absolute; z-index: 7; left: max(var(--g), calc(50% - 750px + var(--g))); top: calc(var(--fh) - 6px); transform-origin: 50% 0; animation: swing 4.6s ease-in-out infinite; }
.sign::before, .sign::after { content: ""; position: absolute; top: 0; width: 2.5px; height: 46px; background: #5e3c36; border-radius: 2px; }
.sign::before { left: 22%; transform: rotate(9deg); transform-origin: 50% 100%; }
.sign::after { right: 22%; transform: rotate(-9deg); transform-origin: 50% 100%; }
.sign__in { position: relative; display: grid; justify-items: center; margin-top: 42px; padding: 12px 26px 13px; border-radius: 18px; background: var(--cs-y); color: var(--cs-ink); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .16), 0 0 0 2px rgba(0, 0, 0, .6), 0 12px 18px -8px rgba(60, 30, 20, .45); }
.sign__in::before, .sign__in::after { content: ""; position: absolute; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.sign__in::before { left: 22%; }
.sign__in::after { right: 22%; }
.sign__jp { font-weight: 900; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: .16em; line-height: 1.2; margin: 6px -.16em 0 0; white-space: nowrap; }
.sign__en { font-weight: 600; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
@keyframes swing { 0%, 100% { rotate: -3.2deg; } 50% { rotate: 3.2deg; } }
.sign:hover { animation-duration: 1.1s; }

@media (max-width: 900px) {
  .home { --fh: calc(50px + env(safe-area-inset-top)); }
  .top__x { font-size: 12px; padding: 6px 11px 7px; gap: 6px; }
  .top__x a { font-size: 11px; }
  .sign { left: 14px; top: calc(var(--fh) - 4px); }
  .sign::before, .sign::after { height: 24px; }
  .sign__in { margin-top: 21px; padding: 6px 14px 7px; border-radius: 13px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .16), 0 0 0 2px rgba(0, 0, 0, .6), 0 8px 12px -6px rgba(60, 30, 20, .45); }
  .sign__in::before, .sign__in::after { top: 5px; width: 5px; height: 5px; }
  .sign__jp { font-size: 17px; margin-top: 5px; }
  .sign__en { font-size: 8px; }
}
@media (max-width: 340px) { .top__x > span:first-child { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .shutter { transform: translateY(calc(-100% + var(--fh) + 14px)) !important; animation: none !important; }
  .sign { animation: none; }
}

/* ==================== 6. 英語のページ(見出しは Unbounded。文は、ゲームと同じ丸い書体) ==================== */
html[lang="en"] body { letter-spacing: 0; }
html[lang="en"] .hero__logo { display: flex; flex-wrap: wrap; column-gap: .24em; font-size: clamp(38px, calc((100vw - 2 * var(--g) - 520px - 4vw) / 8.3), 96px); }
/* 2 つめの言葉(Store)の字の色は、1 つめの続きから */
.pslogo--b i:nth-child(1) { --f: #bcd8fb; --e: #6aa0ea; } .pslogo--b i:nth-child(2) { --f: #fde9a4; --e: #e9b949; } .pslogo--b i:nth-child(3) { --f: #fdd6b3; --e: #f09a52; } .pslogo--b i:nth-child(4) { --f: #fbc3d2; --e: #ee7f9f; } .pslogo--b i:nth-child(5) { --f: #c4e9e7; --e: #66bcc0; }
html:not(:lang(ja)) .bar a { column-gap: .26em; }
html[lang="en"] .pslogo { letter-spacing: 0; }
html[lang="en"] .hero__tag { letter-spacing: 0; line-height: 1.4; }
html[lang="en"] .sign__jp { font-family: var(--latin); font-weight: 700; font-size: clamp(17px, 1.7vw, 25px); letter-spacing: -.01em; margin: 8px 0 3px; }
html[lang="en"] .soon { padding: .5em 1.15em .56em; font-family: var(--latin); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
html[lang="en"] .sec-head h2 { font-family: var(--latin); font-weight: 700; letter-spacing: 0; font-size: clamp(14px, 1.2vw, 17px); padding: .6em 1.2em .66em; }
html[lang="en"] .lead { letter-spacing: 0; line-height: 1.3; max-width: 17em; }
html[lang="en"] .step h3, html[lang="en"] .tips h3 { font-family: var(--latin); font-weight: 700; letter-spacing: -.02em; }
html[lang="en"] .step h3 { font-size: clamp(18px, 1.6vw, 24px); }
html[lang="en"] .tips h3 { font-size: 15px; }
html[lang="en"] .step > p:last-child, html[lang="en"] .tips li > p:last-child { line-height: 1.6; }
html[lang="en"] .tile h3 { font-family: var(--latin); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; font-size: clamp(22px, 2.5vw, 40px); }
html[lang="en"] .tile__desc { letter-spacing: 0; line-height: 1.4; }
html[lang="en"] .facts dt { font-family: var(--latin); font-weight: 600; letter-spacing: 0; font-size: 12px; }
html[lang="en"] .facts dd { letter-spacing: 0; }
html[lang="en"] .foot { letter-spacing: 0; }
html[lang="en"] .pb__coach { font-size: 14.5px; letter-spacing: 0; line-height: 1.4; }
html[lang="en"] .gbtn { font-family: var(--latin); font-weight: 700; font-size: 14px; letter-spacing: 0; }
html[lang="en"] .pb.is-attract .pb__again { font-size: 13px; padding: .5em 1.2em .56em; }
html[lang="en"] .pb.is-attract .pb__coach { padding-right: 122px; }
html[lang="en"] .ord b { white-space: normal; line-height: 1.1; font-size: 11.5px; }
html[lang="en"] .pb__word { letter-spacing: 0; }
@media (max-width: 900px) {
  html[lang="en"] .hero__logo { font-size: min(11.2vw, 68px); justify-content: center; }
  html[lang="en"] .hero__tag { font-size: clamp(14px, 4.1vw, 20px); max-width: 21em; }
  html[lang="en"] .sign__jp { font-size: 12.5px; margin: 6px 0 2px; }
}

/* ==================== 7. プライバシーポリシー・招待の案内・見つからないページ ==================== */
/* 読みやすさを先に。飾りは、上の看板・色のしるし・足もとの帯だけ。字は、どの言語も ふつうの太さ(ゲームと同じ)で、大きさと色で見出しを分ける */
.privacy, .join { color-scheme: light; background: var(--paper); font-family: "PS Text", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; font-weight: 400; font-size: 16px; line-height: 1.9; letter-spacing: .02em; font-synthesis: none; }
html:lang(zh-Hans) :is(.privacy, .join) { font-family: "PS CN", "PS Text", "PingFang SC", "Noto Sans SC", sans-serif; line-height: 1.85; }
html:lang(zh-Hant) :is(.privacy, .join) { font-family: "PS TW", "PS Text", "PingFang TC", "Noto Sans TC", sans-serif; line-height: 1.85; }
html:lang(ko) :is(.privacy, .join) { font-family: "PS KR", "PS Text", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; line-height: 1.85; }
html:is(:lang(en), :lang(es), :lang(fr), :lang(de), :lang(pt-BR)) :is(.privacy, .join) { line-height: 1.75; letter-spacing: 0; }

/* 上の看板(トップと同じ色)。左のロゴは、トップへもどるリンク */
.bar { display: flex; align-items: center; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) clamp(14px, 4vw, 40px) 0; background: linear-gradient(#f0c7b1 0 5px, #8f5f55 5px 9px, #784f48 9px); box-shadow: 0 3px 0 rgba(60, 30, 20, .22); }
.bar a { display: inline-flex; margin-top: 4px; border-radius: 10px; }
.bar .pslogo { font-size: 23px; }
.bar :focus-visible { outline-color: var(--cs-y); }

:is(.privacy, .join) main { max-width: 760px; margin: 0 auto; padding: 22px 18px 72px; overflow: visible; }
:is(.privacy, .join) main > header { text-align: center; margin: 26px 0 26px; }
:is(.privacy, .join) h1 { font-weight: 400; font-size: clamp(1.5rem, 5.4vw, 2rem); line-height: 1.4; letter-spacing: .06em; color: #3a2b20; }
:is(.privacy, .join) .lead { max-width: none; margin-top: 6px; font-weight: 400; font-size: .92rem; line-height: inherit; letter-spacing: inherit; color: var(--ink2); }
:is(.privacy, .join) [hidden] { display: none !important; }

/* 言語の切り替え(丸い札)。間の「·」は、字の大きさを 0 にして かくしてある */
.langnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 0; }
.langnav a, .langnav strong { display: inline-block; padding: 5px 12px 6px; border-radius: 100px; font-size: 13px; line-height: 1.3; letter-spacing: 0; font-weight: 400; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; color: var(--ink); transition: background-color .2s, box-shadow .2s; }
.langnav a:hover, .langnav a:focus-visible { background: var(--cream); box-shadow: inset 0 0 0 1.5px #dcc594; }
.langnav strong, .langnav [aria-current] { background: var(--ink); color: var(--paper); box-shadow: none; }
.langnav a:is([hreflang="ja"], [lang="ja"]) { font-family: "PS Name JA", "PS Text", sans-serif; }
.langnav a:is([hreflang="zh-Hans"], [lang="zh-Hans"]) { font-family: "PS Name CN", "PS CN", sans-serif; }
.langnav a:is([hreflang="zh-Hant"], [lang="zh-Hant"]) { font-family: "PS Name TW", "PS TW", sans-serif; }
.langnav a:is([hreflang="ko"], [lang="ko"]) { font-family: "PS Name KR", "PS KR", sans-serif; }
.langnav a:is([hreflang="en"], [hreflang="es"], [hreflang="fr"], [hreflang="de"], [hreflang="pt-BR"], [lang="en"], [lang="es"], [lang="fr"], [lang="de"], [lang="pt-BR"]) { font-family: "PS Text", sans-serif; }

/* ポリシーの文 */
.privacy main > p { margin-top: 14px; }
.privacy p, .privacy li { font-size: .97rem; }
.card { margin-top: 14px; padding: 6px 22px 20px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1.5px #f3e8d2, 0 4px 0 #f0e4cc; }
.privacy h2 { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; font-weight: 400; font-size: 1.14rem; line-height: 1.5; letter-spacing: .03em; color: #3a2b20; }
.privacy h2::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 34%; background: var(--c, var(--btn)); translate: 0 .05em; }
.privacy .card:nth-of-type(7n+1) { --c: #e24b4a; } .privacy .card:nth-of-type(7n+2) { --c: #378add; } .privacy .card:nth-of-type(7n+3) { --c: #f2c037; } .privacy .card:nth-of-type(7n+4) { --c: #7f77dd; }
.privacy .card:nth-of-type(7n+5) { --c: #e8853c; } .privacy .card:nth-of-type(7n+6) { --c: #63b22f; } .privacy .card:nth-of-type(7n) { --c: #1d9e75; }
.privacy .card p + p, .privacy .card ul + p, .privacy .card p + ul { margin-top: 8px; }
.privacy ul { list-style: disc; padding-left: 1.3em; }
.privacy li + li { margin-top: 6px; }
.privacy li::marker { color: #c9b189; }
.privacy strong { font-weight: 400; color: #3a2b20; background: linear-gradient(transparent 64%, #fdeab0 0); }
.privacy .langnav strong { background: var(--ink); color: var(--paper); }
.privacy main a:not(.langnav a) { color: #2a66b4; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.privacy main a:not(.langnav a):hover { color: #1d4c8c; }
.privacy .meta { margin-top: 34px; font-size: .85rem; color: var(--ink2); text-align: right; }

/* 招待の案内 */
.join main { max-width: 560px; }
.join .lead { display: inline-block; margin-top: 10px; padding: 3px 14px 4px; border-radius: 100px; background: var(--cream); box-shadow: inset 0 0 0 1.5px #f2dca6; color: var(--ink); font-size: .88rem; }
.join .invite-card { padding: 22px 20px 20px; text-align: center; border-radius: 26px; }
.join .invite-card p { font-size: .95rem; margin-top: 12px; }
.invite-card label { display: block; font-size: .95rem; color: var(--ink2); letter-spacing: .08em; }
.room-code { display: block; width: 100%; max-width: 11.5ch; margin: 8px auto 16px; padding: .3em 0 .34em; border: 0; border-radius: 16px; background: var(--cream); box-shadow: inset 0 0 0 2px #f2dca6; color: #3a2b20; font: 700 clamp(1.6rem, 8vw, 2.3rem)/1.3 "Unbounded", "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-indent: .1em; text-align: center; }
.room-code:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.invite-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; }
.join .action { display: inline-block; padding: .62em 1.5em .7em; border: 0; border-radius: 100px; background: var(--btn); box-shadow: 0 4px 0 var(--btn-e); color: #4a2f08; font: inherit; font-size: 1rem; line-height: 1.4; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: transform .5s var(--pop), box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.join .action:hover, .join .action:focus-visible { transform: translateY(-2px) scale(1.03); }
.join .action:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-e); transition-duration: .08s; }
.join .action.secondary { background: var(--cream2); box-shadow: 0 4px 0 #e2d3b4; color: var(--ink); }
.join .action.secondary:active { box-shadow: 0 1px 0 #e2d3b4; }
.join .alternate-action { color: #2a66b4; text-decoration: underline; text-underline-offset: 3px; }
.join .feedback { min-height: 1.9em; margin-top: 6px; }
.join .feedback, .join .expiry { color: var(--ink2); }
.join .invite-card p:first-child { margin-top: 0; font-size: 1.05rem; color: #3a2b20; }
.join .invite-card p:last-child { margin-bottom: 0; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.join noscript p { margin-top: 20px; text-align: center; }
/* 看板のロゴと、足もとの帯の ことば は、ページの言語に合わせて出し分ける(招待の案内は、JS が言語を切り替えるため) */
html:lang(ja) [data-l="en"], html:not(:lang(ja)) [data-l="ja"] { display: none !important; }
.bar [data-l] { display: inline-flex; column-gap: .26em; }

/* 見つからないページ */
.nf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper) url("img/paper.webp") center top / cover no-repeat; }
.nf main { flex: 1; display: grid; place-items: center; padding: 30px 18px 50px; }
.nf__card { width: 100%; max-width: 560px; padding: clamp(26px, 6vw, 44px) clamp(20px, 5vw, 40px) clamp(28px, 6vw, 44px); border-radius: clamp(28px, 5vw, 40px); background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 2px #f6ecd9, 0 22px 40px -26px rgba(120, 80, 30, .5); text-align: center; }
.nf__art { display: flex; justify-content: center; align-items: flex-end; gap: 10px; --pc: clamp(58px, 16vw, 84px); }
.nf__art .pc { animation: mudshake 2.6s ease-in-out infinite; }
.nf__art .pc:nth-child(2) { animation-delay: .4s; }
.nf__no { margin-top: 18px; font-family: var(--latin); font-weight: 800; font-size: clamp(44px, 13vw, 76px); line-height: 1; letter-spacing: -.03em; color: #3a2b20; }
.nf h1 { margin-top: 12px; font-weight: 900; font-size: clamp(20px, 5.4vw, 28px); line-height: 1.5; letter-spacing: .04em; }
.nf__en { margin-top: 4px; font-size: 15px; color: var(--ink2); }
.nf__links { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; }
.nf .gbtn { color: #4a2f08; font-size: 16px; }
.nf .gbtn--cream { color: var(--ink); }

@media (max-width: 480px) {
  .card { padding: 4px 16px 18px; border-radius: 18px; }
  :is(.privacy, .join) main { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .nf__art .pc { animation: none; } }
