/*
 * Coopedia — Main Stylesheet
 * コンポーネント・レイアウト・ページ別スタイル
 */

/* ════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════ */

.section {
  padding: var(--space-2xl) var(--space-xl);
  max-width: 1440px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.see-all {
  font-size: 12px;
  color: var(--accent);
  opacity: 0.6;
  font-weight: 500;
  transition: opacity 0.2s;
}

.see-all:hover { opacity: 1; }


/* ════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  height: 68px;
  background: rgba(7, 7, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
  transition: text-shadow 0.2s;
}

.logo:hover {
  text-shadow: 0 0 32px rgba(0, 217, 255, 0.6);
}

.logo span { color: var(--green); }

.logo-img {
  height: 60px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
  object-fit: contain;
}

/* WordPress nav menu reset */
.site-header nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}

.site-header nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.site-header nav a:hover { color: var(--text); }


/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════
   Donate セクション
════════════════════════════════════════════════ */
.section-donate {
  padding: var(--space-xl) var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--border);
}

.donate-text {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.btn-donate {
  display: inline-block;
  padding: 12px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-donate:hover {
  border-color: var(--accent);
  background: rgba(0, 217, 255, 0.05);
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--space-xl) 32px;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: var(--space-2xl);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-syne, 'Syne', sans-serif);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text);
}

.footer-logo span {
  color: var(--ice);
}

.footer-nav {}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
}

.footer-nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .04em;
  transition: color .2s;
}

.footer-nav-list a:hover {
  color: var(--ice);
}

.footer-copy {
  font-size: 11px;
  opacity: .5;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.footer-logo span {
  color: var(--green);
  opacity: 0.5;
}


/* ════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px var(--space-xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* ── ゲーム画像マーキー ── */
.hero-marquee {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.12;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
}

.hero-marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: hero-marquee-scroll 60s linear infinite;
}

.hero-marquee-img {
  height: 160px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes hero-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track { animation: none; }
}

/* 旧グリッド背景・glow orb → .hgrid / .hvign に統合したため無効化 */
.hero::before { display: none; }
/* .hero::after は Archive Room の bottom-fade で上書き済み */

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  justify-content: center;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 36px; height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 120px);
  letter-spacing: 8px;
  line-height: 0.9;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.hero-title .line1 { color: var(--text); }

.hero-title .line2 {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(0, 217, 255, 0.35);
}

.hero-sub {
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 48px;
  font-family: var(--font-ja);
  font-weight: 300;
  line-height: 2;
  position: relative;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 64px;
  justify-content: center;
  position: relative;
  padding-top: 32px;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.stat { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--accent);
  letter-spacing: 2px;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-ja);
  display: block;
  margin-top: 6px;
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}

.scroll-down::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ════════════════════════════════════════════════
   SEARCH BAR
════════════════════════════════════════════════ */

.search-container {
  position: relative;
  width: 100%;
  max-width: 620px;
  z-index: 2;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.08);
}

.search-bar input[type="text"],
.search-bar input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-ui);
  min-width: 0;
}

.search-bar input::placeholder { color: var(--text-muted); }

/* Filter Everything の検索フィールドにも適用 */
.search-bar .woof_search_input,
.search-bar .search-field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-ui);
}

.search-btn {
  background: var(--accent);
  color: #07070f;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn:hover {
  background: #33e3ff;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.02);
}

.search-btn:active { transform: scale(0.98); }

.search-hint {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hint-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-ja);
}

.hint-tag:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}


/* ════════════════════════════════════════════════
   GAME GRID
════════════════════════════════════════════════ */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}


/* ════════════════════════════════════════════════
   GAME CARD
════════════════════════════════════════════════ */

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.card-link {
  display: block;
  color: inherit;
}

.card-cover {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.game-card:hover .card-cover img {
  transform: scale(1.04);
}

.card-unreleased-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25);
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}

.card-cover-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d1b2a 0%, #1a2744 50%, #0d2137 100%);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 16px;
  word-break: break-word;
  overflow: hidden;
}

.card-platforms {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.platform-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--text);
  backdrop-filter: blur(8px);
  line-height: 1.6;
}

.platform-badge.large {
  font-size: 11px;
  padding: 4px 10px;
}

.coop-badge-list {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.coop-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.6;
}

.coop-badge.online {
  background: rgba(7, 7, 15, 1);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.coop-badge.local {
  background: rgba(7, 7, 15, 1);
  color: var(--green);
  border: 1px solid rgba(57, 232, 142, 0.5);
}

.card-body { padding: 12px 14px; }

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.players-count {
  color: var(--green);
  font-weight: 600;
}


/* ════════════════════════════════════════════════
   BROWSE SHORTCUTS
════════════════════════════════════════════════ */

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.browse-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.browse-card:hover {
  border-color: var(--border-accent);
  background: var(--surface-2);
}

.browse-icon { font-size: 22px; line-height: 1; }

.browse-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  font-family: var(--font-ja);
  line-height: 1.4;
}

.browse-count {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: auto;
}


/* ════════════════════════════════════════════════
   FILTER OVERLAY（ホームページ用ボトムシート）
════════════════════════════════════════════════ */

.filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.filter-overlay.open {
  pointer-events: all;
  opacity: 1;
}

.filter-backdrop {
  position: absolute; inset: 0;
  background: rgba(7, 7, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filter-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  padding: 28px var(--space-xl) var(--space-xl);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  max-height: 82vh;
  overflow-y: auto;
}

.filter-overlay.open .filter-panel {
  transform: translateY(0);
}

.filter-handle {
  width: 40px; height: 4px;
  background: var(--surface-3);
  border-radius: 4px;
  margin: 0 auto 28px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.filter-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.filter-close {
  width: 34px; height: 34px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  transition: background 0.15s, color 0.15s;
}

.filter-close:hover {
  background: var(--surface-3);
  color: var(--text);
}

.filter-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
}

.filter-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Filter Everything のチェックボックスUIをチップ風に上書き */
.filter-chips,
.woof_container_inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip,
.woof_container_inner label {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  font-family: var(--font-ui);
  white-space: nowrap;
}

.filter-chip:hover,
.woof_container_inner label:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.filter-chip.active,
.woof_container_inner input:checked + label {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.filter-chip.green-type.active {
  background: var(--green-dim);
  border-color: rgba(57, 232, 142, 0.3);
  color: var(--green);
}

/* Filter Everything のチェックボックス本体を非表示 */
.woof_container_inner input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.filter-actions .btn,
.filter-actions .filter-reset-link {
  width: 100%;
  text-align: center;
}

.btn-reset {
  flex: 0 0 auto;
  padding: 14px 24px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-reset:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn-apply {
  flex: 1;
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  color: #07070f;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-apply:hover {
  background: #33e3ff;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: scale(1.01);
}


/* ════════════════════════════════════════════════
   ARCHIVE PAGE（一覧・検索結果）
════════════════════════════════════════════════ */

.archive-page { padding-top: calc(64px + var(--space-2xl)); }

.archive-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.archive-title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 3px;
  color: var(--text);
}

.archive-count {
  font-size: 12px;
  color: var(--text-muted);
}

.archive-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* サイドバーフィルター */
.filter-sidebar {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-sidebar .filter-section-title {
  margin-bottom: 10px;
}

/* Filter Everything のサイドバー内スタイル調整（Coreserver / Apache対応） */
.filter-sidebar .woof_container_inner {
  flex-direction: column;
  gap: 6px;
}

.filter-sidebar .woof_container_inner label {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.no-results {
  color: var(--text-muted);
  font-family: var(--font-ja);
  padding: var(--space-xl) 0;
  text-align: center;
}

/* Pagination */
.archive-main .navigation,
.archive-main .wp-pagenavi,
.archive-main .page-numbers {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.pagination ul.page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  width: auto !important;
  height: auto !important;
}
.pagination ul.page-numbers li {
  list-style: none;
  display: flex;
}

.page-numbers,
.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.15s;
}

.page-numbers.prev,
.page-numbers.next {
  width: auto;
  padding: 0 16px;
  white-space: nowrap;
  gap: 4px;
}

.page-numbers.current,
.page-numbers:hover,
.wp-pagenavi a:hover,
.wp-pagenavi span.current {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}


/* ════════════════════════════════════════════════
   SINGLE GAME PAGE（個別ページ）
════════════════════════════════════════════════ */

.single-game {
  padding-top: 0;
}

.single-game-header {
  margin-bottom: 32px;
}

.single-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  letter-spacing: 4px;
  color: var(--text);
  margin-bottom: 12px;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.single-game-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-bottom: var(--space-2xl);
}

.single-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  aspect-ratio: 3 / 4;
}

.single-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.info-block.highlight {
  border-color: rgba(0, 217, 255, 0.15);
  background: var(--accent-dim);
}

.info-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.info-value {
  font-size: 20px;
  font-family: var(--font-display);
  letter-spacing: 2px;
  color: var(--text);
}

.coop-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.coop-info-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coop-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.coop-val {
  font-size: 16px;
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: var(--accent);
}

.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  transition: all 0.15s;
}

.genre-chip:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  width: fit-content;
}

.btn-steam:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  width: fit-content;
}

.btn-google:hover {
  color: var(--text-1);
  background: var(--surface-3);
}

.single-description {
  max-width: 720px;
  line-height: 1.8;
  color: var(--text-dim);
  font-family: var(--font-ja);
  margin-bottom: var(--space-2xl);
}

.related-games {
  border-top: 1px solid var(--border);
  padding-top: var(--space-xl);
}

.related-games .section-title {
  margin-bottom: 24px;
}


/* ════════════════════════════════════════════════
   TOAST（通知）
════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-2);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-size: 13px;
  color: var(--accent);
  z-index: 300;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
  opacity: 0;
  white-space: nowrap;
  font-family: var(--font-ja);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}


/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    display: none; /* モバイルではボトムシートに切り替え */
  }

  .single-game-layout {
    grid-template-columns: 1fr;
  }

  .single-cover {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-xl) var(--space-md);
  }

  .site-header {
    padding: 0 var(--space-md);
  }

  /* ナビはJS制御の固定パネルに変更 */
  #site-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--surface);
    z-index: 1000;
    padding: 80px var(--space-xl) var(--space-xl);
    box-sizing: border-box;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block !important;
  }
  #site-nav.is-open { right: 0; }
  #site-nav ul {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0; margin: 0;
  }
  #site-nav ul li a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
  }

  /* ナビオーバーレイ */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  .nav-overlay.is-open { display: block; }

  .hero-stats {
    gap: 32px;
  }

  /* ヒーローコンテンツを中央揃え */
  .hero .container {
    text-align: center;
  }
  .hero-subtitle {
    text-align: center;
  }
  .hero-criteria-link {
    text-align: center;
  }

  .filter-sections {
    grid-template-columns: 1fr;
  }

  .coop-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .archive-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .browse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ════════════════════════════════════════════════
   ADDITIONS — 2026-03-13
   front-page / archive-game / single-game /
   taxonomy テンプレート追加に伴う補足スタイル
════════════════════════════════════════════════ */

/* ── コンテナ ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
}

/* ── ボタン共通 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #07070f;
}
.btn-primary:hover {
  background: #33e3ff;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: scale(1.02);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Hero 追加クラス ── */
/* .hero-sub の別名 */
.hero-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 48px;
  font-family: var(--font-ja);
  font-weight: 300;
  line-height: 2;
  position: relative;
}

/* 統計ブロック（.stat の別名） */
.stat-item {
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  align-self: center;
}

/* ── 検索バー追加ボタン ── */
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-ui);
  min-width: 0;
}
.search-input::placeholder { color: var(--text-muted); }

.btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-filter:hover, .btn-filter[aria-expanded="true"] {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  color: #07070f;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-search:hover {
  background: #33e3ff;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.05);
}

.search-hints {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hints-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.hero-criteria-link {
  margin-top: 10px;
  text-align: center;
}

.criteria-link {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.criteria-link:hover {
  opacity: 1;
  color: var(--accent);
}

/* ── フィルターオーバーレイ（is-open / filter-sheet） ── */
.filter-overlay.is-open {
  pointer-events: all;
  opacity: 1;
}

.filter-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  max-height: 82vh;
  overflow-y: auto;
}

.filter-overlay.is-open .filter-sheet {
  transform: translateY(0);
}

.filter-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 20px;
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}

.filter-sheet-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.filter-close-btn {
  width: 34px; height: 34px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.filter-close-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.filter-sheet-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-sheet-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--border);
}

.filter-group { display: flex; flex-direction: column; gap: 10px; }

.filter-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-chip.cyan:hover,  .filter-chip.cyan.is-active,  .filter-chip.cyan.is-selected  { color: var(--accent); border-color: var(--border-accent); background: var(--accent-dim); }
.filter-chip.green:hover, .filter-chip.green.is-active, .filter-chip.green.is-selected { color: var(--green);  border-color: rgba(57,232,142,.3);   background: var(--green-dim); }

/* body スクロール抑制 */
body.filter-is-open { overflow: hidden; }

/* ── セクション共通 ── */
.section-games,
.section-browse {
  padding: var(--space-2xl) 0;
}
.section-new { background: var(--surface); }

.section-link {
  font-size: 12px;
  color: var(--accent);
  opacity: 0.7;
  font-weight: 500;
  transition: opacity 0.2s;
}
.section-link:hover { opacity: 1; }

.section-title-sm {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* 4カラムグリッド */
.game-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.no-results-text {
  font-size: 14px;
  font-family: var(--font-ja);
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ── アーカイブレイアウト ── */
.archive-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  padding: calc(64px + var(--space-2xl)) var(--space-xl) var(--space-2xl);
  max-width: 1440px;
  margin: 0 auto;
}

.archive-main { min-width: 0; }

.archive-title-wrap { flex: 1; }

.archive-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-ja);
  margin-top: 8px;
  line-height: 1.7;
}

.archive-tax-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ── ソート切り替え ── */
.archive-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sort-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.sort-links {
  display: flex;
  gap: 4px;
}

.sort-link {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.sort-link:hover { color: var(--text); background: var(--surface-2); }
.sort-link.is-active {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

/* ── サイドバー内部 ── */
.filter-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-sidebar-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

/* アコーディオン */
.filter-accordion { border-bottom: 1px solid var(--border); }

.filter-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 4px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-ja);
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}
.filter-accordion-btn:hover { color: var(--text); }
.filter-accordion-btn.is-open { color: var(--accent); }

.accordion-icon {
  transition: transform 0.25s;
  flex-shrink: 0;
  color: var(--text-muted);
}
.filter-accordion-btn.is-open .accordion-icon {
  transform: rotate(180deg);
}

.filter-accordion-body {
  list-style: none;
  margin: 0;
  padding: 4px 0 12px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-term-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-ja);
  transition: all 0.15s;
}
.filter-term-link:hover { background: var(--surface-2); color: var(--text); }
.filter-term-link.is-active,
.filter-term-link.is-selected {
  background: var(--accent-dim);
  color: var(--accent);
}

.filter-term-count {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 10px;
}

.filter-reset-link {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 14px 0 4px;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filter-reset-link:hover { color: var(--text); }

/* ── 個別ゲームページ ── */
.game-hero {
  padding: calc(64px + var(--space-lg)) 0 var(--space-xl);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}

.game-hero-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.game-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  aspect-ratio: 3 / 4;
}

.game-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 52px;
  color: rgba(255,255,255,.05);
  letter-spacing: 4px;
}

.game-info-primary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

/* バッジ共通 */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 5px;
  line-height: 1.6;
}
.badge--platform {
  background: rgba(0,0,0,.65);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.badge--coop {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.badge--free {
  background: rgba(255, 200, 0, 0.15);
  color: #ffc800;
  border: 1px solid rgba(255, 200, 0, 0.4);
}

.platform-badges,
.coop-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ゲームタイトル（個別ページ） */
.game-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: 4px;
  color: var(--text);
  line-height: 1.05;
}

.game-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.game-meta-item {
  font-size: 13px;
  color: var(--text-muted);
}

.metacritic-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  height: 22px;
  background: #fc3;
  color: #000;
  font-size: 11px;
  font-weight: 900;
  border-radius: 4px;
  white-space: nowrap;
}

/* Metacriticリンク・ツールチップ */
.metacritic-link,
.metacritic-note {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.metacritic-link-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  background: rgba(255,255,255,0.12);
  color: var(--text-dim);
  font-size: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.metacritic-link:hover .metacritic-link-label,
.metacritic-note:hover .metacritic-link-label {
  background: rgba(255,255,255,0.2);
  color: var(--text);
}

.metacritic-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-dim);
  white-space: normal;
  z-index: 100;
  pointer-events: none;
}

.metacritic-link:hover .metacritic-tooltip,
.metacritic-note:hover .metacritic-tooltip {
  display: block;
}

/* スペックリスト */
.game-spec-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  max-width: 360px;
}

.spec-row {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 12px;
}

.spec-label {
  color: var(--text-muted);
  font-family: var(--font-ja);
  flex-shrink: 0;
  padding-right: 6px;
}

/* ラベルと値の間をつなぐ点線 */
.spec-row::after {
  content: '';
  flex: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.12);
  margin-bottom: 3px;
  min-width: 8px;
}

.spec-value {
  color: var(--text);
  font-weight: 500;
  flex-shrink: 0;
  padding-left: 6px;
  order: 3;
}

.spec-yes { color: var(--green); font-weight: 600; }
.spec-no  { color: var(--text-muted); }

.game-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* SNSシェアボタン */
.sns-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.sns-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sns-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.sns-btn:hover { opacity: .8; }
.sns-btn--x    { background: #000; color: #fff; }
.sns-btn--line { background: #06c755; color: #fff; }

@media (max-width: 480px) {
  .sns-share { gap: 6px; }
  .sns-btn { flex: 1; justify-content: center; min-width: 120px; }
}

/* 詳細セクション */
.game-detail-wrap { padding: 0 0 var(--space-2xl); }

.game-detail-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.game-body { min-width: 0; }

.game-content {
  line-height: 1.85;
  color: var(--text-dim);
  font-family: var(--font-ja);
  font-size: 14px;
  margin-bottom: var(--space-xl);
}

/* タグ */
.tag-group { margin-bottom: 20px; }

.tag-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-chip {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  transition: all 0.15s;
}
.tag-chip--genre:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.tag-chip--theme:hover {
  border-color: rgba(57,232,142,.3);
  color: var(--green);
  background: var(--green-dim);
}

/* 個別ページ サイドバー */
.game-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* パンくず */
.breadcrumb { margin-bottom: 8px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  opacity: 0.4;
}

.breadcrumb-list a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.breadcrumb-list a:hover { color: var(--accent); }
.breadcrumb-list [aria-current="page"] { color: var(--text-dim); }

/* 前後ナビ */
.single-game-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}
.game-nav-link:hover {
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

.nav-dir {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-title {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-ja);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ページネーション（list タイプ） */
.pagination .page-numbers {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

/* ── レスポンシブ追加 ── */
@media (max-width: 1024px) {
  .archive-wrap {
    grid-template-columns: 1fr;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .game-detail-inner {
    grid-template-columns: 1fr;
  }
  .game-hero-inner {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }
  .game-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .game-hero-inner {
    grid-template-columns: 1fr;
  }
  .game-cover {
    max-width: 200px;
    margin: 0 auto;
  }
  .archive-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .container {
    padding: 0 var(--space-md);
  }
}


/* ════════════════════════════════════════════════
   最近追加されたゲーム
════════════════════════════════════════════════ */

.section-recent-updates {
  padding: 32px var(--space-xl) 40px;
  border-top: 1px solid var(--border);
}

.recent-updates-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.recent-update-item {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.recent-update-item::before {
  content: '＋ ';
  color: var(--accent);
  opacity: 0.5;
  font-size: 11px;
}

.recent-update-item:hover {
  color: var(--text-primary);
}


/* ════════════════════════════════════════════════
   固定ページ（page.php）
════════════════════════════════════════════════ */

.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px var(--space-xl) 80px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-body {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 14px;
}

.page-body h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.page-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.page-body p {
  margin-bottom: 16px;
}

.page-body ul,
.page-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-body li {
  margin-bottom: 6px;
}

.page-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 217, 255, 0.3);
  transition: text-decoration-color 0.2s;
}

.page-body a:hover {
  text-decoration-color: var(--accent);
}

.page-body .last-updated {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
}


/* ════════════════════════════════════════════════
   パブリッシャー向けページ（page-publisher.php）
════════════════════════════════════════════════ */

.publisher-hero {
  padding: 140px var(--space-xl) 80px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(125, 211, 252, 0.08) 0%, transparent 70%);
}

.publisher-eyebrow {
  font-family: var(--font-syne, 'Syne', sans-serif);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ice);
  margin-bottom: 16px;
}

.publisher-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.publisher-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 2;
  max-width: 560px;
  margin: 0 auto;
}

.publisher-stats {
  padding: 60px var(--space-xl);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.publisher-stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.publisher-stat {
  text-align: center;
}

.publisher-stat-num {
  display: block;
  font-family: var(--font-syne, 'Syne', sans-serif);
  font-size: 36px;
  font-weight: 800;
  color: var(--ice);
  line-height: 1;
  margin-bottom: 8px;
}

.publisher-stat-unit {
  font-size: 18px;
}

.publisher-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .05em;
}

.publisher-plans {
  padding: 80px var(--space-xl);
}

.publisher-section-title {
  font-family: var(--font-syne, 'Syne', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
}

.publisher-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.publisher-plan {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
}

.publisher-plan--featured {
  border-color: var(--ice);
  background: rgba(125, 211, 252, 0.03);
}

.publisher-plan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--border);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.publisher-plan-badge--paid {
  background: var(--ice);
  color: var(--bg);
}

.publisher-plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.publisher-plan-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--ice);
  margin-bottom: 24px;
}

.publisher-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.publisher-plan-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding-left: 16px;
  position: relative;
}

.publisher-plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ice);
}

.publisher-plan-note {
  font-size: 11px;
  color: var(--text-muted);
  opacity: .6;
  line-height: 1.6;
}

.publisher-form-section {
  padding: 80px var(--space-xl) 100px;
  border-top: 1px solid var(--border);
}

.publisher-form-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.publisher-form-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.publisher-iframe {
  width: 100%;
  min-height: 800px;
  border: none;
  border-radius: 8px;
  background: transparent;
}

.publisher-plans-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
}

@media (max-width: 768px) {
  .publisher-stats-grid { gap: 40px; }
  .publisher-plans-grid { grid-template-columns: 1fr; }
  .publisher-hero { padding: 100px var(--space-md) 48px; }
  .publisher-stats { padding: 40px var(--space-md); }
  .publisher-plans { padding: 48px var(--space-md); }
  .publisher-form-section { padding: 48px var(--space-md) 64px; }
}

/* ════════════════════════════════════════════════
   ゲームを申請する（準備中）
════════════════════════════════════════════════ */

.submit-coming-soon {
  text-align: center;
  padding: 60px 20px;
}

.submit-status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 16px;
  margin-bottom: 24px;
  opacity: 0.7;
}


/* ════════════════════════════════════════════════
   ハンバーガーメニュー
════════════════════════════════════════════════ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
}


/* ════════════════════════════════════════════════
   モバイル フィルターサイドバー
════════════════════════════════════════════════ */

/* モバイル用「絞り込む」バー（デフォルトは非表示） */
.filter-mobile-bar {
  display: none;
}

/* フィルターオーバーレイ（常に非表示。モバイルでJSが .is-open を付与） */
.filter-sidebar-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .filter-mobile-bar {
    display: flex;
    padding: 12px var(--space-md);
    border-bottom: 1px solid var(--border);
  }
  .filter-mobile-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }

  /* サイドバーを固定パネルに変更 */
  .filter-sidebar {
    position: fixed !important;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
    display: block !important;
    background: var(--bg);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }
  .filter-sidebar.is-open {
    left: 0;
  }
  .filter-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  .filter-sidebar-overlay.is-open {
    display: block;
  }
}

/* ════════════════════════════════════════════════
   PICK UP セクション
════════════════════════════════════════════════ */
.section-pickup {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.pickup-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: blur(2px) brightness(0.35) saturate(1.2);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.section-pickup:hover .pickup-bg {
  transform: scale(1.08);
}

.pickup-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.55) 100%
  );
}

.pickup-inner {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: 56px;
}

.pickup-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.9;
}

.pickup-content {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.pickup-cover-link {
  flex-shrink: 0;
}

.pickup-cover {
  width: 140px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  display: block;
}

.pickup-info {
  flex: 1;
  min-width: 0;
}

.pickup-genre {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.85;
}

.pickup-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.pickup-title a {
  color: #fff;
  text-decoration: none;
}

.pickup-title a:hover {
  color: var(--accent);
}

.pickup-coop {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.pickup-excerpt {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pickup-meta {
  margin-bottom: 20px;
}

.pickup-platforms {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.pickup-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.2s, transform 0.2s;
}

.pickup-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .pickup-content {
    flex-direction: column;
    gap: 20px;
  }
  .pickup-cover {
    width: 100px;
  }
  .pickup-title {
    font-size: 22px;
  }
}

/* ════════════════════════════════════════════════
   THE ARCHIVE ROOM — 追加スタイル
   モックアップ「The Archive Room」のデザイン実装
════════════════════════════════════════════════ */

/* ── Grain texture overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Ambient lighting divs ── */
.amb {
  position: fixed;
  inset: 0;
  pointer-events: none;
  transition: opacity 1.8s ease;
  z-index: 0;
}
#amb0 { opacity: 1; }
#amb1 { opacity: 0; }

/* ── Particles canvas ── */
#pts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ── Scroll progress bar ── */
#sp {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  height: 1.5px;
  width: 0;
  background: linear-gradient(90deg, var(--ice), #c084fc);
  box-shadow: 0 0 10px rgba(125, 211, 252, .6);
  transition: width 80ms linear;
  pointer-events: none;
}

/* ── Header — scrolled state + logo animation ── */
.site-header {
  transition: background 0.4s;
}
.site-header.scrolled {
  background: rgba(5, 5, 12, .97);
}
.logo-w { color: var(--text); }
.logo-c {
  color: var(--ice);
  animation: logo-drift 10s linear infinite;
  display: inline-block;
}
@keyframes logo-drift {
  0%,100% { filter: brightness(1) drop-shadow(0 0 6px rgba(125,211,252,.4)) }
  50%      { filter: brightness(1.3) drop-shadow(0 0 18px rgba(125,211,252,.7)) }
}

/* ── Aurora ── */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ab {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  animation: blob var(--d, 14s) ease-in-out infinite alternate;
  will-change: transform;
}
.ab:nth-child(1) { width: 700px; height: 700px; top: -220px; left: -160px; background: rgba(125,211,252,.1); --d:13s }
.ab:nth-child(2) { width: 550px; height: 550px; top: -80px; right: -180px; background: rgba(99,102,241,.07); --d:17s; animation-direction: alternate-reverse }
.ab:nth-child(3) { width: 400px; height: 400px; bottom: -60px; left: 30%; background: rgba(134,239,172,.06); --d:10s }
@keyframes blob {
  from { transform: translate(0,0) scale(1) }
  to   { transform: translate(28px,-20px) scale(1.07) }
}
@media (prefers-reduced-motion: reduce) { .ab { animation: none } }

/* ── Hero animated grid ── */
.hgrid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(125,211,252,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,211,252,.022) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: hg 30s linear infinite;
}
@keyframes hg { to { background-position: 72px 72px } }
@media (prefers-reduced-motion: reduce) { .hgrid { animation: none } }

/* ── Hero vignette ── */
.hvign {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 65% at 50% 50%, transparent 0%, rgba(5,5,12,.62) 100%);
}

/* ── Hero bottom fade ── */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 240px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

/* ── 5行マーキー ── */
.hmarq {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: .065;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.hmt {
  display: flex;
  gap: 10px;
  width: max-content;
  flex-shrink: 0;
}
.hmt:nth-child(1) { animation: mq 58s linear infinite }
.hmt:nth-child(2) { animation: mq 72s linear infinite reverse }
.hmt:nth-child(3) { animation: mq 48s linear infinite }
.hmt:nth-child(4) { animation: mq 65s linear infinite reverse }
.hmt:nth-child(5) { animation: mq 54s linear infinite }
.hmi {
  height: calc(100vh / 5 - 4px);
  min-height: 110px;
  max-height: 200px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  filter: saturate(.3) blur(.5px);
}
@keyframes mq {
  0% { transform: translateX(0) }
  100% { transform: translateX(-50%) }
}
@media (prefers-reduced-motion: reduce) { .hmt { animation: none } }

/* ── Hero content wrapper ── */
.hero > .container, .hc {
  position: relative;
  z-index: 3;
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* ── Aurora: overflow:hidden を除去（blur の描画アーティファクト防止） ── */
.aurora { overflow: visible; }

/* ── Eyebrow ── */
.hey {
  font-family: var(--font-syne);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  animation: fu .8s var(--ease) .2s forwards;
}
.hey::before, .hey::after {
  content: '';
  width: 52px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ice));
}
.hey::after { transform: scaleX(-1) }

/* ── Hero title ── */
.htitle {
  font-family: var(--font-display);
  font-size: clamp(76px, 13vw, 148px);
  letter-spacing: 5px;
  line-height: .86;
  margin-bottom: 34px;
}
.htitle .l1 {
  display: block;
  color: var(--text);
  opacity: 0;
  animation: fu 1s var(--ease) .4s forwards;
  filter: drop-shadow(0 0 28px rgba(125,211,252,.18));
}
.htitle .l2 {
  display: block;
  background: linear-gradient(90deg, #7dd3fc 0%, #a5b4fc 45%, #c4b5fd 75%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 36px rgba(125,211,252,.32));
  position: relative;
  background-size: 200% 100%;
  opacity: 0;
  animation: fu 1s var(--ease) .55s forwards, grad-shift 8s ease-in-out infinite 1.5s;
}
@keyframes grad-shift {
  0%,100% { background-position: 0% 50% }
  50%      { background-position: 100% 50% }
}

/* Glitch */
.htitle .l2::before, .htitle .l2::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
}
.htitle .l2::before { animation: g1 9s infinite; clip-path: inset(0 0 100% 0); filter: drop-shadow(3px 0 0 rgba(125,211,252,.9)) }
.htitle .l2::after  { animation: g2 9s .6s infinite; clip-path: inset(100% 0 0 0); filter: drop-shadow(-3px 0 0 rgba(196,181,253,.9)) }
@keyframes g1 { 0%,90%{clip-path:inset(0 0 100% 0);opacity:0} 91%{clip-path:inset(20% 0 58% 0);opacity:1;transform:translateX(-4px)} 92%{clip-path:inset(64% 0 14% 0);opacity:1;transform:translateX(4px)} 93%{clip-path:inset(8% 0 80% 0);opacity:1;transform:translateX(-2px)} 94%,100%{clip-path:inset(0 0 100% 0);opacity:0} }
@keyframes g2 { 0%,86%{clip-path:inset(100% 0 0 0);opacity:0} 87%{clip-path:inset(0 0 62% 0);opacity:1;transform:translateX(4px)} 88%{clip-path:inset(44% 0 20% 0);opacity:1;transform:translateX(-4px)} 89%{clip-path:inset(76% 0 2% 0);opacity:1;transform:translateX(2px)} 90%,100%{clip-path:inset(100% 0 0 0);opacity:0} }
@media (prefers-reduced-motion: reduce) { .htitle .l2::before,.htitle .l2::after { display: none } }

/* ── Hero subtitle ── */
.hsub {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 48px;
  font-weight: 300;
  line-height: 2.1;
  opacity: 0;
  animation: fu .8s var(--ease) .75s forwards;
}

/* ── Hero stats (new inner elements) ── */
.sti { text-align: center; }
.stn {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--ice);
  filter: drop-shadow(0 0 20px rgba(125,211,252,.4));
}
.stl {
  font-family: var(--font-syne);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
  text-transform: uppercase;
}
.std {
  width: 1px;
  height: 42px;
  background: var(--border);
  align-self: center;
}

/* ── Reveal animation ── */
@keyframes fu {
  from { opacity: 0; transform: translateY(28px) }
  to   { opacity: 1; transform: translateY(0) }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0) }
.d1 { transition-delay: .07s }
.d2 { transition-delay: .13s }
.d3 { transition-delay: .19s }
.d4 { transition-delay: .25s }
.d5 { transition-delay: .31s }

/* ── Section divider with sweep ── */
.sdiv {
  height: 1px;
  position: relative;
  margin: 0 52px;
  overflow: hidden;
}
.sdiv::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(125,211,252,.12), rgba(165,180,252,.1), transparent);
}
.sdiv::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.35), transparent);
  animation: sweep 5s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -40% } 100% { left: 140% } }

/* ── Section header (new style) ── */
.sh2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}
.st-label {
  font-family: var(--font-syne);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}
.st {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}
.st::before {
  content: '';
  width: 2px;
  height: 20px;
  flex-shrink: 0;
  background: var(--ice);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(125,211,252,.5);
  animation: bar-pulse 3s ease-in-out infinite;
}
@keyframes bar-pulse { 0%,100% { opacity: 1 } 50% { opacity: .5 } }
.sa {
  font-family: var(--font-syne);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ice);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: .55;
  transition: opacity .2s, gap .2s;
  text-transform: uppercase;
}
.sa:hover { opacity: 1; gap: 10px; }

/* ── Game card grid (new) ── */
.gg {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.gg4 { grid-template-columns: repeat(4, 1fr); }

/* ── Game card (new Archive Room design) ── */
.gc {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color .4s, box-shadow .4s;
  --gc: 125,211,252;
  --mx: 50%;
  --my: 50%;
}
.gc:hover {
  border-color: rgba(var(--gc), .25);
  box-shadow:
    0 0 0 1px rgba(var(--gc), .1),
    0 20px 50px rgba(0,0,0,.7),
    0 0 40px rgba(var(--gc), .1);
}
/* Spotlight */
.gc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 4;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.055) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.gc:hover::after { opacity: 1; }

/* Card cover link */
.cl {
  display: block;
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.ci {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.gc:hover .ci { transform: scale(1.07); }
.cph {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #080e22, #0d1a40 50%, #081636);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255,255,255,.25);
  text-align: center;
  padding: 14px;
  letter-spacing: 1px;
}

/* Card overlay — text */
.cov {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(5,5,12,1) 0%, rgba(5,5,12,.72) 22%, rgba(5,5,12,0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 11px;
  pointer-events: none;
}
.ctx {
  font-family: var(--font-syne);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
  transition: color .25s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gc:hover .ctx { color: rgba(var(--gc), 1); }
.cmeta {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--ease);
}
.gc:hover .cmeta { opacity: 1; transform: translateY(0); }
.cpl { color: var(--lime); font-weight: 600; }

/* Platform badges (top right) */
.cpb {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
}
.pb {
  font-family: var(--font-syne);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,.8);
  color: var(--text);
  backdrop-filter: blur(6px);
  line-height: 1.6;
}

/* Co-op badges (below image) */
.ccb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
}
.cb {
  font-family: var(--font-syne);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.6;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.cb.pve  { background: rgba(5,5,12,.88); color: var(--ice);  border: 1px solid rgba(125,211,252,.35); }
.cb.pvp  { background: rgba(5,5,12,.88); color: var(--purple); border: 1px solid rgba(196,181,253,.35); }
.cb.unrel { background: var(--lime); color: #020c0a; font-weight: 800; }
.cb.demo { background: rgba(5,5,12,.88); color: #fbbf24; border: 1px solid rgba(251,191,36,.35); }
.cb.jp   { background: rgba(5,5,12,.88); color: #86efac; border: 1px solid rgba(134,239,172,.35); }

/* ── Donate section (new) ── */
.sdonate {
  padding: 84px 0;
  text-align: center;
  background: radial-gradient(ellipse 55% 65% at 50% 50%, rgba(125,211,252,.03), transparent 70%);
}
.de {
  font-family: var(--font-syne);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.dbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 36px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(125,211,252,.18);
  color: var(--text);
  font-family: var(--font-syne);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background .25s, border-color .25s, transform .2s, box-shadow .25s;
  animation: dglow 4s ease-in-out infinite;
}
@keyframes dglow { 0%,100% { box-shadow: none } 50% { box-shadow: 0 0 28px rgba(125,211,252,.12) } }
.dbtn:hover {
  background: rgba(125,211,252,.08);
  border-color: var(--ice);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(125,211,252,.16);
  animation: none;
}

/* ── PR紹介記事セクション ── */
.pr-article-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 0;
}

.pr-article-inner {
  max-width: 760px;
}

.pr-article-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.pr-article-badge {
  flex-shrink: 0;
  font-family: var(--font-syne);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(125, 211, 252, .12);
  border: 1px solid rgba(125, 211, 252, .3);
  color: var(--ice);
  text-transform: uppercase;
  margin-top: 6px;
}

.pr-article-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1.2;
}

.pr-article-body {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(232, 232, 248, .82);
}

.pr-article-body p { margin-bottom: 1.4em; }
.pr-article-body h2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
  margin: 2em 0 .8em;
}
.pr-article-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 1.6em 0 .6em;
}
.pr-article-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.2em 0;
}
.pr-article-body a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pr-article-body a:hover { opacity: .75; }

/* ── Responsive (new cards) ── */
@media (max-width: 1024px) {
  .gg  { grid-template-columns: repeat(4, 1fr); }
  .gg4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gg  { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gg4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sdiv { margin: 0 24px; }
  .htitle { font-size: clamp(56px, 16vw, 96px); }
  .stn { font-size: 36px; }
}
@media (max-width: 480px) {
  .gg  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gg4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .htitle { font-size: clamp(48px, 18vw, 72px); }
}
