/* =========================================================
   3D 広場を使わない普通のページ（ゲーム一覧・ゲーム紹介・自己紹介・お問い合わせ・サイトのこと・404）
   白と黒だけで、余白と大きな文字と細い線で組む。
   動きは文字が下から現れる、スクロールで浮かぶ、画像が色づく、ページ移動で画像がつながる、
   見出しの裏の紙に広がる波紋、見出しの下に引かれる細線、情報欄の数字のカウントアップ（artful.ts）など。
   広場（トップ）と試作ページは site.css。
   ========================================================= */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --soft: #f4f4f4;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

/* ---------- base ---------- */

/* 流れるタイトルなどが画面の外へはみ出しても、横にスクロールしないように（body の overflow は画面全体に回されて効かないので main で切る。clip なので sticky は効いたまま） */
main {
  overflow-x: clip;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* 中国語と韓国語は、日本語の字形にならないよう各言語の文字を先に使う */
:lang(zh-Hans) body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

:lang(zh-Hant) body {
  font-family: Inter, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}

:lang(ko) body {
  font-family: Inter, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  word-break: keep-all;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--fg);
  color: var(--bg);
  translate: 0 -200%;
}

.skip-link:focus {
  translate: 0;
}

.s-wrap {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.s-arrow {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate 0.4s var(--ease), rotate 0.4s var(--ease);
}

/* ---------- ヘッダー ---------- */

/* 読んだ量を示す、いちばん上の細い線 */
.s-progress {
  display: none;
}

@supports (animation-timeline: scroll()) {
  .s-progress {
    display: block;
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    height: 2px;
    background: var(--fg);
    transform-origin: 0 50%;
    animation: s-progress linear both;
    animation-timeline: scroll(root);
  }
}

.s-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

/* 一番上にいるあいだは線を消し、スクロールすると現れる */
@supports (animation-timeline: scroll()) {
  .s-header {
    animation: s-header-line linear both;
    animation-timeline: scroll(root);
    animation-range: 0 120px;
  }
}

.s-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: var(--header-h);
}

.s-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.s-logo__mark {
  width: 11px;
  height: 11px;
  background: var(--fg);
  animation: s-mark-in 1s var(--ease) both;
  transition: rotate 0.6s var(--ease), border-radius 0.6s var(--ease);
}

.s-logo:hover .s-logo__mark {
  rotate: 135deg;
  border-radius: 50%;
}

.s-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  margin-left: auto;
}

.s-nav__link {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
}

.s-nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  scale: 0 1;
  transform-origin: 100% 50%;
  transition: scale 0.45s var(--ease);
}

.s-nav__link:hover,
.s-nav__link[aria-current] {
  color: var(--fg);
}

.s-nav__link:hover::after,
.s-nav__link[aria-current]::after {
  scale: 1 1;
  transform-origin: 0 50%;
}

.s-header__end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.s-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
}

.s-pill:hover {
  background: var(--fg);
  color: var(--bg);
}

.s-pill:hover .s-arrow {
  translate: 3px 0;
}

/* 言語の切り替え */
.lang-switch {
  position: relative;
}

.lang-switch summary {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  transition: color 0.3s;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch[open] summary,
.lang-switch summary:hover {
  color: var(--fg);
}

.lang-switch__list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--fg);
  background: var(--bg);
  list-style: none;
  animation: s-drop 0.3s var(--ease) both;
}

.lang-switch__list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch__list a:hover,
.lang-switch__list a:focus-visible {
  background: var(--fg);
  color: var(--bg);
}

.lang-switch__list a[aria-current] {
  font-weight: 700;
}

.lang-switch__list a[aria-current]::after {
  content: " ●";
  font-size: 0.6em;
  vertical-align: middle;
}

/* ---------- ページの見出し ---------- */

.s-page {
  padding-bottom: 8px;
}

.s-hero {
  padding-block: clamp(56px, 10vw, 136px) clamp(40px, 6vw, 80px);
}

.s-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-bottom: clamp(20px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.s-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--fg);
  transform-origin: 0 50%;
  animation: s-line-in 0.9s var(--ease) 0.1s both;
}

.s-eyebrow span {
  animation: s-fade-up 0.8s var(--ease) 0.2s both;
}

.s-hero__title {
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

:lang(ja) .s-hero__title,
:lang(zh-Hans) .s-hero__title,
:lang(zh-Hant) .s-hero__title,
:lang(ko) .s-hero__title {
  letter-spacing: -0.02em;
}

.s-game .s-hero__title,
.s-page .s-hero__title.is-long {
  font-size: clamp(2.2rem, 6.4vw, 5.5rem);
}

/* 見出しと、右側の小さな情報欄 */
.s-hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}

@media (min-width: 900px) {
  .s-hero--facts .s-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
    align-items: end;
  }
}

/* 見出しの下に、左から引かれる細線 */
.s-hero__rule {
  display: block;
  height: 1px;
  margin-top: clamp(20px, 3vw, 32px);
  background: var(--fg);
  transform-origin: 0 50%;
  animation: s-line-in 1.4s var(--ease-in-out) 0.5s both;
}

.s-hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0 24px;
  margin: 0;
}

@media (min-width: 900px) {
  .s-hero__facts {
    grid-template-columns: 1fr;
  }
}

.s-hero__facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  animation: s-fade-up 0.8s var(--ease) both;
}

.s-hero__facts > div:nth-child(1) { animation-delay: 0.6s; }
.s-hero__facts > div:nth-child(2) { animation-delay: 0.7s; }
.s-hero__facts > div:nth-child(3) { animation-delay: 0.8s; }
.s-hero__facts > div:nth-child(4) { animation-delay: 0.9s; }

.s-hero__facts > div:last-child {
  border-bottom: 1px solid var(--line);
}

.s-hero__facts dt,
.s-hero__facts dd {
  white-space: nowrap;
}

/* スマホでは2列に並べ、ラベルの下に値を置く */
@media (max-width: 899px) {
  .s-hero__facts > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .s-hero__facts > div:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--line);
  }
}

.s-hero__facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.s-hero__facts dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.s-hero__lead {
  max-width: 40em;
  margin-top: clamp(20px, 3vw, 32px);
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.85;
  animation: s-fade-up 0.9s var(--ease) 0.45s both;
}

.s-hero__lead + .s-hero__lead {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* 1文字ずつ、下から現れる（splitText の span） */
.split__word {
  display: inline-block;
  overflow: clip;
  padding-block: 0.04em 0.12em;
  margin-block: -0.04em -0.12em;
  white-space: nowrap;
  vertical-align: top;
}

.split__word > span {
  display: inline-block;
  white-space: pre;
  animation: s-rise 1s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms + 120ms);
}

/* ---------- 流れるタイトル ---------- */

.s-marquee {
  overflow: hidden;
  background: var(--fg);
  color: var(--bg);
  padding-block: clamp(8px, 1.2vw, 12px);
  animation: s-fade 1s var(--ease) 0.6s both;
}

.s-marquee__track {
  display: flex;
  width: max-content;
  animation: s-marquee 42s linear infinite;
}

.s-marquee__row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  padding-right: clamp(14px, 2vw, 24px);
  white-space: nowrap;
}

.s-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.25s;
}

.s-marquee__item:hover {
  background: rgb(255 255 255 / 0.14);
}

.s-marquee__no {
  color: #8a8a8a;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.s-marquee__img {
  width: 44px;
  height: 24px;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 4px;
}

.s-marquee__emoji {
  font-size: 1rem;
  line-height: 1;
}

.s-marquee__name {
  color: #ffffff;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.s-marquee__tag {
  padding: 2px 8px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 999px;
  color: #cfcfcf;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
}

.s-marquee__dot {
  color: #555555;
  font-size: 0.7rem;
  animation: s-spin 8s linear infinite;
}

/* ---------- ゲームのカード ---------- */

.s-grid {
  display: grid;
  gap: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 56px);
  margin: clamp(56px, 8vw, 104px) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .s-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 右の列を少し下げて、互い違いに並べる（行の高さは変えずに、見た目だけずらす） */
  .s-grid {
    padding-bottom: clamp(48px, 7vw, 104px);
  }

  .s-grid > li:nth-child(even) {
    translate: 0 clamp(48px, 7vw, 104px);
  }
}

.s-card__link {
  display: grid;
  gap: 0;
  text-decoration: none;
}

.s-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  background: var(--soft);
}

.s-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.1s var(--ease);
}

.s-thumb__emoji {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: clamp(3rem, 8vw, 5rem);
}

/* 触ると少し寄る */
a.s-card__link:hover .s-thumb img,
a.s-card__link:focus-visible .s-thumb img {
  scale: 1.045;
}

.s-card__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.5s;
}

a.s-card__link:hover .s-card__meta {
  border-top-color: var(--fg);
}

.s-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.s-card__title .s-arrow {
  translate: -6px 0;
  opacity: 0;
  transition: translate 0.45s var(--ease), opacity 0.3s;
}

a.s-card__link:hover .s-card__title .s-arrow,
a.s-card__link:focus-visible .s-card__title .s-arrow {
  translate: 0 0;
  opacity: 1;
}

.s-card__desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.s-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.s-badge {
  padding: 2px 10px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.s-badge--solid {
  background: var(--fg);
  color: var(--bg);
}

.s-card--soon .s-thumb img {
  filter: brightness(0.9);
}

/* ---------- 見出し・本文 ---------- */

.s-section {
  margin-top: clamp(72px, 10vw, 128px);
}

.s-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
  padding-top: 18px;
  border-top: 1px solid var(--fg);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.s-heading__no {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.s-subheading {
  margin-bottom: 20px;
  font-size: 1.15rem;
  font-weight: 700;
}

.s-prose {
  max-width: 44em;
  font-size: 1.0625rem;
  line-height: 1.95;
}

.s-prose p + p {
  margin-top: 1.1em;
}

.s-prose a,
.s-link,
.form-note a,
.s-list a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}

.s-prose a:hover,
.s-link:hover,
.form-note a:hover,
.s-list a:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

.s-note {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.s-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.s-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.s-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.s-chips li {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.s-chips li:hover {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

/* 大きな行のリンク（自己紹介のリンク、連絡先） */
.s-rows {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.s-rows a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: padding 0.5s var(--ease), border-color 0.5s;
}

.s-rows a:hover {
  padding-left: 14px;
  border-bottom-color: var(--fg);
}

.s-rows a:hover .s-arrow {
  rotate: 45deg;
}

.s-row__main {
  display: grid;
  gap: 6px;
}

.s-row__note {
  margin-top: 2px;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

.s-row__url {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.s-rows a > .s-arrow:only-of-type:first-child {
  margin-left: auto;
}

/* ---------- ボタン ---------- */

.s-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  padding: 15px 28px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.45s var(--ease);
}

/* 下から白が満ちて、文字が反転する */
.s-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  border-radius: inherit;
  scale: 1 0;
  transform-origin: 50% 100%;
  transition: scale 0.5s var(--ease);
}

.s-btn:hover {
  color: var(--fg);
}

.s-btn:hover::before {
  scale: 1 1;
}

.s-btn:hover .s-arrow {
  translate: 4px 0;
}

.s-btn--ghost {
  background: transparent;
  color: var(--fg);
}

.s-btn--ghost::before {
  background: var(--fg);
}

.s-btn--ghost:hover {
  color: var(--bg);
}

.s-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.s-btn:disabled::before {
  display: none;
}

.s-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- 自己紹介 ---------- */

.s-about {
  display: grid;
  gap: 32px clamp(32px, 6vw, 96px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--fg);
}

@media (min-width: 860px) {
  .s-about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

.s-about__name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.s-about__role {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.s-about__first {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -0.005em;
}

.s-likes {
  margin: 0;
}

.s-likes__row {
  display: grid;
  gap: 10px clamp(24px, 4vw, 56px);
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}

.s-likes__row:first-child {
  padding-top: 0;
}

@media (min-width: 760px) {
  .s-likes__row {
    grid-template-columns: 220px 1fr;
  }
}

.s-likes__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.s-likes__label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--fg);
  flex: none;
}

.s-likes__body {
  display: grid;
  gap: 10px;
  margin: 0;
}

.s-likes__note {
  color: var(--muted);
  font-size: 0.86rem;
}

.s-likes .s-chips li {
  background: var(--soft);
  border-color: #dcdcdc;
  font-weight: 500;
}

/* ---------- ゲーム紹介 ---------- */

.s-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

.s-crumbs a {
  text-decoration: none;
}

.s-crumbs a:hover {
  color: var(--fg);
}

.s-game .s-hero {
  padding-top: clamp(40px, 7vw, 96px);
}

/* 大きな画像：上から幕が開くように現れ、白黒から色づく */
.s-game__media .s-thumb {
  animation: s-unveil 1.3s var(--ease-in-out) 0.35s both;
}

.s-game__media .s-thumb img {
}

.s-game__body {
  display: grid;
  gap: 48px clamp(40px, 6vw, 96px);
  margin-top: clamp(48px, 7vw, 96px);
}

/* スマホでは「あそぶ」を先に出す */
@media (max-width: 919px) {
  .s-game__side {
    order: -1;
  }
}

@media (min-width: 920px) {
  .s-game__body {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .s-game__side {
    order: 2;
  }

  .s-panel {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .s-game__main > .s-section:first-child {
    margin-top: 0;
  }
}

.s-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--fg);
}

.s-btn--play {
  justify-content: space-between;
  width: 100%;
  padding-block: 18px;
  font-size: 1.05rem;
}

.s-facts {
  margin: 8px 0 0;
}

.s-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.s-facts dt {
  color: var(--muted);
}

.s-facts dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.s-panel .s-chips li {
  padding: 3px 12px;
  font-size: 0.78rem;
}

.s-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.s-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.8;
  counter-increment: step;
}

.s-steps li:first-child {
  padding-top: 0;
}

.s-steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 2.1;
}

/* 共有ボタン（share.ts） */
.share {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.share__label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.share__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.share__list li:has(> [hidden]) {
  display: none;
}

.share__btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.share__btn:hover {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.s-back {
  margin-top: clamp(64px, 9vw, 112px);
  font-size: 0.95rem;
}

/* ---------- お問い合わせ ---------- */

.s-contact {
  display: grid;
  gap: 56px clamp(40px, 7vw, 112px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--fg);
}

@media (min-width: 920px) {
  .s-contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: start;
  }

  .s-contact__notes {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.s-contact__notes .s-prose {
  font-size: 0.95rem;
  color: var(--muted);
}

.s-contact__notes .s-subheading + .s-rows,
.s-contact__notes .s-prose + .s-subheading {
  margin-top: 32px;
}

.contact-form {
  display: grid;
  gap: 28px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field small {
  margin-left: 0.5em;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #c9c9c9;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  line-height: 1.6;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field select {
  appearance: none;
  padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 2px center / 18px no-repeat;
  cursor: pointer;
}

.field textarea {
  padding: 12px 14px;
  border: 1px solid #c9c9c9;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 1px 0 var(--fg);
}

.field textarea:focus-visible {
  box-shadow: 0 0 0 1px var(--fg);
}

/* 機械よけの欄。人には見えず、読み上げもされない */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  min-height: 65px;
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.contact-form .s-btn {
  justify-self: start;
}

/* 送信中と結果のモーダル（contact.ts） */
.send-dialog {
  margin: auto;
  width: min(380px, calc(100vw - 32px));
  padding: 32px 28px;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  text-align: center;
}

.send-dialog:focus {
  outline: none;
}

.send-dialog::backdrop {
  background: rgb(255 255 255 / 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.send-dialog[open] {
  animation: s-pop 0.4s var(--ease) both;
}

.send-dialog__text {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.send-dialog .s-btn {
  margin-top: 20px;
}

.send-dialog__spinner {
  display: none;
  width: 32px;
  height: 32px;
  margin: 0 auto 18px;
  border: 1.5px solid var(--line);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: s-spin 0.8s linear infinite;
}

.send-dialog[data-state="busy"] .send-dialog__spinner {
  display: block;
}

/* ---------- サイトのこと ---------- */

.s-doc {
  display: grid;
  gap: 40px clamp(40px, 7vw, 112px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--fg);
}

@media (min-width: 920px) {
  .s-doc {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
  }

  .s-toc {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.s-toc__title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.s-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.s-toc li {
  counter-increment: toc;
}

.s-toc a {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s, padding 0.4s var(--ease);
}

.s-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  line-height: 1.95;
}

.s-toc a:hover {
  padding-left: 6px;
  color: var(--fg);
}

.s-doc__body {
  max-width: 46em;
  font-size: 1rem;
}

.s-doc__section + .s-doc__section {
  margin-top: 64px;
}

.s-doc__section h2 {
  margin-bottom: 20px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.s-doc__section h3 {
  margin: 2em 0 0.6em;
  font-size: 1.05rem;
  font-weight: 700;
}

.s-doc__section p + p,
.s-doc__section p + ul,
.s-doc__section ul + p {
  margin-top: 1em;
}

.s-doc__section ul:not([class]) {
  margin: 0;
  padding-left: 1.2em;
}

.s-doc__section strong {
  font-weight: 700;
}

.s-doc__body > .s-note {
  margin-top: 64px;
}

/* ---------- 404 のミニゲーム ---------- */

.cut-game {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fg);
  background-color: #fafafa;
  background-image:
    linear-gradient(#ececec 1px, transparent 1px),
    linear-gradient(90deg, #ececec 1px, transparent 1px);
  background-size: 40px 40px;
}

.cut-game__canvas {
  display: block;
  width: 100%;
  height: clamp(320px, 50vw, 460px);
  touch-action: none;
  cursor: crosshair;
}

.cut-game__status {
  position: absolute;
  inset: auto 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  pointer-events: none;
}

/* ---------- フッター ---------- */

.s-footer {
  margin-top: clamp(112px, 14vw, 192px);
  padding: clamp(48px, 6vw, 80px) 0 28px;
  border-top: 1px solid var(--fg);
}

.s-footer__top {
  display: grid;
  gap: 32px 64px;
}

@media (min-width: 760px) {
  .s-footer__top {
    grid-template-columns: 1fr auto;
  }
}

.s-footer__lead {
  max-width: 22em;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
}

.s-footer__links {
  display: grid;
  gap: 8px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

@media (min-width: 560px) {
  .s-footer__links {
    grid-template-columns: auto auto;
  }
}

.s-footer__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.s-footer__links a:hover {
  color: var(--fg);
}

/* 画面いっぱいの大きなロゴ */
.s-footer .s-wrap {
  container-type: inline-size;
}

/* 幅いっぱいに収まる大きさ（コンテナの幅に合わせる） */
.s-footer__mark {
  margin: clamp(48px, 7vw, 96px) 0 clamp(16px, 2.4vw, 32px);
  font-size: 16.9cqi;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.s-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.s-footer__tool {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.s-footer__tool:hover {
  border-color: var(--fg);
  color: var(--fg);
}

/* ---------- 実績・トースト・紙吹雪（achievements.ts・konami.ts） ---------- */

.achievement-dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 32px 28px 28px;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
}

.achievement-dialog[open] {
  animation: s-pop 0.4s var(--ease) both;
}

.achievement-dialog::backdrop {
  background: rgb(255 255 255 / 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.achievement-dialog h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.achievement-dialog .hand {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.achievement-dialog .btn {
  padding: 10px 22px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.achievement-dialog .btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.achievement-list {
  display: grid;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.achievement-list li {
  display: grid;
  position: relative;
  padding: 10px 0 10px 1.8em;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.achievement-list li::before {
  content: "○";
  position: absolute;
  left: 0;
}

.achievement-list li.is-done {
  color: var(--fg);
}

.achievement-list li.is-done::before {
  content: "●";
}

.achievement-list span {
  font-size: 0.82rem;
}

.toasts {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  gap: 10px;
  justify-items: end;
  pointer-events: none;
}

.toast {
  width: 260px;
  padding: 16px 18px;
  background: var(--fg);
  color: var(--bg);
  animation: s-toast-in 0.6s var(--ease) both;
}

.toast.is-leaving {
  animation: s-toast-out 0.45s ease-in both;
}

.toast p {
  line-height: 1.5;
}

.toast__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

.toast__title {
  margin-top: 2px;
  font-size: 1.05rem;
  font-weight: 700;
}

.toast__hint {
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.7;
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -24px;
  left: var(--x);
  width: var(--w);
  height: calc(var(--w) * 0.6);
  background: var(--color);
  animation: s-confetti var(--duration) var(--delay) linear forwards;
}

/* 隠しコマンド中：画像がぷるぷるする */
.is-wobbly .s-thumb {
  animation: s-wobble 0.22s ease-in-out infinite alternate;
}

/* ---------- スマホ ---------- */

@media (max-width: 720px) {
  :root {
    --header-h: 88px;
  }

  .s-header__inner {
    flex-wrap: wrap;
    row-gap: 0;
    min-height: 0;
    padding-top: 10px;
  }

  .s-header__end {
    margin-left: auto;
  }

  .s-nav {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 6px 0 9px;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .s-nav::-webkit-scrollbar {
    display: none;
  }

  .s-crumbs {
    padding-top: 16px;
  }

  .s-hero,
  .s-game .s-hero {
    padding-block: 24px 20px;
  }

  .s-eyebrow {
    margin-bottom: 12px;
  }

  .s-hero__title {
    font-size: clamp(2rem, 8.2vw, 2.8rem);
  }

  .s-game .s-hero__title,
  .s-page .s-hero__title.is-long {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }

  .s-hero__grid {
    gap: 18px;
  }

  .s-hero__rule {
    margin-top: 14px;
  }

  .s-hero__lead {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .s-hero__facts > div {
    flex-direction: row;
    align-items: baseline;
    padding: 8px 0;
  }

  .s-marquee {
    padding-block: 7px;
  }

  .s-marquee__row {
    gap: 12px;
    padding-right: 12px;
  }

  .s-marquee__img {
    width: 38px;
    height: 21px;
  }

  .s-marquee__name {
    font-size: 0.9rem;
  }

  .s-grid {
    gap: 36px;
    margin-top: 28px;
  }

  .s-card__meta {
    margin-top: 12px;
    padding-top: 10px;
  }

  .s-card__title {
    margin-top: 6px;
    font-size: 1.2rem;
  }

  .s-card__desc {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .s-card__badges {
    margin-top: 10px;
  }

  .s-section {
    margin-top: 44px;
  }

  .s-heading {
    margin-bottom: 18px;
    padding-top: 14px;
    font-size: 1.25rem;
  }

  .s-prose {
    font-size: 0.975rem;
    line-height: 1.85;
  }

  .s-game__body {
    gap: 36px;
    margin-top: 24px;
  }

  .s-steps li {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 14px 0;
    font-size: 0.975rem;
  }

  .s-about {
    gap: 20px;
    padding-top: 20px;
  }

  .s-about__who {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .s-about__first {
    font-size: 1.05rem;
  }

  .s-likes__row {
    gap: 8px;
    padding: 18px 0;
  }

  .s-rows a {
    padding: 16px 0;
    font-size: 1.1rem;
  }

  .s-row__url {
    display: none;
  }

  .s-making__shots {
    gap: 28px;
    margin-top: 28px;
  }

  .s-contact {
    gap: 36px;
  }

  .s-doc__section + .s-doc__section {
    margin-top: 44px;
  }

  .s-back {
    margin-top: 44px;
  }

  .s-footer {
    margin-top: 72px;
    padding-top: 36px;
  }
}

@media (max-width: 420px) {
  .lang-switch__current {
    display: none;
  }

  .s-pill {
    padding: 5px 11px;
  }

  .s-panel {
    padding: 22px 18px;
  }
}

/* ---------- スクロールで現れる・ページ移動 ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: s-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }

    .s-footer__mark.reveal {
      animation-name: s-mark-reveal;
      animation-range: entry 0% entry 100%;
    }
  }

  .reveal {
    transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
  }

  .reveal.is-pending {
    opacity: 0;
    translate: 0 40px;
  }

  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: 0.3s var(--ease) both s-vt-out;
  }

  ::view-transition-new(root) {
    animation: 0.55s var(--ease) both s-vt-in;
  }

  ::view-transition-group(*) {
    animation-duration: 0.6s;
    animation-timing-function: var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .s-marquee__track {
    animation: none;
  }
}

/* ---------- 遊んだ演出（artful.ts が足す要素。動きを減らす設定では出ない） ---------- */

/* フィルムの粒子。うっすら紙の質感を足す */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27180%27 height=%27180%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.9%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: no-preference) {
  body::after {
    animation: s-grain 0.9s steps(6) infinite;
  }
}

/* 見出しの裏の、紙に広がる波紋。画面の端から端まで広げ、上下は白に溶かす */
.s-hero.has-water {
  position: relative;
  isolation: isolate;
}

.s-water {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 100%;
  translate: -50% 0;
  opacity: 0;
  animation: s-water-in 2s ease 0.3s forwards;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
}

@keyframes s-water-in {
  to {
    opacity: 1;
  }
}

/* ゲームの画像はカーソルの位置に合わせて少し傾く */
.s-thumb.has-tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
}

a.s-card__link:hover .s-thumb.has-tilt {
  transition: transform 0.15s linear;
}

/* 流れるタイトルはスクロールの速さで傾く */
.s-marquee__row {
  transform: skewX(var(--skew, 0deg));
}

@keyframes s-grain {
  0% { translate: 0 0; }
  20% { translate: -4% 3%; }
  40% { translate: 3% -5%; }
  60% { translate: -6% -2%; }
  80% { translate: 5% 4%; }
  100% { translate: 0 0; }
}

/* ---------- キーフレーム ---------- */

@keyframes s-rise {
  from {
    translate: 0 110%;
  }
}

@keyframes s-fade {
  from {
    opacity: 0;
  }
}

@keyframes s-fade-up {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

@keyframes s-line-in {
  from {
    scale: 0 1;
  }
}

@keyframes s-mark-in {
  from {
    rotate: -180deg;
    scale: 0;
  }
}

@keyframes s-drop {
  from {
    opacity: 0;
    translate: 0 -6px;
  }
}

@keyframes s-pop {
  from {
    opacity: 0;
    scale: 0.96;
  }
}

@keyframes s-marquee {
  to {
    translate: -50% 0;
  }
}

@keyframes s-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes s-unveil {
  from {
    clip-path: inset(0 0 100% 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes s-reveal {
  from {
    opacity: 0;
    translate: 0 48px;
  }
}

@keyframes s-mark-reveal {
  from {
    opacity: 0;
    translate: 0 40%;
  }
}

@keyframes s-progress {
  from {
    scale: 0 1;
  }

  to {
    scale: 1 1;
  }
}

@keyframes s-header-line {
  from {
    border-bottom-color: transparent;
    background: rgb(255 255 255 / 0);
  }
}

@keyframes s-toast-in {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

@keyframes s-toast-out {
  to {
    opacity: 0;
    translate: 0 24px;
  }
}

@keyframes s-confetti {
  to {
    transform: translate(var(--dx), 110vh) rotate(var(--r));
  }
}

@keyframes s-wobble {
  from {
    rotate: -1.5deg;
  }

  to {
    rotate: 1.5deg;
  }
}

@keyframes s-vt-out {
  to {
    opacity: 0;
    translate: 0 -12px;
  }
}

@keyframes s-vt-in {
  from {
    opacity: 0;
    translate: 0 20px;
  }
}

/* ---------- 製作中のゲーム（/simple/making/） ---------- */
.s-making__video,
.s-making__shots figure {
  margin: 0;
}
.s-making__video video,
.s-making__shots img {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.s-making__video figcaption,
.s-making__shots figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
.s-making__shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 40px 24px;
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

/* ---------- generated by tools/build.mjs ---------- */
.s-thumb--miteiru-heya{--from:#1a1816;--to:#5a1f1f;view-transition-name:thumb-miteiru-heya}
.s-thumb--meguru-benjo{--from:#4fb3c8;--to:#f6d365;view-transition-name:thumb-meguru-benjo}
.s-thumb--php-night-24{--from:#2b3a8f;--to:#ff5d7a;view-transition-name:thumb-php-night-24}
.s-thumb--chokichoki{--from:#3fb68b;--to:#c8f06a;view-transition-name:thumb-chokichoki}
.s-thumb--horidan-battle{--from:#6d4cff;--to:#ff8a3d;view-transition-name:thumb-horidan-battle}
.s-thumb--shiri-orchestra{--from:#ff6f9f;--to:#ffc14d;view-transition-name:thumb-shiri-orchestra}
.split .c1{--i:1}
.split .c2{--i:2}
.split .c3{--i:3}
.split .c4{--i:4}
.split .c5{--i:5}
.split .c6{--i:6}
.split .c7{--i:7}
.split .c8{--i:8}
.split .c9{--i:9}
.split .c10{--i:10}
.split .c11{--i:11}
.split .c12{--i:12}
.split .c13{--i:13}
.split .c14{--i:14}
.split .c15{--i:15}
.split .c16{--i:16}
.split .c17{--i:17}
.split .c18{--i:18}
.split .c19{--i:19}
.split .c20{--i:20}
.split .c21{--i:21}
.split .c22{--i:22}
.split .c23{--i:23}
.split .c24{--i:24}
.split .c25{--i:25}
.split .c26{--i:26}
.split .c27{--i:27}
.split .c28{--i:28}
.split .c29{--i:29}
.split .c30{--i:30}
.split .c31{--i:31}
.split .c32{--i:32}
.split .c33{--i:33}
.split .c34{--i:34}
.split .c35{--i:35}
.split .c36{--i:36}
.split .c37{--i:37}
.split .c38{--i:38}
.split .c39{--i:39}
.split .c40{--i:40}
