@charset "utf-8";
/* Keimin Studio の共通の見た目。外のフォント・解析のタグは読まない (アプリの「外へ何も送らない」にそろえる)
   絵本風: クリームの紙・手書き風の ふち (いびつな角丸)・マスキングテープ・少し傾けた写真。
   スタジオのトップは落ち着いた形 (body.studio)、ゲームのページは模様の地と あいぼう で にぎやかに (body.game) */

@font-face {
  font-family: "Mochiy Pop One";
  src: url("fonts/mochiy-subset.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("fonts/zenmaru-regular-subset.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("fonts/zenmaru-bold-subset.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fbf4e4;
  --paper-deep: #f3e7cc;
  --surface: #fffdf6;
  --ink: #2a2c55;
  --ink-soft: #625e80;
  --pen: #2a2c55;          /* 手書きの ふちの線 */
  --line: #e6d8ba;
  --yellow: #ffd34d;
  --pink: #f68fb4;
  --mint: #a4e3b4;
  --sky: #a6d6f4;
  --lilac: #cdbdf3;
  --accent: #e0507f;
  --link: #2f7d6a;
  --tape: rgba(255, 211, 77, 0.72);
  --tape-2: rgba(166, 214, 244, 0.78);
  --tape-3: rgba(246, 143, 180, 0.7);
  --shadow: 3px 4px 0 rgba(42, 44, 85, 0.16);
  --photo-shadow: 0 10px 24px rgba(72, 54, 20, 0.16), 0 2px 4px rgba(72, 54, 20, 0.12);
  --pattern: url("paper_light.webp");
  --marker-opacity: 0.75;
  --marker-bottom: 4px;
  /* 手で描いたような いびつな角丸 */
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wobble-2: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-head: "Mochiy Pop One", var(--font-body);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a1c38;
    --paper-deep: #22254a;
    --surface: #24274e;
    --ink: #f4f1ff;
    --ink-soft: #c3c0e4;
    --pen: #dcd8ff;
    --line: #3a3e6e;
    --yellow: #f2c443;
    --accent: #ff8db4;
    --link: #8fe0c6;
    --tape: rgba(242, 196, 67, 0.55);
    --tape-2: rgba(120, 180, 230, 0.55);
    --tape-3: rgba(246, 143, 180, 0.5);
    --shadow: 3px 4px 0 rgba(0, 0, 0, 0.35);
    --photo-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    --pattern: url("paper_dark.webp");
    --marker-opacity: 0.5;
    --marker-bottom: -3px;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1a1c38;
  --paper-deep: #22254a;
  --surface: #24274e;
  --ink: #f4f1ff;
  --ink-soft: #c3c0e4;
  --pen: #dcd8ff;
  --line: #3a3e6e;
  --yellow: #f2c443;
  --accent: #ff8db4;
  --link: #8fe0c6;
  --tape: rgba(242, 196, 67, 0.55);
  --tape-2: rgba(120, 180, 230, 0.55);
  --tape-3: rgba(246, 143, 180, 0.5);
  --shadow: 3px 4px 0 rgba(0, 0, 0, 0.35);
  --photo-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  --pattern: url("paper_dark.webp");
  --marker-opacity: 0.5;
  --marker-bottom: -3px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  /* 改行は 文節で (Chrome・Edge)。ほかのブラウザでは 見出しなどに置いた <wbr> で切る */
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
}
body.game { background: var(--paper) var(--pattern) repeat; background-size: 450px; }

p, li, dd, summary { text-wrap: pretty; }

/* 短い字は <wbr> の所でだけ切る (文の途中で切れないように) */
h1, h2, h3, .catch, .lead, .section-lead, .keep, .promise-list strong, .step b {
  word-break: keep-all;
  text-wrap: balance;
}

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

/* 上の帯 (sticky) に 飛び先の見出しが隠れないように */
[id] { scroll-margin-top: 84px; }

a { color: var(--link); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3, .brand {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 10; }

/* ---------- 上の帯 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand .dot { color: var(--accent); }
.site-nav { display: flex; gap: 6px; font-size: 14px; font-weight: 700; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-deep); }

/* ---------- 区切りと見出し ---------- */
section { padding: 72px 0; position: relative; }

.section-title {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 10px;
  display: inline-block;
  position: relative;
  z-index: 0;
}
/* 見出しの下に 蛍光ペンを引いたような帯 */
.section-title::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -6px; right: -8px; bottom: var(--marker-bottom);
  height: 0.42em;
  background: var(--yellow);
  border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
  opacity: var(--marker-opacity);
  transform: rotate(-1deg);
}
.section-title .kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 2px;
}
.section-lead { color: var(--ink-soft); margin: 0 0 40px; font-size: 17px; }

/* 手書き風の波線の区切り */
.squiggle {
  height: 18px;
  margin: 0 auto;
  max-width: 1040px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='18' viewBox='0 0 60 18'%3E%3Cpath d='M0 9 Q 7.5 1 15 9 T 30 9 T 45 9 T 60 9' fill='none' stroke='%23d9c69c' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center;
  opacity: 0.9;
}

/* 手書きの ふち の箱 */
.sketch {
  background: var(--surface);
  border: 2px solid var(--pen);
  border-radius: var(--wobble);
  box-shadow: var(--shadow);
}

/* ---------- スタジオのトップ (落ち着いた形) ---------- */
.studio-hero { padding: 96px 0 72px; }
.studio-hero h1 { font-size: clamp(40px, 9vw, 76px); margin: 0 0 20px; line-height: 1.15; }
.studio-hero h1 .dot { color: var(--accent); }
.studio-hero .lead { font-size: clamp(18px, 2.6vw, 22px); max-width: 30em; margin: 0 0 12px; }
.studio-hero .sub { color: var(--ink-soft); max-width: 34em; margin: 0; }
.studio-hero .values {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; padding: 0; margin: 32px 0 0;
}
.studio-hero .values li {
  font-size: 14px; font-weight: 700;
  padding: 6px 16px;
  border: 1.5px solid var(--pen);
  border-radius: 999px;
  background: var(--surface);
}

.game-list { display: grid; gap: 24px; }
.game-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}
a.game-card:hover { transform: translateY(-3px) rotate(-0.3deg); }
.game-card .cover {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--pen);
  background: #c4f0c8;
}
.game-card h3 { font-size: 26px; margin: 0 0 6px; }
.game-card p { margin: 0; color: var(--ink-soft); }
.game-card .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 3px solid var(--yellow);
}
.game-card.soon {
  grid-template-columns: 1fr;
  text-align: center;
  color: var(--ink-soft);
  background: transparent;
  border: 2px dashed var(--line);
  box-shadow: none;
  padding: 32px 24px;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 2px solid var(--pen);
  border-radius: 18px;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.spec th, .spec td { text-align: left; padding: 14px 18px; border-bottom: 1.5px dashed var(--line); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }
.spec th { width: 10em; font-weight: 700; white-space: nowrap; color: var(--ink-soft); }

.contact-box { padding: 28px; }
.contact-box p { margin: 0 0 10px; }
.mail {
  display: inline-block;
  font-size: 19px; font-weight: 700;
  padding: 4px 2px;
  border-bottom: 3px solid var(--yellow);
}

/* ---------- ゲームのページ: 表紙 ---------- */
.game-hero {
  padding: 56px 0 24px;
  text-align: center;
  overflow: hidden;
  /* まん中だけ模様を うすくして 字を読みやすく */
  background: radial-gradient(ellipse 60% 55% at 50% 38%, var(--paper) 45%, color-mix(in srgb, var(--paper) 0%, transparent) 100%);
}
.game-hero h1 {
  font-size: clamp(42px, 9vw, 80px);
  margin: 0;
  line-height: 1.15;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--yellow);
}
.game-hero .catch {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(17px, 2.6vw, 22px);
  margin: 18px 0 0;
  padding: 8px 22px;
  background: var(--surface);
  border: 2px solid var(--pen);
  border-radius: var(--wobble-2);
  position: relative;
  transform: rotate(-1.5deg);
}
/* ふきだしの しっぽ */
.game-hero .catch::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -11px;
  width: 18px; height: 18px;
  background: var(--surface);
  border-right: 2px solid var(--pen);
  border-bottom: 2px solid var(--pen);
  transform: translateX(-50%) rotate(45deg);
}
.game-hero .summary {
  max-width: 36em;
  margin: 28px auto 0;
  font-size: 17px;
}
.hero-band {
  position: relative;
  max-width: 760px;
  margin: 28px auto 0;
}
.hero-band img { position: relative; z-index: 1; width: 100%; }
/* あいぼう の立つ 床 (手書きの線) */
.hero-band::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%; bottom: 2px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M4 12 C 80 6 150 16 220 10 S 340 8 396 13' fill='none' stroke='%23c7ae78' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.float-note {
  position: absolute;
  font-family: var(--font-head);
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
  animation: bob 3.2s ease-in-out infinite;
  z-index: 2;
}
.float-note.n1 { left: 2%; top: 4%; }
.float-note.n2 { right: 4%; top: 0; color: #4f9fd6; animation-delay: -1.1s; font-size: 28px; }
.float-note.n3 { right: 18%; top: -12%; color: #e7a51d; animation-delay: -2s; font-size: 24px; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .float-note { animation: none; }
  html { scroll-behavior: auto; }
}

.store-row { margin-top: 32px; }
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid var(--pen);
  border-radius: 999px;
  background: var(--yellow);
  color: #2a2c55;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 3px 4px 0 var(--pen);
}
.store-button[aria-disabled="true"] { cursor: default; opacity: 0.8; box-shadow: 2px 3px 0 var(--pen); }
.store-note { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- 遊びの紹介 ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 88px;
}
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(22px, 3vw, 27px); margin: 0 0 12px; }
.feature-text p { margin: 0; }
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 3px 14px;
  margin-bottom: 10px;
  border: 1.5px solid var(--pen);
  border-radius: 999px;
  background: var(--yellow);
  color: #2a2c55;
}
.tag.t-pink { background: var(--pink); }
.tag.t-mint { background: var(--mint); }
.tag.t-sky { background: var(--sky); }
.tag.t-lilac { background: var(--lilac); }

/* 少し傾けた写真 + マスキングテープ */
.photo {
  position: relative;
  margin: 0;
  padding: 12px 12px 14px;
  background: #fff;
  box-shadow: var(--photo-shadow);
  transform: rotate(1.4deg);
  border-radius: 4px;
}
.feature.flip .photo { transform: rotate(-1.6deg); }
.photo img { border-radius: 2px; }
.photo figcaption {
  font-family: var(--font-head);
  font-size: 14px;
  color: #6b6684;
  text-align: center;
  margin-top: 10px;
}
.photo::before {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  width: 120px; height: 28px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  /* テープの はしの ぎざぎざ */
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 100% 0, 96% 92%, 92% 100%, 88% 90%, 84% 100%, 0 100%);
}
.photo.tape-2::before { background: var(--tape-2); transform: translateX(-50%) rotate(4deg); }
.photo.tape-3::before { background: var(--tape-3); }
/* 写真の すみから のぞく あいぼう */
.peek {
  position: absolute;
  width: 26%;
  max-width: 150px;
  right: -7%;
  bottom: -14%;
  z-index: 2;
  transform: rotate(-4deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}
.feature.flip .peek { right: auto; left: -7%; transform: rotate(4deg); }

/* 合奏: パートを重ねる 4つの段 */
.ensemble {
  padding: 40px 32px 36px;
  margin-bottom: 88px;
  text-align: center;
  background: var(--surface);
}
.ensemble h3 { font-size: clamp(22px, 3.2vw, 30px); margin: 0 0 12px; }
.ensemble > p { max-width: 38em; margin: 0 auto; text-align: left; }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 16px 10px 14px;
  border: 2px solid var(--pen);
  border-radius: var(--wobble-2);
  background: var(--paper);
}
.step:nth-child(1) { background: color-mix(in srgb, var(--pink) 30%, var(--paper)); transform: rotate(-1.5deg); }
.step:nth-child(2) { background: color-mix(in srgb, var(--sky) 34%, var(--paper)); transform: rotate(1deg); }
.step:nth-child(3) { background: color-mix(in srgb, var(--mint) 34%, var(--paper)); transform: rotate(-0.8deg); }
.step:nth-child(4) { background: color-mix(in srgb, var(--lilac) 38%, var(--paper)); transform: rotate(1.4deg); }
.step:nth-child(5) { background: color-mix(in srgb, var(--yellow) 28%, var(--paper)); transform: rotate(-1.2deg); }
.step img { width: 74%; max-width: 140px; margin: 0 auto 6px; aspect-ratio: 1; object-fit: contain; }
.step b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 17px; }
.step span { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px; left: -10px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 16px;
  color: #2a2c55;
  background: var(--yellow);
  border: 2px solid var(--pen);
  border-radius: 50%;
}
/* 段と段の あいだの ＋ */
.step + .step::after {
  content: "+";
  position: absolute;
  left: -16px; top: 42%;
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--accent);
}
.ensemble .result {
  margin: 28px auto 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: 19px;
}
.ensemble .result em {
  font-style: normal;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--yellow) calc(var(--marker-opacity) * 100%), transparent) 62%);
  padding: 0 4px;
}

/* ---------- 収録曲 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.fact {
  padding: 22px 16px 18px;
  text-align: center;
}
.fact:nth-child(odd) { transform: rotate(-1deg); }
.fact:nth-child(even) { transform: rotate(1deg); }
.fact .num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.1;
  color: var(--accent);
}
.fact .num small { font-size: 0.5em; color: var(--ink); margin-left: 2px; }
.fact .label { display: block; font-weight: 700; margin-top: 6px; }
.fact .note { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-top: 4px; }

/* ---------- 保護者の方へ ---------- */
.promise-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 0;
  margin: 0 0 36px;
  list-style: none;
}
/* ふせん */
.promise-list li {
  flex: 1 1 170px;
  max-width: 260px;
  position: relative;
  padding: 26px 20px 20px;
  border-radius: 4px 4px 18px 4px;
  color: #2a2c55;
  box-shadow: var(--photo-shadow);
}
.promise-list li:nth-child(5n+1) { background: #fff1b8; transform: rotate(-1.4deg); }
.promise-list li:nth-child(5n+2) { background: #d7f2de; transform: rotate(1.2deg); }
.promise-list li:nth-child(5n+3) { background: #fde0ea; transform: rotate(-0.8deg); }
.promise-list li:nth-child(5n+4) { background: #dcecfb; transform: rotate(1.6deg); }
.promise-list li:nth-child(5n+5) { background: #ebe3fb; transform: rotate(-1.1deg); }
.promise-list li::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  width: 70px; height: 20px;
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(-50%) rotate(-2deg);
}
.promise-list strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 18px; margin-bottom: 6px; }
.promise-list span { font-size: 15px; color: #4c4868; line-height: 1.75; }
.parents-foot { margin-top: 24px; }

/* ---------- よくある質問 ---------- */
.faq-list { display: grid; gap: 14px; }
.faq details {
  background: var(--surface);
  border: 2px solid var(--pen);
  border-radius: 16px;
  padding: 0 22px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  padding: 18px 28px 18px 0;
  font-weight: 700;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  font-family: var(--font-head);
  color: var(--accent);
  margin-right: 10px;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--ink-soft);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { border-bottom: 1.5px dashed var(--line); }
.faq details p { margin: 14px 0 20px; }
.support-contact { margin-top: 48px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.support-contact img { width: 150px; }
.support-contact h3 { font-size: 21px; margin: 0 0 8px; }

/* ---------- 下の帯 ---------- */
.site-footer {
  padding: 40px 0 56px;
  color: var(--ink-soft);
  font-size: 14px;
  border-top: 2px dashed var(--line);
  background: var(--paper);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--ink-soft); }

/* ---------- ページ内の目次 (PC 幅だけ 左に固定) ---------- */
.toc { display: none; }
@media (min-width: 1180px) {
  body.game main, body.game .site-footer .wrap { padding-left: 190px; }
  body.game .site-footer .wrap { max-width: 1230px; }
  body.game main .wrap { max-width: 1040px; }
  .toc {
    display: block;
    position: fixed;
    left: max(20px, calc((100vw - 1230px) / 2));
    top: 96px;
    width: 160px;
    z-index: 4;
    padding: 18px 14px 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    transform: rotate(-0.6deg);
  }
  .toc-title {
    margin: 0 0 8px;
    font-family: var(--font-head);
    font-size: 15px;
    letter-spacing: 0.1em;
    color: var(--accent);
  }
  .toc ol { list-style: none; margin: 0; padding: 0; }
  .toc ol ol { margin: 2px 0 6px 10px; padding-left: 8px; border-left: 2px dotted var(--line); font-size: 13px; }
  .toc a {
    display: block;
    padding: 4px 6px 4px 18px;
    border-radius: 8px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 700;
    position: relative;
  }
  .toc a:hover { color: var(--ink); background: var(--paper-deep); }
  .toc a.is-current { color: var(--ink); }
  .toc a.is-current::before {
    content: "♪";
    position: absolute;
    left: 2px; top: 50%;
    transform: translateY(-52%);
    font-family: var(--font-head);
    font-size: 13px;
    color: var(--accent);
  }
  .toc img { width: 74px; margin: 6px auto 0; transform: rotate(4deg); }
}
@media (min-width: 1180px) and (max-height: 640px) {
  .toc img { display: none; }
  .toc { top: 80px; }
}

/* ---------- 狭い画面 ---------- */
@media (max-width: 820px) {
  .game-card { grid-template-columns: 1fr; gap: 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  /* 5つを 3+2 (狭いと 2+2+1) に まん中寄せで折り返す。折り返すと ＋ の位置が合わないので消す */
  .steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 20px; }
  .step { flex: 0 1 calc((100% - 40px) / 3); }
  .step + .step::after { display: none; }
}
@media (max-width: 720px) {
  section { padding: 52px 0; }
  .feature { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .feature.flip .feature-text { order: 0; }
  .peek { width: 24%; right: -2%; }
  .feature.flip .peek { left: -2%; }
  .ensemble { padding: 30px 18px; margin-bottom: 64px; }
  .promise-list { gap: 18px 14px; }
  .promise-list li { flex-basis: 140px; max-width: none; padding: 22px 16px 16px; }
  .brand { font-size: 17px; }
  .site-nav { gap: 0; font-size: 12px; }
  .site-nav a { padding: 4px 8px; }
  .spec th { width: auto; white-space: normal; }
  .spec th, .spec td { display: block; padding: 10px 16px; }
  .spec th { padding-bottom: 0; border-bottom: none; }
  .support-contact { grid-template-columns: 1fr; text-align: center; }
  .support-contact img { width: 120px; margin: 0 auto; }
  .studio-hero { padding: 64px 0 48px; }
}
@media (max-width: 480px) {
  .promise-list li { flex-basis: 100%; }
  .step { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 400px) {
  .site-nav a { padding: 4px 6px; }
}
