/* ===========================
   CSS Variables (Design Tokens)
   =========================== */

:root {
  --bg-primary: #36393f;
  --bg-secondary: #2f3136;
  --bg-tertiary: #202225;
  --bg-card: #292b2f;
  --bg-hover: #3a3c41;
  --bg-active: #393c43;

  --accent: #5865f2;
  --accent-hover: #4752c4;
  --accent-light: rgba(88, 101, 242, 0.15);

  --green: #3ba55d;
  --green-light: rgba(59, 165, 93, 0.15);
  --red: #ed4245;
  --red-light: rgba(237, 66, 69, 0.15);
  --yellow: #faa61a;
  --yellow-light: rgba(250, 166, 26, 0.15);
  --gold: #f0b232;

  --text-primary: #dcddde;
  --text-secondary: #b9bbbe;
  --text-muted: #72767d;
  --text-white: #ffffff;

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);

  --radius: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font: 'gg sans', 'Noto Sans JP', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Consolas', 'Courier New', monospace;
}

/* ===========================
   Reset / Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* hidden 属性は display 値が何であっても必ず非表示にする */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden; /* 横はみ出し防止 */
}

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

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

/* ===========================
   Scrollbar
   =========================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-tertiary); }
::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
