/* ---------------------------------------------------------------
   テブラプレ公開サイト

   見た目は Claude Design の改修案（design_handoff_teburaplay_redesign）を
   そのまま再現している。色・文字の大きさ・余白・角丸は改修案の確定値。
   PCはデザイン幅1280px（内容1200px）、スマホは390px。760px以下でスマホ版。
   --------------------------------------------------------------- */
:root {
  --cream: #fffde5;
  --cream-deep: #faf6de;
  --navy: #1a3a80;
  --navy-deep: #122a60;
  --navy-pale: #e6ecf9;
  --cyan: #45c3ea;
  --cyan-deep: #1490bb;
  --cyan-text: #0b6a8e;     /* 淡い背景に乗せる水色の文字 */
  --cyan-pale: #e2f4fc;
  --sat-pale: #d6f0fb;
  --link: #1f4fa6;
  --footer-link: #7fd6f2;
  --line: #e3e0c8;
  --line-strong: #c9d4e6;
  --row-line: #e6eaf2;
  --dotted: #e1e6ee;
  --ink: #24303f;
  --text-sub: #465264;
  --muted: #6b7789;
  --band-label: #8b97aa;
  --yellow: #ffe84a;
  --white: #fff;

  --band-am: #fff;
  --band-pm: #fbfcfe;
  --band-night: #f5f7fb;

  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Yu Gothic", "Meiryo", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --pad-x: 40px;
  --header-h: 0px;   /* PCのヘッダーは貼りつかない。スマホで上書き */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
a:hover { color: var(--cyan-deep); }
img { max-width: 100%; }
button { font-family: inherit; }

:where(a, button):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.sp-only { display: none; }

/* ---------- デモ告知 ---------- */
.demo-banner {
  background: var(--yellow);
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 6px 16px;
}

/* ---------- ヘッダー ---------- */
.site-header { background: var(--cream); }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.sp-brand, .sp-actions { display: none; }

.pc-nav { display: flex; align-items: center; gap: 28px; }
.pc-nav a {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.pc-nav a:hover { color: var(--cyan-deep); }
.btn-outline {
  padding: 8px 20px;
  border: 2px solid var(--cyan-deep);
  border-radius: 999px;
  color: var(--cyan-text) !important;
  font-weight: 900 !important;
  line-height: 1.4;
}
.btn-outline:hover { background: var(--cyan-deep); color: var(--white) !important; }

.sp-drawer { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px var(--pad-x) 48px;
  scroll-margin-top: var(--header-h);
}
.hero-logo { margin: 0; }
.hero-logo img {
  display: block;
  width: 820px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.hero-catch {
  margin: 12px 0 28px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  line-height: 1.6;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, transform .12s ease;
}
.entry:hover { border-color: var(--cyan-deep); transform: translateY(-2px); color: var(--ink); }
.entry-kicker { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.4; }
.entry-title { color: var(--navy); font-size: 24px; font-weight: 900; line-height: 1.35; }
.entry-text { font-size: 14px; line-height: 1.75; }
.entry-count { color: #dce6fb; font-size: 14px; line-height: 1.5; }
.entry-count b { color: var(--white); font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.entry-link { margin-top: auto; color: var(--cyan-text); font-size: 14px; font-weight: 900; }

.entry-strong { background: var(--navy); border-color: var(--navy); }
.entry-strong:hover { border-color: var(--cyan-deep); }
.entry-strong .entry-kicker { color: var(--yellow); }
.entry-strong .entry-title { color: var(--white); }
.entry-strong .entry-link { color: var(--footer-link); }
.entry-arrow { font-size: 20px; font-weight: 900; color: var(--cyan-text); }
.entry-strong .entry-arrow { color: var(--footer-link); }

/* ---------- セクション共通 ---------- */
.sec { padding: 56px var(--pad-x); scroll-margin-top: var(--header-h); }
.sec-white { background: var(--white); }
.sec-cream { background: var(--cream); border-block: 1px solid var(--line); }
.sec-inner { max-width: 1200px; margin: 0 auto; }

.sec-no {
  margin: 0 0 4px;
  color: var(--cyan-text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}
.sec-title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.4;
}
.sec-lead { margin: 0 0 24px; max-width: 880px; color: var(--text-sub); font-size: 15px; line-height: 1.8; }
.sec-note { margin: 0; color: var(--text-sub); font-size: 14px; line-height: 1.7; }

.status { margin: 0; padding: 40px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.status.error { color: #c0392b; font-weight: 700; }

.text-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  line-height: 1.6;
}
.text-link:hover { color: var(--cyan-deep); }

/* ---------- 01 はじめての方へ ---------- */
.steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step {
  padding: 22px;
  border-radius: 16px;
  background: var(--cream-deep);
}
.step-no {
  display: block;
  color: var(--cyan-deep);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.step-title { margin: 6px 0 8px; color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.5; }
.step p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text-sub); }

.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.note-card {
  padding: 20px 22px;
  border: 2px solid var(--line-strong);
  border-radius: 16px;
}
.note-title { margin: 0 0 6px; color: var(--navy); font-size: 16px; font-weight: 700; }
.note-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.8; color: var(--text-sub); }
.note-card b { color: var(--ink); }

/* ---------- 02 日程から選ぶ ---------- */
.sched-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 18px;
}

.week-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  flex: none;
}
.week-tab {
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.week-tab b { font-weight: 900; margin-right: 4px; }
.week-tab:hover { background: var(--navy-pale); }
.week-tab[aria-selected="true"] { background: var(--navy); color: var(--white); }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 18px;
}
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.toggle {
  padding: 6px 16px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.toggle:hover { border-color: var(--cyan-deep); }
.toggle[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--text-sub);
}
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; border: 1px solid; }

/* 受付状況の色（背景／文字／枠） */
.st-open    { --st-bg: #e2f4fc; --st-fg: #0b6a8e; --st-bd: #a5e0f2; }
.st-decided { --st-bg: #e6ecf9; --st-fg: #1a3a80; --st-bd: #b4c4e4; }
.st-today   { --st-bg: #fff7c4; --st-fg: #7a5200; --st-bd: #f5cf6a; }
.st-full    { --st-bg: #fde5ee; --st-fg: #a8336a; --st-bd: #f4a3c3; }
.st-closed  { --st-bg: #f3f4f6; --st-fg: #6b7789; --st-bd: #c9d4e6; }
.sw { background: var(--st-bg); border-color: var(--st-bd); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--st-bd);
  border-radius: 999px;
  background: var(--st-bg);
  color: var(--st-fg);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
}

/* 本体：左に時間割、右に詳細パネル */
.sched-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.sched-body > .status { grid-column: 1 / -1; }

/* 時間割 */
.tt {
  --hour: 48px;
  display: grid;
  grid-template-columns: 60px repeat(var(--days), minmax(0, 1fr));
  gap: 10px;
}
.tt-corner { }
.tt-dayhead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.wd {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy-pale);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}
.wd.sat { background: var(--sat-pale); color: var(--cyan-text); }
.wd.sun { background: #fde5ee; color: #a8336a; }

.tt-axis { position: relative; height: calc(var(--span) * var(--hour)); }
.tt-hour {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tt-hour.edge { color: var(--navy); font-weight: 900; }

.tt-col {
  position: relative;
  height: calc(var(--span) * var(--hour));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--band-am);
  overflow: hidden;
}
.tt-band { position: absolute; left: 0; right: 0; }
.tt-band.am { background: var(--band-am); }
.tt-band.pm { background: var(--band-pm); }
.tt-band.night { background: var(--band-night); }
.tt-band + .tt-band { border-top: 1px solid var(--line-strong); }
.tt-band-name {
  position: absolute;
  top: 6px;
  left: 8px;
  color: var(--band-label);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.tt-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}
.tt-dot { position: absolute; left: 0; right: 0; border-top: 1px dotted var(--dotted); }

/* 回のブロック */
.slot {
  position: absolute;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border: 2px solid var(--st-bd);
  border-radius: 10px;
  background: var(--st-bg);
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.slot > * { flex: none; position: relative; }
.slot:hover { border-color: var(--cyan-deep); }
.slot.is-selected { border-color: var(--navy); box-shadow: 0 6px 16px rgba(18, 42, 96, .18); }
.slot.is-dim { opacity: .3; }
/* 書影を薄く敷く */
.slot-cover {
  position: absolute !important;
  inset: 0;
  z-index: -1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .12;
  pointer-events: none;
}
.slot-row1 { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.slot-time {
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.slot-time .dash { color: var(--text-sub); font-weight: 500; }
.dur-pill {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
  white-space: nowrap;
}
.slot-state { font-size: 12px; font-weight: 900; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-state .st { color: var(--st-fg); }
.slot-state .sep { color: #9aa5b5; margin: 0 4px; }
.seats { color: var(--navy); }
.seats.last { color: #a8336a; }
.seats.none { color: var(--muted); }
.slot-sys {
  color: var(--cyan-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.slot.short .slot-title { -webkit-line-clamp: 1; }

/* 詳細パネル（PC） */
.detail {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(18, 42, 96, .08);
}
.detail-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 24px 0; }
.detail-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--cream-deep);
}
/* 詳細欄の書影。押すと拡大表示 */
.cover-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: zoom-in;
}
.cover-zoom .detail-cover { transition: filter .15s ease; }
.cover-zoom:hover .detail-cover { filter: brightness(.92); }
.cover-zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  background: rgba(18, 42, 96, .72);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  pointer-events: none;
}
.cover-zoom-hint::before { content: "⤢ "; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(12, 22, 48, .82); cursor: zoom-out; }
.lightbox-figure {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: zoom-out;
}
.lightbox-img {
  display: block;
  max-width: min(92vw, 900px);
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.lightbox-cap { color: #dce6fb; font-size: 14px; font-weight: 700; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .26); }

.cover-ph {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--cream-deep);
  color: #b9b28c;
  font-size: 32px;
}
.detail-title { margin: 0; color: var(--navy); font-size: 21px; font-weight: 900; line-height: 1.45; }

.timebox { padding: 14px 16px; border-radius: 10px; background: var(--navy-pale); }
.timebox-date { margin: 0; color: var(--navy); font-size: 14px; font-weight: 700; }
.timebox-time {
  margin: 2px 0 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.timebox-time .dash { color: var(--text-sub); font-weight: 500; }
.timebox-time small { color: var(--text-sub); font-size: 13px; font-weight: 700; }
.daybar { position: relative; height: 8px; border-radius: 999px; background: var(--white); }
.daybar span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--cyan-deep); }
.daybar-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.spec {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.spec dt { color: var(--navy); font-weight: 700; }
.spec dd { margin: 0; color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-text, .tag-beginner {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.tag-text { background: #fff7c4; color: #6e5600; }
.tag-beginner { background: var(--cyan-pale); color: var(--cyan-text); }

.desc { margin: 0; color: var(--text-sub); font-size: 14px; line-height: 1.8; white-space: pre-line; }
.desc.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.desc-more { margin-top: 4px; font-size: 13px; }
.sched-main { min-width: 0; }

/* シナリオ紹介（詳細欄の下のほう） */
.scenario-intro { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.scenario-intro-head { margin: 0; color: var(--navy); font-size: 15px; font-weight: 900; line-height: 1.5; }

/* ツール説明会の一覧 */
.tool-count { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tool-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--st-bd);
  border-radius: 12px;
  background: var(--white);
}
.tool-when { display: flex; flex-direction: column; line-height: 1.3; font-variant-numeric: tabular-nums; }
.tool-date { color: var(--navy); font-size: 18px; font-weight: 900; }
.tool-date small { font-size: 13px; font-weight: 700; margin-left: 2px; }
.tool-time { color: var(--navy); font-size: 14px; font-weight: 700; }
.tool-time .dash { color: var(--text-sub); font-weight: 500; }
.tool-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tool-name {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.tool-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; font-weight: 700; }
.tool-gm { color: var(--muted); font-weight: 500; }
.tool-actions { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.tool-book {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--cyan-deep);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.tool-book:hover { background: #1aa3d2; color: var(--white); }

.cta {
  display: block;
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan-deep);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}
.cta:hover { background: #1aa3d2; color: var(--white); }
.cta.is-off { background: var(--line); color: var(--muted); pointer-events: none; }
.shop-link { display: block; text-align: center; font-size: 13px; font-weight: 700; }

/* 詳細のいちばん下：ルールブックのリンクを真ん中、その一行下の中央にXの共有 */
.detail-foot { display: flex; flex-direction: column; gap: 6px; }
.share-row { display: flex; justify-content: center; }
.share-x {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #000;
  color: var(--white);
  transition: transform .12s ease, background .15s ease;
}
.share-x svg { width: 16px; height: 16px; fill: currentColor; }
.share-x:hover { background: #333; color: var(--white); transform: translateY(-1px); }

.sched-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 14px;
  padding-left: 70px;   /* 時刻の列ぶん右へ寄せ、時間割の左端と揃える */
}
.sched-caveat { color: var(--muted); font-size: 13px; }

/* ---------- 03 ゲームから選ぶ ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.game-grid > .status { grid-column: 1 / -1; }
.game {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--white);
}
.game-cover {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--cream-deep);
}
.game-cover.cover-ph { aspect-ratio: auto; font-size: 28px; }
.game-body { display: flex; flex-direction: column; min-width: 0; }
.game-head { display: contents; }
.game-name { margin: 0; color: var(--navy); font-size: 18px; font-weight: 900; line-height: 1.45; }
/* ゲーム名のリンク（チケットを購入できる回の一覧を開く） */
.game-name-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.game-name-link:hover { color: var(--cyan-deep); text-decoration-color: currentColor; }
.genres { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.genre {
  padding: 1px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.game-desc {
  margin: 8px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.next-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.next-label { color: var(--muted); font-size: 12px; font-weight: 700; margin-right: 2px; }
.next-chip {
  padding: 3px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--cyan-pale);
  color: var(--cyan-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}
.next-chip:hover { background: #cdeefa; }
.next-chip.more { cursor: default; }
.next-chip.more:hover { background: var(--cyan-pale); }
.next-none { color: var(--muted); font-size: 13px; }
.game-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}
.game-body .game-foot { margin-top: 12px; }
.req-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.req-link:hover { color: var(--cyan-deep); text-decoration: underline; }
.req-none { color: var(--muted); font-size: 13px; }
.game-shop { color: var(--muted); font-size: 13px; }

/* 「リクエスト可能なものはこちら」。開催予定のあるゲームの下に置き、押すと続きを出す */
.game-more { grid-column: 1 / -1; text-align: center; padding: 4px 0; }
.game-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  cursor: pointer;
}
.game-more-btn:hover { border-color: var(--cyan-deep); color: var(--cyan-text); }
.game-more-count { color: var(--muted); font-weight: 700; }
.game-more-icon { color: var(--cyan-text); font-size: 11px; }
.game-more-note { margin: 10px 0 0; color: var(--text-sub); font-size: 13px; }

.request-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--white);
}
.request-title { margin: 0 0 4px; font-size: 21px; font-weight: 900; line-height: 1.5; }
.request-text { margin: 0; color: #dce6fb; font-size: 15px; line-height: 1.7; }
.request-btn {
  flex: none;
  padding: 12px 30px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy-deep);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1.4;
}
.request-btn:hover { background: #6dd1f0; color: var(--navy-deep); }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-deep); color: #c7d6f2; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--footer-link); font-size: 14px; font-weight: 700; }
.footer-meta { margin: 0; color: #a9badc; font-size: 13px; }

/* ---------- シート／ダイアログ ---------- */
/* PCでは中央のダイアログ、スマホでは下から出るシートになる */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(18, 42, 96, .5); }
.sheet-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(18, 42, 96, .25);
  overflow: hidden;
}
.sheet-grip { display: none; }
.sheet-close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.sheet-close:hover { color: var(--cyan-deep); }
.sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 24px 24px 20px; }
.sheet-foot:empty { display: none; }
.sheet-foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--row-line);
}

/* シナリオ一覧（シートの中身） */
.scn-head { margin: 0 40px 4px 0; color: var(--navy); font-size: 20px; font-weight: 900; line-height: 1.45; }
.scn-sub { margin: 0 0 14px; color: var(--text-sub); font-size: 13px; }
.scn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.scn-list { display: grid; gap: 10px; }
.scn {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.scn-title { margin: 0; color: var(--navy); font-size: 15px; font-weight: 900; line-height: 1.45; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pill {
  padding: 1px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.pill.beginner { border-color: #a5e0f2; background: var(--cyan-pale); color: var(--cyan-text); }
.scn-summary {
  margin: 6px 0 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ===============================================================
   スマホ（760px以下）
   =============================================================== */
@media (max-width: 760px) {
  :root { --pad-x: 16px; --header-h: 61px; }
  body { font-size: 14px; }

  .pc-only { display: none !important; }
  .sp-only { display: initial; }
  div.sp-only, p.sp-only { display: block; }
  br.sp-only { display: inline; }

  /* ヘッダー：上に貼りつく帯 */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 253, 229, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
  }
  .header-inner { padding: 8px 12px 8px 16px; justify-content: space-between; }
  .pc-nav { display: none; }
  .sp-brand {
    display: block;
    color: var(--navy);
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: .02em;
  }
  .sp-actions { display: flex; align-items: center; gap: 4px; }
  .btn-fill-sm {
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--cyan-deep);
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    text-decoration: none;
  }
  .btn-fill-sm:hover { color: var(--white); background: #1aa3d2; }
  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .sp-drawer:not([hidden]) {
    display: flex;
    flex-direction: column;
    padding: 4px 16px 14px;
    border-top: 1px solid var(--line);
  }
  .sp-drawer a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
  }
  .sp-drawer a.drawer-ext { border-bottom: 0; color: var(--cyan-text); font-weight: 900; }

  /* ヒーロー */
  .hero { padding: 12px 16px 28px; }
  .hero-logo img { width: 100%; }
  .hero-catch { margin: 14px 0 18px; font-size: 16px; }
  .entry-grid { grid-template-columns: 1fr; gap: 10px; }
  .entry[data-order="1"] { order: 1; }
  .entry[data-order="2"] { order: 2; }
  .entry[data-order="3"] { order: 3; }
  .entry { padding: 16px 18px; border-radius: 16px; gap: 4px; padding-right: 48px; }
  .entry-kicker { font-size: 12px; }
  .entry-title { font-size: 19px; }
  .entry-count b { font-size: 17px; }
  .entry-arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }

  /* セクション */
  .sec { padding: 36px 16px; }
  .sec-no { font-size: 12px; }
  .sec-title { font-size: 23px; }
  .sec-lead { font-size: 14px; }
  .sec-note { font-size: 13px; }

  .steps { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .step { display: flex; gap: 14px; padding: 16px; border-radius: 14px; }
  .step-no { font-size: 28px; min-width: 22px; }
  .step-title { margin-top: 2px; }
  .notes { grid-template-columns: 1fr; gap: 10px; }
  .note-card { padding: 16px; border-radius: 14px; }

  /* 日程：見出しの下に日付ボタン */
  #schedule.sec { padding: 36px 0; }
  #schedule .sec-inner > *:not(.sched-body) { padding-left: 16px; padding-right: 16px; }
  .sched-head { display: block; margin-bottom: 12px; }

  .day-chips {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 16px) / 3);
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .day-chips::-webkit-scrollbar { display: none; }
  .day-chip {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0;
    border: 2px solid var(--line-strong);
    border-radius: 14px;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
  }
  .day-chip .when-tag { font-size: 11px; font-weight: 900; color: var(--cyan-text); min-height: 1.3em; }
  .day-chip .when-date { font-size: 18px; font-weight: 900; }
  .day-chip .when-date small { font-size: 13px; font-weight: 700; margin-left: 2px; }
  .day-chip .when-count { font-size: 12px; font-weight: 700; }
  .day-chip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
  .day-chip[aria-selected="true"] .when-tag { color: var(--yellow); }

  .chip-dots { display: flex; justify-content: center; gap: 5px; margin: 10px 0 14px; }
  .chip-dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--line-strong); transition: width .2s ease, background .2s ease; }
  .chip-dots span.on { width: 14px; background: var(--navy); }

  .filter-row { gap: 8px; margin-bottom: 14px; }
  .toggle { min-height: 40px; }
  .legend { font-size: 12px; gap: 4px 12px; }

  .sched-body { display: block; padding: 0 16px; }
  .detail { display: none; }

  .tt { --hour: 44px; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
  .tt-corner { display: none; }
  .tt-dayhead { display: none; }
  .tt-sp-title {
    grid-column: 2;
    margin: 0 0 2px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
  }
  .tt-sp-title small { font-size: 14px; margin-left: 4px; }
  .tt-sp-title small.sat { color: var(--cyan-text); }
  .tt-band-name { left: auto; right: 8px; }
  .slot { padding: 8px 12px; }
  .slot-time { font-size: 17px; }
  .dur-pill { font-size: 12px; }
  .slot-title { font-size: 15px; }

  .sched-foot { padding: 0 0 0 52px; flex-direction: column; gap: 4px; }

  /* ゲーム */
  .game-grid { grid-template-columns: 1fr; gap: 12px; }
  .game { display: block; padding: 14px; border-radius: 14px; }
  .game-top { display: flex; gap: 12px; align-items: center; }
  .game-cover { width: 72px; height: 72px; border-radius: 8px; flex: none; }
  .game-name { font-size: 16px; }
  .game-desc { -webkit-line-clamp: 4; }

  .request-band { flex-direction: column; align-items: stretch; padding: 22px 20px; border-radius: 16px; gap: 14px; }
  .request-title { font-size: 18px; }
  .request-text { font-size: 14px; }
  .request-btn { text-align: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; padding: 24px 16px 32px; gap: 8px; }
  .footer-links { flex-direction: column; gap: 0; }
  .footer-links a { padding: 8px 0; }
  .footer-meta { font-size: 12px; }

  .tool-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 14px; }
  .tool-when { flex-direction: row; align-items: baseline; gap: 10px; }
  .tool-actions { justify-content: flex-start; }

  /* 下から出るシート */
  .sheet { place-items: end stretch; padding: 0; }
  .sheet-panel {
    width: 100%;
    max-height: 90vh;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 30px rgba(18, 42, 96, .2);
  }
  .sheet-grip { display: flex; justify-content: center; padding: 10px 0 2px; touch-action: none; }
  .sheet-grip span { width: 40px; height: 5px; border-radius: 999px; background: var(--line-strong); }
  .sheet-close { top: 6px; }
  .sheet-body { padding: 8px 20px 16px; }
  .sheet-foot { padding: 12px 20px 28px; }

  /* シートの中の回の詳細 */
  .sheet-cover {
    position: relative;
    height: 130px;
    margin: 36px 0 14px;
    border-radius: 12px;
    background: var(--st-bg);
    overflow: hidden;
  }
  .sheet-cover-img { position: absolute; inset: 0; background-position: center; background-size: cover; }
  /* ボタンになった書影。既定の余白や文字の指定を打ち消し、幅いっぱいに広げる */
  button.sheet-cover { display: block; width: 100%; padding: 0; border: 0; font: inherit; text-align: left; }
  .sheet-cover .badge { position: absolute; left: 12px; bottom: 12px; background: var(--white); }
  .sheet-body .detail-title { font-size: 20px; margin-bottom: 14px; }
  .sheet-body .timebox { margin-bottom: 14px; }
  .sheet-body .timebox-time { font-size: 24px; }
  .sheet-body .spec { margin-bottom: 12px; }
  .sheet-body .tags { margin-bottom: 12px; }
  .sheet-foot .cta { padding: 14px 16px; }
}
