/* パイン、のせんといて！ — ゲーム紹介（about.html）。ピザ屋のメニュー表の作り */
:root {
  --ink: #2a1810; --kraft: #d6ae74; --tomato: #d63a23; --basil: #2f7d3b; --pine: #ffc928; --cream: #fff5e1;
  --cloth: rgb(199 54 43 / .5); --cloth-bg: #f3e8d6;
  --f-disp: "Dela Gothic One", "Hiragino Kaku Gothic StdN", "Hiragino Sans", sans-serif;
  --f-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; scroll-padding-top: 72px; overflow-x: clip; }  /* パイン兄さんのはみ出しで横にスクロールさせない */
body {
  margin: 0; color: var(--ink); font: 500 16px/1.9 var(--f-body);
  background-color: var(--cloth-bg);
  background-image: linear-gradient(90deg, var(--cloth) 50%, transparent 50%), linear-gradient(var(--cloth) 50%, transparent 50%);
  background-size: 64px 64px; overflow-x: clip;
}
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
b { font-weight: 700; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sp { display: none; }
@media (max-width: 560px) { .sp { display: inline; } }

/* ---------- 上のバー ---------- */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: var(--ink); color: var(--cream);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-s { flex: none; padding: 6px 16px; border-radius: 999px; background: var(--tomato); color: var(--cream); font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 0 0 2px var(--cream); }
.play-s:hover { background: #e94b33; }

main { width: min(1080px, 100% - 32px); margin: 0 auto; padding-bottom: 40px; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px 40px; padding: clamp(28px, 6vw, 64px) 0 clamp(40px, 7vw, 80px); }
.hero h1 { margin: 0; line-height: 0; }
.hero .lg { width: min(100%, 560px); height: auto; overflow: visible; transform: rotate(-4deg); filter: drop-shadow(0 10px 0 rgb(42 24 16 / .18)); }
.catch {
  margin-top: 26px !important; display: inline-block; padding: 16px 22px; border-radius: 18px; background: var(--cream);
  box-shadow: 0 0 0 4px var(--ink), 8px 10px 0 4px var(--ink); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.6;
}
.catch b { color: var(--tomato); }
.btn-play {
  display: inline-grid; justify-items: center; gap: 2px; margin-top: 30px; padding: 16px 40px 12px; border-radius: 18px;
  background: var(--tomato); color: var(--cream); text-decoration: none; font: 700 clamp(24px, 3.2vw, 30px)/1.25 var(--f-body); letter-spacing: .06em; /* Dela だと「遊」がつぶれるので丸ゴシック */
  box-shadow: 0 0 0 4px var(--ink), 0 9px 0 4px var(--ink); transition: transform .1s, box-shadow .1s;
}
.btn-play small { font: 700 13px/1.4 var(--f-body); letter-spacing: .08em; opacity: .9; }
/* 見出しの下のボタンは、説明の札の次の行に置く（前は横に並ぼうとして、600px 前後の幅で札が左にはみ出していた） */
.hero-text .btn-play { display: grid; width: max-content; max-width: 100%; }
.btn-play:hover { background: #e94b33; }
.btn-play:active { transform: translateY(6px); box-shadow: 0 0 0 4px var(--ink), 0 3px 0 4px var(--ink); }
.btn-play:focus-visible, .play-s:focus-visible { outline: 4px solid var(--pine); outline-offset: 4px; }
.hero-shot { position: relative; z-index: 1; margin: 0; justify-self: center; width: min(100%, 340px); transform: rotate(3deg); }
.hero-shot img { border-radius: 22px; box-shadow: 0 0 0 5px var(--ink), 12px 14px 0 5px rgb(42 24 16 / .35); }
/* 右下からパイン兄さんが覗く（大きく、角からはみ出す） */
.hero-guy { position: absolute; z-index: 2; right: -110px; bottom: -40px; width: 230px; aspect-ratio: 220 / 300; transform: rotate(-12deg); pointer-events: none; }
.hero-guy svg { width: 100%; height: 100%; overflow: visible; }
.hero-guy .m-win { display: none; }
@media (max-width: 1240px) { .hero-guy { right: -40px; width: 190px; } }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .lg { margin: 0 auto; }
  .hero-text .btn-play { margin-left: auto; margin-right: auto; }
  .hero-shot { width: min(72%, 300px); }
  .hero-guy { right: -30px; bottom: -10px; width: 150px; }
}

/* ロゴの登場（ゲームのタイトルと同じ動き） */
.hero .lg .ch { transform-box: fill-box; transform-origin: 50% 100%; animation: lgPop .46s calc(var(--i) * .065s + .12s) cubic-bezier(.3, 1.7, .5, 1) both; }
.hero .lg .rib { transform-box: fill-box; transform-origin: 50% 50%; animation: lgRib .42s calc(var(--i) * .065s + .2s) cubic-bezier(.3, 1.6, .5, 1) both; }
.hero .lg .slice { transform-box: fill-box; transform-origin: 50% 50%; animation: lgSlice .62s .1s cubic-bezier(.25, 1.35, .5, 1) both, lgWobble 5.5s 1.6s ease-in-out infinite; }  /* 2026-11-10 本人「パインが乗る前のパが欠けている感」：文字の後に遅れて来ると、その間「ハ」に見えた。パの文字と同時に着地させる */
@keyframes lgPop { 0% { transform: translateY(-40%) scale(.2); opacity: 0; } 60% { opacity: 1; } }
@keyframes lgRib { 0% { transform: scaleX(.1); opacity: 0; } }
@keyframes lgSlice { 0% { transform: translate(34px, -26px) rotate(-720deg) scale(2.2); opacity: 0; } 30% { opacity: 1; } 78% { transform: translate(0, 0) rotate(0) scale(.86, 1.12); } }
@keyframes lgWobble { 0%, 78%, 100% { transform: rotate(0); } 84% { transform: rotate(32deg) scale(1.08); } 90% { transform: rotate(-14deg); } 95% { transform: rotate(5deg); } }

/* ---------- 紙の節 ---------- */
.sheet {
  position: relative; margin: 0 auto 56px; width: min(860px, 100%); padding: clamp(24px, 4.5vw, 44px) clamp(20px, 4.5vw, 48px);
  background: var(--cream); border-radius: 22px; box-shadow: 0 0 0 4px var(--ink), 10px 12px 0 4px var(--ink);
}
.kicker { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--tomato); color: var(--cream); font-weight: 700; font-size: 13px; letter-spacing: .2em; }
.sheet h2, .menu h2 { margin: 12px 0 18px; font: 400 clamp(28px, 4.4vw, 40px)/1.3 var(--f-disp); }
.sheet p + p { margin-top: 1em; }
.sheet .note { margin-top: 22px !important; padding: 14px 18px; border-radius: 14px; background: #f6e3bd; font-size: 15px; }
.story b, .note b { background: linear-gradient(transparent 62%, rgb(255 201 40 / .75) 62%); }

/* あそびかた */
.howto-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.howto-shot { margin: 0; transform: rotate(-2.5deg); }
.howto-shot img { border-radius: 16px; box-shadow: 0 0 0 4px var(--ink), 8px 9px 0 4px rgb(42 24 16 / .3); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 16px; }
.steps li { position: relative; padding-left: 60px; counter-increment: st; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 2px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pine); box-shadow: 0 0 0 3px var(--ink); font: 400 24px/1 var(--f-disp);
}
.steps b { display: block; font-size: 19px; line-height: 1.5; }
.steps span { display: block; font-size: 15px; }
@media (max-width: 640px) { .howto-grid { grid-template-columns: 1fr; } .howto-shot { width: min(60%, 220px); margin: 0 auto; } }

/* ---------- メニュー（18種） ---------- */
.menu { margin: 0 auto 56px; }
.menu-head {
  position: relative; text-align: center; margin: 0 auto 28px; width: min(860px, 100%); padding: 30px 20px 26px; border-radius: 22px;
  background: radial-gradient(circle at 40% 30%, #34463c, #23312a 70%); color: #f4efe2;
  box-shadow: 0 0 0 4px var(--ink), inset 0 0 0 12px #9a6438, inset 0 0 0 15px var(--ink), 10px 12px 0 4px var(--ink);
}
.menu-head .kicker { background: var(--pine); color: var(--ink); }
.menu-head h2 { color: #fff8e6; padding: 0 16px; }
.menu-lead { font-weight: 700; font-size: 15px; opacity: .9; padding: 0 16px; }
.dishes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.dish {
  display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: start; padding: 16px; border-radius: 20px;
  background: var(--cream); box-shadow: 0 0 0 4px var(--ink), 7px 8px 0 4px var(--ink);
}
.dish figure { margin: 0; }
.dish img { border-radius: 12px; box-shadow: 0 0 0 3px var(--ink); background: var(--ink); }
.dish .no { font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--tomato); }
.dish h3 { margin: 0; font: 400 28px/1.25 var(--f-disp); word-break: keep-all; }
.dish .desc { margin-top: 4px; font-weight: 700; font-size: 16px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.tag { padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; font-size: 13px; line-height: 1.8; white-space: nowrap; }
.tag.art { background: var(--pine); }
.tag.keep { background: var(--basil); color: var(--cream); box-shadow: inset 0 0 0 2px var(--ink); }
.how { margin-top: 10px !important; padding-top: 10px; border-top: 2px dashed rgb(42 24 16 / .3); font-size: 14px; line-height: 1.7; }
@media (max-width: 860px) { .dishes { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .dish { grid-template-columns: 104px 1fr; gap: 14px; padding: 14px; } .dish h3 { font-size: 26px; } }

/* 2つの遊びかた */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mode { padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 3px var(--ink); }
.mode h3 { margin: 0 0 6px; font: 400 28px/1.3 var(--f-disp); color: var(--tomato); }
.mode p { font-size: 15px; }
@media (max-width: 640px) { .mode-grid { grid-template-columns: 1fr; } }

/* 称号（レシート） */
.receipt {
  position: relative; width: min(420px, 100%); margin: 6px auto 0; padding: 26px 26px 22px; background: #fff;
  filter: drop-shadow(6px 8px 0 rgb(42 24 16 / .25));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.rc-head { text-align: center; font: 400 28px/1.2 var(--f-disp); letter-spacing: .12em; padding-bottom: 12px; border-bottom: 2px dashed var(--ink); }
.rc-head small { display: block; font: 700 13px/1.8 var(--f-body); letter-spacing: .1em; }
.receipt dl { margin: 12px 0; display: grid; gap: 6px; }
.receipt dl div { display: flex; align-items: baseline; gap: 8px; }
.receipt dl div::after { content: none; }
.receipt dt { font-weight: 700; font-size: 17px; }
.receipt dd { margin: 0 0 0 auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt dt::after { content: ''; flex: 1; }
.receipt dl div { background: radial-gradient(circle, rgb(42 24 16 / .4) 1.2px, transparent 1.6px) 0 72% / 8px 8px repeat-x; }
.receipt dt, .receipt dd { background: #fff; padding: 0 6px; }
.receipt dt { padding-left: 0; }
.rc-foot { text-align: center; padding-top: 12px; border-top: 2px dashed var(--ink); font-weight: 700; font-size: 14px; }

/* コツ・キー */
.tip-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tip-list li { position: relative; padding-left: 34px; }
.tip-list li::before { content: ''; position: absolute; left: 0; top: .35em; width: 22px; height: 22px; border-radius: 50%; background: var(--tomato) radial-gradient(circle at 35% 35%, #ffd772 0 4px, transparent 4.5px); box-shadow: 0 0 0 3px var(--ink); }
.tip-list b { color: var(--tomato); }
.keys { margin-top: 28px; padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 3px var(--ink); }
.keys h3 { margin: 0 0 10px; font-weight: 700; font-size: 18px; }
.keys dl { margin: 0; display: grid; gap: 8px; }
.keys dl div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; }
.keys dd { margin: 0; font-size: 15px; }
kbd { display: inline-block; min-width: 30px; padding: 0 8px; border-radius: 8px; background: var(--cream); box-shadow: inset 0 0 0 2px var(--ink), 0 3px 0 var(--ink); font: 700 14px/1.9 var(--f-body); text-align: center; }
@media (max-width: 520px) { .keys dl div { grid-template-columns: 1fr; gap: 2px; } }

/* FAQ */
.faq details { border-top: 2px dashed rgb(42 24 16 / .3); padding: 12px 0; }
.faq details:last-of-type { border-bottom: 2px dashed rgb(42 24 16 / .3); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font: 400 24px/1.3 var(--f-disp); color: var(--tomato); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 8px; font-size: 15px; }

/* 最後の誘い */
.cta { text-align: center; padding: 20px 0 30px; }
.cta p { display: inline-block; padding: 8px 22px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 18px; }
.cta .btn-play { display: grid; width: max-content; margin: 22px auto 0; }

footer {
  padding: 18px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left));
  background: var(--ink); color: var(--cream); text-align: center; font-size: 12.5px; font-weight: 500; line-height: 2;
}
footer .sep { margin: 0 .6em; opacity: .55; }

/* 画面に入ったら弾ませる（JS が有効で、動きを減らす設定でないときだけ） */
.io .dish, .io .sheet { opacity: 0; transform: translateY(26px) rotate(-.6deg); transition: opacity .45s ease, transform .55s cubic-bezier(.3, 1.5, .5, 1); }
.io .dish.in, .io .sheet.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero .lg .ch, .hero .lg .rib, .hero .lg .slice { animation: none !important; }
  .btn-play { transition: none; }
}

/* ボス戦 */
.sheet.boss { background: #2b1410; color: #f4e6d4; box-shadow: 0 0 0 4px var(--ink), 10px 12px 0 4px var(--tomato); }
.sheet.boss h2 { color: #fff5e1; }
.sheet.boss .kicker { background: var(--pine); color: var(--ink); }
.bosses { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.bosses li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 16px; background: rgb(255 245 225 / .07); box-shadow: inset 0 0 0 2px rgb(255 245 225 / .25); }
.bosses img { border-radius: 10px; box-shadow: 0 0 0 3px var(--cream); }
.bosses h3 { margin: 0 0 4px; font: 400 28px/1.25 var(--f-disp); color: var(--pine); word-break: keep-all; }
.bosses p { font-size: 14px; line-height: 1.7; }
@media (max-width: 760px) { .bosses { grid-template-columns: 1fr; } }
.sheet.boss .note { background: rgb(255 245 225 / .1); color: #fff5e1; }
.sheet.boss b { background: none; color: var(--pine); }
