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

:root {
  --bg-base:        #0b0b18;
  --bg-surface:     #13132a;
  --bg-card:        #16162e;
  --bg-deep:        #0f0f1e;
  --border:         #252540;
  --border-hover:   #534AB7;
  --purple-light:   #AFA9EC;
  --purple-mid:     #7F77DD;
  --purple-main:    #534AB7;
  --purple-deep:    #3C3489;
  --purple-dark:    #26215C;
  --teal-light:     #5DCAA5;
  --teal-mid:       #1D9E75;
  --teal-dark:      #04342C;
  --amber-light:    #FAC775;
  --amber-mid:      #EF9F27;
  --amber-dark:     #412402;
  --text-primary:   #EEEDFE;
  --text-secondary: #CECBF6;
  --text-muted:     #B4B2A9;  
  --text-dim:       #888780;  
  --text-faint:     #5F5E5A;  
  --font-mono:      'Space Mono', monospace;
  --font-body:      'Noto Sans JP', sans-serif;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px; /* 旧15pxから引き上げ */
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(83,74,183,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83,74,183,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

a { color: inherit; text-decoration: none; }

/* ===== ナビゲーション ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,24,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700; /* Bold化 */
  color: var(--purple-light);
  letter-spacing: 0.05em;
}

.nav-logo span { color: var(--teal-light); }

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700; /* Bold化 */
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active { color: var(--purple-light); }

.nav-login {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700; /* Bold化 */
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--purple-main);
  color: var(--purple-light);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.nav-login:hover { background: rgba(83,74,183,0.15); }

/* ===== セパレーター ===== */
.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  max-width: 860px;
  margin: 0 auto;
}

/* ===== セクション共通 ===== */
.section {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 32px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 14px; /* 旧13pxから引き上げ */
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.section-line {
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

/* ===== フッター ===== */
footer {
  border-top: 0.5px solid var(--border);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.footer-right { display: flex; gap: 16px; }

.footer-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ===== アニメーション ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
  .nav { padding: 0 16px; }
  .nav-links { gap: 14px; }
  .section { padding: 32px 16px; }
  footer { padding: 16px; flex-direction: column; align-items: flex-start; }
}
