/* =========================
   pr CSS（黒背景＋白文字、モバイル前提）
   ========================= */

/* 変数 */
:root {
  --bg: #050505;
  --panel: #020617;
  --panel2: #111827;
  --border: #27272a;

  --text: #f9fafb;
  --text-sub: #e5e7eb;
  --text-muted: #9ca3af;

  --accent: #facc15;
  --accent-hover: #fbbf24;
  --danger: #f97373;

  --page-bg: #fbfbf6;
  --event-bg: #ffffff;
  --card-bg: #ffffff;


  --text-main: #1f2937;
  --text-sub: #4b5563;

}

/* ベース */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  color: var(--text-main);
  background: var(--page-bg);
}

h1,
h2,
.pr-subtitle {
  font-family: "Sawarabi Gothic", system-ui, -apple-system, "Segoe UI",
               Roboto, "Noto Sans JP", sans-serif;
}

a { color: inherit; }

.support-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
}

/* =========================
   上部（ロゴ＋ユーザーサポート）
   ========================= */
.pr-top-header {
  background: #000;
  border-bottom: 1px solid var(--border);
}

.pr-top-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
}

.pr-logo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.pr-logo {
  width: min(420px, 78vw);
  height: auto;
  display: block;
}

.pr-subtitle {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0;
}

/* =========================
   フッター
   ========================= */
.pr-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 16px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

/* =========================
   タブレット以上
   ========================= */
@media (min-width: 768px) {
  .support-inner { padding: 16px 24px; }

  .support-title { font-size: 22px; }

  .pr-subtitle { font-size: 16px; }

  .lang-switch button { font-size: 14px; }

  #prSearch { font-size: 15px; }

  #prSearchButton { font-size: 15px; }
}

/* =========================
   エラーページ共通
   ========================= */

.error-page {
  padding: 48px 0 64px;
  text-align: center;
}

.error-code {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  color: var(--text);
}

.error-message {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-sub);
  margin: 0;
}

.error-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.error-actions a {
  font-size: 14px;
  color: #facc15;
}

/* PCでは少し余裕を出す */
@media (min-width: 768px) {
  .error-page {
    padding: 64px 0 80px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-message {
    font-size: 17px;
  }
}

/* =========================
   エラーページ画像
   ========================= */

.error-image {
  margin: 20px 0 18px;
  display: flex;
  justify-content: center;
}

.error-image img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* =========================
   ゲーム一覧（PRトーン）
   ========================= */

main {
  flex: 1;
  max-width: 960px;
  margin: 32px auto 48px;
  padding: 28px 20px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;

  background: #f0efe6;
  border-radius: 20px;
}

@media (min-width: 768px) {
  main {
    padding: 28px 24px 56px;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  main {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

.card {
  aspect-ratio: 5 / 7;          
  display: grid;
  grid-template-rows: auto auto 1fr; 
  background: #f9f8f3;
  border-radius: 16px;
  overflow: hidden;

  border: 1px solid rgba(180, 160, 120, 0.25);
  box-shadow: 0 12px 28px rgba(120, 100, 60, 0.15);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(120, 100, 60, 0.25);
  border-radius: 12px;
  pointer-events: none;
}

.card::after {
  content: attr(data-footer); 
  position: absolute;
  right: 14px;
  bottom: 15px;

  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(120, 100, 60, 0.8);

  pointer-events: none;

  font-family: "Zen Maru Gothic",
               system-ui, -apple-system, "Segoe UI",
               Roboto, "Noto Sans JP", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;  
  object-fit: cover;
  display: block;

  border-top: 1px solid rgba(180, 160, 120, 0.25);
  border-bottom: 1px solid rgba(180, 160, 120, 0.25);
}


.card-content {
  padding: 12px 20px 8px; 
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}


.card h2 {
  font-family: "Sawarabi Gothic", system-ui, -apple-system, "Segoe UI",
               Roboto, "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 16px 16px 8px; 
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-main);
  letter-spacing: 0.03em;
}


.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  font-family: "Zen Maru Gothic",
               system-ui, -apple-system, "Segoe UI",
               Roboto, "Noto Sans JP", sans-serif;
  font-weight: 400;
}

.card a {
  align-self: flex-start;
  padding: 8px 14px;

  border-radius: 6px;
  background: #e8e4d8;
  border: 1px solid #b8ad8a;

  color: #3a3524;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;

  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);

  position: absolute;
  left: 16px;
  bottom: 15px;
  font-family: "Zen Maru Gothic",
               system-ui, -apple-system, "Segoe UI",
               Roboto, "Noto Sans JP", sans-serif;
  font-weight: 500;
}

.card a:hover {
  background: #ded8c6;
  border-color: #a59a78;
}

@media (max-width: 767px) {
  main {
    margin: 24px auto 40px;
    padding: 20px 8px 36px;
    gap: 20px;
  }

  .card {
    width: min(100%, 420px);
    justify-self: center;
  }

  .card h2 {
    font-size: 20px;
  }

  .card-content {
    padding: 12px 18px 8px;
    gap: 10px;
  }

  .card p,
  .card a {
    font-size: 15px;
  }

  .card::after {
    font-size: 13px;
  }
}
