/* トップ */

.top-page {
  --top-loader-exit-time: .4s;
  /* Safariがページの外側に延長する背景色を表紙に合わせる。 */
  background-color: var(--blue);
}

/* 表紙とロール */
.top-pin {
  position: relative;
}

.top-scene {
  display: none;
}

.top-cover {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
}

.top-copy {
  left: var(--gutter);
}

.top-eyebrow {
  letter-spacing: .05em;
}

.top-year {
  margin-top: 4px;
}

.top-date {
  white-space: nowrap;
}

.top-date span {
  margin-left: 5px;
}

.top-date i {
  padding: 0 8px;
}

.top-scroll-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--footer-height);
  padding: 15px var(--gutter);
}

.top-scroll-cue {
  display: flex;
  align-items: center;
  gap: 26px;
}

.top-scroll-cue > span:last-child {
  font-size: 34px;
  line-height: 1;
}

.top-scene-active .top-intro {
  --intro-travel: 940svh;
  --vertical-scroll-rate: 1;
  height: calc(100svh + var(--intro-travel) * var(--intro-scroll-length, 1) / var(--vertical-scroll-rate));
}

@media (orientation: landscape) and (max-width: 1440px) and (min-height: 600px) and (any-pointer: coarse) {
  .top-scene-active .top-intro {
    --intro-travel: 1360svh;
    --vertical-scroll-rate: 1.45;
  }
}

/* カメラの移動距離は、55BPMの紙の揺れを除いた表紙から測る。 */
.top-intro[data-measure-cover] [data-cover-beat] {
  translate: none !important;
  rotate: none !important;
}

/* トップでは、指のスクロールをすべてサイト側で動かす（top.js の driveAboutTouch）。ブラウザ自身の指のスクロールは
   元から切っておく（iPhoneは描画が詰まると、ページ側で止める前に自分のスクロールと慣性を始めてしまうため）。
   2本指の拡大・移動は残す。 */
body.top-touch-scroll {
  touch-action: pinch-zoom;
}

/* WebKitで固定中の表紙からページへの縦スクロールを通す。 */
html:has(> body.top-scene-active):not(.vlog-scroll-locked) {
  overscroll-behavior-y: auto;
}

.top-scene-active .top-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  touch-action: pan-y pinch-zoom;
  overflow: hidden;
}

.top-scene-active .top-scene {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.top-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.top-scene-active .top-cover {
  position: absolute;
  z-index: 4;
  inset: 0;
  min-height: 0;
  will-change: transform, opacity;
}

.top-scene-active .top-scroll-footer {
  position: absolute;
  z-index: 5;
  bottom: 0;
  width: 100%;
}

@media (max-width: 760px) {
  .top-copy {
    left: 25px;
  }
  .top-year {
    margin-top: 8px;
  }
  .top-date i {
    padding: 0 5px;
  }
  .top-event > p + p {
    margin-top: 8px;
  }
  .top-tagline {
    display: none;
  }
  .top-scroll-cue > span:last-child {
    font-size: 27px;
  }
}

/* 表紙の基本スタイル */
.top-pin {
  background: var(--white);
}

.top-cover {
  color: var(--white);
}

.top-copy {
  top: 53%;
  z-index: 3;
}

.top-eyebrow {
  margin-bottom: 27px;
}

.top-copy h1 {
  color: var(--white);
  font-size: clamp(60px, 6.6vw, 108px);
  line-height: 1.47;
  letter-spacing: .015em;
}

.top-title-cut, .top-year {
  position: relative;
  isolation: isolate;
  display: inline-block;
  background: none;
  white-space: nowrap;
}

.top-title-cut {
  padding: .015em .23em .075em;
  color: var(--blue);
  transform: rotate(calc(-3deg + var(--tilt, 0deg)));
  transform-origin: 10% 50%;
}

.top-title-cut--second {
  margin-left: .16em;
  transform: rotate(calc(2deg + var(--tilt, 0deg)));
}

.top-year {
  vertical-align: middle;
  margin: 0 0 0 .35em;
  padding: .16em .35em .2em;
  font-size: .56em;
  letter-spacing: .035em;
  line-height: 1.1;
  transform: rotate(calc(6deg + var(--tilt, 0deg)));
}

.top-event {
  margin-top: 40px;
}

.top-date {
  color: var(--white);
  font-size: 44px;
}

.top-event > p + p {
  font-size: 22px;
}

.top-venue {
  display: block;
}

.top-hours, .top-fee, .top-venue > span {
  white-space: nowrap;
}

.top-label {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding-inline: .06em;
  vertical-align: top;
  transform: rotate(var(--tilt, 0deg));
}

.top-eyebrow .top-label {
  line-height: 1.35;
}

.top-venue.top-label {
  display: table;
}

.top-catchphrase {
  position: absolute;
  right: auto;
  text-align: center;
}

.top-catchphrase-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.top-catchphrase-face::before {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.top-catchphrase-label {
  display: grid;
  gap: 7px;
  line-height: 1.2;
  transform: rotate(8deg) translateY(-6px);
}

.top-catchphrase-label > strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
  white-space: nowrap;
}

.top-catchphrase-mark {
  display: inline-block;
  width: .74em;
  font-size: 1.12em;
  text-indent: -.13em;
  transform: translateY(-.02em);
}

.top-catchphrase-arrow {
  position: absolute;
}

.top-scroll-footer {
  color: var(--blue);
  justify-content: flex-end;
}

.top-scroll-cue {
  font-size: 18px;
}

body:has(.top-pin[data-intro-phase="main-visual"]) .top-scroll-footer, body:has(.top-pin[data-intro-phase="transition"]) .top-scroll-footer {
  color: var(--white);
}

@media (min-width: 761px) and (max-height: 760px) {
  .top-copy {
    top: 51%;
  }
  .top-copy h1 {
    font-size: clamp(48px, 9svh, 68px);
    line-height: 1.35;
  }
  .top-eyebrow {
    margin-bottom: 14px;
  }
  .top-event {
    margin-top: 20px;
  }
  .top-event > p + p {
    font-size: 18px;
  }
  .top-date {
    font-size: 30px;
  }
}

@media (max-width: 760px) {
  .top-copy {
    top: 18.5%;
  }
  .top-copy h1 {
    font-size: 12.5vw;
    line-height: 1.4;
  }
  .top-eyebrow {
    margin-bottom: 16px;
  }
  .top-year {
    margin-left: .25em;
    font-size: .57em;
  }
  .top-title-cut--second {
    margin-left: .1em;
  }
  .top-event {
    margin-top: 20px;
  }
  .top-date {
    font-size: 32px;
  }
  .top-event > p + p {
    font-size: 18px;
  }
  .top-catchphrase {
    right: auto;
  }
  .top-catchphrase-label {
    gap: 5px;
  }
  .top-scroll-footer {
    padding: 4px 25px;
    gap: 10px;
  }
  .top-scroll-cue {
    flex-shrink: 0;
    font-size: 18px;
    gap: 10px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .top-copy {
    top: 15%;
  }
  .top-eyebrow {
    margin-bottom: 10px;
  }
  .top-copy h1 {
    font-size: 12vw;
    line-height: 1.4;
  }
  .top-event {
    margin-top: 15px;
  }
  .top-date {
    font-size: 28px;
  }
  .top-event > p + p {
    font-size: 16px;
  }
  .top-pin[data-intro-phase="main-visual"] .top-scroll-footer, .top-pin[data-intro-phase="transition"] .top-scroll-footer {
    justify-content: flex-end;
  }
  .top-catchphrase {
    font-size: 16px;
  }
  .top-catchphrase-label {
    gap: 4px;
    transform: rotate(8deg);
  }
}

/* 矢印と文字の位置 */
.top-catchphrase-arrow, .top-scroll-cue > span:last-child {
  font-family: 'Higure Gothic', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
}

.top-year {
  color: var(--blue);
}

.top-catchphrase-arrow {
  display: block;
  width: auto;
  height: auto;
  line-height: 1;
}

.top-scroll-cue > span:last-child {
  transform: translateX(-1px) scaleX(1.316);
}

/* 表紙の紙とテープ */
.top-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--blue);
  pointer-events: none;
}

.top-papers {
  --cover-lift: 24px;
  position: absolute;
  inset: 0;
}

.top-piece {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.top-cover {
  background: transparent;
}

.top-scene-active .top-cover {
  overflow: visible;
}

.top-scene-active .top-pin {
  background: var(--blue);
}

.top-scene-active .top-scene {
  z-index: 1;
}

.top-scene-active .top-pin:is([data-intro-phase="transition"], [data-intro-phase="zooming"]) .top-scene {
  z-index: 6;
}

.top-pin[data-intro-phase="zooming"] .top-scroll-footer {
  visibility: hidden;
}

.top-pin[data-intro-phase="tape"] .top-scroll-footer, .top-pin[data-intro-phase="reading"] .top-scroll-footer, .top-pin[data-intro-phase="pullback"] .top-scroll-footer, .top-pin[data-intro-phase="returning"] .top-scroll-footer {
  color: var(--white);
}

.top-copy {
  position: static;
  width: auto;
  transform: none;
}

.top-eyebrow {
  position: absolute;
  left: 7%;
  top: 13%;
  margin: 0;
  color: var(--white);
  font-size: clamp(18px,1.85vw,36px);
  line-height: 1.8;
}

.top-copy .top-title {
  position: absolute;
  inset: 0;
  width: auto;
  margin: 0;
  color: var(--blue);
  font-size: 7.4vw;
  line-height: 1;
  letter-spacing: .015em;
  pointer-events: none;
}

.top-title .top-title-cut {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 .12em;
  min-width: 0;
  isolation: isolate;
  color: var(--blue);
  font: inherit;
  line-height: 1;
  transform: none;
  transform-origin: center;
}

.top-title .top-title-cut--first {
  left: 13.4%;
  top: 26%;
  width: 43%;
  height: 20.5%;
  rotate: calc(-1.5deg + var(--tilt, 0deg));
}

.top-title .top-title-cut--second {
  left: 34.7%;
  top: 53%;
  width: 26.8%;
  height: 20.7%;
  rotate: calc(3.7deg + var(--tilt, 0deg));
}

.top-title .top-year {
  left: 64.7%;
  top: 54.5%;
  width: 14.1%;
  height: 18.5%;
  rotate: calc(-3.5deg + var(--tilt, 0deg));
  font-size: .82em;
  letter-spacing: .01em;
}

.top-event {
  position: absolute;
  left: 8.6%;
  top: 80%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2vw;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--white);
}

.top-event::before, .top-event::after {
  display: none;
}

.top-event .top-date {
  display: flex;
  align-items: baseline;
  gap: .08em;
  color: var(--white);
  font-size: 4vw;
  white-space: nowrap;
  margin: 0;
}

.top-date span {
  font-size: .34em;
}

/* 日付のあいだは、ひぐれゴシックの半角「-」。数字の 0.8 倍で、高さは数字の真ん中（表紙の文字組みと同じ）。 */
.top-date i {
  position: relative;
  top: -.195em;
  margin: 0 .06em;
  font-size: .8em;
  font-style: normal;
}

.top-event > p + p {
  margin: 0;
  max-width: none;
  padding-left: 1.2vw;
  line-height: 1.6;
}

.top-hours, .top-fee, .top-event-divider {
  display: inline;
}

.top-hours, .top-fee, .top-event-divider, .top-venue {
  color: var(--white);
  font-size: clamp(20px,2vw,36px);
  line-height: 1.6;
}

.top-event .top-venue {
  display: block;
}

.top-venue > span {
  display: inline;
}

.top-paper {
  position: absolute;
  display: block;
  object-fit: fill;
  pointer-events: none;
}

.top-paper--left {
  --cover-turn: 3deg;
  left: -10%;
  top: 23.6%;
  width: 36.5%;
  height: auto;
  aspect-ratio: 1774 / 887;
  transform: rotate(199deg);
}

.top-piece--stripe {
  --paper-x: 33%;
  --paper-y: -14%;
  --paper-width: 40%;
  --paper-height: 30%;
  transform-origin: calc(var(--paper-x) + var(--paper-width) / 2) calc(var(--paper-y) + var(--paper-height) / 2);
}

.top-paper--stripe {
  left: var(--paper-x);
  top: var(--paper-y);
  width: var(--paper-width);
  height: var(--paper-height);
  transform: rotate(13deg);
}

.top-paper--dots {
  left: 74%;
  top: -14%;
  width: 33%;
  height: 41%;
  transform: rotate(13deg);
}

.top-paper--bottom {
  --cover-turn: -2.5deg;
  left: -7%;
  top: 83.6%;
  width: 39%;
  aspect-ratio: 1233.1 / 783.8;
  transform: rotate(4deg);
  transform-origin: top left;
}

.top-paper--corner {
  --cover-lift: 16px;
  left: 90%;
  top: calc(79% + 13.5vw);
  width: 25vw;
  aspect-ratio: 1619.9 / 829.5;
  transform: translate(-50%, -50%) rotate(132deg);
}

.top-title .top-piece {
  --cover-lift: 14px;
}

/* 表紙の動き（55BPM） */
@media (prefers-reduced-motion: no-preference) {
  /* cover-nudge（common.css）の4つの姿勢を、top.js が拍ごとに data-cover-pose で切り替える。
     CSSアニメーションで動かし続けると、Safariが表紙の紙を毎フレーム更新して画面の更新が落ちるため。
     表紙の紙に直接書いた rotate: none などより優先する。 */
  body.top-ready [data-cover-beat][data-cover-pose="0"] {
    translate: 0 0;
    rotate: 0deg;
  }

  body.top-ready [data-cover-beat][data-cover-pose="1"] {
    translate: calc(var(--cover-dir-x, 0) * var(--cover-lift))
      calc(var(--cover-dir-y, 0) * var(--cover-lift));
    rotate: var(--cover-turn, 0deg);
  }

  body.top-ready [data-cover-beat][data-cover-pose="2"] {
    translate: calc(-1px * var(--cover-dir-x, 0)) calc(-1px * var(--cover-dir-y, 0));
    rotate: 0deg;
  }

  body.top-ready [data-cover-beat][data-cover-pose="3"] {
    translate: calc(-.75 * var(--cover-dir-x, 0) * var(--cover-lift))
      calc(-.75 * var(--cover-dir-y, 0) * var(--cover-lift));
    rotate: calc(-1 * var(--cover-turn, 0deg));
  }

  [data-cover-beat="1"] {
    --cover-dir-y: -1;
  }

  [data-cover-beat="2"] {
    --cover-dir-x: 1;
  }

  [data-cover-beat="3"] {
    --cover-dir-x: -1;
  }

  [data-cover-beat="4"] {
    --cover-dir-y: 1;
  }

  .top-eyebrow {
    --cover-lift: 22px;
    --cover-turn: 1.8deg;
  }

  .top-event {
    --cover-lift: 15px;
    --cover-turn: -1deg;
  }

  .top-tagline {
    --cover-lift: 22px;
    --cover-turn: 2deg;
  }

  .top-catchphrase .top-piece {
    --cover-lift: 13px;
    --cover-turn: -1.6deg;
  }
}

.top-tape {
  position: absolute;
  display: block;
  object-fit: fill;
}

.top-title .top-tape {
  z-index: 3;
}

/* 青インクの色合わせは画像に焼き込み済み（tools/bake_blue_ink.py）。
   SafariではSVGフィルターがCPU描画になり、表紙が動くたびに描き直すため使わない。 */

.top-catchphrase {
  left: 63%;
  top: 23.5%;
  bottom: auto;
  width: 15%;
  height: 27%;
  color: var(--white);
  transform: none;
  z-index: 4;
}

.top-catchphrase-face::before {
  content: '';
  display: block;
  inset: 0;
  background: var(--red);
  filter: none;
  clip-path: polygon(35% 0,50% 8%,65% 0,73% 13%,87% 13%,87% 27%,100% 35%,92% 50%,100% 65%,87% 73%,87% 87%,73% 87%,65% 100%,50% 92%,35% 100%,27% 87%,13% 87%,13% 73%,0 65%,8% 50%,0 35%,13% 27%,13% 13%,27% 13%);
}

.top-catchphrase .top-catchphrase-label {
  transform: translateY(-10%);
  rotate: none;
  gap: .8vw;
}

.top-catchphrase-kicker {
  font-size: clamp(12px,1.15vw,22px);
  letter-spacing: .12em;
  color: var(--white);
}

.top-catchphrase-label > strong {
  font-size: 2.6vw;
}

.top-catchphrase-arrow {
  right: 38%;
  bottom: 21%;
  font-size: 2.25vw;
  transform: rotate(41deg);
}

.top-tagline {
  position: absolute;
  right: 8.3%;
  top: 30%;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  color: var(--white);
  font-size: clamp(22px,2.4vw,45px);
  line-height: 1.65;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
  transform: none;
  z-index: 2;
}

.top-tagline::before, .top-tagline::after {
  display: none;
}

.top-pin[data-intro-phase="main-visual"] .top-scroll-footer, .top-pin[data-intro-phase="transition"] .top-scroll-footer {
  bottom: 3.3%;
  padding: 0 4.7vw;
  height: auto;
  transform: none;
  pointer-events: none;
}

.top-pin[data-intro-phase="main-visual"] .top-scroll-cue, .top-pin[data-intro-phase="transition"] .top-scroll-cue {
  color: var(--blue);
  font-size: clamp(18px,1.45vw,28px);
  pointer-events: auto;
}

.top-pin[data-intro-phase="main-visual"] .top-scroll-cue > span:last-child, .top-pin[data-intro-phase="transition"] .top-scroll-cue > span:last-child {
  font-size: 2.6vw;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .top-copy h1 {
    font-size: 6.3vw;
  }
  .top-eyebrow {
    font-size: 1.85vw;
  }
  .top-hours, .top-fee, .top-event-divider, .top-venue {
    font-size: 1.85vw;
  }
  .top-tagline {
    font-size: 2.4vw;
  }
}

@media (max-width: 760px) {
  .top-eyebrow {
    left: 7%;
    top: 17%;
    width: 55%;
    max-width: 55%;
    font-size: clamp(18px,4.3vw,22px);
    line-height: 1.7;
  }
  .top-course {
    display: block;
  }
  .top-copy .top-title {
    font-size: 12.1vw;
  }
  .top-title .top-piece[data-cover-beat="2"] {
    --cover-lift: min(14px, 2.5vw);
  }
  .top-title .top-title-cut--first {
    left: 6%;
    top: 29%;
    width: 78%;
    height: 13%;
    rotate: calc(-2deg + var(--tilt, 0deg));
  }
  .top-title .top-title-cut--second {
    left: 20%;
    top: 46%;
    width: 45%;
    height: 14%;
    rotate: calc(3.7deg + var(--tilt, 0deg));
  }
  .top-title .top-year {
    left: 70%;
    top: 48%;
    width: 27%;
    height: 12%;
    font-size: .77em;
  }
  .top-paper--left {
    left: -30%;
    top: 23%;
    width: 71%;
  }
  .top-piece--stripe {
    --paper-x: 42%;
    --paper-y: -7%;
    --paper-width: 68%;
    --paper-height: 20%;
  }
  .top-paper--stripe {
    transform: rotate(18deg);
  }
  .top-paper--dots {
    left: 84%;
    top: 2%;
    width: 48%;
    height: 20%;
  }
  .top-paper--bottom {
    left: -14%;
    top: 91.7%;
    width: 87%;
  }
  .top-paper--corner {
    left: 78%;
    top: calc(86% + 30vw);
    width: 56vw;
  }
  .top-event {
    left: 7%;
    top: 69%;
    display: block;
    width: 83%;
    margin: 0;
  }
  .top-event .top-date {
    font-size: clamp(36px,9.8vw,56px);
  }
  .top-event > p + p {
    padding: 10px 0 0;
  }
  .top-hours, .top-fee, .top-event-divider, .top-venue {
    font-size: clamp(17px,4.4vw,22px);
    line-height: 1.6;
  }
  .top-venue > span {
    display: inline;
  }
  .top-catchphrase {
    left: 64%;
    top: 12%;
    width: 30%;
    height: 15%;
  }
  .top-catchphrase .top-catchphrase-label {
    gap: 6px;
    transform: translateY(-8%);
  }
  .top-catchphrase-kicker {
    font-size: 12px;
    letter-spacing: .04em;
  }
  .top-catchphrase-label > strong {
    font-size: 5.5vw;
  }
  .top-catchphrase-arrow {
    bottom: 18%;
    font-size: 22px;
  }
  .top-tagline {
    --cover-lift: min(22px, 5vw);
    display: block;
    right: auto;
    left: 7%;
    top: 63%;
    max-width: 86%;
    font-size: clamp(15px,3.9vw,18px);
    line-height: 1.5;
    letter-spacing: .03em;
    writing-mode: horizontal-tb;
  }
  .top-tagline br {
    display: none;
  }
  .top-pin[data-intro-phase="main-visual"] .top-scroll-footer, .top-pin[data-intro-phase="transition"] .top-scroll-footer {
    bottom: 3%;
    padding: 0 7%;
  }
  .top-pin[data-intro-phase="main-visual"] .top-scroll-cue, .top-pin[data-intro-phase="transition"] .top-scroll-cue {
    font-size: 16px;
    gap: 12px;
  }
  .top-pin[data-intro-phase="main-visual"] .top-scroll-cue > span:last-child, .top-pin[data-intro-phase="transition"] .top-scroll-cue > span:last-child {
    font-size: 30px;
  }
}

@media (max-width: 360px) {
  .top-eyebrow {
    top: 13%;
    font-size: 16px;
    line-height: 1.6;
  }
  .top-catchphrase-kicker {
    font-size: 11px;
  }
  .top-tagline {
    top: 62%;
    font-size: 14px;
  }
  .top-event {
    top: 71.5%;
  }
}

@media (min-width: 761px) {
  .top-catchphrase-label {
    transform: translateY(-8px);
  }
  .top-scroll-cue {
    gap: 17px;
  }
  .top-piece--stripe {
    --cover-turn: -1.5deg;
    --paper-x: 34%;
    --paper-y: -12.4%;
  }
  .top-paper--dots {
    top: -15.2%;
  }
  .top-copy .top-title {
    font-size: 7.85vw;
  }
  .top-eyebrow {
    left: 7.15%;
    top: 12.9%;
    font-size: 2vw;
    line-height: 1.65;
  }
  .top-title .top-title-cut--first {
    left: 13.3%;
    top: 26%;
    width: 42.9%;
    height: 21%;
  }
  .top-title .top-title-cut--second {
    left: 34.8%;
    top: 53.6%;
    width: 26.6%;
    height: 22%;
  }
  .top-title .top-year {
    left: 64.5%;
    top: 54.7%;
    width: 14.3%;
    height: 19%;
  }
  .top-event {
    left: 9.1%;
    top: 78.5%;
    gap: 1vw;
  }
  .top-event > p + p {
    padding-left: 1.05vw;
  }
  .top-event .top-date {
    top: -1.5svh;
    font-size: 4.1vw;
    gap: .1em;
    scale: 1 1.12;
  }
  .top-catchphrase {
    left: 66.3%;
    top: 14.8%;
    width: min(12.4%, 22svh);
    height: auto;
    aspect-ratio: 1;
  }
  .top-catchphrase-label > strong {
    font-size: min(2vw, 3.55svh);
  }
  .top-catchphrase-kicker {
    font-size: max(10px, min(.9vw, 1.6svh));
  }
  .top-catchphrase .top-catchphrase-label {
    transform: none;
    gap: min(.8vw, 1.42svh);
  }
  .top-catchphrase-arrow {
    bottom: 18%;
    font-size: min(1.65vw, 2.93svh);
  }
  .top-tagline {
    right: 8.8%;
    top: 29.8%;
    font-size: 2.6vw;
    letter-spacing: .18em;
  }
  .top-pin[data-intro-phase="main-visual"] .top-scroll-footer, .top-pin[data-intro-phase="transition"] .top-scroll-footer {
    padding-right: 4vw;
    bottom: 3.2%;
  }
  .top-pin[data-intro-phase="main-visual"] .top-scroll-cue, .top-pin[data-intro-phase="transition"] .top-scroll-cue {
    gap: 14px;
    font-size: 1.35vw;
  }
}

@media (min-width: 1101px) {
  .top-catchphrase-label {
    transform: translate(-1.5px, -6px);
  }
}

.top-title-paper {
  position: absolute;
  display: block;
  object-fit: fill;
  rotate: var(--tilt, 0deg);
  z-index: 1;
  filter: drop-shadow(1px 3px 3px #32344a28);
  pointer-events: none;
}

.top-title-paper--first {
  left: 13.6%;
  top: 26%;
  width: 43.2%;
  height: 22.2%;
}

.top-title-paper--second {
  left: 35.1%;
  top: 51.8%;
  width: 26.8%;
  height: 21.8%;
}

.top-title-paper--year {
  left: 64.7%;
  top: 54%;
  width: 14.2%;
  height: 19.4%;
}

.top-tape-red {
  left: 55.54%;
  top: 13.02%;
  width: 12.69%;
  height: 10.14%;
}

.top-tape-dots {
  left: 50.12%;
  top: 23.8%;
  width: 6.79%;
  height: 8.43%;
}

.top-tape-grid {
  left: 81.94%;
  top: 16.86%;
  width: 12.4%;
  height: 8.96%;
}

.top-catchphrase-face::before {
  background-color: var(--red);
  background-image: url('../images/tape/paper.webp');
  background-blend-mode: multiply;
  background-size: 300px;
}

@media (max-width: 760px) {
  .top-title-paper--first {
    left: 5.5%;
    top: 28.7%;
    width: 79%;
    height: 14%;
  }
  .top-title-paper--second {
    left: 20%;
    top: 45.5%;
    width: 45.5%;
    height: 15%;
  }
  .top-title-paper--year {
    left: 69.5%;
    top: 47.5%;
    width: 28%;
    height: 13%;
  }
  .top-tape-red {
    left: 68%;
    top: 8.5%;
    width: 23%;
    height: 6%;
  }
  .top-tape-dots {
    left: 72%;
    top: 27%;
    width: 17%;
    height: 7%;
  }
  .top-tape-grid {
    left: 89%;
    top: 16%;
    width: 23%;
    height: 6%;
  }
}

/* 表紙のメニュー */
.top-menu-button {
  --cover-lift: 8px;
  --cover-turn: .8deg;
  position: fixed;
  z-index: 31;
  top: 30px;
  right: -10px;
  display: block;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  width: 210px;
  height: 88px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 24px;
  transition: top 0s .32s, transform .32s steps(4, end), visibility 0s .32s;
}

.top-ready:not(.top-show-header) .top-menu-button,
.top-ready.top-menu-open .top-menu-button {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: top .32s steps(4, end), transform .32s steps(4, end), visibility 0s;
}

.top-menu-face {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.top-menu-button .button-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: 100%;
}

.top-menu-face::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url('../images/common/tape-blue.webp') center / 100% 100% no-repeat;
}

.top-menu-dot {
  width: 42px;
  height: 42px;
}

.top-ready.top-menu-open .top-menu-button {
  top: var(--menu-open-top);
  transition: top .24s steps(3, end) .08s, transform .32s steps(4, end), visibility 0s;
}

.top-menu-open .menu-toggle {
  display: none;
}

@media (max-width: 760px) {
  .top-menu-button {
    --cover-lift: 6px;
    top: 14px;
    width: 164px;
    height: 76px;
    font-size: 21px;
  }
  .top-menu-button .button-face {
    gap: 12px;
  }
  .top-menu-dot {
    width: 36px;
    height: 36px;
  }
  .top-menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
}

/* ヘッダーの表示 */
.top-page .site-header {
  transform: translateY(calc(-100% - 32px));
  visibility: hidden;
  pointer-events: none;
  transition: transform .32s steps(4, end), visibility 0s .32s;
}
.top-page:not(.top-show-header) .site-nav a[aria-current] .button-face {
  animation-name: none;
}
.top-page.top-show-header .site-header {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform .32s steps(4, end);
}

/* セクションの境目 */
.top-page {
  --edge-height: clamp(16px, 3.5vw, 54px);
  --edge-mask: url('../images/common/paper-edge-1.webp');
  --edge-face: url('../images/common/paper-face-1.webp');
}

.top-intro, .top-vlog, .top-access {
  position: relative;
}

.top-intro, .top-vlog {
  --edge-color: var(--blue);
}

.works-torn-edge {
  --edge-mask: url('../images/common/paper-edge-2.webp');
  --edge-face: url('../images/common/paper-face-2.webp');
}

.top-access {
  background: var(--page-grid);
  background-position: left var(--page-grid-offset) bottom var(--page-grid-offset);
}

.top-works {
  position: relative;
  padding: clamp(120px, 10vw, 168px) 0 clamp(108px, 9vw, 150px);
  overflow: clip visible;
  background: var(--page-grid);
  background-position: left var(--page-grid-offset) bottom var(--page-grid-offset);
  color: var(--blue);
}

/* カルーセルの準備中もHTMLにある作品を見られるようにする。 */
.top-works .top-works-fallback {
  margin-top: 28px;
  padding-inline: 20px;
  text-align: center;
}

.top-works .top-works-preview {
  display: grid;
  gap: 8px;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: clamp(16px, 4vw, 32px);
  background: var(--white) url('../images/tape/paper.webp') center / 420px auto;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 2px 4px 7px #32344a40;
}

.top-works .top-works-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: var(--white);
}

.top-works .top-works-preview-author {
  font-size: .875em;
}

.top-works .top-works-fallback a:not(.top-works-preview) {
  text-decoration: underline;
  text-underline-offset: .3em;
}

.top-vlog {
  --edge-width: 120%;
}

.top-intro::before, .top-vlog::before,
.top-intro::after, .top-vlog::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  height: var(--edge-height);
  background: var(--white) url('../images/tape/paper.webp') center / 360px auto;
  mask: var(--edge-mask) center / var(--edge-width, 100%) 100% no-repeat;
  transform: scaleX(var(--edge-flip, 1));
  pointer-events: none;
}

.top-intro::after, .top-vlog::after {
  background: var(--edge-color);
  mask-image: var(--edge-face);
}

/* 表紙のちぎり口はWorksの方眼より手前に置く。 */
.top-page:not(.top-mobile-scene-active) .top-intro::before,
.top-page:not(.top-mobile-scene-active) .top-intro::after {
  z-index: 4;
}

/* Worksのちぎり口は、横方向のクリップから独立したVlog側に重ねる。 */
.works-torn-edge {
  position: absolute;
  z-index: 3;
  inset: -1px 0 auto;
  height: var(--edge-height);
  pointer-events: none;
}

.works-torn-edge::before, .works-torn-edge::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(-1);
  mask: var(--edge-mask) center / 100% 100% no-repeat;
}

.works-torn-edge::before {
  background: var(--white) url('../images/tape/paper.webp') center / 360px auto;
}

.works-torn-edge::after {
  background: var(--page-grid);
  background-position: right calc(var(--page-grid-offset) + 1px) top calc(var(--page-grid-offset) + 1px);
  mask-image: var(--edge-face);
}

.top-mobile-scene-active .top-intro::after {
  background: var(--page-grid);
  /* 反転した紙の端もWorks本体と同じ方眼の位置に合わせる。 */
  background-position: right calc(var(--page-grid-offset) + 1px)
    top calc(var(--page-grid-offset) - var(--works-paper-height, 0px));
}

/* 固定したロールの手前をWorksの方眼紙がそのまま通る。 */
.top-mobile-scene-active .top-intro {
  z-index: 0;
  margin-block-end: calc(-1 * var(--tape-works-overlap, 0px));
}

.top-mobile-scene-active .top-intro::before, .top-mobile-scene-active .top-intro::after {
  top: auto;
  bottom: calc(var(--tape-works-overlap, 0px) - 1px);
  transform: scale(-1, -1);
}

.top-works-heading, .top-works-fallback, .top-works-viewport, .top-works-controls, .top-access-layout {
  position: relative;
  z-index: 3;
}

/* ローディング */
body.top-loading { overflow: hidden; }
body.top-loading > main { visibility: hidden; }
.top-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  gap: 80px;
  padding: 32px;
  background: var(--blue);
  color: var(--white);
  font-weight: 400;
  text-align: center;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: .04em;
  transition: transform var(--top-loader-exit-time) cubic-bezier(.76, 0, .24, 1),
    visibility 0s var(--top-loader-exit-time);
}
.top-loader .top-loader-icon {
  position: relative;
  width: 200px;
  height: 72px;
  margin: auto;
  transform: translateX(-25%) scale(1.4);
}
.top-loader .top-loader-strip {
  position: absolute;
  left: 54px;
  bottom: 0;
  width: 92px;
  height: 12px;
  background: var(--white);
  transform-origin: left center;
  animation: strip 1.8s cubic-bezier(.65, 0, .35, 1) infinite;
}
.top-loader .top-loader-roll {
  position: absolute;
  left: 64px;
  bottom: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  animation: roll 1.8s cubic-bezier(.65, 0, .35, 1) infinite;
}
.top-loader .top-loader-roll::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  will-change: transform;
  animation: core .45s ease-out .2s both;
}

@keyframes roll {
  0%, 100% {
    transform: translateX(0) rotate(0);
  }
  25% {
    transform: translateX(46px) rotate(73.2deg);
  }
  75% {
    transform: translateX(-46px) rotate(-73.2deg);
  }
}
@keyframes strip {
  0%, 100% {
    transform: scaleX(.5);
  }
  25% {
    transform: scaleX(1);
  }
  75% {
    transform: scaleX(0);
  }
}
@keyframes core {
  from {
    transform: translateZ(0) scale(.001);
  }
  to {
    transform: translateZ(0) scale(1);
  }
}
body.top-ready .top-loader {
  transform: translate3d(0, -100%, 0);
  visibility: hidden;
  pointer-events: none;
}
body.top-ready .top-loader-icon * {
  animation-play-state: paused;
}
body.top-ready .top-loader-roll::before {
  animation: none;
  transform: translateZ(0) scale(1);
  will-change: auto;
}

/* JS無効時のリンク */
.top-fallback:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 30px var(--gutter);
  color: var(--white);
  background: var(--blue);
}
.top-fallback .button-face {
  padding: 8px 14px;
  border: 1px solid currentColor;
}
.top-fallback a:hover .button-face {
  color: var(--blue);
  background: var(--white);
}

/* スマホと縦持ちタブレットでは、3Dの帯の上で実際の本文を縦に送る。 */
.top-mobile-track, .top-mobile-stage { display: contents; }

