/* 2026-04-21 00:00:00 */
/* base.css — リセット・CSS変数・タイポグラフィ */

:root {
  --black: #0a0a0a;
  --blue: #00a8ff;
  --purple: #e040fb;
  --dark-gray: #1a1a2e;
  --text: #e0e0e0;
  --white: #ffffff;
  --blue-glow: rgba(0, 168, 255, 0.3);
  --purple-glow: rgba(224, 64, 251, 0.3);
  --font-logo: "Lora", "Palatino Linotype", "Book Antiqua", serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --font-heading: "Space Grotesk", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1120px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* Grid Background */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 168, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 168, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Canvas Network */
#networkCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Logo */
.logo,
.header-logo {
  perspective: 600px;
}

.logo-svg {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.logo:hover .logo-svg,
.header-logo:hover .logo-svg {
  transform: rotateY(360deg);
}
