:root {
  --ink: #0d0d0d;
  --paper: #f4f1ea;
  --hot: #ff3d14;
  --yellow: #f5c518;
  --accent: #ff3d14;
  --heavy: "Dela Gothic One", "Noto Sans JP", sans-serif;
  --latin: "Anton", "Dela Gothic One", sans-serif;
  --body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: #fff;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--heavy); font-weight: 400; line-height: 1.16; letter-spacing: .01em; }
.eyebrow { font-family: var(--latin); letter-spacing: .24em; font-size: 15px; color: var(--accent); transition: color .6s; }

/* スクロールで止まる場面 */
.pin { position: relative; height: var(--h); }
.pin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* 幕開け（ペンキが落ちて、上へ抜ける） */
#curtain { position: fixed; inset: 0; z-index: 1000; background: var(--ink); pointer-events: none; }
html:not(.js) #curtain { display: none; }
#curtain.gone { background: transparent; }
#curtain.done { display: none; }
.curtain-paint {
  position: absolute; inset: 0; background: var(--hot);
  transform: translateY(-122%);
  transition: transform .8s cubic-bezier(.7, 0, .2, 1);
}
#curtain.fill .curtain-paint { transform: translateY(0); }
#curtain.gone .curtain-paint { transform: translateY(-122%); transition: transform .62s cubic-bezier(.76, 0, .24, 1); }
.curtain-drips { position: absolute; left: 0; right: 0; top: 100%; display: flex; }
.curtain-drips i, .rise-drips i {
  display: block; flex: 1 1 auto; background: var(--hot);
  border-radius: 0 0 99px 99px;
}
.curtain-count {
  position: absolute; left: 32px; bottom: 16px; color: #fff; font-family: var(--latin); line-height: 1;
  mix-blend-mode: difference; transition: opacity .2s;
}
#curtain.gone .curtain-count { opacity: 0; }
.curtain-count b { font-size: clamp(90px, 22vw, 300px); font-weight: 400; }
.curtain-count small { font-size: 44px; }
.curtain-count i { display: block; font: 700 15px var(--body); letter-spacing: .3em; margin: 12px 0 8px; }

/* カーソルと飛び散り */
#cursor {
  position: fixed; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 58% 42% 55% 45%; background: var(--accent); z-index: 900; pointer-events: none;
  transition: width .2s, height .2s, margin .2s, background .5s, opacity .2s; opacity: 0;
}
#cursor.big { width: 70px; height: 70px; margin: -35px 0 0 -35px; mix-blend-mode: difference; background: #fff; }
@media (pointer: fine) { #cursor.on { opacity: 1; } }
#splats { position: fixed; inset: 0; z-index: 800; pointer-events: none; overflow: hidden; }
.splat { position: absolute; overflow: visible; transform-origin: center; animation: splat 2.2s forwards; }
@keyframes splat {
  0% { transform: scale(0) rotate(var(--r)); opacity: 1; }
  9% { transform: scale(1.15) rotate(var(--r)); }
  16% { transform: scale(1) rotate(var(--r)); opacity: 1; }
  72% { opacity: 1; }
  100% { transform: scale(1) translateY(26px) rotate(var(--r)); opacity: 0; }
}

/* 左の進み具合（塗料のチューブ） */
#tube { position: fixed; right: 12px; top: 22vh; bottom: 22vh; width: 6px; border-radius: 9px; background: #ffffff26; z-index: 700; mix-blend-mode: difference; }
#tube span { display: block; width: 100%; height: 100%; border-radius: 9px; background: #fff; transform: scaleY(0); transform-origin: top; }

/* 見出しの帯 */
#head {
  position: fixed; left: 0; right: 0; top: 0; z-index: 500; display: flex; align-items: center; gap: 28px;
  padding: 16px clamp(16px, 3vw, 36px); mix-blend-mode: difference; color: #fff;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.logo b { font-family: var(--heavy); font-weight: 400; font-size: 22px; }
.logo small { font-family: var(--latin); letter-spacing: .18em; font-size: 10px; }
#head nav { display: flex; gap: 24px; font-weight: 700; font-size: 14px; }
#head nav a { position: relative; }
#head nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .3s; }
#head nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.head-cta { padding: 8px 20px; border: 2px solid #fff; border-radius: 99px; font-weight: 900; font-size: 14px; }
@media (max-width: 760px) { #head nav { display: none; } #tube { display: none; } }

/* 動きを抑える設定の人 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #curtain, #cursor, #roller { display: none !important; }
}
