/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; line-height: inherit; }

/* ==================== DESIGN TOKENS ==================== */
:root {
  --bg: #13151a;
  --border: rgba(255,255,255,.08);
  --border2: rgba(255,255,255,.25);
  --text: #ffffff;
  --text2: rgba(255,255,255,.75);
  --text3: rgba(255,255,255,.55);
  --text4: rgba(255,255,255,.40);
  --accent: #4a8fd4;
  --accent2: rgba(74,143,212,.15);
  --green: #5DCAA5;
  --green-bg: rgba(15,110,86,.25);
}

/* ==================== BODY ==================== */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transition: opacity .7s cubic-bezier(.16,1,.3,1); }
.reveal-fade.visible { opacity: 1; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ==================== NAV ==================== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(19,21,26,.85);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.nav-back {
  font-size: 12px; color: rgba(255,255,255,.55);
  text-decoration: none; letter-spacing: .04em; transition: color .2s;
}
.nav-back:hover { color: var(--text); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 12px; color: rgba(255,255,255,.55);
  text-decoration: none; letter-spacing: .06em; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ==================== BACKGROUND LAYER ==================== */
#bg-layer {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    linear-gradient(to bottom, rgba(19,21,26,0) 0%, rgba(19,21,26,0.82) 55%, rgba(19,21,26,0.97) 85%),
    url('bg.jpg');
  background-size: cover; background-position: center;
  z-index: -1; pointer-events: none;
}

/* ==================== FOOTER LOGO ==================== */
.footer-logo img { height: 18px; width: auto; filter: brightness(0) invert(1); opacity: .5; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
}
