/* ============================================
   境野ゲームスタジオ株式会社 - Pixel Game Design
   Retro 8-bit / Indie Game Style
   ============================================ */

/* Import Google Fonts (Pixel Font) */
@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

/* ============================================
   CSS Variables & Design Tokens
   ============================================ */
:root {
  /* Retro Palette */
  --pixel-black: #000000;
  --pixel-white: #ffffff;
  --pixel-gray: #757575;
  --pixel-blue: #0000ff;
  --pixel-yellow: #ffff00;
  --pixel-green: #00ff00;

  /* Backgrounds */
  --color-bg-main: #212121;
  /* Dark retro gray */
  --color-window-bg: #000000;

  /* Text */
  --font-family: 'DotGothic16', sans-serif;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-main);
  color: var(--pixel-white);
  line-height: 1.5;
  /* Pixel rendering optimization */
  image-rendering: pixelated;
}

/* ============================================
   Pixel Window / Box Styling (RPG Style)
   ============================================ */
.pixel-box {
  background: var(--color-window-bg);
  border: 4px solid var(--pixel-white);
  padding: 1rem;
  position: relative;
  box-shadow:
    0 4px 0 var(--pixel-black),
    0 -4px 0 var(--pixel-black),
    4px 0 0 var(--pixel-black),
    -4px 0 0 var(--pixel-black);
  margin: 10px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  padding: 1.5rem 0;
  border-bottom: 4px solid var(--pixel-white);
  background: var(--pixel-black);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--pixel-yellow);
  text-decoration: none;
  font-weight: bold;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-menu a {
  text-decoration: none;
  color: var(--pixel-white);
  font-size: 1rem;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--pixel-green);
}

.navbar-menu a.active::before {
  content: "▶";
  margin-right: 5px;
}

/* ============================================
   Buttons (8-bit style)
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--pixel-white);
  color: var(--pixel-black);
  text-decoration: none;
  border: none;
  font-family: var(--font-family);
  font-size: 1rem;
  box-shadow:
    4px 4px 0 var(--pixel-gray);
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 10px;
}

.btn:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.btn-primary {
  background: var(--pixel-yellow);
}

.btn-secondary {
  background: var(--pixel-blue);
  color: var(--pixel-white);
}

/* ============================================
   Layout & Sections
   ============================================ */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-title {
  color: var(--pixel-green);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px dashed var(--pixel-white);
  display: inline-block;
}

.hero {
  text-align: center;
  padding: 4rem 0;
  border-bottom: 4px double var(--pixel-white);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--pixel-gray);
}

/* ============================================
   Grid & Forms
   ============================================ */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

input[type="text"],
input[type="password"] {
  background: var(--pixel-black);
  border: 2px solid var(--pixel-white);
  color: var(--pixel-white);
  padding: 0.5rem;
  font-family: var(--font-family);
  width: 100%;
  outline: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  margin-top: 4rem;
  padding: 2rem;
  border-top: 4px solid var(--pixel-white);
  text-align: center;
}

.footer-bottom {
  font-size: 0.8rem;
  color: var(--pixel-gray);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
}