/* ==========================================================================
   pxnas — ゲーム攻略ガイド サイト スタイル
   ========================================================================== */

:root {
  --bg: #0f1220;
  --bg-soft: #171a2e;
  --bg-card: #1c2038;
  --bg-card-hover: #232844;
  --text: #e6e9f5;
  --text-muted: #9aa3c7;
  --border: #2a2f4d;
  --accent: #7c5cff;
  --accent-2: #3ec6ff;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --gold: #ffb84d;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Meiryo", system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ------------------------------------------------------------------ ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 18, 32, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

.brand:hover {
  color: var(--text);
}

.brand .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.brand .brand-sub {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.nav a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ------------------------------------------------------------------ コンテナ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

/* ------------------------------------------------------------------ ヒーロー */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(700px 360px at 90% 0%, rgba(62, 198, 255, 0.14), transparent 55%);
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.06);
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text);
}

/* ------------------------------------------------------------------ 見出し */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.section-head .sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.section-head .more {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ ガイドカード */
.grid {
  display: grid;
  gap: 20px;
}

.grid-cards {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

a.card {
  color: var(--text);
  display: block;
}

a.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
  color: var(--text);
}

.card .tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.5;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card .meta {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------ 記事ページ */
.article-header {
  padding: 44px 0 8px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-2);
}

.article-header h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-bottom: 20px;
}

.article-body {
  padding: 40px 0 64px;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 28px 0 12px;
}

.prose p {
  margin-bottom: 16px;
  color: #d6daec;
}

.prose ul,
.prose ol {
  margin: 0 0 18px 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.prose th {
  background: var(--bg-soft);
  font-weight: 700;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  color: #cfd5ef;
}

.prose code {
  background: var(--bg-soft);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.88em;
}

.callout {
  border: 1px solid rgba(255, 184, 77, 0.4);
  background: rgba(255, 184, 77, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 0.94rem;
}

.callout strong {
  color: var(--gold);
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 28px;
}

.toc h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.toc ol {
  margin-left: 20px;
  font-size: 0.92rem;
}

.toc a {
  color: var(--text);
}

.toc a:hover {
  color: var(--accent-2);
}

/* ------------------------------------------------------------------ リーガルページ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.legal h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.legal p,
.legal li {
  color: #d6daec;
  margin-bottom: 12px;
}

.legal ul {
  margin-left: 22px;
}

/* ------------------------------------------------------------------ 404 */
.notfound {
  text-align: center;
  padding: 120px 0;
}

.notfound .code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.notfound p {
  color: var(--text-muted);
  margin: 16px 0 28px;
}

/* ------------------------------------------------------------------ フッター */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------------ レスポンシブ */
@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 4px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
