:root {
  --ink: #1f1e1c;
  --ink-2: #5f5d58;
  --bg: #f6f5f2;
  --line: rgba(0, 0, 0, 0.08);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
  pointer-events: none;
}
.site-header a { pointer-events: auto; }
.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
}
.nav { display: flex; gap: 20px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 13px; }
@media (max-width: 560px) { .nav { display: none; } }

/* ---------- Hero: studio backdrop ---------- */
.hero { position: relative; height: 260vh; }
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* 白いスタジオのバックスクリーン：中央が明るく、床に向かってわずかに落ちる */
  background:
    radial-gradient(120% 70% at 50% 38%, #ffffff 0%, #fbfaf8 45%, #efeeea 100%);
}
.hero-sticky::after {
  /* 壁と床がゆるやかにつながるカーブ（ホリゾント）の陰影 */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.035) 60%, rgba(0,0,0,0.06) 100%);
  pointer-events: none;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  touch-action: pan-y;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  font-size: clamp(56px, 14vw, 160px);
  font-weight: 800;
  z-index: 1;
}
.hero-fallback span { color: var(--c); text-shadow: 0 18px 24px rgba(0,0,0,0.12); }
.no-webgl .hero-fallback { display: flex; }
.no-webgl #hero-canvas { display: none; }

.hero-copy {
  position: absolute;
  left: 0; right: 0;
  bottom: 12vh;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-copy.is-visible { opacity: 1; transform: none; }
.hero-copy::before {
  /* 背景の線画が文字に重なっても読めるよう、見出しの後ろをやわらかく白くする */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(720px, 110%);
  height: 170%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(250,249,246,0.95) 55%, rgba(250,249,246,0));
  z-index: -1;
}
.hero-title {
  margin: 0;
  font-size: clamp(22px, 4.2vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.hero-sub { margin: 10px 0 0; color: var(--ink-2); font-size: clamp(13px, 1.6vw, 16px); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s ease;
}
.scroll-hint span {
  width: 1px; height: 28px; background: var(--ink-2);
  animation: hint 1.8s ease-in-out infinite;
  transform-origin: top;
}
.scroll-hint.is-hidden { opacity: 0; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
.stages, .about {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 20px;
}
.section-title { font-size: clamp(20px, 3vw, 28px); margin: 0 0 32px; letter-spacing: 0.04em; }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stage {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 22px;
}
.stage-letter {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--c);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  color: rgba(0,0,0,0.55);
}
.stage p { margin: 0; }
.stage-en { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-2); }
.stage-ja { font-size: 18px; font-weight: 700; }
.stage-desc { font-size: 14px; color: var(--ink-2); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 20px 48px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-2);
}
.site-footer p { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint span { animation: none; }
}

/* 高さの低い画面では、SCROLL表示と見出しが重ならないようにする */
@media (max-height: 640px) {
  .scroll-hint { display: none; }
  .hero-copy { bottom: 7vh; }
}

/* ---------- 背景：細いペン画のノートパソコン（スクロールで開く） ---------- */
.hero-laptop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-laptop path {
  fill: none;
  stroke: #2b2a2a;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.hero-laptop .lt-ink { opacity: 0.38; }
.hero-laptop .lt-keys, .hero-laptop .lt-ui { stroke-width: 0.8; }
