/* ミニゲーム一覧 */
body.hub {
  min-height: 100%;
  background:
    radial-gradient(120% 70% at 50% 0%, transparent 40%, var(--paper-deep) 100%),
    var(--paper);
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));
}

.hub-head {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
}
.hub-head .g-back { justify-self: start; }
.hub-kicker {
  margin: 28px 0 0;
  font-size: 13px;
  letter-spacing: 0.5em;
  color: var(--ink-soft);
}
.hub-title {
  margin: 6px 0 0;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(34px, 7vw, 56px);
  letter-spacing: 0.12em;
  line-height: 1.2;
}
.hub-title span {
  display: inline-block;
  margin-right: 0.12em;
  font-size: 1.35em;
  color: var(--accent);
}
.hub-lead {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.hub-grid {
  max-width: 1080px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.hub-card {
  display: grid;
  grid-template-rows: auto 1fr;
  color: inherit;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  background: var(--chip-hover);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.2, 1.2), box-shadow 0.25s;
}
.hub-card:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 22px 44px -18px rgba(60, 34, 14, 0.45); }
.hub-card:active { transform: scale(0.98); }
.hub-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.hub-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-deep);
}
.hub-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hub-card:hover .hub-thumb img { transform: scale(1.05); }

.hub-body {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 18px 18px;
}
.hub-tag { font-size: 11px; letter-spacing: 0.2em; color: var(--ink-soft); }
.hub-name {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.1em;
}
.hub-desc { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }
.hub-best {
  justify-self: start;
  margin-top: 4px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  background: var(--accent);
}
.hub-best[hidden] { display: none; }

.hub-foot {
  max-width: 1080px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: var(--ink-soft);
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .hub-card, .hub-thumb img { transition: none; }
}

/* スマホ: サムネイルを左、説明を右に並べて一覧を短く */
@media (max-width: 560px) {
  .hub-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .hub-card { grid-template-rows: none; grid-template-columns: 38% 1fr; }
  .hub-thumb { aspect-ratio: auto; height: 100%; min-height: 120px; }
  .hub-body { padding: 12px 14px 14px; gap: 4px; }
  .hub-name { font-size: 20px; }
  .hub-desc { font-size: 12px; line-height: 1.7; }
}
