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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  background-color: #000;
  color: #fff;
  letter-spacing: 0.02em;
}

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

/* ============================================================
   Loader
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #000000;
  transition: opacity 0.6s ease 0.2s;
}

#loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

#loader-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background-color: #fff;
  animation: line-grow 1.4s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  animation-delay: 0.2s;
}

@keyframes line-grow {
  0%   { width: 0%; }
  100% { width: 100%; }
}

/* ============================================================
   WebGL Canvas — フルスクリーン背景
   ============================================================ */
#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ============================================================
   Logo — 上下左右中央 (少し上寄り)
   ============================================================ */
.center-block {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 50px));
  z-index: 1;
  text-align: center;
  opacity: 0;
}

.logo {
  display: block;
  color: #fff;
  line-height: 1;
}

.logo-name {
  display: block;
  font-weight: 600;
  font-size: 60px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.logo-tagline {
  display: block;
  font-weight: 500;
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 2.4;
  margin-top: 14px;
}

/* ============================================================
   Footer — 画面下部固定
   ============================================================ */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 48px 48px;
  opacity: 0;
}

.catchcopy {
  font-weight: 500;
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  letter-spacing: 0.2em;
  line-height: 2.2;
  color: rgba(255,255,255,0.7);
}

.footer-copy {
  margin-top: 40px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 480px) {
  .logo-name {
    font-size: 44px;
  }

  .logo-tagline {
    font-size: 0.58rem;
  }

  .catchcopy {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .site-footer {
    padding: 0 20px 36px;
  }

  .footer-copy {
    font-size: 0.6rem;
  }
}
