/* 色は元の1枚から拾った3色（ピンクの地・文字の黒・地面の明るい灰）だけ */
:root {
  --pink: #f82d78;
  --ink: #0a0d13;
  --paper: #ffffff;
  --tint: #f1efec;
  --muted: #555b66;
  --muted-on-ink: #b7bcc6;

  --f-display: "Avenir Next", "Montserrat", "Futura", "Segoe UI", "Roboto", "Helvetica Neue", "Arial Black", Arial, sans-serif;
  --f-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;

  /* 冒頭の寸法（縦長の画面） */
  --pad: 10px;
  --line-h: 34px;
  --gap: 6px;
  --frame-h: clamp(380px, calc(100svh - 2 * var(--pad) - 2 * var(--line-h)), 160vw);
  --hero-h: calc(var(--frame-h) + 2 * var(--line-h) + 2 * var(--pad));
  --big: min(22vw, calc(var(--frame-h) / 4.5));
  --pin-extra: 50svh;
}

@media (min-width: 700px) and (min-aspect-ratio: 1/1) {
  :root {
    --pad: 20px;
    --line-h: 44px;
    --gap: 16px;
    --frame-h: max(340px, calc(100svh - 2 * var(--pad) - 2 * var(--line-h)));
    --big: min(11.6vw, calc(var(--frame-h) / 4.5));
    --pin-extra: 70svh;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: 16px;
  line-height: 1.9;
  line-break: strict;
  overflow-wrap: anywhere;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sec--ink :focus-visible, .motion-toggle:focus-visible { outline-color: var(--paper); }

/* ---------- 冒頭 ---------- */

.hero-pin { background: var(--pink); }
.js .hero-pin { height: calc(var(--hero-h) + var(--pin-extra)); }
.js.motion-off .hero-pin { height: auto; }

.hero {
  position: sticky;
  top: 0;
  height: var(--hero-h);
  padding: var(--pad);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: var(--line-h) var(--frame-h) var(--line-h);
  column-gap: var(--gap);
  overflow: clip;
  background: var(--pink);
}

.hero-line {
  grid-column: 1 / -1;
  align-self: center;
  text-align: center;
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(10px, 0.5vw + 8.4px, 14px);
  line-height: 1;
  letter-spacing: 0.14em;
}

/* 縦長の画面では右下に「動きを止める」ボタンが来るので、下の1行は左に寄せて2行にする */
.hero-line--foot { text-align: left; line-height: 1.35; }

.hero-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: var(--frame-h);
}

.hero-word {
  display: block;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: min(var(--big), var(--fit, 100vmax));
  line-height: 0.74;
  letter-spacing: -0.01em;
  will-change: transform;
}

.hero-small { display: none; }

.hero-frame { position: relative; height: var(--frame-h); }

.hero-media { position: absolute; inset: 0; overflow: hidden; background: #d9d7d3; }
.scene { position: absolute; inset: 0; }
.scene picture { display: contents; }
.scene-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 42% 50%;
  transform-origin: 36% 38%;
  transform: scale(1.06);
  will-change: transform;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s;
}
.hero-video.is-playing { opacity: 1; }

/* 人物の層。縦長の画面では1枚絵を使うので出さない */
.hero-pop { display: none; }

.hero-note {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(10px, 3vw, 14px);
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.hero-title { position: absolute; z-index: 4; left: 0; bottom: clamp(14px, 4%, 44px); }
.hero-kicker {
  width: fit-content;
  padding: 5px 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.hero-title h1 { font-size: clamp(19px, 5.9vw, 34px); font-weight: 800; line-height: 1.25; letter-spacing: 0.01em; }
.hero-title h1 span {
  display: block;
  width: fit-content;
  margin-top: 4px;
  padding: 0.14em 0.42em 0.16em;
  background: var(--pink);
  white-space: nowrap;
}

@media (min-width: 700px) and (min-aspect-ratio: 1/1) {
  .hero {
    grid-template-columns: auto minmax(0, calc(var(--frame-h) * 1.7768)) auto;
    justify-content: center;
  }
  .scene {
    inset: 0 auto 0 calc((100% - var(--frame-h) * 1.7768) * 0.6);
    width: calc(var(--frame-h) * 1.7768);
  }
  .scene-img { object-position: 50% 50%; transform-origin: 50% 50%; transform: scale(1.08); }

  /* 人物は枠の外へ出てよい。上だけ開け、左右と下は枠で切る */
  .hero-pop { display: block; position: absolute; inset: 0; z-index: 3; clip-path: inset(-60% 0 0 0); }
  /* 手のある左半分だけ上へ出す。髪は枠の上辺で切る（切り抜きのにじみを地面の外へ出さない） */
  .hero-pop-clip { position: absolute; inset: 0; clip-path: polygon(-20% -70%, 52% -70%, 52% 0, 120% 0, 120% 120%, -20% 120%); }
  .hero-pop .scene-img { transform-origin: 66.4% 95.6%; transform: scale(1.1); }

  .hero-line--foot { text-align: center; line-height: 1; }
  .hero-line--foot br { display: none; }
  .hero-note { top: 28px; right: auto; left: 30px; font-size: clamp(15px, 1.5vw, 22px); }
  .hero-kicker { font-size: 13px; padding: 6px 11px; }
  .hero-title h1 { font-size: clamp(28px, 3.5vw, 52px); }
  .hero-title h1 span { margin-top: 6px; }
}

@media (min-width: 1000px) and (min-aspect-ratio: 1/1) {
  .hero-small {
    display: block;
    align-self: flex-start;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }
}

/* ---------- 共通 ---------- */

.sec { padding: clamp(72px, 12vw, 136px) 0; }
.sec--paper { background: var(--paper); }
.sec--tint { background: var(--tint); }
.sec--ink { background: var(--ink); color: var(--paper); }

.wrap { width: min(100% - 40px, 1080px); margin-inline: auto; }

.eyebrow { display: flex; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: 0.08em; }
.eyebrow b { font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: 0; color: var(--pink); }

h2 { margin-top: 14px; text-wrap: balance; font-size: clamp(28px, 6.6vw, 58px); font-weight: 800; line-height: 1.32; letter-spacing: 0.01em; }
h2 + p, .lead { margin-top: 22px; }
.lead { max-width: 34em; font-size: clamp(16px, 1.2vw + 12px, 19px); }
p + p { margin-top: 14px; }

.note { max-width: 40em; margin-top: 40px; font-size: 14px; line-height: 1.8; color: var(--muted); }

.js .reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js.motion-off .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- 01 元の1枚 ---------- */

.split { display: grid; gap: 44px; }
.poster { width: min(78%, 340px); margin-inline: auto; }
.poster img { width: 100%; height: auto; box-shadow: 0 18px 40px rgba(10, 13, 19, 0.22); }
.poster figcaption { margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; }

@media (min-width: 820px) {
  .split { grid-template-columns: 5fr 6fr; align-items: center; gap: 72px; }
  .poster { width: min(100%, 400px); }
}

/* ---------- 02 分解 ---------- */

.layers { display: grid; gap: 28px; margin-top: 36px; }

.explode {
  --p: 1;
  --g: 17cqw;
  container-type: inline-size;
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 0.98;
  margin-inline: auto;
}
.ex-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84%;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, calc(-50% + (1.5 - var(--i)) * var(--g) * var(--p))) rotateX(56deg) rotateZ(-28deg);
  box-shadow: 0 0 0 1px rgba(10, 13, 19, 0.28);
  will-change: transform;
}
.ex-1 { --i: 0; background: var(--pink); }
.ex-2 { --i: 1; }
.ex-3 { --i: 2; background: rgba(255, 255, 255, 0.34); }
.ex-4 { --i: 3; background: rgba(255, 255, 255, 0.34); display: flex; justify-content: space-between; padding: 3cqw; }
.ex-layer img { width: 100%; height: 100%; object-fit: cover; }
.ex-4 span { writing-mode: vertical-rl; font-family: var(--f-display); font-weight: 900; font-size: 9cqw; line-height: 0.74; white-space: nowrap; }
.ex-layer i {
  position: absolute;
  right: 2cqw;
  bottom: 2cqw;
  display: grid;
  place-items: center;
  width: 7cqw;
  height: 7cqw;
  min-width: 20px;
  min-height: 20px;
  background: var(--ink);
  color: var(--paper);
  font: 900 clamp(11px, 3.6cqw, 17px)/1 var(--f-display);
}

.legend { display: grid; gap: 4px; align-content: center; }
.legend li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(10, 13, 19, 0.16); }
.legend li:last-child { border-bottom: 1px solid rgba(10, 13, 19, 0.16); }
.legend b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--paper); font: 900 15px/1 var(--f-display); }
.legend strong { display: block; font-size: 17px; line-height: 1.5; }
.legend span { display: block; font-size: 14px; line-height: 1.7; color: var(--muted); }

@media (min-width: 820px) {
  .layers { grid-template-columns: 6fr 5fr; align-items: center; gap: 56px; margin-top: 56px; }
}

/* ---------- 03 種明かし ---------- */

.trick { display: grid; gap: 24px; margin-top: 64px; }
.trick h3 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(20px, 1.4vw + 15px, 28px); font-weight: 800; line-height: 1.45; }
.trick h3 b { flex: none; font-family: var(--f-display); font-weight: 900; font-size: 1.3em; line-height: 1; color: var(--pink); }
.trick h3 + p { margin-top: 12px; }

@media (min-width: 820px) {
  .trick { grid-template-columns: 5fr 6fr; align-items: center; gap: 64px; margin-top: 96px; }
}

.depth {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tint);
}
.depth img { position: absolute; top: -4%; left: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; will-change: transform; }
.depth span {
  position: absolute;
  left: 5%;
  top: 50%;
  margin-top: -0.5em;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 21cqw;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  will-change: transform;
}

.slider, .field { display: grid; gap: 4px; margin-top: 14px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.slider input { width: 100%; height: 44px; margin: 0; accent-color: var(--pink); cursor: ew-resize; }
.field input {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: 800 20px/1 var(--f-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.typebox {
  container-type: inline-size;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--pink);
}
.typebox-out {
  --n: 6;
  font-family: var(--f-display), var(--f-jp);
  font-weight: 900;
  font-size: min(calc(96cqw / (var(--n) * 0.86)), 32cqw);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-transform: uppercase;
}

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.facts li { padding: 16px 0 18px; border-top: 2px solid var(--ink); }
.facts strong { display: block; font-size: clamp(19px, 1.2vw + 15px, 28px); font-weight: 800; line-height: 1.4; }
.facts span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---------- 04 プレゼント ---------- */

.reach { height: clamp(300px, 78vw, 600px); overflow: hidden; background: var(--paper); }
.reach img { position: relative; left: 50%; height: 100%; width: auto; max-width: none; transform-origin: 50% 100%; transform: translate3d(-50%, 0, 0); will-change: transform; }

.sec--ink .lead { color: #e6e8ec; }

.kit { display: grid; gap: 40px; margin-top: 48px; }
.kit-block { padding-top: 20px; border-top: 2px solid var(--pink); }
.kit-block h3 { font-size: 19px; font-weight: 800; line-height: 1.5; }
.kit-list li { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.kit-list li:last-child { border-bottom: 0; }
.kit-list strong { display: block; font-size: 16px; line-height: 1.6; }
.kit-list span { display: block; font-size: 14px; line-height: 1.7; color: var(--muted-on-ink); }

.steps { counter-reset: step; margin-top: 6px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: 16px; line-height: 1.7; }
.steps li::before { content: counter(step); flex: none; width: 1em; font: 900 24px/1 var(--f-display); color: var(--pink); }
.kit-aside { margin-top: 16px; font-size: 14px; line-height: 1.8; color: var(--muted-on-ink); }

@media (min-width: 820px) {
  .kit { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 64px; }
}

.more { margin-top: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.more details { border-top: 1px solid rgba(255, 255, 255, 0.28); }
.more summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 8px 0; font-size: 16px; font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; flex: none; font: 400 26px/1 var(--f-display); color: var(--pink); transition: transform 0.25s; }
.more details[open] summary::after { transform: rotate(45deg); }
.motion-off .more summary::after { transition: none; }
.more-body { max-width: 44em; padding: 0 0 22px; font-size: 15px; line-height: 1.85; color: #e6e8ec; }
.more-body strong { color: var(--paper); }

.get { margin-top: 56px; text-align: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 440px);
  min-height: 68px;
  padding: 12px 24px;
  background: var(--pink);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 0.2s;
}
.btn:hover { transform: translate3d(0, -3px, 0); }
.btn[aria-disabled="true"] { background: none; color: var(--muted-on-ink); font-size: 15px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }
.get-meta { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--muted-on-ink); overflow-wrap: anywhere; }

/* ---------- 終わり ---------- */

.foot { padding: 56px 20px 96px; background: var(--pink); text-align: center; font-size: 15px; font-weight: 700; line-height: 1.7; }
.foot-brand { margin-top: 10px; font-family: var(--f-display); font-weight: 900; font-size: 13px; letter-spacing: 0.14em; }

.motion-toggle {
  position: fixed;
  z-index: 50;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: 700 13px/1 var(--f-jp);
  cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-icon { width: 0; height: 0; border: 6px solid transparent; border-left: 10px solid currentColor; border-right: 0; }

@media (prefers-reduced-motion: reduce) {
  html:not(.js) * { transition: none !important; }
}
