/* ===========================================
   PTA攻略 — Theme Style
   tokens.css に依存。サイト固有の追加スタイル。
   =========================================== */

/* === Site Header === */
.site-header {
  background: var(--ink-900);
  color: var(--parchment-0);
  border-bottom: 4px solid var(--shu-700);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}
.site-title {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 18px;
  letter-spacing: 0.05em;
}
.site-title a {
  color: var(--parchment-0);
  text-decoration: none;
}
.site-title .pixel-mark {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--shu-500);
  margin-right: 8px;
  vertical-align: middle;
}
.global-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.global-nav a {
  color: var(--parchment-0);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-pixel);
  opacity: 0.85;
}
.global-nav a:hover { opacity: 1; color: var(--gold-400); }

.user-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-pixel);
  font-size: 12px;
}
.user-zone a {
  color: var(--gold-300);
  text-decoration: none;
}
.user-zone .lv-chip {
  background: var(--shu-700);
  color: #fff;
  padding: 2px 8px;
  border: 2px solid var(--ink-900);
  font-size: 11px;
}

/* === Site Footer === */
.site-footer {
  background: var(--ink-900);
  color: var(--parchment-3);
  padding: 40px 20px 24px;
  margin-top: 60px;
  border-top: 4px solid var(--shu-700);
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--gold-300);
  margin: 0 0 12px;
  letter-spacing: 0.1em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a {
  color: var(--parchment-3);
  text-decoration: none;
  font-size: 13px;
}
.site-footer a:hover { color: var(--gold-300); }
.site-footer .copyright {
  text-align: center;
  font-size: 11px;
  font-family: var(--font-pixel);
  color: var(--ink-400);
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed var(--ink-700);
}

@media (max-width: 768px) {
  .site-footer-inner { grid-template-columns: 1fr; }
  .global-nav { display: none; }
}

/* === Toast (level up等) === */
.ptak-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  background: var(--gold-500);
  color: var(--ink-900);
  border: 3px solid var(--ink-900);
  box-shadow: 4px 4px 0 var(--ink-800);
  padding: 14px 20px;
  font-family: var(--font-pixel);
  font-size: 14px;
  font-weight: 700;
  animation: toast-in 200ms ease-out;
}
@keyframes toast-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* === 共通utility === */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* スキップリンク */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--shu-700); color: #fff; padding: 8px 16px;
  z-index: 99999;
}
.skip-link:focus { left: 8px; top: 8px; }
