/* ALDONIX LAB — content layer (HTML/CSS) over fixed WebGL background */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: #050505;
  color: #e8e8e8;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* WebGL layer */
#webgl-background { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#aldonix-canvas { width: 100%; height: 100%; display: block; }
/* WebGL不可・低スペック時のフォールバック背景 */
body.no-webgl #webgl-background { display: none; }
body.no-webgl {
  background:
    radial-gradient(ellipse 70% 45% at 68% 12%, rgba(255,255,255,0.05), transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 85%, rgba(255,255,255,0.03), transparent 70%),
    linear-gradient(180deg, #080808 0%, #050505 55%, #0d0d0d 100%);
}

a { color: #e8e8e8; }

/* fixed home link */
.lab-home {
  position: fixed; top: 22px; left: 26px; z-index: 30;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; letter-spacing: 0.34em; font-weight: 400;
  color: #f2f2f2; text-decoration: none; line-height: 1;
}
.lab-home span {
  display: block; margin-top: 6px;
  font-size: 0.56rem; letter-spacing: 0.26em; color: rgba(255,255,255,0.42);
  transition: color 0.3s ease;
}
.lab-home:hover span { color: rgba(255,255,255,0.8); }

/* scenes */
#page-content { position: relative; z-index: 1; }
.scene { position: relative; display: flex; align-items: center; padding: 120px 7vw; }
.scene-inner { max-width: 720px; }
.scene-inner.wide { max-width: 1080px; }
.scene-inner.center { max-width: 640px; margin: 0 auto; text-align: center; }

.scene-hero { min-height: 100svh; flex-direction: column; justify-content: center; align-items: flex-start; }
.scene-concept { min-height: 130vh; }
.scene-ai { min-height: 140vh; justify-content: flex-end; }
.scene-ai .scene-inner { text-align: left; }
.scene-tools { min-height: 120vh; padding-top: 160px; padding-bottom: 160px; }
.scene-contact { min-height: 90vh; justify-content: center; }

/* hero */
.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.42em; color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 200; line-height: 0.92; letter-spacing: 0.04em;
  font-size: clamp(4.4rem, 13vw, 11rem);
  color: #f5f5f5;
}
.hero-title span { font-weight: 100; color: rgba(255,255,255,0.55); letter-spacing: 0.22em; }
.hero-lead { margin-top: 34px; font-size: 1.02rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.78); }
.scroll-hint {
  position: absolute; bottom: 36px; left: 7vw;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem; letter-spacing: 0.38em; color: rgba(255,255,255,0.4);
  display: flex; align-items: center; gap: 14px;
}
.scroll-line { display: block; width: 72px; height: 1px; background: rgba(255,255,255,0.25); overflow: hidden; position: relative; }
.scroll-line::after {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.85);
  transform: scaleX(0); transform-origin: left;
  animation: scrollSweep 2.6s cubic-bezier(.6,.05,.3,.95) infinite;
}
@keyframes scrollSweep {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* section typography */
.sec-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.66rem; letter-spacing: 0.4em; color: rgba(255,255,255,0.42);
  margin-bottom: 22px;
}
.sec-title {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: 0.06em; line-height: 1.5;
  color: #f2f2f2; margin-bottom: 26px;
}
.sec-body { font-size: 0.96rem; line-height: 2.2; letter-spacing: 0.04em; color: rgba(255,255,255,0.72); }
.sec-more { margin-top: 30px; }
.sec-more a {
  font-size: 0.88rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.6);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 3px; transition: color 0.3s ease, border-color 0.3s ease;
}
.sec-more a:hover { color: #fff; border-color: rgba(255,255,255,0.7); }

/* concept words */
.concept-words { display: flex; gap: 8%; margin-top: 64px; }
.cw { display: flex; flex-direction: column; gap: 10px; }
.cw-en {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 200;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: 0.18em; color: #f2f2f2;
}
.cw-ja { font-size: 0.74rem; letter-spacing: 0.22em; color: rgba(255,255,255,0.5); }

/* tools */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 30px; margin-top: 54px; }
.tool-card {
  display: block; text-decoration: none;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; overflow: hidden;
  transition: transform 0.45s cubic-bezier(.16,.84,.44,1), border-color 0.45s ease, background 0.45s ease;
}
.tool-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.tool-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-bottom: 1px solid rgba(255,255,255,0.1); }
.tool-card h3 {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  font-size: 1rem; letter-spacing: 0.05em; color: #f2f2f2;
  padding: 16px 18px 6px;
}
.tool-card p { font-size: 0.8rem; line-height: 1.8; color: rgba(255,255,255,0.58); padding: 0 18px 18px; }

/* contact */
.cta {
  display: inline-block; margin-top: 40px; padding: 16px 52px;
  font-size: 0.98rem; letter-spacing: 0.14em; font-weight: 400;
  color: #0a0a0a; background: #f2f2f2; text-decoration: none; border-radius: 999px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.cta:hover { background: #ffffff; color: #0a0a0a; transform: translateY(-2px); }
.contact-links { display: flex; justify-content: center; gap: 34px; margin-top: 52px; }
.contact-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.26em;
  color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.3s ease;
}
.contact-links a:hover { color: rgba(255,255,255,0.9); }

.lab-foot { position: relative; z-index: 1; text-align: center; padding: 30px 0 42px; }
.lab-foot a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.28em; color: rgba(255,255,255,0.3); text-decoration: none;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-line::after { animation: none; }
}

/* mobile */
.sp-br { display: none; }
@media (max-width: 760px) {
  .scene { padding: 90px 24px; }
  .scene-concept, .scene-ai, .scene-tools { min-height: auto; }
  .scene-ai { justify-content: flex-start; }
  .concept-words { flex-direction: column; gap: 26px; margin-top: 44px; }
  .tool-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 40px; }
  .scroll-hint { left: 24px; }
  .sp-br { display: inline; }
  .sec-body { font-size: 0.9rem; line-height: 2.05; }
}
