:root {
  --paper: #fffcf7;
  --ink: #2a261f;
  --mute: #6f6a62;
  --gold: #c4a46a;
  --line: rgba(196,164,106,.28);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.preview-note {
  position: fixed; left: 12px; bottom: 12px; z-index: 50;
  margin: 0; padding: 6px 10px; max-width: 62vw;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,252,247,.92); color: #8a7d68; font-size: 10px;
  pointer-events: none;
}
.brandbar {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: center; pointer-events: none;
  opacity: 0;
}
.brandbar.is-on { opacity: 1; }
.brandbar strong {
  pointer-events: auto;
  font: 700 11px Arial, sans-serif;
  letter-spacing: .46em;
  color: rgba(255,248,236,.88);
  text-shadow: 0 1px 10px rgba(40,30,10,.25);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #f4efe6;
}
.hero-logo {
  display: inline-flex;
  margin-bottom: 10px;
}
.hero-logo strong {
  font: 700 11px Arial, sans-serif;
  letter-spacing: .46em;
  color: #3a2c1c;
  text-shadow: 0 0 16px rgba(255,250,240,.9);
}
.hero-stage {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: #f4efe6;
}
.hero-stage picture,
.hero-stage img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-stage img {
  max-width: none;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-read {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100svh;
  padding: 18px 24px 24px;
  text-align: left;
  pointer-events: none;
}
.hero-copy {
  max-width: 210px;
}
.hero-read .line {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: #3a2c1c;
  text-shadow:
    0 0 18px rgba(255,250,240,.9),
    0 1px 2px rgba(255,246,230,.55);
}
.hero-read .line span {
  white-space: nowrap;
}
.hero-read .lead {
  margin: 10px 0 0;
  font-size: 13px;
  color: #4a3b28;
  text-shadow: 0 0 16px rgba(255,250,240,.9);
}
.hero-acts {
  display: none;
}
.hero-next {
  pointer-events: auto;
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4e4bf, #d9b56a);
  color: #3c3426;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  box-shadow: 0 8px 22px rgba(90,60,20,.18);
}

.open { min-height: 400svh; }
.open-sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; align-content: end;
  overflow: hidden;
}
.film { position: absolute; inset: 0; overflow: hidden; background: #d8cfc2; }
.film picture, .film-street {
  width: 100%; height: 100%;
}
.film-street {
  object-fit: cover; object-position: 50% 32%;
  transform: scale(1.02);
  filter: sepia(.16) saturate(.9) brightness(1.06);
  transition: transform 1.2s ease, filter .8s ease, object-position 1.2s ease;
}
.film::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 48% 72%, transparent 22%, rgba(18,14,10,.5) 100%);
  transition: opacity .8s ease;
}
.gold-wash {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 78% 0%, rgba(255,220,150,.42), transparent 38%),
    linear-gradient(180deg, rgba(30,24,16,.1) 0%, transparent 26%, rgba(255,252,247,.08) 78%, rgba(255,252,247,.42) 100%);
  pointer-events: none;
}
.gold-mote {
  position: absolute; left: 50%; top: 58%; z-index: 2;
  width: 10px; height: 10px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.4);
  opacity: .22;
  background: radial-gradient(circle, rgba(255,236,186,.95), rgba(232,196,110,0) 70%);
  box-shadow: 0 0 18px rgba(255,220,140,.35);
  transition: .8s ease;
}
.portal-ring {
  position: absolute; left: 50%; top: 58%; z-index: 2;
  width: 120px; height: 120px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
  border: 1px solid rgba(255,232,186,.0);
  box-shadow: 0 0 0 0 rgba(255,220,150,0);
  transition: .9s ease;
  pointer-events: none;
}
.film-ghost {
  position: absolute; left: 50%; top: 48%; z-index: 2;
  width: 62vw; max-width: 270px; height: 44vh;
  object-fit: cover; object-position: 55% 18%;
  transform: translate(-50%, -50%) scale(.86);
  opacity: 0;
  clip-path: circle(8% at 50% 48%);
  filter: brightness(1.08) saturate(1.05);
  transition: opacity .9s ease, clip-path 1s ease, transform 1s ease;
  pointer-events: none;
}

.whisper {
  position: absolute; z-index: 3; margin: 0; opacity: 0;
  font-family: var(--serif); font-size: 16px; letter-spacing: .2em;
  color: rgba(255,248,230,.95);
  text-shadow: 0 2px 14px rgba(40,28,8,.4);
  transition: opacity .4s ease;
  pointer-events: none;
}
.w-walk { left: 50%; bottom: 16%; transform: translateX(-50%); }
.w-find { left: 50%; top: 44%; transform: translateX(-50%); }

.film[data-beat="1"] .film-street {
  object-position: 46% 84%;
  transform: scale(1.5);
  filter: sepia(.22) saturate(1.02) brightness(.9);
}
.film[data-beat="1"]::before { opacity: 1; }
.film[data-beat="1"] .gold-wash {
  background:
    linear-gradient(180deg, rgba(20,16,10,.18) 0%, transparent 28%, rgba(255,252,247,.22) 88%, rgba(255,252,247,.55) 100%);
}
.film[data-beat="1"] .gold-mote {
  opacity: .35; width: 22px; height: 22px; transform: translate(-50%, -50%) scale(1);
}
.film[data-beat="1"] .w-walk { opacity: .95; }

.film[data-beat="2"] .film-street {
  object-position: 48% 70%;
  transform: scale(1.34);
  filter: sepia(.28) saturate(1.05) brightness(.72);
}
.film[data-beat="2"] .gold-wash {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255,228,170,.55), transparent 36%),
    linear-gradient(180deg, rgba(20,16,10,.28) 0%, transparent 34%, rgba(255,252,247,.2) 70%, rgba(255,252,247,.94) 100%);
}
.film[data-beat="2"] .gold-mote {
  opacity: 1; width: 180px; height: 180px; transform: translate(-50%, -50%) scale(1);
}
.film[data-beat="2"] .portal-ring {
  opacity: .9; transform: translate(-50%, -50%) scale(1);
  border-color: rgba(255,236,200,.45);
  box-shadow: 0 0 40px 10px rgba(255,220,150,.18);
}
.film[data-beat="2"] .w-walk { opacity: 0; }
.film[data-beat="2"] .w-find { opacity: .95; }

.film[data-beat="3"] .film-street {
  object-position: 48% 68%;
  transform: scale(1.38);
  filter: sepia(.34) saturate(.7) brightness(.42);
}
.film[data-beat="3"] .gold-wash {
  background:
    radial-gradient(ellipse at 48% 44%, rgba(255,236,196,.7), transparent 32%),
    linear-gradient(180deg, rgba(18,14,10,.45) 0%, transparent 40%, rgba(255,252,247,.55) 100%);
}
.film[data-beat="3"] .gold-mote { opacity: .7; width: 240px; height: 240px; }
.film[data-beat="3"] .portal-ring {
  opacity: 1; width: 210px; height: 210px;
  border-color: rgba(255,242,214,.7);
  box-shadow: 0 0 60px 18px rgba(255,220,150,.28);
}
.film[data-beat="3"] .film-ghost {
  opacity: 1;
  clip-path: circle(46% at 50% 48%);
  transform: translate(-50%, -50%) scale(1);
}
.film[data-beat="3"] .w-walk,
.film[data-beat="3"] .w-find { opacity: 0; }

.open-copy {
  position: relative; z-index: 2;
  padding: 0 22px 42px;
  text-align: center;
  transition: opacity .55s ease, transform .55s ease;
}
.line {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: 30px; line-height: 1.48; letter-spacing: .05em;
}
.lead {
  margin: 16px 0 0;
  font-size: 16px;
  color: #5c5346;
}
.open-sticky:has(.film[data-beat="1"]) .open-copy,
.open-sticky:has(.film[data-beat="2"]) .open-copy,
.open-sticky:has(.film[data-beat="3"]) .open-copy {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.meet {
  min-height: 100svh;
  padding: 72px 22px 96px;
  text-align: center;
  background: linear-gradient(#fffcf7, #fff);
}
.found-word {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: .12em;
}
.appear {
  margin: 0 auto;
  width: min(100%, 360px);
  overflow: hidden;
  border-radius: 24px;
  padding-top: 10px;
  background: #fff8ef;
  box-shadow: 0 22px 48px rgba(90,60,20,.12);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: opacity .9s ease, transform 1s ease;
}
.meet.is-in .appear { opacity: 1; transform: none; }
.appear img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.quiet {
  margin: 28px auto 0;
  color: var(--mute);
  font-size: 16px;
  line-height: 2;
}

@media (min-width: 900px) {
  .brandbar { justify-content: flex-start; padding-left: 40px; }
  .brandbar strong { color: rgba(255,248,236,.9); }
  .hero {
    min-height: 0;
    display: block;
    background: var(--paper);
  }
  .hero-stage {
    position: relative;
    display: block;
  }
  .hero-stage picture,
  .hero-stage img {
    width: 100%;
    height: auto;
  }
  .hero-stage img {
    object-fit: contain;
    object-position: center;
  }
  .hero-read {
    position: absolute;
    inset: 0;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    padding: 4.6% 8vw 0;
    text-align: center;
  }
  .hero-copy {
    max-width: 640px;
  }
  .hero-read .line,
  .hero-read .lead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .hero-read .line {
    font-size: clamp(28px, 3.1vw, 44px);
    line-height: 1.45;
    letter-spacing: .06em;
    text-shadow:
      0 0 22px rgba(255,252,247,.96),
      0 1px 2px rgba(255,246,230,.7);
  }
  .hero-read .lead {
    margin-top: 12px;
    font-size: 16px;
  }
  .hero-acts {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: #6a5638;
    font-family: var(--serif);
    font-size: 14px;
    letter-spacing: .18em;
    text-shadow: 0 0 16px rgba(255,252,247,.95);
  }
  .hero-logo { display: none; }
  .hero-next {
    margin-top: 18px;
    font-size: 14px;
    padding: 12px 28px;
  }
  .line { font-size: 46px; }
  .lead { font-size: 18px; }
  .open-copy { padding: 0 8vw 64px; text-align: left; max-width: 640px; }
  .gold-mote, .portal-ring { left: 50%; top: 58%; }
  .film-ghost { left: 54%; top: 50%; width: 280px; height: 52vh; }
  .w-walk { left: 50%; }
  .w-find { left: 50%; top: 48%; }
  .meet { padding: 96px 8vw 120px; }
  .appear { width: min(420px, 34vw); }
}
@media (max-width: 430px) {
  .hero-read .line { font-size: 16px; }
  .found-word { font-size: 28px; }
}
