/* =============================================================
   ホーム（案F）・まとめ画面（ゲーム／楽曲・歌詞／ガイド／設定）・端末の「戻る」の案内
   （2026-10-30新設・リニューアル第2段階）
   - 押せる部品は高さ・幅 44px 以上、文字は 13px（0.8125rem）以上にする
   - 幅 320px でも、文字を大きくした端末（ルートの文字サイズが大きい）でも崩れないように、
     文字の大きさは rem、並びは折り返せる grid / flex にする
   - 色は css/style.css の :root の変数をそのまま使う
   ============================================================= */

/* ---------- 全画面共通：［戻る］を押しやすく ---------- */
.back-link {
  min-height: 44px;
  min-width: 44px;
}

/* ---------- ホーム（案F・2026-10-30 本人が正式採用） ----------
   試作品（tools/prototype-renewal-2026-10-30 の css/app.css「案E」「案F」）の見た目を、本体の色・フォントに合わせて移した。
   - 押せる部品は 44px 以上（目次だけ 40px）、文字は 12.5px（0.78125rem）以上
   - 文字の大きさは rem（端末の文字サイズを大きくしても一緒に大きくなる）
   - 本体はスマホの枠（.game-frame・最大 480px）の中に出すので、PC でも1列のまま */
.home-f {
  --home-sub: #765467; /* 説明文の色（白・淡い地の上で 4.5:1 以上） */
  --home-pink: var(--color-primary-dark);
  --home-sticky-top: env(safe-area-inset-top, 0px);
}
.home-screen.screen {
  padding: 14px 14px 24px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 目次を画面の上に貼り付けるため、ホームのときだけ枠の overflow を clip にする
   （hidden のままだと枠がスクロールの基準になり、position: sticky が効かない。clip は角の丸みの切り抜きは保つ）。
   clip を知らない古いブラウザでは hidden のまま＝目次が貼り付かないだけで、ほかは同じように動く。 */
@supports (overflow: clip) {
  body[data-screen="start"] .game-frame {
    overflow: clip;
  }
}

/* 上部バー */
.home-screen .home-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  max-width: none;
  margin: 0;
  padding: 7px 10px;
  border-radius: 22px;
}
.home-topbar-player {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 11rem;
  min-width: 0;
}
.home-topbar .player-hero-swatch {
  width: 44px;
  height: 44px;
}
.home-topbar-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.home-topbar .home-topbar-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: center;
  gap: 0 6px;
  min-height: 44px; /* 押せる高さ 44px（名前と推しを2つのボタンに分けているため、それぞれ 44px） */
  padding: 0;
  font-size: 1rem;
  text-align: left;
}
.home-topbar .home-topbar-name > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-player-rank {
  font-size: 0.78125rem;
  font-weight: 800;
  color: var(--home-pink);
  white-space: nowrap;
}
/* 推し：色の点＋名前（2行目に必ず出す） */
.home-topbar .home-topbar-oshi {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-text);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-topbar .home-topbar-oshi.is-empty {
  align-self: flex-start;
  min-height: 44px;
  padding: 2px 12px;
  color: #fff;
}
.home-oshi-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.home-topbar-oshi.is-empty .home-oshi-dot,
.home-oshi-dot.is-empty {
  display: none;
}
/* 右上の3つ：フレンド／ランキング／実績（短い文字つき） */
.home-topbar-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.home-tact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 4rem;
  min-height: 48px;
  padding: 2px;
  border: none;
  border-radius: 14px;
  background: #ffe1ee;
  color: #b8256b;
  font-family: inherit;
  font-size: 0.78125rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}
.home-tact:active {
  transform: scale(0.97);
}
.home-tact-icon {
  font-size: 1.125rem;
  line-height: 1.2;
}
/* 幅 460px 未満：3つをプロフィールの下の1行（横長・押しやすい形）に。名前は小さくしない */
@media (max-width: 459px) {
  .home-topbar-actions {
    flex: 1 1 100%;
    flex-wrap: wrap; /* 文字を大きくした端末では、言葉の途中で折り返さず2行に回す */
  }
  .home-tact {
    flex: 1 1 auto;
    white-space: nowrap;
    width: auto;
    min-height: 44px;
    flex-direction: row;
    gap: 5px;
    font-size: 0.8125rem;
  }
  .home-topbar .player-hero-swatch {
    width: 40px;
    height: 40px;
  }
}

/* 検索 */
.home-screen .home-search-entry {
  min-height: 48px;
  margin-top: 10px;
}
.home-screen .home-search-entry-placeholder {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  opacity: 0.85;
}

/* 必要なときだけの案内（検索の下） */
.home-data-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid #f5d36b;
  background: #fff2bf;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}
.home-data-alert[hidden] {
  display: none; /* display: flex より hidden を優先（問題なく遊べるときは何も出さない） */
}
.home-data-alert[data-kind="warn"] {
  background: #ffe9e4;
  border-color: #f6b7a8;
}
.home-data-alert-icon {
  flex: none;
  font-size: 1.125rem;
}
.home-data-alert-text {
  flex: 1;
  min-width: 0;
}
.home-data-alert-text b {
  display: block;
  font-size: 0.875rem;
}
.home-data-alert-text small {
  display: block;
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--home-sub);
}
.home-chevron,
.hub-row-chevron {
  flex: none;
  font-size: 1.4rem;
  color: var(--home-sub, #765467);
}

/* 新曲のお知らせ（ホーム）：ボタン・文字を押しやすく読みやすく */
.home-screen .new-single-announcement-banner {
  margin-top: 10px;
}
.home-screen .new-single-announcement-body {
  font-size: 0.8125rem;
}
.home-screen .new-single-announcement-actions button {
  min-height: 44px;
  font-size: 0.8125rem;
}

/* 目次：上に貼り付く。押すとそのカードへ（タブではない） */
.home-cat-nav {
  position: sticky;
  top: var(--home-sticky-top);
  z-index: 5;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 8px -14px 0;
  padding: 5px 14px;
  background: rgba(255, 247, 251, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.home-cat-nav::-webkit-scrollbar {
  display: none;
}
.home-cat-nav-item {
  flex: 1 1 0;
  min-width: max-content;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #f3cfe0;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.home-cat-nav-item[aria-current="true"] {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

/* カード */
.home-cards {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.home-card {
  padding: 12px 10px 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #f3dbe7;
  box-shadow: 0 10px 24px -18px rgba(74, 46, 66, 0.45);
  container-type: inline-size;
}
.home-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0 2px 8px;
}
.home-card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text);
}
.home-card-lead {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--home-sub);
}
.home-card-note {
  margin: -2px 2px 8px;
  font-size: 0.78125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--home-sub);
}
.home-card--game {
  border: none;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.42) 0 12%, transparent 13%),
    linear-gradient(140deg, #ff5c9d 0%, #ff86b8 50%, #8fcaf5 100%);
  box-shadow: 0 18px 36px -16px rgba(255, 79, 150, 0.75);
}
.home-card--game .home-card-title,
.home-card--game .home-card-lead {
  color: #fff;
  text-shadow: 0 1px 2px rgba(160, 30, 90, 0.45);
}
/* イントロクイズの白い板 */
.home-intro {
  padding: 12px 10px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  box-shadow: 0 8px 20px -14px rgba(160, 30, 90, 0.6);
  container-type: inline-size;
}
.home-intro-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  margin: 0 2px 4px;
}
.home-intro-title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 800;
  color: #d0306f;
}
.home-intro-best {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff2bf;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #6b4b00;
}
.home-intro-best.is-empty {
  background: #f3eef1;
  color: var(--home-sub);
}
.home-intro-label {
  margin: 8px 2px 4px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--home-sub);
}
.home-seg {
  display: grid;
  gap: 4px;
}
.home-seg--count {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.home-seg--cat {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-seg-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 2px;
  border-radius: 14px;
  border: 1.5px solid #ffc3dc;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
  word-break: keep-all;
  cursor: pointer;
}
.home-seg-button small {
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--home-sub);
}
.home-seg-button[aria-checked="true"] {
  background: linear-gradient(140deg, #f0407f, #ff6fa8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(255, 79, 150, 0.9);
}
.home-seg-button[aria-checked="true"] small {
  color: #fff;
}
.home-seg-button:focus-visible,
.home-cat-nav-item:focus-visible,
.home-tact:focus-visible,
.home-data-row:focus-visible,
.home-intro-start:focus-visible {
  outline: 3px solid #4a9be0;
  outline-offset: 2px;
}
/* 狭い板（320px のスマホ・文字を大きくした端末）：出題数を 3個＋2個に */
@container (max-width: 18.75rem) { /* 300px 相当。rem なので、文字を大きくした端末ではもっと広い幅から 3＋2 になる */
  .home-seg--count {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .home-seg--count .home-seg-button {
    grid-column: span 2;
  }
  .home-seg--count .home-seg-button:nth-child(n + 4) {
    grid-column: span 3;
  }
}
.home-intro-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  margin-top: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(140deg, #e8327a, #ff6fa8);
  color: #fff;
  font-family: inherit;
  font-size: 1.1875rem;
  font-weight: 800;
  box-shadow: 0 10px 22px -10px rgba(255, 79, 150, 0.9);
  cursor: pointer;
}
.home-intro-start svg {
  width: 1.4em;
  height: 1.4em;
}
.home-intro-start:active {
  transform: scale(0.98);
}
.home-intro-start[data-state="noAudio"] svg,
.home-intro-start[data-state="tooFew"] svg {
  display: none;
}
.home-intro-start:disabled,
.home-intro-start.is-starting {
  opacity: 0.6;
  cursor: default;
}
.home-intro-notice {
  margin: 6px 2px 0;
  font-size: 0.78125rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--home-sub);
}

/* マイページ・データ：データの箱 */
.home-data-box {
  margin: 0 0 10px;
  padding: 8px;
  border-radius: 18px;
  background: #f3f8ff;
  border: 1px solid #d6e8fb;
  scroll-margin-top: 64px;
}
.home-data-pair {
  display: grid;
  gap: 6px;
}
.home-data-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 4px 12px;
  border-radius: 14px;
  border: 1.5px solid #9cc6f0;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.home-data-row:active {
  transform: scale(0.98);
}
.home-data-row-icon {
  flex: none;
  font-size: 1.25rem;
}
.home-data-row-text {
  flex: 1;
  min-width: 0;
}
.home-data-row-text b {
  display: block;
  font-size: 0.9375rem;
}
.home-data-row-text small {
  display: block;
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--home-sub);
}
.home-backup-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 2px 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}
.home-backup-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b9adb4;
}
.home-backup-status[data-kind="ok"] .home-backup-dot {
  background: #22945f;
}
.home-backup-status[data-kind="error"] {
  color: #a3341a;
}
.home-backup-status[data-kind="error"] .home-backup-dot {
  background: #d9482b;
}
.home-data-note {
  margin: 2px 2px 0;
  font-size: 0.78125rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--home-sub);
}
/* データの箱の3つは、どの幅でも1列（3つを2列にすると1つだけ余るため。2026-10-30 夜間） */

/* 動きを減らす設定：押したときの縮みもやめる */
@media (prefers-reduced-motion: reduce) {
  .home-tact:active,
  .home-data-row:active,
  .home-intro-start:active {
    transform: none;
  }
}

/* 幅が狭い端末（320px など）：外側の余白を少し詰めて、ボタンの幅を確保する */
@media (max-width: 359px) {
  .home-screen.screen {
    padding: 12px 10px 20px;
  }
  .home-cat-nav {
    margin-inline: -10px;
    padding-inline: 10px;
  }
  .home-card {
    padding-inline: 8px;
  }
  .home-intro {
    padding-inline: 8px;
  }
  .home-cat-nav-item {
    padding: 0 7px;
  }
  .home-seg-button {
    font-size: 0.8125rem;
  }
}

/* ---------- まとめ画面（ゲーム／楽曲・歌詞／ガイド／設定） ---------- */
.hub-screen.screen {
  padding: 16px 16px 28px;
}
.hub-lead {
  margin: 6px 0 12px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-sub);
}
.hub-card {
  margin: 0 0 16px;
  padding: 14px 12px;
  border-radius: 20px;
  border: 1px solid var(--color-card-border);
  background: rgba(255, 255, 255, 0.6);
}
.hub-row-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
}
.hub-row-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid var(--color-card-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.hub-row-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}
.hub-row-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hub-row-label {
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.3;
}
.hub-row-desc {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-sub);
}

/* ゲーム画面：グループ見出し */
.game-hub-group {
  margin: 0 0 16px;
}
.game-hub-group-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-text);
}
.game-hub-group-lead {
  margin: 2px 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-sub);
}
.game-hub-groups.home-special-modes-grid {
  display: block;
  margin: 0;
}
.game-hub-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
/* 以前のホームと同じ縦積みのカード（.home-special-modes-grid の中の見た目）をゲーム画面でも使う */
.game-hub-group-grid .special-mode-card {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: auto;
  min-width: 0;
}
.hub-screen .special-mode-card-title {
  font-size: 0.9375rem;
}
.hub-screen .special-mode-card-description {
  font-size: 0.8125rem;
  line-height: 1.4;
}
.hub-screen .special-mode-card-tap-target {
  min-height: 44px;
}
/* 「？」は見た目は小さな丸のまま、押せる範囲を 44px にする */
.hub-screen .special-mode-card-help-button {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, var(--color-primary-light) 0 13px, transparent 14px);
  font-size: 0.875rem;
}
@media (max-width: 359px) {
  .game-hub-group-grid {
    grid-template-columns: 1fr;
  }
}
.hub-screen .record-pill {
  min-height: 48px;
  font-size: 0.9375rem;
}
.hub-screen .eq-divider {
  margin-top: 8px;
}

/* 設定画面：効果音の行・折りたたみの見出しを押しやすく */
.hub-screen .sfx-settings-row {
  flex-wrap: wrap;
  gap: 8px;
}
.hub-screen .sfx-toggle-button,
.hub-screen .sfx-settings-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 64px;
  font-size: 0.875rem;
}
.hub-screen .data-management-section > summary,
.hub-screen .advanced-data-management-section > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
}

/* ---------- 端末の「戻る」を受け付けなかったときの短い案内（js/appHistory.js） ---------- */
.app-nav-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 10000;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(74, 46, 66, 0.92);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-cta {
    transition: none;
  }
}

/* ---------- まとめ画面へ移した既存の部品：文字を 13px 以上に（ホームにあった頃の小さい文字をここで底上げ） ---------- */
.hub-screen .eyebrow-chip,
.hub-screen .count-hint,
.hub-screen .question-count-notice,
.hub-screen .mode-best-condition,
.hub-screen .mode-best-value,
.hub-screen .listen-tile-label,
.hub-screen .listen-tile-desc,
.hub-screen .listen-wide-tile-arrow,
.hub-screen .sfx-settings-label,
.hub-screen .sfx-toggle-button span,
.hub-screen .lyrics-import-caption,
.hub-screen .audio-import-status,
.hub-screen .lyrics-import-status,
.hub-screen .audio-import-button,
.hub-screen .lyrics-import-button,
.hub-screen .optional-tag,
.hub-screen .special-mode-card-new-badge {
  font-size: max(0.8125rem, 13px);
}
.hub-screen .listen-tile-label {
  font-size: 0.9375rem;
}
.hub-screen .audio-import-button,
.hub-screen .lyrics-import-button,
.hub-screen .secondary-button {
  min-height: 44px;
}


/* 【2026-10-29】この端末のデータの状態 */
.data-status-result { margin-top: 10px; text-align: left; font-size: 13.5px; line-height: 1.6; }
.data-status-result p { margin: 2px 0; overflow-wrap: anywhere; }

/* =============================================================
   ホーム：全部のゲーム・カテゴリのデザイン・iPad / PC の段組み（2026-10-30 夜間・本人の依頼）
   - アイコンは index.html の <svg class="home-icon-sprite"> の <symbol>（線の色＝文字の色）
   - 色の付いた文字は使わず（コントラストを保つため）、色はアイコンの丸・カードの帯・背景だけに使う
   - 動き：押したときの軽い縮み（0.12秒）と、ライブのカードの光・楽曲のレコード（ホームを表示している間だけ。動きを減らす設定では止める）
   - iPad / PC（幅 768px 以上）は、ホームだけ枠を広げて段組みにする（ほかの画面の枠は 480px のまま）
   ============================================================= */
.home-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.hi {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-tact-icon {
  display: inline-flex;
}
.home-intro-best-icon {
  width: 1rem;
  height: 1rem;
  color: #b07a00;
}

/* 押したときの軽い反応（共通） */
.home-game,
.home-games-more,
.home-live-main,
.home-live-mode,
.home-live-row,
.home-next-live,
.home-music-item,
.home-know,
.home-my-link,
.home-data-row {
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.home-game:active,
.home-games-more:active,
.home-live-main:active,
.home-live-mode:active,
.home-live-row:active,
.home-next-live:active,
.home-music-item:active,
.home-know:active,
.home-my-link:active {
  transform: scale(0.97);
}
.home-game:focus-visible,
.home-games-more:focus-visible,
.home-live-main:focus-visible,
.home-live-mode:focus-visible,
.home-live-row:focus-visible,
.home-next-live:focus-visible,
.home-music-item:focus-visible,
.home-know:focus-visible,
.home-my-link:focus-visible {
  outline: 3px solid #4a9be0;
  outline-offset: 2px;
}

/* ---------- ゲーム：10種類 ---------- */
.home-game--random { --mode: #2b8a5e; --mode-soft: #e2f4ea; }
.home-game--lyrics { --mode: #1c6fc4; --mode-soft: #e1eefb; }
.home-game--outro { --mode: #6f42c1; --mode-soft: #eee6fb; }
.home-game--instant { --mode: #c25e00; --mode-soft: #ffefd9; }
.home-game--time { --mode: #c92a2a; --mode-soft: #ffe6e6; }
.home-game--weak { --mode: #0b7f8f; --mode-soft: #dbf2f5; }
.home-game--online { --mode: #3b5bdb; --mode-soft: #e5eaff; }
.home-game--party { --mode: #c2255c; --mode-soft: #ffe2ee; }
.home-game--original { --mode: #946200; --mode-soft: #fff1cc; }
.home-game--call { --mode: #9c36b5; --mode-soft: #f5e4fa; }

.home-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
  margin-top: 12px;
  container-type: inline-size;
}
.home-game-group--solo {
  grid-column: 1 / -1;
}
.home-game-group {
  min-width: 0;
}
.home-game-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 0 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(120, 16, 70, 0.62);
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff;
}
.home-game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.home-game-group--solo .home-game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* 案A（2列・横長・アイコンが左）。案B（3列の縦長）・案C（1列の一覧）と比べて決めた（renewal-notes/night-home.md） */
.home-game {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 64px;
  padding: 8px 8px 10px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 55%, var(--mode-soft));
  box-shadow: inset 0 -3px 0 var(--mode), 0 6px 14px -10px rgba(120, 20, 70, 0.55);
  color: var(--color-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.home-game-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--mode);
  color: #fff;
  box-shadow: 0 3px 8px -3px var(--mode);
}
.home-game-icon .hi {
  width: 1.2rem;
  height: 1.2rem;
}
.home-game-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.home-game-title {
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-game-desc {
  font-size: 0.78125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--home-sub);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* ゲームの一覧が広いとき（iPad 横・PC）：ひとりで挑戦を3列に */
@container (min-width: 36rem) {
  .home-game-group--solo .home-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.home-games-more {
  display: flex;
  width: 100%;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #a3195b;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
}
.home-games-more .home-chevron {
  color: #a3195b;
}
/* ---------- ライブ：会場の光 ---------- */
.home-card.home-card--live {
  position: relative;
  overflow: hidden;
  border: none;
  background:
    radial-gradient(ellipse 60% 50% at 12% 0%, rgba(255, 92, 157, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 45% at 88% 4%, rgba(90, 170, 255, 0.5), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(170, 90, 255, 0.45), transparent 70%),
    linear-gradient(165deg, #2a1146 0%, #3d1658 50%, #1c2350 100%);
  box-shadow: 0 16px 32px -18px rgba(40, 10, 70, 0.85);
  color: #fff;
}
.home-card--live .home-card-head {
  position: relative;
  padding-right: 64px; /* 右上の光の棒と重ならない */
}
.home-card--live .home-card-title {
  color: #fff;
}
.home-card--live .home-card-lead {
  color: #f0e4ff;
}
.home-card--live .home-chevron {
  color: #fff;
}
/* 右上の光の棒（飾り）。会場で振られる光のイメージ */
.home-live-lights {
  position: absolute;
  top: 6px;
  right: 12px;
  display: flex;
  gap: 7px;
  pointer-events: none;
}
.home-live-lights i {
  display: block;
  width: 5px;
  height: 30px;
  border-radius: 3px;
  background: var(--glow);
  box-shadow: 0 0 8px 1px var(--glow), 0 0 18px 2px var(--glow);
  transform: rotate(var(--tilt));
  transform-origin: 50% 100%;
  opacity: 0.9;
}
.home-live-lights i:nth-child(1) { --glow: #ff6fa8; --tilt: -14deg; }
.home-live-lights i:nth-child(2) { --glow: #c9a8ff; --tilt: -6deg; }
.home-live-lights i:nth-child(3) { --glow: #74c0fc; --tilt: 4deg; }
.home-live-lights i:nth-child(4) { --glow: #ffe066; --tilt: 12deg; }
.home-live-lights i:nth-child(5) { --glow: #8ce99a; --tilt: -8deg; }
.home-live-lights i:nth-child(6) { --glow: #ff8787; --tilt: 6deg; }
.home-live-lights i:nth-child(7) { --glow: #f8f9fa; --tilt: -3deg; }
@media (prefers-reduced-motion: no-preference) {
  body[data-screen="start"] .home-live-lights i {
    animation: home-live-sway 2.6s ease-in-out infinite alternate;
  }
  body[data-screen="start"] .home-live-lights i:nth-child(2n) {
    animation-delay: -1.3s;
  }
  body[data-screen="start"] .home-live-lights i:nth-child(3n) {
    animation-delay: -0.6s;
  }
}
@keyframes home-live-sway {
  from { transform: rotate(var(--tilt)); }
  to { transform: rotate(calc(var(--tilt) * -1)); }
}
@media (max-width: 400px) {
  .home-live-lights i:nth-child(n + 5) {
    display: none;
  }
}
.home-next-live {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 224, 102, 0.7);
  border-radius: 14px;
  background: rgba(255, 224, 102, 0.14);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.home-next-live[hidden] {
  display: none;
}
.home-next-live-label {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe066;
  color: #3d2a00;
  font-size: 0.78125rem;
  font-weight: 800;
}
.home-next-live {
  flex-wrap: wrap;
}
.home-next-live-text {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.home-next-live-text b {
  font-size: 0.875rem;
  line-height: 1.3;
}
.home-next-live-text small {
  word-break: keep-all; /* 日付を「1月20／日」のように切らない（〜の後ろでだけ改行） */
  font-size: 0.78125rem;
  font-weight: 700;
  color: #fff3c4;
}
.home-live-main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px 14px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(120deg, #d6286e 0%, #9c36c9 100%);
  box-shadow: 0 10px 22px -12px rgba(255, 79, 150, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.home-live-main-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.home-live-main-icon .hi {
  width: 1.4rem;
  height: 1.4rem;
}
.home-live-main-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.home-live-main-text b {
  font-size: 1.0625rem;
}
.home-live-main-text small {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}
.home-live-new {
  margin-top: 10px;
}
.home-live-new-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 2px 6px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff;
}
.home-live-new-lead {
  margin: -3px 2px 6px;
  font-size: 0.78125rem;
  font-weight: 700;
  color: #eadcff;
}
.home-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: #ffe066;
  color: #3d2a00;
  font-size: 0.78125rem;
  font-weight: 800;
}
.home-live-new-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.home-live-mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  min-height: 88px;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.home-live-mode .hi {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 2px;
}
.home-live-mode--sheet .hi { color: #ffc9a3; }
.home-live-mode--live .hi { color: #ffe066; filter: drop-shadow(0 0 4px rgba(255, 224, 102, 0.8)); }
.home-live-mode--karaoke .hi { color: #99e9f2; }
.home-live-mode b {
  font-size: 0.84375rem;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-live-mode small,
.home-live-row small {
  font-size: 0.78125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #eadcff;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-live-sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.home-live-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 56px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.home-live-row > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.home-live-row b {
  font-size: 0.84375rem;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-live-row .hi {
  width: 1.5rem;
  height: 1.5rem;
  color: #ffd8e8;
}
.hi--beginner {
  stroke: none;
}

/* ---------- 楽曲・歌詞：プレイヤーとレコード ---------- */
.home-card.home-card--music {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 100%, rgba(255, 175, 215, 0.35), transparent 45%),
    linear-gradient(150deg, #f4f0ff 0%, #e6f0ff 60%, #eef7ff 100%);
  border-color: #cfdcfa;
}
.home-card--music .home-card-head,
.home-card--music .home-card-note {
  position: relative;
  padding-right: 64px;
}
/* 右上のレコード（飾り） */
.home-music-disc {
  position: absolute;
  top: -34px;
  right: -30px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 4px, #ff6fa8 5px 17px, transparent 18px),
    repeating-radial-gradient(circle, #2f2846 0 2px, #3c3459 2px 4px);
  box-shadow: 0 8px 18px -8px rgba(40, 30, 80, 0.6);
  pointer-events: none;
}
.home-music-cols {
  display: grid;
  gap: 8px;
}
.home-music-col {
  display: grid;
  gap: 4px;
}
/* ボタンは 6.5rem 以上の幅で並べ、入らなければ次の行へ（「プレイリス／ト」のような折り返しを作らない） */
.home-music-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(6.25rem, 100%), 1fr));
  gap: 6px;
}
.home-music-col-title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 2px;
  color: #2f3f8f;
  font-size: 0.8125rem;
  font-weight: 800;
}
.home-music-col-title .hi {
  width: 1.15rem;
  height: 1.15rem;
}
.home-music-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 54px;
  padding: 5px 8px;
  border: 1px solid #d3def8;
  border-radius: 14px;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.home-music-item b {
  font-size: 0.84375rem;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-music-item small {
  font-size: 0.78125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--home-sub);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- ＝LOVEをもっと知る：何が見られるかの見出し ---------- */
.home-card.home-card--know {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 190, 220, 0.45), transparent 40%),
    linear-gradient(150deg, #fff 0%, #faf2ff 60%, #fff0f6 100%);
  border-color: #ead8f5;
}
.home-know--members { --know: #d6336c; }
.home-know--centers { --know: #a35f00; }
.home-know--history { --know: #5f3dc4; }
.home-know--tv { --know: #1864ab; }
.home-know--cm { --know: #c2410c; }
.home-know--about { --know: #ae3ec9; }
.home-know-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
/* カードが広いとき（iPad 縦の1列など）は3列 */
@container (min-width: 36rem) {
  .home-know-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.home-know {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  min-height: 96px;
  padding: 9px 10px 10px;
  border: 1px solid #eedcf3;
  border-radius: 16px;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.home-know-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--know);
  color: #fff;
}
.home-know-icon .hi {
  width: 1.15rem;
  height: 1.15rem;
}
.home-know-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.home-know-text b {
  font-size: 0.9375rem;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-know-hook {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--home-sub);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-know-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 1px;
}
.home-know-colors i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* ---------- マイページ・データ：整っていて安心 ---------- */
.home-card.home-card--my {
  background: linear-gradient(150deg, #f6fcf9 0%, #f1f7ff 100%);
  border-color: #d3e8e0;
}
.home-card--my .home-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home-my-shield {
  width: 1.35rem;
  height: 1.35rem;
  color: #2b8a5e;
}
.home-data-row-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: #e3effc;
  color: #1c6fc4;
}
.home-data-row-icon .hi {
  width: 1.15rem;
  height: 1.15rem;
}
.home-my-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.home-my-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 56px;
  padding: 4px;
  border: 1px solid #d3e8e0;
  border-radius: 14px;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.84375rem;
  font-weight: 800;
  cursor: pointer;
}
.home-my-link .hi {
  color: #2b8a5e;
}
.home-my-link span {
  word-break: keep-all;
}

/* ---------- 狭い板・文字を大きくした端末 ---------- */
@container (max-width: 21rem) { /* 336px 相当（rem なので、文字を大きくした端末ではもっと広い幅から） */
  .home-game-group--solo .home-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-game {
    min-height: 0;
  }
  .home-live-new-grid {
    grid-template-columns: 1fr;
  }
  .home-live-mode {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    min-height: 52px;
  }
  .home-live-mode small {
    flex: 1 1 100%;
    padding-left: calc(1.5rem + 8px);
  }
}
@container (max-width: 19.5rem) { /* 320px のスマホなど：アイコンを少し小さくして、題名を1行に入れやすく */
  .home-game {
    gap: 6px;
    padding-inline: 6px;
  }
  .home-game-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
  .home-game-icon .hi {
    width: 1rem;
    height: 1rem;
  }
}
@container (max-width: 16rem) { /* 文字を大きくした狭い端末：ひとりで挑戦も1列（題名を言葉の途中で折り返さない） */
  .home-game-group--solo .home-game-grid {
    grid-template-columns: 1fr;
  }
}
@container (max-width: 17.5rem) {
  .home-games {
    grid-template-columns: 1fr;
  }
  .home-live-sub,
  .home-know-grid {
    grid-template-columns: 1fr;
  }
  .home-know {
    min-height: 0;
  }
}

/* ---------- iPad・PC：ホームだけ枠を広げて段組み ---------- */
@media (min-width: 768px) {
  body[data-screen="start"] .game-frame {
    max-width: min(1200px, 100%);
  }
  .home-screen.screen {
    padding: 18px 22px 28px;
  }
  .home-cat-nav {
    margin-inline: -22px;
    padding-inline: 22px;
  }
  .home-cards {
    gap: 14px;
    margin-top: 12px;
  }
  .home-card {
    padding: 16px 14px 14px;
  }
  .home-cat-nav-item {
    flex: 1 1 0;
  }
}
/* iPad（1024 以上）・PC：ライブと楽曲、＝LOVE とマイ・データを2列に（ゲームのカードは横いっぱい）。
   768〜1023 は1列のまま（半分の幅では、ライブのカードが縦に長くなり隣が大きく空くため）。カードの高さは中身に合わせる */
@media (min-width: 1024px) {
  .home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .home-card--game {
    grid-column: 1 / -1;
  }
  /* イントロと全ゲームが横に並ぶ幅：板の押す所を少し大きく（文字は大きくしない。板の中は板自身の幅で決まるので、ここは画面の幅で） */
  .home-game-layout .home-seg-button {
    min-height: 52px;
  }
  .home-game-layout .home-intro-label {
    margin-top: 12px;
  }
  .home-game-layout .home-intro-start {
    min-height: 60px;
    margin-top: 14px;
  }
}
/* ゲームのカードが広いとき（iPad 横・PC。カードの幅 800px 相当以上）：イントロクイズ（左）と全部のゲーム（右）を横に */
@container (min-width: 50rem) {
  /* 左：イントロの板、その下に「遊び方の説明・記録」／右：全部のゲーム（2段分） */
  .home-game-layout {
    display: grid;
    grid-template-columns: minmax(22rem, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
    gap: 0 18px;
    align-items: start;
  }
  .home-game-layout .home-intro {
    grid-column: 1;
    grid-row: 1;
  }
  .home-game-layout .home-games {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .home-game-layout .home-games-more {
    grid-column: 1;
    grid-row: 2;
    margin-top: 12px;
  }
  .home-game-layout .home-games {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-game,
  .home-games-more,
  .home-live-main,
  .home-live-mode,
  .home-live-row,
  .home-next-live,
  .home-music-item,
  .home-know,
  .home-my-link,
  .home-data-row {
    transition: none;
  }
  .home-game:active,
  .home-games-more:active,
  .home-live-main:active,
  .home-live-mode:active,
  .home-live-row:active,
  .home-next-live:active,
  .home-music-item:active,
  .home-know:active,
  .home-my-link:active {
    transform: none;
  }
}

/* =====================================================================
   【2026-10-30 夜間の修正（fix-home）】独立レビューの指摘への直し。
   ここより上の同じ部品の指定を、ここで上書きする（直した所をまとめて見られるように）。
   ===================================================================== */

/* ---- コントラスト：ピンクの地に白い文字（4.5 以上、大きい文字は 3 以上）。ピンクの感じは保ち、地を少し濃くする ---- */
/* 「ゲームで遊ぶ」：見出しの所だけ、上から濃いピンクを重ねる（下に行くほど今までの明るいピンク）。
   右上の光の円も、見出しの所ではこの濃いピンクの下になる（白い文字と光の円が重ならない） */
.home-card--game {
  background:
    linear-gradient(180deg, rgba(176, 18, 88, 0.72) 0, rgba(176, 18, 88, 0.72) 2.5rem, rgba(176, 18, 88, 0.42) 3.5rem, rgba(176, 18, 88, 0) 5.5rem),
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.42) 0 12%, transparent 13%),
    linear-gradient(140deg, #ff5c9d 0%, #ff86b8 50%, #8fcaf5 100%);
}
/* 選ばれた「5問」「表題曲のみ」 */
.home-seg-button[aria-checked="true"] {
  background: linear-gradient(140deg, #c81e63, #d92672);
}
/* 開始ボタン（19px の太字＝大きい文字） */
.home-intro-start {
  background: linear-gradient(140deg, #d42568, #e8327a);
}
/* 目次の今いる所「ゲーム」 */
.home-cat-nav-item[aria-current="true"] {
  background: #d3286c;
  border-color: #d3286c;
}

/* ---- 320px などの変な改行：題名は折り返さない ---- */
.home-game-title,
.home-live-mode b,
.home-live-row b,
.home-music-item b,
.home-know-text b {
  white-space: nowrap;
}
/* 「コールを覚える（今までの版）」：（今までの版）だけを、入らないときに次の行へ（言葉の途中では切らない） */
.home-game-title,
.home-live-main-text b {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.home-live-main-text b {
  white-space: nowrap;
}
.home-game-title-sub,
.home-live-main-sub {
  font-size: 0.78125rem;
  font-weight: 700;
}
.home-game-title-sub {
  color: var(--home-sub);
}
/* ゲームの一覧が狭いとき（320〜390px のスマホ）：アイコンを題名の上に置き、題名を1行に（「ランダム再生／クイズ」にしない） */
@container (max-width: 23rem) {
  .home-game {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 9px 10px;
  }
  .home-game-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
  .home-game-icon .hi {
    width: 1rem;
    height: 1rem;
  }
}
/* ライブのカードが狭いとき（320px）：ライブ履歴・セトリ／はじめてのライブを1列に（「ライブ履歴・／セトリ」にしない） */
@container (max-width: 19rem) {
  .home-live-sub {
    grid-template-columns: 1fr;
  }
}

/* ---- ライブ：今までの「コールを覚える」は少し控えめに（新しい3つと同じくらいの強さ。ピンクの線で区別） ---- */
.home-live-main {
  min-height: 56px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 140, 190, 0.6);
  background: linear-gradient(120deg, rgba(214, 40, 110, 0.45) 0%, rgba(156, 54, 201, 0.35) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.home-live-main-icon {
  width: 2.125rem;
  height: 2.125rem;
}
.home-live-main-icon .hi {
  width: 1.2rem;
  height: 1.2rem;
}
.home-live-main-text b {
  font-size: 0.9375rem;
}
.home-live-main-text small {
  font-size: 0.78125rem;
  color: #f3e8ff;
}

/* ---- ＝LOVE：カードごとの小さな見どころ（数の札・下の色の帯。メンバーはメンバーカラーの帯） ---- */
.home-know {
  overflow: hidden;
  padding-bottom: 13px;
  box-shadow: inset 0 -3px 0 var(--know);
}
.home-know-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--know);
  color: #fff;
  font-size: 0.78125rem;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}
.home-know-badge[hidden] {
  display: none;
}
.home-know--members {
  box-shadow: none;
}
.home-know--members .home-know-colors {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  flex-wrap: nowrap;
  gap: 0;
  height: 6px;
  margin: 0;
}
.home-know--members .home-know-colors i {
  flex: 1;
  width: auto;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

/* ---- iPad 横・PC：楽曲のカードの下の空き（約70px）を無くす（ライブと同じ高さにし、ボタンを少し高くして埋める） ---- */
@media (min-width: 1024px) {
  .home-cards {
    align-items: stretch;
  }
  .home-card--music {
    display: flex;
    flex-direction: column;
  }
  .home-card--music .home-music-cols {
    flex: 1;
    grid-auto-rows: 1fr;
  }
  .home-card--music .home-music-col {
    grid-template-rows: auto 1fr;
  }
}
/* 上部バーの「推しメンを登録しよう」（白い文字・ピンクの地。今までは 約2.7:1） */
.home-topbar .home-topbar-oshi.is-empty {
  background: linear-gradient(120deg, #d3286c, #c81e63);
}
