:root {
  --paper: #fbf6ec;
  --paper-2: #f4eee2;
  --ink: #4a4560;
  --ink-soft: #7a7590;
  --line: rgba(74, 69, 96, .14);
  --blue: #7ea0fc;
  --red: #fcb4a3;
  --yellow: #fce476;
  --green: #c9ef95;
  --purple: #d8b1fb;
  --logo-blue: #4f7be6;
  --logo-purple: #9a62d8;
  --logo-pink: #c46fc4;
  --night: #2c2a4a;
  --grad: linear-gradient(100deg, var(--logo-blue), var(--logo-purple) 55%, var(--logo-pink));
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --hand: "Klee One", "Zen Maru Gothic", serif;
  --display: "Fraunces", "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--round);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
main { overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; position: relative; }
.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--paper);
  transition: opacity .8s var(--ease), visibility .8s;
}
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
.loader__dots { display: flex; gap: 14px; }
.loader__dots i {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c);
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .06);
  animation: hop 1.1s var(--ease) infinite;
}
.loader__dots i:nth-child(2) { animation-delay: .1s; }
.loader__dots i:nth-child(3) { animation-delay: .2s; }
.loader__dots i:nth-child(4) { animation-delay: .3s; }
.loader__dots i:nth-child(5) { animation-delay: .4s; }
@keyframes hop {
  0%, 60%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-16px) scale(1.08, .94); }
}
.loader__text { font-family: var(--display); font-style: italic; font-size: 14px; letter-spacing: .3em; color: var(--ink-soft); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(16px, 3vw, 36px);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.header.is-scrolled {
  background: rgba(251, 246, 236, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.header__logo img { height: 46px; width: auto; transition: transform .4s var(--ease); }
.header__logo:hover img { transform: rotate(-4deg) scale(1.05); }
.nav { display: flex; gap: clamp(8px, 1.2vw, 22px); margin-left: auto; }
.nav a {
  display: grid; justify-items: center;
  font-size: 12px; font-weight: 700; line-height: 1.25;
  position: relative; padding: 6px 0; white-space: nowrap;
}
.nav a span { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 10px; color: var(--logo-purple); letter-spacing: .06em; }
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--logo-blue);
  transform: translateX(-50%) scale(0); transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after { transform: translateX(-50%) scale(1); }
.nav a.is-current { color: var(--logo-purple); }

/* ---------- subpages ---------- */
body.is-sub .header {
  background: rgba(251, 246, 236, .9);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
body.is-sub main { padding-top: var(--header-h); }
body.is-sub .story, body.is-sub .movie { margin-top: 0; }
.header__tools { display: flex; align-items: center; gap: 14px; }
.sound { display: flex; align-items: center; gap: 8px; font-size: 11px; font-family: var(--round); letter-spacing: .08em; font-weight: 700; }
.sound__label b { font-weight: 900; letter-spacing: .04em; }
.sound__bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { width: 3px; height: 3px; border-radius: 2px; background: var(--ink); transition: height .3s; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq .9s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
.burger { display: none; }

/* ---------- buttons, chips ---------- */
.btn {
  --bg: var(--grad);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px; border-radius: 999px;
  background: var(--bg); color: #fff;
  font-weight: 700; font-size: 15px; letter-spacing: .08em;
  box-shadow: 0 10px 24px -10px rgba(122, 82, 216, .7), inset 0 -3px 0 rgba(0, 0, 0, .12);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(122, 82, 216, .8), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn:active { transform: translateY(0) scale(.97); }
.btn__dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
.btn--ghost { background: rgba(255, 255, 255, .6); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--logo-purple); }
.btn--small { padding: 10px 20px; font-size: 13px; }
.chip { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--line); }
.chip--accent { background: var(--yellow); box-shadow: none; }

/* ---------- section heads ---------- */
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head__en {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(56px, 9vw, 120px); line-height: 1; letter-spacing: -.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .22em;
}
.sec-head__ja { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; letter-spacing: .3em; margin-top: 0; }
.sec-head__ja::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: .5; }
.sec-head--light .sec-head__en { background: linear-gradient(100deg, #fff, #e8dcff); -webkit-background-clip: text; background-clip: text; }
.sec-head--light .sec-head__ja { color: #fff; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; overflow: hidden; padding: calc(var(--header-h) + 24px) 0 88px; }
.hero__paper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: auto 0 52px; height: 120px; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.hero__floaters { position: absolute; inset: 0; pointer-events: none; clip-path: inset(var(--header-h) 0 0 0); }
.floater {
  position: absolute; left: var(--x); top: var(--y); width: var(--s);
  opacity: .9; filter: drop-shadow(0 10px 14px rgba(74, 69, 96, .15));
  transform: translate3d(calc(var(--mx, 0) * var(--depth) * 1px), calc(var(--my, 0) * var(--depth) * 1px), 0);
  transition: transform 1.2s var(--ease);
}
.floater img { animation: drift var(--t) ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes drift {
  from { transform: translateY(-14px) rotate(-8deg); }
  to { transform: translateY(14px) rotate(8deg); }
}
.hero__inner { position: relative; z-index: 2; width: min(1240px, 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; }
.hero__eyebrow { font-family: var(--display); font-style: italic; color: var(--logo-purple); font-size: clamp(14px, 1.4vw, 17px); letter-spacing: .06em; }
.hero__logo img { width: min(620px, 108%); margin: 0 0 8px -4%; filter: drop-shadow(0 16px 24px rgba(79, 123, 230, .16)); animation: wobble 6s ease-in-out infinite; transform-origin: 40% 70%; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-1.5deg) translateY(-4px); } }
.hero__catch { font-family: var(--hand); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.8; letter-spacing: .12em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { width: min(100%, calc(min(78vh, 740px) * 1228 / 1354)); justify-self: end; }
.hero__stage { position: relative; }
.hero__key {
  width: 100%; height: auto; max-width: none;
  opacity: 0; transition: opacity 1s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .4) 8%, #000 20%, #000 94%, transparent 100%), linear-gradient(transparent 0%, #000 12%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .4) 8%, #000 20%, #000 94%, transparent 100%), linear-gradient(transparent 0%, #000 12%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.hero__stage .hero__key:not(:first-child) { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero__key.is-on { z-index: 1; opacity: 1; }
.hero__meter { margin: 14px 8% 0 20%; height: 4px; border-radius: 99px; background: rgba(154, 140, 196, .28); overflow: hidden; }
.hero__meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8ea8f8, #c9a6f6); transform: scaleX(0); transform-origin: left center; }
@keyframes heroMeter { to { transform: scaleX(1); } }
.topics {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; height: 52px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--line);
}
.topics__label {
  flex: none; padding: 0 22px 0 28px;
  font-family: var(--display); font-style: italic; font-size: 15px;
  color: var(--logo-purple);
}
.topics__marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.topics__track { display: flex; gap: 48px; width: max-content; animation: ticker 42s linear infinite; }
.topics a { display: flex; gap: 12px; white-space: nowrap; font-size: 13px; font-weight: 700; }
.topics time { font-family: var(--display); font-style: italic; color: var(--ink-soft); }
.topics a:hover { color: var(--logo-purple); }
@keyframes ticker { to { transform: translateX(-50%); } }
.scroll { position: absolute; z-index: 3; left: 50%; bottom: 72px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-family: var(--display); font-style: italic; font-size: 12px; letter-spacing: .3em; }
.scroll::after { content: ""; width: 1px; height: 48px; background: linear-gradient(var(--ink), transparent); animation: drop 2s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- news ---------- */
.news { padding-top: 60px; }
.news__wrap { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.news .sec-head__en { font-size: clamp(56px, 7vw, 92px); }
.news__list { background: #fff; border-radius: 28px; padding: 12px 36px; box-shadow: 0 30px 60px -40px rgba(74, 69, 96, .35); }
.news__list li { display: grid; grid-template-columns: 110px 90px 1fr; align-items: center; gap: 12px; padding: 22px 0; border-bottom: 1px dashed var(--line); transition: transform .3s var(--ease); }
.news__list li:last-child { border: 0; }
.news__list li:hover { transform: translateX(6px); }
.news__list time { font-family: var(--display); font-size: 15px; color: var(--ink-soft); letter-spacing: .06em; }
.tag { justify-self: start; font-size: 11px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: #e8efff; color: var(--logo-blue); }
.tag--movie { background: #f6e8ff; color: var(--logo-purple); }

/* ---------- story ---------- */
.story { color: #fff; overflow: hidden; }
.story__bg { position: absolute; inset: 0; background: radial-gradient(1200px 600px at 80% 0%, #8d7fe0 0%, transparent 60%), radial-gradient(900px 600px at 0% 100%, #6c8fe8 0%, transparent 60%), linear-gradient(160deg, #6a6fcf, #5a4fa6 60%, #3b3577); }
.story__bg img {
  position: absolute; top: 0; right: 0; height: min(100%, 980px); width: min(52vw, 680px); max-width: none;
  object-fit: cover; object-position: 78% 38%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .22) 28%, #000 64%), linear-gradient(#000 0%, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .22) 28%, #000 64%), linear-gradient(#000 0%, #000 74%, transparent 100%);
  mask-composite: intersect;
}
.story__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1.5px); background-size: 46px 46px; opacity: .25; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.story__wrap { z-index: 1; }
.story__body { display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.story__vertical { writing-mode: vertical-rl; font-family: var(--hand); font-weight: 600; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.6; letter-spacing: .2em; text-shadow: 0 6px 30px rgba(30, 20, 80, .4); }
.story__prose { font-family: var(--hand); font-size: clamp(16px, 1.5vw, 19px); line-height: 2.3; letter-spacing: .1em; max-width: 34em; }
.story__prose p + p { margin-top: 2em; }
.story::after { content: ""; position: absolute; inset: auto 0 -1px; height: 80px; background: var(--paper); clip-path: ellipse(75% 100% at 50% 100%); z-index: 1; }

/* ---------- character ---------- */
.heroine { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(72px, 8vw, 120px); }
.heroine__role { font-size: 13px; font-weight: 700; color: var(--logo-purple); letter-spacing: .16em; }
.heroine__name { font-size: clamp(36px, 4vw, 52px); font-weight: 900; line-height: 1.2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 4px 0 16px; }
.heroine__name small { font-weight: 700; font-size: 16px; letter-spacing: .08em; color: var(--ink-soft); }
.heroine__quote { font-family: var(--hand); font-weight: 600; font-size: 20px; padding: 14px 22px; border-radius: 18px; background: #fff; display: inline-grid; max-width: 100%; margin-bottom: 20px; position: relative; box-shadow: 0 10px 30px -20px rgba(74, 69, 96, .5); }
.heroine__typed, .heroine__measure { grid-area: 1 / 1; min-width: 0; }
.heroine__measure { visibility: hidden; }
.heroine__typed::after { content: ""; display: inline-block; width: 2px; height: .9em; margin-left: 2px; background: currentColor; vertical-align: text-bottom; animation: caret .9s steps(1) infinite; }
.heroine__quote.is-done .heroine__typed::after { content: none; }
@keyframes caret { 50% { opacity: 0; } }
.heroine__quote::before { content: ""; position: absolute; right: -10px; top: 50%; border: 10px solid transparent; border-left-color: #fff; border-right: 0; transform: translateY(-50%); }
.heroine__text > p + p { margin-top: 1em; }
.heroine__reel { min-height: 480px; display: flex; align-items: center; overflow: hidden; border-radius: 36px; background: linear-gradient(160deg, #f8f4ff, #efe8fb 50%, #f3f6ff); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.reel__track { display: flex; gap: 18px; width: max-content; animation: marquee 48s linear infinite; }
.reel__track img { width: clamp(190px, 18vw, 250px); aspect-ratio: 1; object-fit: cover; object-position: center; border-radius: 28px; border: 6px solid #fff; background: #fff; box-shadow: 0 18px 32px -20px rgba(122, 82, 216, .45); }
.reel__track img:nth-child(odd) { transform: rotate(-2deg) translateY(10px); }
.reel__track img:nth-child(even) { transform: rotate(2deg) translateY(-8px); }
@keyframes marquee { to { transform: translateX(-50%); } }

.cast { margin-bottom: clamp(64px, 8vw, 110px); }
.cast__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 28px; }
.cast__head h3 { font-size: 26px; font-weight: 900; }
.cast__head p { color: var(--ink-soft); font-size: 14px; }
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mood { --delay: calc(var(--i, 0) * .08s); background: #fff; border-radius: 28px; padding: 24px 20px 26px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 24px 40px -30px rgba(74, 69, 96, .5); transition: transform .5s var(--ease); }
.mood::before { content: ""; position: absolute; inset: 0 0 auto; height: 52%; background: radial-gradient(circle at 50% 80%, var(--c), transparent 70%); opacity: .45; }
.mood:hover { transform: translateY(-8px) rotate(-1deg); }
.mood__face { position: relative; width: 70%; margin: 0 auto 10px; }
.mood__face img { width: 100%; animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.6s); }
@keyframes bob { 50% { transform: translateY(-8px) scale(1.03); } }
.mood__color { position: relative; z-index: 1; display: inline-block; margin-top: -16px; font-size: 11px; font-weight: 700; padding: 1px 12px; border-radius: 999px; background: var(--c); }
.mood h4 { font-size: 22px; font-weight: 900; margin: 6px 0; }
.mood p:last-child { font-size: 13px; line-height: 1.7; color: var(--ink-soft); text-align: left; }

.bears { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.bears li { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 60%, #fff, var(--paper-2)); display: grid; place-items: center; cursor: pointer; }
.bears img { position: absolute; width: 72%; transition: opacity .45s ease; }
.bears__fly { opacity: 0; transform: translate(0, -12%) rotate(70deg); }
.bears li:hover .bears__sit { opacity: 0; }
.bears li:hover .bears__fly { opacity: 1; }

.mystery { display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 40px; padding: 36px 48px; border-radius: 36px; color: #fff; background: radial-gradient(600px 300px at 0% 50%, #4b3f8f, transparent), var(--night); position: relative; overflow: hidden; }
.mystery::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 34px 34px; opacity: .15; pointer-events: none; }
.mystery__art img { width: 100%; filter: brightness(0) drop-shadow(0 0 18px rgba(0, 0, 0, .9)); transition: filter 1s var(--ease); }
.mystery:hover .mystery__art img { filter: brightness(1) drop-shadow(0 0 24px rgba(0, 0, 0, .9)); }
.mystery__label { font-family: var(--display); font-style: italic; color: #f8d77a; letter-spacing: .1em; }
.mystery h3 { font-size: 48px; font-weight: 900; letter-spacing: .2em; }
.mystery__hint { margin-top: 12px; font-size: 12px; opacity: .6; }

/* ---------- rules ---------- */
.rules { background: linear-gradient(var(--paper), #f1ecfb 30%, #f1ecfb 70%, var(--paper)); }
.howto { display: grid; grid-template-columns: 1fr 430px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps { display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 76px 1fr; gap: 4px 20px; padding: 24px 28px; border-radius: 24px; background: rgba(255, 255, 255, .8); box-shadow: 0 18px 40px -32px rgba(74, 69, 96, .6); }
.steps__no { grid-row: span 2; font-family: var(--display); font-style: italic; font-size: 54px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 20px; font-weight: 900; }
.steps p { font-size: 14px; color: var(--ink-soft); line-height: 1.8; }

.demo { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border-radius: 36px; padding: 20px 20px 18px; box-shadow: 0 40px 80px -40px rgba(74, 69, 96, .55), inset 0 0 0 1px var(--line); }
.demo__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.demo__label { font-family: var(--display); font-style: italic; color: var(--logo-purple); }
.demo__score { display: flex; align-items: baseline; gap: 4px; }
.demo__score b { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; display: inline-block; }
.demo__score b.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35) translateY(-4px); } }
.demo__score small { font-size: 11px; }
.demo__moves { justify-self: end; font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.demo__board { position: relative; aspect-ratio: 1; margin: 6px 0 10px; border-radius: 28px; background: url(../img/paper.jpg) center / cover; overflow: hidden; }
.demo__dot { position: absolute; width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); transition: transform .3s var(--ease), opacity .3s; }
.demo__dot.is-exposed { filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)); }
.demo__dot.is-pop { animation: pop .6s var(--ease) forwards; }
@keyframes pop { 30% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.demo__burst { position: absolute; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--c); animation: spark .6s var(--ease) forwards; pointer-events: none; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.demo__girl { position: absolute; left: 50%; top: 50%; width: 22%; transform: translate(-50%, -50%); pointer-events: none; }
.demo__bear { position: absolute; z-index: 3; width: 16%; left: 50%; top: 50%; opacity: 0; pointer-events: none; transform: translate(-50%, -50%); }
.demo__combo { position: absolute; z-index: 4; left: 50%; top: 50%; width: 76%; transform: translate(-50%, -50%) scale(.4); opacity: 0; pointer-events: none; }
.demo__combo.is-show { animation: combo 1.4s var(--ease) forwards; }
@keyframes combo { 15% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1); opacity: 0; } }
.demo__bubble { position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translate(-50%, 10px); max-width: 88%; padding: 6px 16px; border-radius: 16px; background: rgba(255, 255, 255, .95); font-size: 13px; font-weight: 700; text-align: center; opacity: 0; transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 8px 20px -12px rgba(74, 69, 96, .5); pointer-events: none; }
.demo__bubble.is-show { opacity: 1; transform: translate(-50%, 0); }
.demo__buttons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.demo__btn { position: relative; height: 54px; border-radius: 18px; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1), 0 6px 14px -8px var(--c); transition: transform .25s var(--ease), opacity .3s; }
.demo__btn img { position: absolute; width: 46px; left: 50%; top: -22px; transform: translateX(-50%); transition: transform .3s var(--ease); }
.demo__btn:hover img { transform: translateX(-50%) translateY(-4px) rotate(-6deg); }
.demo__btn:active { transform: scale(.94); }
.demo__btn[disabled] { opacity: .5; cursor: default; }
.demo__btn span { position: absolute; right: 6px; bottom: 4px; font-family: var(--display); font-size: 12px; font-weight: 600; }
.demo__reset { display: block; margin: 12px auto 0; font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }

.combo { margin: clamp(80px, 10vw, 130px) 0; text-align: center; }
.combo__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; margin-bottom: 28px; }
.combo__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.combo__list li { background: #fff; border-radius: 26px; padding: 24px 16px; box-shadow: 0 24px 40px -32px rgba(74, 69, 96, .6); transition: transform .4s var(--ease); }
.combo__list li:hover { transform: translateY(-6px) scale(1.02); }
.combo__list img { width: 100%; max-width: 240px; margin: 0 auto 8px; }
.combo__list p { font-size: 14px; }
.combo__list b { font-family: var(--display); font-size: 26px; }
.combo__list span { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; padding: 2px 14px; border-radius: 999px; background: var(--yellow); }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode { border-radius: 36px; padding: 40px; position: relative; overflow: hidden; }
.mode--daily { background: linear-gradient(150deg, #fff7e4, #ffeef0); }
.mode--challenge { background: linear-gradient(150deg, #eaf0ff, #f1e7ff); }
.mode__en { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--logo-purple); }
.mode h3 { font-size: 30px; font-weight: 900; margin: 2px 0 10px; }
.mode__lead { font-weight: 700; margin-bottom: 18px; }
.mode li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.8; }
.mode li + li { margin-top: 8px; }
.mode li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 10px; border-radius: 50%; background: var(--logo-blue); opacity: .5; }
.mode--daily li::before { background: #f29a87; }

.sorry { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; margin-top: 56px; padding: 24px 36px 24px 24px; border-radius: 32px; background: #fff; box-shadow: 0 24px 50px -36px rgba(74, 69, 96, .6); }
.sorry img { width: 100%; }
.sorry__quote { font-family: var(--hand); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.sorry p:last-child { font-size: 14px; color: var(--ink-soft); }

/* ---------- life ---------- */
.life__lead { font-family: var(--hand); font-weight: 600; font-size: clamp(17px, 1.7vw, 21px); margin: -24px 0 48px; }
.life__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: #fff; border-radius: 36px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(74, 69, 96, .55); display: flex; flex-direction: column; }
.panel__img, .room { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.panel__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: opacity .6s var(--ease); }
.room img.is-hidden { opacity: 0; }
.panel__body { padding: 28px 34px 36px; }
.panel__tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 14px; border-radius: 999px; background: #e8efff; color: var(--logo-blue); }
.panel__tag--pink { background: #ffe9ea; color: #d9776a; }
.panel h3 { font-size: 28px; font-weight: 900; margin: 6px 0 8px; display: flex; align-items: baseline; gap: 12px; }
.panel h3 small { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 17px; color: var(--ink-soft); }
.panel__body > p { font-size: 14px; color: var(--ink-soft); }
.salary { display: grid; grid-template-columns: repeat(11, 1fr); align-items: end; gap: 5px; height: 120px; margin: 24px 0 8px; }
.salary button { position: relative; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(#a8bfff, #7ea0fc); transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease), filter .3s; transition-delay: calc(var(--i) * .05s); }
.salary.is-in button { transform: scaleY(1); }
.salary button.is-active { background: var(--grad); }
.salary button span { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--display); font-size: 10px; font-weight: 600; color: var(--ink-soft); }
.salary button.is-active span { color: var(--logo-purple); font-size: 13px; }
.salary__text { font-weight: 700; font-size: 14px; min-height: 1.9em; }
.slip { margin-top: 20px; border-radius: 18px; padding: 16px 20px; background: var(--paper); font-size: 13px; }
.slip__title { font-weight: 900; margin-bottom: 6px; }
.slip__title span { font-weight: 500; font-size: 11px; color: var(--ink-soft); margin-left: 6px; }
.slip dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-family: var(--round); }
.slip dd { font-family: var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.slip .slip__total { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 4px; font-weight: 900; font-size: 15px; }
.roomSlider { position: relative; display: grid; grid-template-columns: auto 1fr 64px; align-items: center; gap: 12px; margin: 24px 0 8px; font-size: 13px; font-weight: 700; }
.roomSlider input { -webkit-appearance: none; appearance: none; height: 10px; border-radius: 10px; background: linear-gradient(90deg, #f6c2b3 var(--p, 0%), var(--paper-2) var(--p, 0%)); }
.roomSlider input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff url(../img/circles/e1.webp) center / 100%; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); cursor: grab; }
.roomSlider input::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff url(../img/circles/e1.webp) center / 100%; cursor: grab; }
.roomSlider output { font-family: var(--display); font-weight: 600; text-align: right; }
.roomTip { position: absolute; z-index: 3; left: 0; bottom: calc(100% + 14px); width: max-content; max-width: min(250px, 100%); margin: 0; padding: 8px 14px; border-radius: 14px; background: var(--night); color: #fff; font-family: var(--hand); font-weight: 600; font-size: 14px; line-height: 1.55; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.roomTip.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.roomTip::after { content: ""; position: absolute; left: var(--arrow, 50%); bottom: -6px; border: 7px solid transparent; border-top-color: var(--night); border-bottom: 0; transform: translateX(-50%); }
.roomLive { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.room__text { font-weight: 700; font-size: 14px; min-height: 3.8em; }
.panel--room:has(.room__more) .room__text { min-height: 1.6em; }
.room__more { margin-top: 6px; font-family: var(--hand); font-weight: 600; font-size: 15px; color: var(--ink-soft); }

.calendar { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 28px; padding: 36px 44px; border-radius: 36px; background: linear-gradient(120deg, #fff, #fff8e6); box-shadow: 0 30px 60px -44px rgba(74, 69, 96, .55); }
.calendar h3 { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.calendar p { font-size: 14px; color: var(--ink-soft); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.week li { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: start center; padding-top: 6px; font-size: 12px; font-weight: 700; }
.week li.is-off span { color: #e07f6c; }
.week li::after { content: ""; position: absolute; inset: 26% 12% 8%; background: var(--stamp) center / contain no-repeat; transform: scale(2) rotate(-30deg); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.week li.is-stamped::after { transform: scale(1) rotate(-8deg); opacity: 1; }

/* ---------- movie ---------- */
.movie { color: #fff; background: radial-gradient(800px 500px at 85% 20%, rgba(216, 177, 251, .35), transparent 60%), radial-gradient(700px 500px at 10% 90%, rgba(126, 160, 252, .35), transparent 60%), var(--night); overflow: hidden; }
.movie__wrap { display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 8vw, 120px); align-items: center; }
.movie__no { font-family: var(--display); font-style: italic; color: #f8d77a; font-size: 18px; }
.movie__title { font-family: var(--hand); font-weight: 600; font-size: clamp(32px, 4vw, 52px); letter-spacing: .1em; margin-bottom: 14px; }
.movie__text > p { opacity: .85; max-width: 30em; }
.movie__list { margin-top: 36px; display: grid; gap: 4px; max-width: 360px; }
.movie__list li { display: flex; gap: 16px; padding: 12px 18px; border-radius: 14px; opacity: .45; }
.movie__list li.is-active { opacity: 1; background: rgba(255, 255, 255, .1); }
.movie__list span { font-family: var(--display); font-style: italic; }
.phone { position: relative; width: min(340px, 78vw); aspect-ratio: 9 / 19.5; padding: 12px; border-radius: 52px; background: linear-gradient(145deg, #4a4675, #24223d); box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(255, 255, 255, .12); }
.phone--light { background: linear-gradient(145deg, #ffffff, #e9e3f5); box-shadow: 0 60px 100px -50px rgba(74, 69, 96, .7), inset 0 0 0 2px #fff; }
.phone::before { content: ""; position: absolute; top: 24px; left: 50%; width: 90px; height: 26px; border-radius: 20px; background: #111; transform: translateX(-50%); z-index: 2; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #000; }
.phone__screen video, .phone__screen iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 16, 40, .25); transition: opacity .4s; }
.play span { width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); animation: ring 2s infinite; }
.play span::before { content: ""; margin-left: 6px; border-left: 22px solid var(--logo-purple); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
@keyframes ring { 70%, 100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }
.play.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- trial ---------- */
.trial__wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.trial__cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 24px; padding: 24px; background: url(../img/paper.jpg) center / cover; text-align: center; }
.trial__cover img { width: 80%; }
.trial__cover p { font-size: 12px; color: var(--ink-soft); }
.trial__text > p { margin-bottom: 18px; }
.trial__notes { margin-bottom: 28px; font-size: 13px; color: var(--ink-soft); }
.trial__notes li::before { content: "・"; }

/* ---------- spec ---------- */
.spec { padding-top: 40px; }
.spec__wrap { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.spec .sec-head__en { font-size: clamp(56px, 7vw, 92px); }
.spec__table { display: grid; grid-template-columns: 140px 1fr; background: #fff; border-radius: 28px; padding: 12px 36px; box-shadow: 0 30px 60px -40px rgba(74, 69, 96, .35); }
.spec__table dt, .spec__table dd { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.spec__table dt { font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.spec__table dt:nth-last-of-type(1), .spec__table dd:last-child { border: 0; }
.stores { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store { display: grid; line-height: 1.15; padding: 10px 24px 10px 22px; border-radius: 14px; background: #1f1d2e; color: #fff; font-size: 19px; font-weight: 700; letter-spacing: 0; opacity: .85; }
.store small { font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.stores p { font-size: 12px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer { position: relative; padding: 110px 24px 40px; text-align: center; background: linear-gradient(#f0eafb, #e6e0f6); }
.footer__waves { position: absolute; inset: -1px 0 auto; height: 70px; background: var(--paper); clip-path: ellipse(70% 100% at 50% 0%); }
.footer__logo { width: 200px; margin: 0 auto 28px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 13px; font-weight: 700; margin-bottom: 28px; }
.footer__nav a:hover { color: var(--logo-purple); }
.footer__copy { font-family: var(--display); font-size: 12px; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 18px; background: rgba(251, 246, 236, .97); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .nav a { font-size: 17px; }
  .nav a span { font-size: 14px; }
  body.is-menu .nav { opacity: 1; visibility: visible; }
  .header__tools { margin-left: auto; }
  .burger { display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px -8px rgba(74, 69, 96, .5); }
  .burger i { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease); }
  body.is-menu .burger i:first-child { transform: translateY(4.5px) rotate(45deg); }
  body.is-menu .burger i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .howto { grid-template-columns: 1fr; }
  .demo { position: relative; top: 0; max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header__logo img { height: 38px; }
  .header .btn--small { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { order: -1; width: min(420px, 78vw); margin: 0 auto; justify-self: center; }
  .topics__label { padding-left: 16px; }
  .hero__logo img { margin-inline: auto; width: min(460px, 92vw); }
  .hero__catch br.pc { display: none; }
  .hero__meta, .hero__actions { justify-content: center; }
  .news__wrap, .spec__wrap { grid-template-columns: 1fr; gap: 0; }
  .news__list { padding: 8px 22px; }
  .news__list li { grid-template-columns: auto auto; }
  .news__list li p { grid-column: 1 / -1; }
  .story__body { grid-template-columns: 1fr; }
  .story__vertical { writing-mode: horizontal-tb; }
  .story__bg img { width: 88vw; opacity: .72; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 18%, #000 62%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 18%, #000 62%); }
  .heroine, .life__grid, .modes, .calendar, .movie__wrap, .trial__wrap { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
  .trial__wrap .phone { order: 2; }
  .moods { grid-template-columns: repeat(2, 1fr); }
  .moods li:last-child { grid-column: 1 / -1; max-width: calc(50% - 8px); justify-self: center; width: 100%; }
  .bears { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .heroine__reel { order: -1; min-height: 280px; }
  .heroine__quote::before { left: 28px; right: auto; top: -10px; border: 10px solid transparent; border-bottom-color: #fff; border-top: 0; transform: none; }
  .combo__list { grid-template-columns: repeat(2, 1fr); }
  .mystery { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .mystery__art { width: 200px; margin: 0 auto; }
  .sorry { grid-template-columns: 100px 1fr; padding: 18px; gap: 16px; }
  .calendar { padding: 28px 22px; }
  .spec__table { grid-template-columns: 96px 1fr; padding: 8px 22px; }
  .stores { grid-column: 1; margin-top: 20px; }
  .mode { padding: 30px 26px; }
  .panel__body { padding: 24px; }
}
@media (max-height: 800px) {
  .hero { min-height: 0; padding-bottom: 64px; row-gap: 36px; }
  .hero__visual { width: min(100%, calc(min(58vh, 520px) * 1228 / 1354)); }
  .hero__logo img { width: min(400px, 100%); }
  .topics { position: relative; min-width: 0; }
  .scroll { display: none; }
  .hero::after { inset: auto 0 0; }
}
@media (min-width: 861px) and (max-height: 800px) {
  .hero__inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 20px; align-items: center; }
  .hero__visual {
    justify-self: end;
    width: min(112%, calc(min(94vh, 760px) * 1228 / 1354));
    margin-left: 0;
    transform: translateX(-32px);
  }
  .hero__logo img { width: min(360px, 92%); margin-left: 0; }
}
@media (max-width: 860px) and (max-height: 800px) {
  .hero { align-items: start; }
  .hero__visual { width: min(280px, 62vw); }
  .hero__logo img { width: min(460px, 92vw); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
