/* HEY! 公式サイト テーマ
   スゴロックス（オレンジ × 方眼紙 × 文字で見せる）× デニムかるた（白い台の周りに実物を散らす）。
   テンプレート（src/site/render/）が出すクラス名だけを相手にする。動きは CSS の scroll-driven animation、
   ローディングは site.js が html に intro-on / intro-played を付けたときだけ動く */
:root {
  --orange: #EE7700;          /* HEY_Logo.ai の実測値 */
  --cream: #FFF4E3;
  --ink: #2A1B12;
  --shade: rgba(70, 25, 0, 0.14);
  --max: 1200px;
  --gutter: 56px;
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --hand: "Yusei Magic", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --sh: 100vh;
  /* 紙の模様: すごろくの道を点線で斜めに（2026-09-18 に十字から変更） */
  --paper-img: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27200%27%20height=%27200%27%3E%3Cpath%20d=%27M-20%20220%20L220%20-20%27%20fill=%27none%27%20stroke=%27rgba%28255,244,227,0.28%29%27%20stroke-width=%273%27%20stroke-linecap=%27round%27%20stroke-dasharray=%272%2016%27/%3E%3Cpath%20d=%27M-20%20100%20L100%20-20%27%20fill=%27none%27%20stroke=%27rgba%28255,244,227,0.28%29%27%20stroke-width=%273%27%20stroke-linecap=%27round%27%20stroke-dasharray=%272%2016%27/%3E%3Cpath%20d=%27M100%20220%20L220%20100%27%20fill=%27none%27%20stroke=%27rgba%28255,244,227,0.28%29%27%20stroke-width=%273%27%20stroke-linecap=%27round%27%20stroke-dasharray=%272%2016%27/%3E%3C/svg%3E");
  --paper-size: 200px 200px;
  /* 紙のザラつき（濃さは SVG に焼き込み済み。背景の最下層に multiply で重ねる） */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.12 0 0 0 0 0 0 0 0 0.176 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@supports (height: 100svh) { :root { --sh: 100svh; } }
@media (max-width: 720px) { :root { --gutter: 22px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; } /* clip: ヘッダーの地（100vw）がスクロールバーの幅だけはみ出して横スクロールが出ないように。sticky は効いたまま */
body { margin: 0; font-family: var(--font); font-weight: 500; color: var(--cream); background-color: var(--orange); background-image: var(--paper-img), var(--grain); background-size: var(--paper-size), 220px 220px; background-blend-mode: normal, multiply; line-height: 1.8; font-size: 16px; min-width: 320px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 900; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.preview-banner { background: var(--ink); color: var(--cream); text-align: center; font-size: 13px; padding: 6px; }

/* ---- 部品 ---- */
.mono { font-variant-numeric: tabular-nums; letter-spacing: .08em; font-size: 12px; font-weight: 700; }
.hand { font-family: var(--hand); font-weight: 400; }
/* 下に .05em 足して、字の上下の余白を見た目で揃える（フォントの上下の空きが非対称なため） */
.mk { background: var(--cream); color: var(--orange); padding: 0 .18em .05em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sheet { background: var(--cream); color: var(--ink); box-shadow: 0 18px 40px rgba(60, 20, 0, 0.28), 0 2px 0 rgba(60, 20, 0, 0.15); }
.sheet-grid { background-image: linear-gradient(rgba(60, 20, 0, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(60, 20, 0, 0.07) 1px, transparent 1px); background-size: 36px 36px; }
.sheet .mk { background: var(--orange); color: var(--cream); }
.fuda { background: var(--cream); color: var(--ink); box-shadow: 0 8px 18px rgba(60, 20, 0, 0.28); position: relative; }
.fuda::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(42, 27, 18, 0.35); pointer-events: none; }
.kana { position: absolute; top: -12px; left: -12px; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--cream); font-weight: 900; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; z-index: 1; }
.chip { position: absolute; box-shadow: 0 10px 24px rgba(60, 20, 0, 0.35); outline: 3px solid var(--cream); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; background: var(--ink); color: var(--cream); font-weight: 900; font-size: 16px; letter-spacing: .06em; box-shadow: 4px 4px 0 rgba(60, 20, 0, 0.35); border: 0; cursor: pointer; font-family: inherit; line-height: 1.4; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(60, 20, 0, 0.35); }
.btn-cream, .btn-primary { background: var(--cream); color: var(--ink); }
.sheet .btn, .sheet .btn-primary { background: var(--ink); color: var(--cream); }
.sheet .btn-cream { background: var(--orange); color: var(--cream); }
.link { font-weight: 700; border-bottom: 2px solid currentColor; }
.more { margin-top: 22px; font-weight: 700; }
.empty { opacity: .85; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 3px 10px; outline: 1.5px solid currentColor; }
.badge-soon { background: var(--cream); color: var(--orange); outline: 0; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-chips span { outline: 1.5px solid currentColor; padding: 6px 10px; }

/* ---- ヘッダー ---- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 88px; padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; position: relative; z-index: 40; }
/* ふだんはページと一緒に流れる。上へスクロールしたときだけ画面の上に出し（nav-bar）、下へスクロールしたら引っ込める（nav-away）。
   site.js が html に付ける。出ているときも地の色や影は付けない（2026-09-18 toshi の指示） */
html.nav-bar .site-header { position: sticky; top: 0; animation: navIn .25s var(--ease-out); transition: transform .25s var(--ease-out); will-change: transform; }
html.nav-away .site-header { transform: translateY(-100%); }
/* 上へ戻して出たときは、下の文字や札と重ならないように地を敷く（ページと同じ模様。影は付けない）。画面の幅いっぱい */
html.nav-bar .site-header::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; background-color: var(--orange); background-image: var(--paper-img), var(--grain); background-size: var(--paper-size), 220px 220px; background-blend-mode: normal, multiply; }
@keyframes navIn { from { transform: translateY(-100%); } }
.site-brand { display: flex; align-items: center; }
.site-logo { width: 116px; height: 56px; flex-shrink: 0; } /* 四角なし・文字だけ（viewBox が文字の外接） */
@media (max-width: 860px) { .site-logo { width: 104px; height: 50px; } } /* スマホは 9 割（ローディングのロゴは実際の位置と大きさを測って着地するのでそのまま合う） */
.lg-bg { fill: var(--orange); }
.ltr { fill: var(--cream); }
.site-nav ul { display: flex; gap: 30px; align-items: center; }
.site-nav a { font-weight: 700; font-size: 15px; letter-spacing: .06em; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--cream); }
.site-nav a[data-nav="contact"] { outline: 2px solid var(--cream); padding: 8px 14px; border-bottom: 0; }
.site-nav a[data-nav="contact"]:hover { background: var(--cream); color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 3px; background: var(--cream); margin: 6px 0; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); z-index: 30; padding: 10px 0; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .site-nav a { display: block; padding: 14px var(--gutter); border-bottom: 0; }
  .site-nav a[data-nav="contact"] { outline: 0; padding: 14px var(--gutter); }
  .site-nav a[aria-current="page"] { background: rgba(255, 244, 227, 0.12); }
}

/* ---- 本文の枠（トップ以外） ---- */
.site-main { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 64px; }
.page-top .site-main { max-width: none; padding: 0; }
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: 40px; display: inline-block; background: var(--cream); color: var(--orange); padding: 0 .2em; }
.page-lead { margin-top: 12px; font-size: 17px; }
.breadcrumb { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .85; padding: 14px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.section { margin-top: 44px; }
.section-title { font-size: 26px; margin-bottom: 14px; }
.section-title a { color: inherit; }
.h2 { font-size: 34px; letter-spacing: .04em; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }

/* ---- トップ: 各画面 ---- */
.screen { min-height: var(--sh); position: relative; padding: 0 max(var(--gutter), calc(50% - 544px)); }
.hero { display: flex; flex-direction: column; justify-content: center; gap: 24px; min-height: calc(var(--sh) - 88px); padding-bottom: 80px; }
/* 大見出しのマーカーは左右の余白なし＝同じ文字数の行と端が揃う。縦は字の箱の 85%（少し詰める） */
.hero-title .mk { --mk-h: 85%; padding-left: 0; padding-right: 0; background: linear-gradient(var(--cream), var(--cream)) no-repeat 0 50% / 100% var(--mk-h); }
/* 字の大きさは「一番長い行の長さ（--title-em）」で画面幅を割って決める＝どの幅でも 1 行に収まる最大の大きさ */
.hero-title { font-size: min(76px, calc((100vw - 2 * var(--gutter)) / var(--title-em, 10))); line-height: 1.2; letter-spacing: .02em; white-space: nowrap; }
.hero-lead { font-size: 18px; line-height: 1.95; max-width: 560px; }
.hero-lead .phrase { display: inline-block; }
/* 下へスクロールの合図: 細い線の上をマス（駒）が下へ滑り、その下で矢印が弾む。文字は出さない */
.scroll-hint { position: absolute; left: 50%; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-left: -12px; width: 24px; }
.scroll-track { position: relative; display: block; width: 2px; height: 56px; background: rgba(255, 244, 227, 0.35); }
.scroll-dot { position: absolute; left: -4px; top: 0; width: 10px; height: 10px; background: var(--cream); animation: scrollDot 1.8s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(46px); opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
.scroll-chev { width: 24px; height: 14px; overflow: visible; animation: scrollChev 1.8s ease-in-out infinite; }
.scroll-chev path { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes scrollChev { 0%, 55% { transform: translateY(0); } 75% { transform: translateY(6px); } 100% { transform: translateY(0); } }

.about { display: flex; flex-direction: column; justify-content: center; }
.about-inner { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; align-items: center; }
.ln { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.6; font-weight: 700; margin-bottom: 18px; }
.ln.big { font-size: clamp(48px, 7vw, 84px); font-weight: 900; line-height: 1.15; margin-bottom: 6px; letter-spacing: .04em; }
.ln.big + .ln:not(.big) { margin-top: 28px; }
.ln .phrase { display: inline-block; }
.ln .mono { display: block; margin-bottom: 8px; }
/* すごろくの輪: マス 22 個の長方形の輪を駒が 1 マスずつ跳ねて回る。--p はマスの間隔（輪の座標は offset-path と揃える） */
.ring { --p: 56px; --c: 48px; position: relative; width: calc(8 * var(--p)); height: calc(5 * var(--p)); margin: 30px auto; }
.ring .cell { position: absolute; left: calc(var(--x) * var(--p)); top: calc(var(--y) * var(--p)); width: var(--c); height: var(--c); border: 2px solid rgba(255, 244, 227, 0.45); background: rgba(255, 244, 227, 0.2); }
.ring .stop { border-color: var(--cream); border-width: 3px; background: var(--cream); }
.stop-label { position: absolute; white-space: nowrap; font-size: 18px; font-weight: 900; letter-spacing: .06em; color: var(--cream); }
.stop-label.top { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.stop-label.bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.stop-label.left { right: calc(100% + 10px); top: 50%; transform: translateY(-50%); }
.stop-label.right { left: calc(100% + 10px); top: 50%; transform: translateY(-50%); }
/* offset-path は駒の中心を道の点（＝マスの中心）に置くので、margin でずらさない */
.ring .token { position: absolute; left: 0; top: 0; width: 54px; height: 54px; margin: 0; offset-path: path("M24 24 H416 V248 H24 Z"); offset-rotate: 0deg; animation: tokenLap 8.8s steps(22, end) infinite; z-index: 2; }
.ring .token-in { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 5px 0 rgba(42, 27, 18, 0.35)); animation: tokenHop .4s ease-out infinite; }
.ring .token-in path { fill: #00A82A; /* 緑（HEY! の島のかどたさんの駒と同じ色）。縁取りは無し */ }
@keyframes tokenLap { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes tokenHop { 0% { transform: translateY(0); } 35% { transform: translateY(-12px); } 70%, 100% { transform: translateY(0); } }
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .ring { --p: 40px; --c: 34px; margin: 34px 0 10px 4px; }
  .ring .token { width: 40px; height: 40px; margin: 0; offset-path: path("M17 17 H297 V177 H17 Z"); }
  .stop-label { font-size: 14px; }
}
@media (max-width: 380px) {
  /* 小さい画面では輪を一段小さく（横にはみ出さない） */
  .ring { --p: 32px; --c: 26px; margin: 28px 0 8px; }
  .ring .token { width: 32px; height: 32px; offset-path: path("M13 13 H237 V141 H13 Z"); }
  .stop-label { font-size: 12px; }
}

.games-head { display: flex; flex-direction: column; justify-content: center; gap: 22px; overflow: hidden; }
/* 箱絵が流れる帯（クリーム色の台紙付き） */
.bx { margin: 0 calc(-1 * max(var(--gutter), 50% - 544px)); overflow: hidden; }
.bx-row { display: flex; gap: 26px; width: max-content; padding: 26px 13px; animation: bxmove 44s linear infinite; }
@keyframes bxmove { to { transform: translateX(-50%); } }
.bx-card { flex: 0 0 auto; width: 190px; height: 236px; padding: 16px; background: var(--cream); box-shadow: 0 12px 26px rgba(60, 20, 0, 0.3); display: grid; place-items: center; transform: rotate(-1.4deg); }
.bx-card:nth-child(2n) { transform: rotate(1.6deg); }
.bx-card:nth-child(3n) { transform: rotate(-0.5deg); }
.bx-card img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
@media (max-width: 900px) { .bx-row { gap: 16px; padding: 18px 8px; } .bx-card { width: 132px; height: 164px; padding: 11px; } }
/* 一文は折り返さない。狭い画面では文字数から計算して字を小さくする */
.games-lead { font-size: min(22px, calc((100vw - 2 * var(--gutter)) / var(--lead-em, 20))); font-weight: 700; line-height: 1.8; white-space: nowrap; }

.slide { display: flex; align-items: center; background-color: var(--orange); background-image: var(--paper-img), var(--grain); background-size: var(--paper-size), 220px 220px; background-blend-mode: normal, multiply; }

.slide-in { display: grid; grid-template-columns: 160px minmax(0, 1fr) 520px; gap: 32px; align-items: center; width: 100%; padding: 40px 0; }
.slide-no { font-size: 120px; line-height: 1; font-weight: 900; letter-spacing: .04em; opacity: .55; }
.slide-no small { display: block; font-size: 12px; letter-spacing: .12em; margin-top: 10px; }
.slide-title { font-size: clamp(32px, 4vw, 46px); line-height: 1.25; margin: 10px 0 14px; }
.slide-copy { font-size: 20px; line-height: 1.8; margin-bottom: 20px; }
.slide-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
/* 最後の 1 作の下に、大きな「すべてのゲーム」 */
.btn-big { display: flex; align-items: center; gap: 18px; width: 100%; padding: 22px 28px; font-size: 24px; background: var(--cream); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); white-space: nowrap; }
.btn-all-games { grid-column: 2 / -1; margin-top: 8px; }
.btn-big .mono { color: var(--orange); }
.btn-big-label { flex: 1; line-height: 1.2; }
.btn-big-label small { display: inline-block; margin-left: 12px; font-size: 14px; letter-spacing: .08em; padding: 3px 8px; outline: 1.5px solid var(--ink); }
.btn-big-arrow { font-size: 30px; line-height: 1; transition: transform .15s; }
.btn-big:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn-big:hover .btn-big-arrow { transform: translateX(6px); }
@media (max-width: 900px) { .btn-all-games { grid-column: 1; margin-top: 16px; } }
@media (max-width: 600px) { .btn-big { font-size: 19px; padding: 18px 20px; gap: 12px; white-space: normal; } .btn-big .mono { display: none; } .btn-big-label small { margin-left: 8px; } }
.slide-art { display: block; position: relative; height: 560px; color: inherit; }
.slide-art { cursor: pointer; }
.slide-art:focus-visible { outline: 3px solid var(--cream); outline-offset: 8px; }
.slide-art .sheet { position: absolute; left: 40px; top: 40px; width: 440px; height: 470px; padding: 26px; display: flex; flex-direction: column; gap: 14px; transform: rotate(-2deg); overflow: hidden; }
.slide-art .sheet img { flex: 1 1 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; } /* 台紙の空きいっぱいに、上下中央（添え書きがあればその上の空きの中央）。上に寄っていた */
.slide-art .placeholder { flex: 1; background: rgba(238, 119, 0, 0.08); }
.sheet-caption { font-size: 18px; line-height: 1.6; margin-top: auto; flex-shrink: 0; }
.chip-1 { right: -34px; top: -44px; width: 200px; transform: rotate(7deg); }
.chip-2 { left: -14px; bottom: 10px; width: 170px; transform: rotate(-9deg); }
.chip-3 { right: 20px; bottom: -10px; width: 150px; transform: rotate(12deg); }
.slide:nth-child(2n) .slide-art .sheet { transform: rotate(1.5deg); }
.slide:nth-child(2n) .chip-1 { transform: rotate(-6deg); }
@media (max-width: 1100px) { .slide-in { grid-template-columns: 110px minmax(0, 1fr) 420px; } .slide-no { font-size: 84px; } .slide-art { height: 480px; } .slide-art .sheet { width: 360px; height: 400px; left: 20px; } .chip-1 { width: 160px; right: -10px; } .chip-2 { width: 130px; } .chip-3 { width: 120px; } }
@media (max-width: 900px) {
  .slide-in { grid-template-columns: 1fr; gap: 20px; padding: 88px 0 40px; }
  .stack .slide { position: static !important; height: auto !important; overflow: visible !important; }
  .slide-no { font-size: 56px; display: flex; align-items: baseline; gap: 8px; } .slide-no small { margin: 0; }
  .slide-art { height: auto; margin-top: 10px; }
  .slide-art .sheet { position: relative; left: 0; top: 0; width: min(100%, 440px); height: auto; transform: rotate(-1.5deg); }
  .slide-art .sheet img { flex: none; height: auto; max-height: 260px; } /* スマホは台紙の高さが中身なりなので伸ばさない */
  .chip-1 { width: 120px; right: 4px; top: -30px; } .chip-2, .chip-3 { display: none; }
}

.news, .members, .contact-cta { display: flex; flex-direction: column; justify-content: center; min-height: 70vh; padding-top: 90px; padding-bottom: 90px; }
.post-list { max-width: 900px; margin-top: 18px; }
.post-row { display: flex; gap: 22px; align-items: baseline; padding: 20px 0; border-bottom: 2px dotted rgba(255, 244, 227, 0.6); font-weight: 700; font-size: 19px; }
.post-row time { flex-shrink: 0; }
.post-row a:hover { text-decoration: underline; }
@media (max-width: 600px) { .post-row { flex-direction: column; gap: 4px; font-size: 17px; } }

.members-lead { margin-top: 12px; font-size: 18px; }
.mem-field { display: flex; flex-wrap: wrap; gap: 30px 26px; padding: 34px 0 20px; }
.mem { width: 190px; min-height: 100px; padding: 22px 18px 12px; transform: translateY(var(--dy, 0)) rotate(var(--r, 0deg)); }
.mem:nth-child(3n+1) { --r: -4deg; --dy: 0; }
.mem:nth-child(3n+2) { --r: 3deg; --dy: 22px; }
.mem:nth-child(3n) { --r: -1deg; --dy: 8px; }
.mem:nth-child(4n) { --r: 5deg; }
.mem:nth-child(7n) { --r: -6deg; --dy: 16px; }
.mem-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin: -6px 0 8px 22px; outline: 2px solid var(--orange); }
.mem-name { display: block; font-weight: 900; font-size: 18px; }
.mem-role { display: block; color: var(--orange); margin-top: 2px; }
/* スマホ: 190px 固定だと 1 列で右が大きく空くので、2 列に並べて幅いっぱいに使う（写真は左寄せ） */
@media (max-width: 600px) {
  .mem-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .mem { width: auto; padding: 22px 14px 12px; }
  .mem:nth-child(n) { --r: -2.5deg; --dy: 0; }
  .mem:nth-child(2n) { --r: 2deg; --dy: 14px; }
  .mem-photo { margin: -4px 0 8px 0; }
  .mem-name { font-size: 16px; overflow-wrap: anywhere; }
}

.contact-title { font-size: clamp(30px, 4.5vw, 56px); line-height: 1.3; margin: 14px 0 26px; }
.contact-title .phrase { display: inline-block; } /* 「、」の区切りでだけ折り返す（「談、」だけが次の行に落ちないように） */

/* ---- ゲーム一覧 ---- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 26px; margin-top: 30px; }
.game-card a { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px; height: 100%; background: var(--cream); color: var(--ink); box-shadow: 0 8px 18px rgba(60, 20, 0, 0.28); position: relative; transition: transform .15s; transform: rotate(var(--r, -1deg)); }
.game-card a::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(42, 27, 18, 0.35); pointer-events: none; }
.game-card:nth-child(2n) a { --r: 1deg; } .game-card:nth-child(3n) a { --r: -0.6deg; } .game-card:nth-child(4n) a { --r: 1.6deg; }
.game-card a:hover { transform: rotate(0) translateY(-4px); }
.game-card-image { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.game-card-image img { max-height: 100%; width: auto; object-fit: contain; }
.game-card-placeholder { width: 70%; height: 70%; background: rgba(238, 119, 0, 0.1); }
.game-card-title { font-size: 19px; }
.game-card-specs { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--orange); }
.game-card .badge { align-self: flex-start; color: var(--ink); }
.game-card .badge-soon { background: var(--orange); color: var(--cream); }

/* ---- ゲーム詳細 ---- */
.game-hero { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 16px; }
.game-hero-image { position: relative; padding: 30px 20px 40px; }
.game-hero-image::before { content: ""; position: absolute; left: 20px; top: 30px; right: 20px; bottom: 30px; background: var(--cream); background-image: linear-gradient(rgba(60, 20, 0, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(60, 20, 0, 0.07) 1px, transparent 1px); background-size: 36px 36px; box-shadow: 0 18px 40px rgba(60, 20, 0, 0.28); transform: rotate(-2.5deg); }
/* 影は drop-shadow で絵の形に沿わせる（透過 PNG の箱に box-shadow だと透明な四角の周りに影が出て、枠が二重に見えた）。写真のような四角い画像でも見た目は同じ */
.game-hero-image img { position: relative; width: 86%; margin: 0 auto; filter: drop-shadow(0 10px 14px rgba(60, 20, 0, 0.35)); transform: rotate(2deg); }
.hero-placeholder { position: relative; aspect-ratio: 3 / 4; width: 86%; margin: 0 auto; background: rgba(255, 244, 227, 0.2); }
.game-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.game-hero-text > * { max-width: 100%; }
.game-hero-text .spec-list, .game-hero-text .game-actions { align-self: stretch; }
.game-title { font-size: clamp(34px, 4vw, 48px); line-height: 1.25; }
.game-title-en { font-size: 12px; font-weight: 700; letter-spacing: .12em; opacity: .85; }
.game-catch { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.35; font-weight: 900; }
.game-summary { font-size: 16px; line-height: 1.95; max-width: 560px; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 6px 0; padding: 12px; background: var(--cream); color: var(--ink); box-shadow: 0 18px 40px rgba(60, 20, 0, 0.28); transform: rotate(0.8deg); }
.spec { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; outline: 2px solid var(--ink); outline-offset: -2px; }
.spec dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--orange); }
.spec dd { margin: 0; font-weight: 900; font-size: 22px; line-height: 1.2; }
.spec dd .tax { font-size: 12px; font-weight: 700; letter-spacing: .04em; margin-left: 2px; white-space: nowrap; }
.game-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.game-actions .btn { background: var(--ink); color: var(--cream); }
.game-actions .btn-primary { background: var(--cream); color: var(--ink); }
.game-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; margin-top: 90px; }
.game-sections { display: flex; flex-direction: column; gap: 36px; }
.game-section, .game-video, .game-gallery { background: var(--cream); color: var(--ink); background-image: linear-gradient(rgba(60, 20, 0, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(60, 20, 0, 0.07) 1px, transparent 1px); background-size: 36px 36px; box-shadow: 0 18px 40px rgba(60, 20, 0, 0.28); padding: 30px 34px 34px; margin: 0; transform: rotate(-0.6deg); }
.game-sections > :nth-child(2n) { transform: rotate(0.5deg); }
.game-sections .section-title { display: inline-block; background: var(--orange); color: var(--cream); padding: 0 .2em; font-size: 24px; margin-bottom: 16px; }
.video { aspect-ratio: 16 / 9; }
.video iframe { width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery img { cursor: zoom-in; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; outline: 3px solid var(--cream); box-shadow: 0 6px 14px rgba(60, 20, 0, 0.25); }
.lightbox { position: fixed; inset: 0; background: rgba(42, 27, 18, .9); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; }
.game-aside { display: flex; flex-direction: column; gap: 30px; padding-top: 8px; }
.aside-box h2 { font-size: 12px; font-weight: 700; letter-spacing: .12em; margin-bottom: 10px; }
.aside-box + .aside-box { border-top: 2px dotted rgba(255, 244, 227, 0.6); padding-top: 30px; }
.credit-list { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 12px; font-size: 15px; line-height: 1.7; }
.credit-list div { display: contents; }
.credit-list dt { opacity: .8; }
.credit-list dd { margin: 0; font-weight: 700; }
.link-list { display: flex; flex-direction: column; gap: 10px; font-weight: 700; font-size: 15px; }
.link-list a { border-bottom: 2px solid currentColor; align-self: flex-start; }
.game-aside .post-list { margin-top: 0; }
.game-aside .post-row { font-size: 15px; padding: 10px 0; flex-direction: column; gap: 2px; }
@media (max-width: 960px) { .game-hero { grid-template-columns: 1fr; gap: 30px; } .game-hero-image { max-width: 420px; margin: 0 auto; } .game-body { grid-template-columns: 1fr; gap: 44px; margin-top: 60px; } }
@media (max-width: 600px) { .game-section, .game-video, .game-gallery { padding: 22px 20px 26px; } }

/* ---- 本文（Markdown） ---- */
.prose { line-height: 2; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 22px; margin: 30px 0 10px; }
/* SNS のリンクボタン（本文に SNS のリンクだけを並べた段落） */
.prose .sns-cards { list-style: none; padding: 0; margin: 18px 0 30px; display: grid; gap: 16px; max-width: 520px; }
/* サイトの札・大きいボタンと同じ作り: クリーム地・角なし・インクの固い影、少し傾ける。ロゴはオレンジの四角にクリームの 1 色 */
.prose .sns-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; background: var(--cream); color: var(--ink); border: 0; box-shadow: 5px 5px 0 var(--ink); text-decoration: none; transform: rotate(var(--r, -0.6deg)); transition: transform .15s, box-shadow .15s; }
.prose .sns-cards li:nth-child(2n) .sns-card { --r: 0.5deg; }
.prose .sns-cards li:nth-child(3n) .sns-card { --r: -0.3deg; }
.prose .sns-card:hover { transform: translate(-2px, -2px) rotate(0deg); box-shadow: 7px 7px 0 var(--ink); }
.sns-card .sns-icon { width: 44px; height: 44px; flex-shrink: 0; padding: 11px; box-sizing: border-box; background: var(--orange); fill: var(--cream) !important; }
.sns-card-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.sns-card-text b { font-size: 17px; font-weight: 900; letter-spacing: .02em; }
.sns-card-text small { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--orange); overflow-wrap: anywhere; }
.sns-card-go { font-size: 20px; font-weight: 900; }
/* SNS ページ（オレンジの地の上）の見出しは、大見出しと同じマーカー風 */
.sns-page > h2 { display: inline-block; background: var(--cream); color: var(--orange); padding: 0 .3em .05em; font-size: 26px; font-weight: 900; margin: 34px 0 6px; }
.sns-page { margin-top: 30px; }
.sns-page > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose ul { list-style: disc; }
.prose img { margin: 14px 0; box-shadow: 0 6px 14px rgba(60, 20, 0, 0.25); }
.prose a { border-bottom: 2px solid currentColor; }
.prose blockquote { margin: 12px 0; padding: 10px 16px; border-left: 4px solid var(--orange); background: rgba(238, 119, 0, 0.08); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin-bottom: 1em; }
.prose th, .prose td { border: 1px solid rgba(42, 27, 18, 0.35); padding: 6px 10px; }
.prose code { font-size: .9em; }
.prose .video { margin: 16px 0; box-shadow: 0 10px 24px rgba(60, 20, 0, 0.25); }

/* ---- 記事・固定ページ ---- */
.post-list-full { max-width: none; margin-top: 10px; }
.post-list-full .post-row { font-size: 17px; }
/* お知らせ / 雑記 の切り替え（札のボタン。選んでいる方はクリーム地にオレンジ） */
.post-tabs { display: flex; gap: 14px; margin: 26px 0 10px; }
.post-tabs[hidden] { display: none; }
.post-tabs button { font: inherit; font-weight: 900; font-size: 17px; letter-spacing: .04em; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border: 0; background: transparent; color: var(--cream); outline: 2px solid var(--cream); outline-offset: -2px; transition: transform .15s, box-shadow .15s; }
.post-tabs button .mono { font-size: 12px; opacity: .8; }
.post-tabs button[aria-selected="true"] { background: var(--cream); color: var(--orange); outline: 0; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1deg); }
.post-tabs button:not([aria-selected="true"]):hover { background: rgba(255, 244, 227, 0.15); }
.post-panel-title { margin-top: 56px; }
html.post-tabs-on .post-panel-title { display: none; } /* タブで切り替えるときは見出しは要らない */
.post { max-width: 800px; margin-top: 10px; }
.post-head time { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.post-title { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 8px; }
.post-game { font-size: 14px; }
.post-cover { margin: 24px 0 0; }
.post-cover img { box-shadow: 0 10px 24px rgba(60, 20, 0, 0.35); outline: 3px solid var(--cream); }
.post .prose, .about-body { background: var(--cream); color: var(--ink); background-image: linear-gradient(rgba(60, 20, 0, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(60, 20, 0, 0.07) 1px, transparent 1px); background-size: 36px 36px; box-shadow: 0 18px 40px rgba(60, 20, 0, 0.28); padding: 34px 38px; margin-top: 28px; }
@media (max-width: 600px) { .post .prose, .about-body { padding: 22px 20px; } }
.about-body { max-width: 800px; }
/* 冒頭の見出し（「創る」を楽しむ）は大きく太く。旧サイトでは画像だった */
.about-body > h2:first-child { font-size: clamp(34px, 8.5vw, 64px); font-weight: 900; line-height: 1.2; letter-spacing: .02em; margin: 0 0 22px; }
.kiwi-body > h2:first-child, .kiwi-body > p:first-child + h2 { font-size: 22px; letter-spacing: 0; margin: 0 0 10px; } /* キウイ！は冒頭の見出しを大きくしない（「創る」を楽しむ は HEY! TEAM のページだけ） */
/* キウイ！: 冒頭のロゴは影なしで控えめな大きさ。下に予約サイトへの大きいボタン */
.kiwi-body > p:first-child img { box-shadow: none; width: min(100%, 360px); margin: 0 0 6px; }
.kiwi-go { max-width: 800px; margin: 34px 0 0; }
.member-names, .game-names { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; }
.game-names a { border-bottom: 2px solid currentColor; }

/* ---- メンバー ---- */
.member-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 30px; margin-top: 36px; }
.member { padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; transform: rotate(var(--r, -1.4deg)); }
.member:nth-child(2n) { --r: 1.1deg; } .member:nth-child(3n) { --r: -0.7deg; } .member:nth-child(5n) { --r: 1.3deg; }
.member-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--orange); margin: 6px 0 4px; display: flex; align-items: center; justify-content: center; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-meeple { width: 46px; height: 46px; fill: var(--cream); } /* 写真が無い人はトップのすごろくの輪と同じミープル */
.member-name { font-size: 22px; }
.member-role { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--orange); margin-top: -6px; }
.member-intro { font-size: 15px; line-height: 1.8; }
.member-intro p { margin: 0 0 .6em; }
.member-fav { font-size: 14px; line-height: 1.7; margin-top: 4px; }
.member-fav .label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .7; }
.member-sns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.member-sns a { border-bottom: 2px solid currentColor; }
.member-sns a.sns-ico { border-bottom: 0; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--cream); }
/* ロゴはブランド色を持つが（style の fill）、札の上とフッターでは 1 色にそろえる */
.member-sns .sns-icon, .footer-sns .sns-icon { width: 15px; height: 15px; fill: currentColor !important; }

/* ---- お問い合わせ・SNS ---- */
.contact { max-width: 680px; margin-top: 10px; }
.contact-note { font-size: 15px; }
.contact-form { background: var(--cream); color: var(--ink); box-shadow: 0 18px 40px rgba(60, 20, 0, 0.28); padding: 30px 34px 34px; margin-top: 28px; }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.contact-form .field:first-of-type { margin-top: 0; }
.contact-form label { font-weight: 700; font-size: 14px; }
.req { font-size: 11px; color: var(--cream); background: var(--orange); padding: 1px 6px; margin-left: 6px; }
.contact-form input, .contact-form textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.contact-form .actions { margin-top: 22px; }
.contact-error { color: #b00020; font-weight: 700; margin-top: 12px; }
.contact-sent { background: var(--cream); color: var(--ink); padding: 18px 22px; margin-top: 28px; font-weight: 700; box-shadow: 0 18px 40px rgba(60, 20, 0, 0.28); }
.hp { position: absolute; left: -9999px; }
.sns-list { display: flex; flex-direction: column; gap: 14px; font-size: 20px; font-weight: 700; margin-top: 24px; }
.sns-list a { border-bottom: 2px solid currentColor; }
@media (max-width: 600px) { .contact-form { padding: 22px 20px 26px; } }

/* ---- フッター ---- */
.site-footer { margin-top: 60px; }
.page-top .site-footer { margin-top: 0; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 40px; border-top: 2px dotted rgba(255, 244, 227, 0.6); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; font-size: 14px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo-word { font-weight: 900; font-size: 18px; letter-spacing: .08em; }
.footer-tagline { margin-top: 6px; opacity: .9; }
.footer-sns { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 700; }
.footer-sns { gap: 10px; align-items: center; } /* 8 個がスマホでも 1 列に並ぶ間隔 */
.footer-sns a.sns-ico { display: inline-flex; padding: 4px; }
.footer-sns a.sns-ico .sns-icon { width: 22px; height: 22px; }
.footer-sns a.sns-ico:hover { opacity: .7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; font-weight: 700; grid-column: 1 / -1; }
.copyright { grid-column: 1 / -1; opacity: .8; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---- ローディング（site.js が html に intro-on を付けたときだけ） ----
   札の山が出てくる → 切る → 4 枚を配る → 残った 1 枚をめくるとロゴ → 幕が上がってロゴが左上のヘッダーへ縮む
   --card-size は札の大きさの基準、--intro-size はロゴ（札より少し小さく） */
.intro-root[hidden] { display: none; }
.intro-root { position: fixed; inset: 0; z-index: 50; --card-size: min(300px, 60vw); --intro-size: calc(var(--card-size) * 0.8); }
/* ロゴの文字の中心（svg の 50.4% の高さ）。札もここを中心に置く */
.intro-root { --mid-y: calc(50% - var(--card-size) * 0.216); }
.intro { position: absolute; inset: 0; background-color: var(--orange); background-image: var(--paper-img), var(--grain); background-size: var(--paper-size), 220px 220px; background-blend-mode: normal, multiply; animation: introOut .75s cubic-bezier(.7, 0, .2, 1) 2.75s both; }
@keyframes introOut { to { transform: translateY(-100%); } }
.intro-logo { position: absolute; left: calc(50% - var(--intro-size) / 2); top: calc(var(--mid-y) - var(--intro-size) * 0.504); width: var(--intro-size); height: var(--intro-size); }
@keyframes logoAway { to { left: var(--logo-x, 24px); top: var(--logo-y, 22px); width: var(--logo-w, 116px); height: var(--logo-w, 116px); } }
/* ローディングは文字だけを札の上に置く（ヘッダーも文字だけなので四角は出さない） */
.intro-logo .lg-bg { fill-opacity: 0; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.karuta { position: absolute; inset: 0; perspective: 1400px; --cw: calc(var(--card-size) * 0.92); --ch: calc(var(--cw) * 88 / 63); }
.kc { position: absolute; left: calc(50% - var(--cw) / 2); top: calc(var(--mid-y) - var(--ch) / 2); width: var(--cw); height: var(--ch); transform-style: preserve-3d; animation: kDeck 1.62s both; }
/* 角の丸みはトランプ（63×88mm・角 R3.5mm ≒ 幅の 5.6%）よりひと回り大きめに、幅に比例させる */
.kc-back, .kc-front { position: absolute; inset: 0; border-radius: calc(var(--cw) * 0.085); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 22px rgba(60, 20, 0, 0.3); }
.kc-back { background: var(--ink); background-image: radial-gradient(circle, rgba(238, 119, 0, .85) 0 3px, transparent 3.5px); background-size: 22px 22px; border: 10px solid var(--ink); outline: 3px solid var(--cream); outline-offset: -8px; }
.kc-front { background: var(--orange); transform: rotateY(180deg); border: 3px solid var(--cream); outline: 2px solid var(--cream); outline-offset: -12px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12%; color: var(--cream); }
.kc-front .mono { font-size: 11px; letter-spacing: .2em; opacity: .85; }
/* 山の中での少しのずれ（--r0）、切るときの向き（--sx）、配る先（--dx, --dy, --rot） */
.kc.k1 { --r0: -3deg; --sx: -1; --dx: calc(var(--cw) * -0.95); --dy: calc(var(--ch) * -0.5); --rot: -16deg; }
.kc.k2 { --r0: 4deg; --sx: 1; --dx: calc(var(--cw) * 0.97); --dy: calc(var(--ch) * -0.42); --rot: 13deg; }
.kc.k3 { --r0: -1deg; --sx: -1; --dx: calc(var(--cw) * -0.9); --dy: calc(var(--ch) * 0.55); --rot: 9deg; }
.kc.k4 { --r0: 2deg; --sx: 1; --dx: calc(var(--cw) * 0.92); --dy: calc(var(--ch) * 0.6); --rot: -11deg; }
@keyframes kDeck {
  0% { transform: translateY(90vh) scale(.5) rotate(var(--r0)); animation-timing-function: var(--ease-out); }
  28% { transform: translateY(0) scale(.5) rotate(var(--r0)); animation-timing-function: ease-in-out; }
  40% { transform: translateX(calc(var(--sx) * 38%)) scale(.5) rotate(calc(var(--r0) * 3)); animation-timing-function: ease-in-out; }
  52% { transform: translateX(0) scale(.5) rotate(var(--r0)); animation-timing-function: ease-in-out; }
  64% { transform: translateX(calc(var(--sx) * -38%)) scale(.5) rotate(calc(var(--r0) * -3)); animation-timing-function: ease-in-out; }
  76% { transform: translateX(0) scale(.5) rotate(var(--r0)); animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  100% { transform: translate(var(--dx), var(--dy)) scale(.5) rotate(var(--rot)); }
}
/* 最後の 1 枚（一番上）: 山のまま → 持ち上がって大きくなりながら裏返る */
.kc.k0 { z-index: 2; --r0: 0deg; --sx: 0; animation: kPick 2.15s both; }
@keyframes kPick {
  0% { transform: translateY(90vh) scale(.5); animation-timing-function: var(--ease-out); }
  21% { transform: translateY(0) scale(.5); }
  71% { transform: translateY(0) scale(.5); animation-timing-function: ease-out; }
  80% { transform: translateY(-6%) scale(.58) rotateY(0); animation-timing-function: ease-in-out; }
  96% { transform: translateY(0) scale(1.04) rotateY(180deg); }
  100% { transform: translateY(0) scale(1) rotateY(180deg); }
}
.intro-logo { animation: kLogo .45s cubic-bezier(.2, .9, .25, 1.35) 1.95s both, logoAway .75s cubic-bezier(.7, 0, .2, 1) 2.75s both; }
@keyframes kLogo { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
html.intro-on { overflow: hidden; }
html.intro-on .site-logo { visibility: hidden; }
html.intro-on .site-header { position: relative; }
/* ローディングの後にヒーローが順に現れる（ローディングを見せた回だけ） */
html.intro-played .after { animation: rise .6s var(--ease-out) 3.15s both; }
html.intro-played .after.a2 { animation-delay: 3.3s; }
html.intro-played .after.a3 { animation-delay: 3.5s; }
/* ナビのふわっと表示は PC だけ。スマホのメニューは開くたびに display が変わりアニメが 3.3 秒待ちで再生されてしまう */
@media (min-width: 861px) { html.intro-played .site-nav { animation: fade .35s 3.3s both; } }
html.intro-played .hero-title .mk { background-size: 0% var(--mk-h, 100%); animation: markIn .45s var(--ease-out) 3.7s both; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes markIn { to { background-size: 100% var(--mk-h, 100%); } }

/* ---- スクロールで順に現れる（対応ブラウザだけ。非対応は最初から表示） ---- */
@supports (animation-timeline: scroll(root)) {
  /* 背景の模様だけ、本文よりゆっくり動かす（奥行き） */
  body { animation: bgDrift linear both; animation-timeline: scroll(root); }
  @keyframes bgDrift { to { background-position-y: -60vh; } }
}
@supports (animation-timeline: view()) {
  .page-top .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 20% entry 60%; }
  .page-top .rv.d1 { animation-range: entry 30% entry 70%; }
  .page-top .rv.d2 { animation-range: entry 40% entry 80%; }
  .page-top .rv.d3 { animation-range: entry 50% entry 90%; }
  .page-top .mem.rv { animation-name: dropIn; }
  .page-top .mem.rv:nth-child(3n+2) { animation-range: entry 30% entry 70%; }
  .page-top .mem.rv:nth-child(3n) { animation-range: entry 40% entry 80%; }
  /* HEY! とは: 3.4 画面分のスクロールの間、画面に留まって 1 行ずつ */
  .about-wrap { height: 340vh; view-timeline-name: --about; }
  .about { position: sticky; top: 0; height: var(--sh); min-height: 0; }
  .ln { animation: rise linear both; animation-timeline: --about; }
  .ln.l1 { animation-range: contain 2% contain 12%; }
  .ln.l2 { animation-range: contain 20% contain 30%; }
  .ln.l3 { animation-range: contain 38% contain 48%; }
  .ln.l4 { animation-range: contain 56% contain 66%; }
  .ln.l5 { animation-range: contain 66% contain 72%; }
  .ln.l6 { animation-range: contain 72% contain 78%; }
  /* 輪: 文が 1 行出るたびに次の止まり木が灯る。最後の文でマス全体が灯る（非対応ブラウザは最初から灯った形） */
  .ring .stop { animation: stopOn linear both; animation-timeline: --about; }
  .ring .stop.s1 { animation-range: contain 6% contain 12%; }
  .ring .stop.s2 { animation-range: contain 24% contain 30%; }
  .ring .stop.s3 { animation-range: contain 42% contain 48%; }
  .ring .stop.s4 { animation-range: contain 60% contain 66%; }
  .ring .cell:not(.stop) { animation: cellsOn linear both; animation-timeline: --about; animation-range: contain 58% contain 68%; }
  /* ゲーム: 1 作ずつ。次の 1 枚が前の 1 枚に重なって上がってくる */
  .stack .slide { position: sticky; top: 0; height: var(--sh); min-height: 0; overflow: hidden; }
}
@keyframes stopOn { from { background: transparent; border-color: rgba(255, 244, 227, 0.45); transform: scale(.8); } to { background: var(--cream); border-color: var(--cream); transform: scale(1); } }
@keyframes cellsOn { from { background: transparent; } to { background: rgba(255, 244, 227, 0.2); } }
@keyframes dropIn { from { transform: translateY(-40px) rotate(var(--r, 0deg)); opacity: 0; } to { transform: translateY(var(--dy, 0)) rotate(var(--r, 0deg)); opacity: 1; } }
@media (max-height: 640px) { .stack .slide { position: static; height: auto; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .bx-row, .rv, .ln, .ring .cell, .ring .token, .ring .token-in, .scroll-dot, .scroll-chev, .after, .site-nav, .hero-title .mk { animation: none !important; }
  .about-wrap { height: auto; } .about { position: static; height: auto; }
  .stack .slide { position: static; height: auto; }
}
