/* 雀クエのウェブサイト（LP・みんなの公開牌譜・再生）の共通の見た目。アプリの対局の外の画面と同じ E4 カラーブロック。
   地は生成り＋斜めの細い縞、色の板は橙・青・黄緑、文字は墨。角を斜めに切った板（clip-path）、太いゴシック、数字と英字の小見出しは Barlow Condensed。
   黒の地・金・明朝・緑のフェルト・木目は使わない。危険度の4色は放銃率の数字だけに使う。 */
:root {
  --bg: #f6f4ee; --bg2: #f0eee6; --panel: #ffffff; --shadow: #dedbd0; --chip: #e9e6dc;
  --ink: #121212; --sub: #6a665c; --line: #dedbd0;
  --o: #ff5a1f; --b: #1b3cff; --l: #c8f169;
  --safe: #1f9a55; --warn: #d99a00; --risk: #ff5a1f; --hot: #e3262f;
  --num: "Barlow Condensed", "Arial Narrow", sans-serif;
  --cut: polygon(0 0, 100% 0, 100% 72%, calc(100% - 13px) 100%, 0 100%);
  --cut-lg: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@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: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif; font-weight: 500; font-size: 16px; line-height: 1.85; overflow-x: clip;
  background: var(--bg) repeating-linear-gradient(115deg, transparent 0 28px, rgba(0,0,0,.032) 28px 30px); }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--b); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.num { font-family: var(--num); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ヘッダー（白い帯・下に板の影） */
header { position: sticky; top: 0; z-index: 20; background: var(--panel); box-shadow: 0 3px 0 var(--shadow); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand small { font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: 0; }
header nav { display: flex; align-items: center; gap: 4px; }
header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 900; }
header nav a:hover { color: var(--o); }
header nav a.cta { background: var(--ink); color: var(--l); padding: 0 20px 0 18px; margin-left: 8px; clip-path: var(--cut); }
header nav a.cta:hover { color: #fff; }

/* ボタン（角を斜めに切った板） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; font: 900 16px "Noto Sans JP", sans-serif; text-decoration: none; padding: 0 28px 0 24px; border: 0; cursor: pointer; clip-path: var(--cut); transition: transform .12s ease; position: relative; isolation: isolate; }
.btn:active { transform: scale(.97); }
.btn-store { background: var(--o); color: #fff; }
.btn-store:hover { background: #ff6d38; }
.btn-ink { background: var(--ink); color: var(--l); }
.btn-ghost { background: var(--ink); color: var(--ink); }
.btn-ghost::before { content: ""; position: absolute; inset: 2px; background: var(--panel); z-index: -1; clip-path: polygon(0 0, 100% 0, 100% calc(72% + .6px), calc(100% - 12.2px) 100%, 0 100%); }
.btn-ghost:hover::before { background: var(--bg2); }

/* 見出しと本文 */
h1, h2, h3 { font-weight: 900; margin: 0; letter-spacing: -.01em; word-break: auto-phrase; }
.nb { white-space: nowrap; }
h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.25; text-wrap: balance; }
.lead { max-width: 36em; }
.lab { display: flex; align-items: center; gap: 10px; font-family: var(--num); font-weight: 800; font-size: 15px; letter-spacing: .16em; color: var(--o); margin: 0 0 10px; line-height: 1.2; }
.lab::after { content: ""; flex: 1; max-width: 120px; height: 2px; background: var(--ink); opacity: .12; }
.lab b { font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: 14px; letter-spacing: 0; color: var(--ink); }

/* 公開牌譜の一覧・再生のページ */
.hero { padding-top: 40px; padding-bottom: 32px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.25; margin: 4px 0 10px; }
.hero .lead { color: var(--sub); margin: 0 0 24px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 900; color: var(--ink); background: var(--l); padding: 2px 10px; }

/* 3D の再生（絵の中身はプレイヤーのまま。枠だけ斜めに切った板） */
.stage { position: relative; overflow: hidden; background: #000; clip-path: var(--cut-lg); }
.stage canvas { display: block; width: 100%; height: auto; }
.stage.shorts { max-width: 420px; margin: 0 auto; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18,18,18,.38); cursor: pointer; }
.overlay button { font: 900 18px "Noto Sans JP", sans-serif; color: #fff; background: var(--o); border: 0; min-height: 56px; padding: 0 32px 0 28px; clip-path: var(--cut); cursor: pointer; }
.overlay.hidden { display: none; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; }
.controls > button { position: relative; isolation: isolate; font: 900 14px "Noto Sans JP", sans-serif; color: var(--ink); background: var(--ink); border: 0; min-height: 44px; padding: 0 20px 0 16px; clip-path: var(--cut); cursor: pointer; }
.controls > button::before { content: ""; position: absolute; inset: 2px; background: var(--panel); z-index: -1; clip-path: polygon(0 0, 100% 0, 100% calc(72% + .6px), calc(100% - 12.2px) 100%, 0 100%); }
.controls > button[aria-pressed="true"] { color: var(--l); }
.controls > button[aria-pressed="true"]::before { background: var(--ink); }
.controls > button:active { transform: scale(.97); }
.controls button:disabled { opacity: .45; cursor: default; }
.status { color: var(--sub); font-size: 13px; font-weight: 700; margin-top: 8px; min-height: 1.4em; }

/* 最後の案内 */
.final { text-align: center; }
.final h2 { margin-bottom: 10px; }
.final .store { display: inline-flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 900; font-size: 17px; color: #fff; background: var(--o); padding: 0 30px 0 26px; clip-path: var(--cut); margin-top: 8px; }
.final .note { color: var(--sub); font-size: 14px; margin-top: 14px; }

.yt-link { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; margin-top: 14px; line-height: 1.5; color: var(--ink); font-weight: 700; font-size: 14px; }
.yt-link svg { flex: none; }
footer a.yt-foot { gap: 6px; }
footer { background: var(--bg2); border-top: 3px solid var(--ink); color: var(--sub); padding: 22px 0 40px; font-size: 12px; }
footer .links { display: flex; flex-wrap: wrap; gap: 0 8px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin-left: -8px; margin-right: 10px; color: var(--ink); font-size: 13px; font-weight: 700; }
footer p { margin: 8px 0 0; }

@media (max-width: 640px) {
  header .wrap { height: 60px; }
  header nav a:not(.cta):not(.keep) { display: none; }
  header nav a { padding: 0 8px; font-size: 13px; }
  header nav a.cta { padding: 0 16px 0 14px; margin-left: 2px; }
  .brand { font-size: 20px; }
  .brand small { display: none; }
  .overlay button { font-size: 15px; min-height: 48px; padding: 0 22px 0 18px; }
}
@media (max-width: 360px) {
  .brand img { display: none; }
}
