/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== CSS変数 ===== */
:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --border: #E8E6E0;
  --border-hover: #C8C5BC;
  --text-primary: #1A1A18;
  --text-secondary: #6B6860;
  --text-tertiary: #A8A59E;
  --accent: #1A1A18;
  --mono: 'DM Mono', monospace;
  --sans: 'Noto Sans JP', sans-serif;
}

/* ===== 基本 ===== */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== ナビゲーション ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  text-decoration: none;
}
.nav-logo span { color: var(--text-tertiary); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }

/* ===== バッジ（共通） ===== */
.app-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.badge-game  { background: #EAF3DE; color: #3B6D11; }
.badge-util  { background: #E6F1FB; color: #185FA5; }
.badge-web   { background: #EEEDFE; color: #534AB7; }
.badge-life  { background: #FAEEDA; color: #854F0B; }
.badge-social { background: #FBEAF0; color: #993556; }

/* ===== フッター ===== */
footer {
  border-top: 0.5px solid var(--border);
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left { font-family: var(--mono); font-size: 11px; color: var(--text-tertiary); }
.footer-right { display: flex; gap: 20px; }
.footer-right a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-right a:hover { color: var(--text-secondary); }

/* ===== アニメーション ===== */
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp 0.5s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== モバイル（共通） ===== */
@media (max-width: 640px) {
  footer { padding: 20px; flex-direction: column; gap: 12px; text-align: center; }
  .nav-inner { padding: 0 20px; }
}
