:root {
  --paper-background: url("../img/bg-paper.webp");
  --font-base: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  --font-mincho: "Noto Serif JP", "Georgia", "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --size-font-base: 1rem;
  --size-line-height-base: 1.6;
  --color-main: #1b5b3d;
  --color-sub: #b8d086;
  --color-accent: #f15a24;
  --color-accent-2: #fed03e;
  --color-dark: #0b1b0f;
  --color-white: #fefff0;
  --color-border: #d4d9d0;
  --color-placeholder: #e3e5e1;
  --content-width: 800px;
  --section-space: 4.5rem;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-dark);
  font-family: var(--font-base);
  font-size: var(--size-font-base);
  line-height: var(--size-line-height-base);
  overflow-wrap: anywhere;
}

.font-mincho {
  font-family: var(--font-mincho);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
}

.section {
  padding-block: var(--section-space);
}

.container {
  width: min(calc(100% - 2.5rem), var(--content-width));
  margin-inline: auto;
}

.section-title {
  margin-bottom: 1.75rem;
  color: var(--color-main);
  font-family: var(--font-mincho);
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
}

.section-title--leaf {
  position: relative;
  padding-inline-start: 2.25rem;
}

.section-title--leaf::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 1.45em;
  background: url("../img/deco-leaf.svg") center / contain no-repeat;
}

@media (min-width: 768px) {
  .section-title--leaf {
    padding-inline-start: 2.75rem;
  }

  .section-title--leaf::before {
    width: 34px;
  }
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 9.375rem;
  padding: 1rem;
  border: 1px solid #c9ceca;
  background: var(--color-placeholder);
  color: #535d57;
  text-align: center;
  font-size: .875rem;
}

.image-placeholder--investigation {
  aspect-ratio: 4 / 3;
}

.image-placeholder--story {
  aspect-ratio: 3 / 2;
  max-width: 700px;
  margin-inline: auto;
}

.image-placeholder--nest {
  aspect-ratio: 3 / 2;
  max-width: 480px;
  margin-inline: auto;
}

/* 共通のひよこ・足跡 */
.css-chick {
  display: inline-block;
  inline-size: var(--chick-size, 2rem);
  aspect-ratio: 92 / 91;
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 31% 45%, var(--chick-eye-color, #4c3727) 0 4%, transparent 5%),
    radial-gradient(circle at 69% 45%, var(--chick-eye-color, #4c3727) 0 4%, transparent 5%),
    radial-gradient(ellipse at 50% 61%, var(--chick-beak-color, #cb7933) 0 11%, transparent 12%),
    linear-gradient(var(--chick-light-color, #ffe7a1), var(--chick-dark-color, #eab651));
}

.css-footprints {
  display: inline-grid;
  inline-size: var(--footprints-size, 3rem);
  aspect-ratio: 3 / 2;
  color: var(--footprints-color, #99724c);
}

.css-footprints::before,
.css-footprints::after {
  content: "";
  grid-area: 1 / 1;
  width: 41%;
  aspect-ratio: 1;
  background:
    linear-gradient(54deg, transparent 41%, currentColor 45% 55%, transparent 59%) left / 50% 100% no-repeat,
    linear-gradient(-54deg, transparent 41%, currentColor 45% 55%, transparent 59%) right / 50% 100% no-repeat,
    linear-gradient(currentColor, currentColor) center 15% / 11% 68% no-repeat;
}

.css-footprints::before {
  place-self: end start;
  transform: rotate(var(--footprints-first-angle, 35deg));
}

.css-footprints::after {
  place-self: start end;
  transform: rotate(var(--footprints-second-angle, 57deg));
}

/* 01. MV */
.mv {
  background-color: var(--color-main);
  background-image: url(./../img/mozo-mv-bg.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.mv__layout {
  display: grid;
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.mv__image {
  display: block;
  width: 100%;
  height: auto;
}

.mv__banner {
  display: grid;
  place-items: center;
  padding: 1.25rem 1rem;
  background: var(--color-accent-2);
  color: var(--color-main);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  clip-path: none;
}

.mv__banner-content {
  display: grid;
  gap: .5rem;
  writing-mode: horizontal-tb;
}

.mv__category {
  font-size: clamp(.875rem, 2.8vw, 1.0625rem);
}

.mv__date {
  font-size: clamp(1.125rem, 3.6vw, 1.5rem);
}

.mv__banner-content--repeat {
  display: none;
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .mv__banner {
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  .mv__banner-track {
    display: flex;
    width: 100%;
  }

  .mv__banner-content {
    display: flex;
    flex: none;
    align-items: center;
    min-width: 100%;
    gap: 16px;
    padding-inline-end: 2rem;
    white-space: nowrap;
    animation: mv-banner-scroll 12s linear infinite;
  }
}

@keyframes mv-banner-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* 足跡の軌跡 */
#intro,
#problems,
#request,
.investigation-paper {
  position: relative;
}

.footprint-trail {
  --trail-edge: max(28px, calc((100% - var(--content-width)) / 2 + 40px));
  --step-size: 14px;
  position: absolute;
  bottom: calc(var(--section-space) - 66px);
  width: 116px;
  height: 34px;
  opacity: .56;
  pointer-events: none;
}

.footprint-trail--intro {
  bottom: calc(var(--section-space) - 56px);
  left: var(--trail-edge);
}

.footprint-trail--request {
  bottom: calc(var(--section-space) - 56px);
  left: max(var(--trail-edge), calc((100% - 680px) / 2 + 36px));
}

.footprint-trail--problems {
  right: var(--trail-edge);
}

.footprint-trail--problems,
.footprint-trail--investigation {
  width: 142px;
}

.footprint-trail--investigation {
  right: 12%;
  bottom: 12px;
  height: 28px;
}

.footprint-trail__step {
  --step-transform: translate(-50%, -50%) rotate(var(--step-angle));
  position: absolute;
  top: var(--step-y);
  left: var(--step-x);
  display: block;
  width: var(--step-size);
  height: var(--step-size);
  object-fit: contain;
  transform: var(--step-transform);
}

.footprint-trail__step--desktop {
  display: none;
}

@media (min-width: 768px) {
  .footprint-trail__step--desktop {
    display: block;
  }

  .footprint-trail {
    --step-size: 19px;
    width: 156px;
    height: 40px;
  }

  .footprint-trail--problems,
  .footprint-trail--investigation {
    width: 208px;
  }

  .footprint-trail--investigation {
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .footprint-trail.is-walk-pending .footprint-trail__step {
    opacity: 0;
    transform: var(--step-transform) scale(.8);
  }

  .footprint-trail.is-walking .footprint-trail__step {
    animation: footprint-step-appear 350ms ease-out calc(150ms + var(--step-order, 0) * 200ms) backwards;
  }

  .footprint-trail__step:nth-child(2) {
    --step-order: 1;
  }

  .footprint-trail__step:nth-child(3) {
    --step-order: 2;
  }

  .footprint-trail__step:nth-child(4) {
    --step-order: 3;
  }

  .footprint-trail__step:nth-child(5) {
    --step-order: 4;
  }

  .footprint-trail__step:nth-child(6) {
    --step-order: 5;
  }
}

@keyframes footprint-step-appear {
  0% {
    opacity: 0;
    transform: var(--step-transform) scale(.8);
  }

  65% {
    opacity: 1;
    transform: var(--step-transform) scale(1.05);
  }

  100% {
    opacity: 1;
    transform: var(--step-transform);
  }
}

/* 02. リード文 */
.mozomozo-sign {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 1.5rem auto 0;
}

.mozomozo-sign__surface {
  --bulge-from: translate(-.25%, .25%) scale(.998);
  --bulge-to: translate(.4%, -.4%) scale(1.003);
  position: relative;
}

.mozomozo-sign__paper {
  display: block;
  width: 100%;
  height: auto;
}

.mozomozo-sign__bulges {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.mozomozo-sign__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.mozomozo-sign__surface,
.mozomozo-sign__bulge {
  animation: mozomozo-sign-bulge 5.2s ease-in-out -.7s infinite alternate;
}

/* 紙の表面に、透過したふくらみ素材を重ねる */
.mozomozo-sign__bulge {
  --bulge-from: translate(-2%, 1%) scale(.98);
  --bulge-to: translate(4%, -4%) scale(1.05);
  position: absolute;
  width: 24%;
  height: 30%;
  opacity: .65;
}

.mozomozo-sign__bulge--first {
  top: 35%;
  left: 15%;
}

.mozomozo-sign__bulge--second {
  top: 52%;
  left: 70%;
  width: 21%;
  height: 27%;
  animation-duration: 6.1s;
  animation-delay: -2.8s;
  animation-direction: alternate-reverse;
}

/* 紙の上端を境に、背面のひよこの顔だけが見える */
.mozomozo-sign__peek {
  position: absolute;
  z-index: -1;
  right: 5%;
  bottom: calc(100% - .25rem);
  width: clamp(44px, 15%, 64px);
  aspect-ratio: 1;
  overflow: hidden;
  pointer-events: none;
}

.mozomozo-sign__chick {
  visibility: hidden;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(100%);
}

.mozomozo-sign__chick.is-peeking {
  animation: mozomozo-sign-chick-peek 2.1s ease-in-out;
}

.mozomozo-sign__footprints {
  position: absolute;
  z-index: 0;
  top: 7%;
  right: 7%;
  width: min(16%, 5rem);
  height: 17%;
  object-fit: contain;
  opacity: .85;
  pointer-events: none;
}

.intro__title {
  position: absolute;
  z-index: 1;
  inset: 10%;
  display: grid;
  place-content: center;
  gap: 4px;
  color: var(--color-main);
  font-family: var(--font-mincho);
  font-size: clamp(1.125rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.intro__title-accent {
  color: var(--color-accent);
  font-size: clamp(1.375rem, 6vw, 3.5rem);
}

@keyframes mozomozo-sign-bulge {
  from {
    transform: var(--bulge-from);
  }

  to {
    transform: var(--bulge-to);
  }
}

@keyframes mozomozo-sign-chick-peek {

  0%,
  100% {
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
  }

  26%,
  72% {
    visibility: visible;
    opacity: 1;
    transform: translateY(18%) rotate(-4deg);
  }

  52% {
    visibility: visible;
    opacity: 1;
    transform: translateY(23%) rotate(5deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .mozomozo-sign__surface,
  .mozomozo-sign__bulge,
  .mozomozo-sign__chick.is-peeking {
    animation: none;
  }
}

.mozomozo-sign__chick.is-peeking:focus-within,
.mozomozo-sign__chick.is-collecting {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .mozomozo-sign__chick {
    visibility: visible;
    opacity: 1;
    transform: translateY(18%);
  }
}

/* 03. お困りごと */
#problems {
  --problems-frame-width: .5rem;
  --problems-card-shift: .25rem;
  --problems-wood: url("../img/bg-wood.webp");
  --problems-cork: url("../img/bg-cork.webp");
  background:
    linear-gradient(to bottom, var(--color-white), transparent 18%, transparent 82%, var(--color-white)),
    url("../img/bg-kabe.webp") center top / 800px auto repeat;
}

.problems__title {
  margin-bottom: 50px;
}

.problems__title img {
  display: block;
  width: min(100%, 680px);
  height: auto;
  margin-inline: auto;
}

.problems__board-sign {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  display: block;
  width: clamp(150px, 28vw, 220px);
  height: auto;
  transform: translate(-50%, -40%);
  filter: drop-shadow(0 3px 3px #42260e66);
}

.problem-card__stamp {
  position: absolute;
  top: 5px;
  right: 5px;
  width: clamp(60px, 12vw, 80px);
  height: auto;
  opacity: .88;
  transform: rotate(-9deg);
  z-index: 100;
}

.problems__action {
  min-height: 44px;
  padding: .5rem 1.25rem;
  border: 1px solid #aa854c;
  border-radius: 5px;
  background: var(--color-main);
  box-shadow: inset 0 0 0 2px #ffdf9d29, 0 2px 3px #42260e40;
  color: var(--color-white);
  font: 700 1rem/1.35 var(--font-mincho);
  cursor: pointer;
}

.problems__action:hover,
.problems__action:focus-visible {
  background: #286e4d;
}

.problems__action:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 3px;
}

.problems__accept {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 134px;
}

.problems__more-requests {
  --paper-overhang: clamp(17px, 4.8vw, 36px);
  display: grid;
  grid-template-columns: repeat(2, 48%);
  justify-content: center;
  align-items: start;
  column-gap: min(2%, 12px);
  width: min(100%, 680px);
  margin-inline: auto;
  pointer-events: none;
}

.problems__more-request {
  position: relative;
  height: clamp(56px, 14.5vw, 112px);
  transform: rotate(var(--paper-tilt));
}

.problems__more-request::before {
  z-index: 1;
}

.problems__more-request::after {
  content: "";
  position: absolute;
  inset: 0;
}

.problems__more-request--left {
  --paper-tilt: -3deg;
}

.problems__more-request--right {
  --paper-tilt: 2.5deg;
  margin-top: clamp(6px, 1.45vw, 12px);
}

.problems__more-request--bottom {
  --paper-tilt: -1.4deg;
  grid-column: 1 / -1;
  justify-self: center;
  width: 60%;
  height: clamp(50px, 12vw, 96px);
  margin-top: -16px;
  /* 木枠の厚みと、木枠より下に出す分だけコルク面から出す。 */
  margin-bottom: calc(-1 * (var(--problems-frame-width) + var(--paper-overhang)));
  transform: translateX(-12%) rotate(var(--paper-tilt));
  filter: drop-shadow(0 3px 3px #42260e4d);
}

.problems__more-request--bottom::after {
  clip-path: polygon(0 0, 100% 0, 100% 97%, 97% 96%, 93% 99%, 89% 97%, 84% 98%,
      79% 95%, 74% 97%, 70% 97%, 65% 100%, 61% 97%, 57% 98%, 53% 94%,
      49% 96%, 44% 96%, 40% 92%, 36% 95%, 31% 94%, 26% 97%, 22% 95%,
      16% 99%, 12% 97%, 7% 98%, 3% 95%, 0 96%);
}

.lp-dialog-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.problems-dialog,
.secret-modal {
  width: min(calc(100% - 32px), var(--dialog-width, 440px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 2px solid #d4b277;
  border-radius: 10px;
  background: var(--color-dark);
  box-shadow: 0 12px 36px #0008;
  color: var(--color-white);
}

.problems-dialog::backdrop,
.secret-modal::backdrop {
  background: rgb(11 27 15 / .65);
}

.problems-dialog__content {
  margin: 4px;
  padding: 1.5rem 1.25rem;
  border: 1px solid #d4b27780;
  border-radius: 5px;
  font-family: var(--font-mincho);
  text-align: center;
}

.problems-dialog__title {
  color: #f4d69e;
  font-size: clamp(1.125rem, 4vw, 1.45rem);
}

.problems-dialog__message {
  margin-block: 10px 20px;
  font-size: 1rem;
}

.problems-dialog .problems__action:focus-visible {
  outline-color: var(--color-accent-2);
}

.problems__frame {
  position: relative;
  padding: var(--problems-frame-width);
  border-radius: .5rem;
  background: #825534 var(--problems-wood) repeat;
}

.problems__list {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: 3rem .75rem 0;
  background: #af845a var(--problems-cork) repeat;
  box-shadow: inset 0 .125rem .375rem #42260e66;
}

.problems__card-wrap {
  position: relative;
  width: min(100% - var(--problems-card-shift) * 2, 40rem);
  margin-inline: auto;
}

.problems__card-wrap[data-problem="01"] {
  --paper-x: calc(-1 * var(--problems-card-shift));
  --paper-y: 0rem;
  --paper-tilt: -.7deg;
}

.problems__card-wrap[data-problem="02"] {
  --paper-x: var(--problems-card-shift);
  --paper-y: .125rem;
  --paper-tilt: .6deg;
}

.problems__card-wrap[data-problem="03"] {
  --paper-x: calc(-1 * var(--problems-card-shift));
  --paper-y: -.125rem;
  --paper-tilt: -.4deg;
}

.problems__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: .625rem;
  padding: 3rem .75rem .75rem;
  transform: translate(var(--paper-x), var(--paper-y)) rotate(var(--paper-tilt));
}

.problems__card,
.problems__more-request::after {
  background: #f5ead0 var(--paper-background) center / cover;
  box-shadow: 0 .1875rem .375rem #42260e4d;
}

.problems__card::before,
.problems__more-request::before {
  content: "";
  position: absolute;
  top: .5rem;
  left: 50%;
  width: .5rem;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #eed38d, #93682c 75%);
  box-shadow: 0 1px 2px #42260e66;
}

.problems__heading {
  margin-bottom: .375rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.45;
}

.problems__number {
  color: var(--color-main);
}

.problems__text p {
  font-size: .9375rem;
}

.problems__illustration {
  position: relative;
}

.problems__illustration .image-placeholder {
  aspect-ratio: 1;
  min-height: 0;
  padding: .25rem;
  border-color: #cfc09e;
  background: #e3d6b8;
  color: #5d503d;
  font-size: .75rem;
}

.problems__illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.problems__illustration .problems__book {
  width: auto;
  max-width: 100%;
  max-height: 200px;
  margin: 0 auto;
  object-fit: contain;
}

.problems__mozogame-closed {
  position: absolute;
  inset: 0;
  opacity: 0;
}

@keyframes problems-mozogame-blink {

  0%,
  92.4%,
  97.4%,
  100% {
    opacity: 0;
  }

  90%,
  95% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .problems__mozogame-closed {
    animation: problems-mozogame-blink 5s step-end infinite;
  }
}

@media (max-width: 21.25rem) {
  .problems__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .problems__illustration {
    width: min(100%, 8rem);
    justify-self: end;
  }
}

@media (min-width: 768px) {
  #problems {
    --problems-frame-width: .875rem;
    --problems-card-shift: .875rem;
  }

  .problems__list {
    gap: 2rem;
    padding: 3.75rem 1.375rem 0;
  }

  .problems__card-wrap[data-problem="01"] {
    --paper-tilt: -2deg;
  }

  .problems__card-wrap[data-problem="02"] {
    --paper-tilt: 1.5deg;
  }

  .problems__card-wrap[data-problem="03"] {
    --paper-tilt: -1deg;
  }

  .problems__card {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 3.125rem 1.25rem 1.125rem;
  }
}

/* 04. 調査依頼 */
.request {
  text-align: center;
}

.request .section-title {
  font-family: var(--font-base);
}

.request__lead {
  margin-bottom: .75rem;
  color: var(--color-main);
  font-size: 1.25rem;
  font-weight: 700;
}

.request-book {
  position: relative;
  max-width: 42.5rem;
  margin-inline: auto;
}

.request-book__closed {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  transition: opacity .65s ease-out, transform .65s ease-out, visibility 0s .65s;
}

.request-book__closed img {
  display: block;
  width: auto;
  height: 100%;
}

.request-book__open {
  position: relative;
  visibility: hidden;
  opacity: 0;
  transform: translateY(.75rem);
  transition: opacity .85s ease-out, transform .85s ease-out;
}

.request-book__open>img {
  display: block;
  width: 100%;
  height: auto;
}

.request-book__pages {
  position: absolute;
  inset: 0;
  overflow: clip;
  perspective: 90rem;
}

.request-book__page {
  position: absolute;
  inset-block: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: drop-shadow(0 .2rem .35rem rgb(70 40 14 / .35));
  transform: translateY(-.25rem) rotateY(var(--page-angle));
  transition: opacity .5s ease-out .18s, transform 1.15s ease-out .18s, filter 1.15s ease-out .18s;
}

/* 素材の透明な余白を切り取り、左右の回転軸を綴じ目に合わせる。 */
.request-book__page--left {
  --page-angle: 65deg;
  left: 0;
  width: 49.1%;
  object-position: left center;
  transform-origin: right center;
}

.request-book__page--right {
  --page-angle: -65deg;
  right: 0;
  width: 51.3%;
  object-position: right center;
  transform-origin: left center;
}

.request-book.is-active .request-book__closed {
  visibility: hidden;
  opacity: 0;
  transform: scale(.94);
}

.request-book.is-active .request-book__open,
.request-book.is-active .request-book__page {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.request-book.is-active .request-book__page {
  filter: drop-shadow(0 0 0 transparent);
}

@media (prefers-reduced-motion: reduce) {

  .request-book__closed,
  .request-book__open,
  .request-book__page {
    transition: none;
  }
}

/* 05. 調査方法 */
.investigation-paper {
  --paper-top-ratio: 1599 / 379;
  --paper-bottom-ratio: 1599 / 355;
  --paper-base: #f3e8d7;
  --paper-underlay: linear-gradient(var(--paper-base), var(--paper-base));
  --paper-join: 1px;
  background-color: var(--color-main);
  border-radius: 20px;
}

.investigation-paper__top,
.investigation-paper__bottom {
  background-repeat: no-repeat;
  background-size: 100% auto, 94% 87%;
}

.investigation-paper__top {
  display: grid;
  place-items: center;
  aspect-ratio: var(--paper-top-ratio);
  margin-bottom: calc(-1 * var(--paper-join));
  padding: clamp(.5rem, 3vw, 1.5rem) 8% .125rem;
  background-image: url("../img/investigation-paper-top.webp"), var(--paper-underlay);
  background-position: center top, center bottom;
}

.investigation-paper__title {
  color: var(--color-main);
  font-family: var(--font-mincho);
  font-size: clamp(1.1rem, 3.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.investigation-paper__middle {
  padding: 1.25rem clamp(1rem, 5vw, 3rem);
  background-image: url("../img/investigation-paper-middle.webp"), var(--paper-underlay);
  background-position: center top;
  background-repeat: repeat-y, no-repeat;
  background-size: 100% auto, 94% 100%;
}

.investigation-paper__bottom {
  aspect-ratio: var(--paper-bottom-ratio);
  margin-top: calc(-1 * var(--paper-join));
  background-image: url("../img/investigation-paper-bottom.webp"), var(--paper-underlay);
  background-position: center bottom, center top;
}

.investigation__list {
  display: grid;
  gap: 1.75rem;
}

.investigation__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 2rem 1rem 1rem;
  border: 1px solid #829886;
  border-color: color-mix(in srgb, var(--color-main) 52%, transparent);
  color: var(--color-dark);
  font-family: var(--font-base);
}

.investigation__decoration {
  position: absolute;
  z-index: 2;
  top: -24px;
  left: -17px;
  width: 112px;
  pointer-events: none;
}

.investigation__item--02 .investigation__decoration {
  left: auto;
  right: -15px;
}

.investigation__decoration img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .investigation__decoration {
    top: -29px;
    left: -24px;
    width: 144px;
  }

  .investigation__item--02 .investigation__decoration {
    right: -21px;
  }
}

.investigation__image img {
  display: block;
  width: 100%;
  height: auto;
}

.investigation__text {
  display: grid;
  align-content: center;
  gap: .5rem;
}

.investigation__label {
  color: var(--color-main);
  font-weight: 700;
}

.investigation__text h2 {
  margin-bottom: .5rem;
  font-family: var(--font-mincho);
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.5;
}

/* 06. 場面転換・ストーリー */
.story {
  --story-opening-height: clamp(10rem, 24vw, 20rem);
  --story-exit-height: clamp(5rem, 14vw, 11rem);
  padding-block: 0 var(--story-exit-height);
  background:
    linear-gradient(to bottom, var(--color-dark), var(--color-main)) center bottom / 100% var(--story-exit-height) no-repeat var(--color-dark);
  color: var(--color-white);
  text-align: center;
}

.story__opening {
  min-height: var(--story-opening-height);
  padding-block-start: clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(to bottom, var(--color-white) 36%, var(--color-dark));
}

.story__turn {
  color: var(--color-dark);
  font-family: var(--font-mincho);
  font-size: clamp(1.25rem, 3.5vw, 1.875rem);
  line-height: 1.4;
}

.story__content {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.story__title {
  color: var(--color-white);
}

.story__img {
  max-width: 800px;
  width: 80%;
  margin-inline: auto;
}

.story__img img {
  width: 100%;
  display: block;
}

/* 07. イベントタイトル */
.event-title {
  text-align: center;
  background-color: var(--color-main);
  color: var(--color-white);
}

.event-title__lead {
  margin-bottom: 24px;
}

.event-title__logo-wrap {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  isolation: isolate;
}

.event-title__logo {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 2px #123e2c);
}

.event-title__logo img,
.event-title__hiyoko img {
  display: block;
  width: 100%;
  height: auto;
}

.event-title__hiyoko {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: event-title-hiyoko-peek 4s ease-in-out infinite;
}

.event-title__hiyoko--01 {
  top: -18%;
  left: -2.5%;
  width: 18%;
  max-width: 134px;
}

.event-title__hiyoko--02 {
  top: -20%;
  right: -2.5%;
  width: 18%;
  max-width: 134px;
  animation-delay: .7s;
}

.event-title__hiyoko--03 {
  bottom: -8%;
  left: 6%;
  width: 11%;
  max-width: 82px;
  animation-delay: 1.4s;
}

.event-title__hiyoko--04 {
  right: 1%;
  bottom: -7%;
  width: 10%;
  max-width: 76px;
  animation-delay: 2.1s;
}

@keyframes event-title-hiyoko-peek {

  0%,
  18%,
  100% {
    transform: translateY(0);
  }

  8% {
    transform: translateY(-9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-title__hiyoko {
    animation: none;
  }
}

/* 08. イベント紹介 */
.event-intro {
  position: relative;
  isolation: isolate;
  text-align: center;
}

.event-intro>.container {
  position: relative;
  z-index: 1;
}

.event-intro__title {
  font-size: clamp(1.125rem, 4vw, 1.875rem);
  line-height: 1.3;
}

.event-intro__title-lead {
  display: block;
}

.event-intro__title-accent {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  padding-inline: 1.5rem;
  color: var(--color-accent);
  font-size: clamp(1.45rem, 6.2vw, 2.75rem);
}

.event-intro__title-accent::before,
.event-intro__title-accent::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 19px;
  height: 24px;
  background: url("../img/deco-sparkle.svg") center / contain no-repeat;
}

.event-intro__title-accent::before {
  left: 0;
  transform: translateY(-50%);
}

.event-intro__title-accent::after {
  right: 0;
  transform: translateY(-50%) scaleX(-1);
}

@media (min-width: 768px) {
  .event-intro__title-accent {
    padding-inline: 2.25rem;
  }

  .event-intro__title-accent::before,
  .event-intro__title-accent::after {
    width: 27px;
    height: 34px;
  }
}

.event-intro__feathers {
  position: absolute;
  z-index: 0;
  inset: 0;
  max-width: 1060px;
  margin-inline: auto;
  overflow: hidden;
  pointer-events: none;
}

.event-intro__feathers.is-playing {
  --feather-play-state: running;
}

.event-intro__feather {
  --feather-display-size: var(--feather-size);
  position: absolute;
  inset-block: 0;
  left: var(--feather-x);
  width: var(--feather-display-size);
  margin-left: calc(var(--feather-display-size) / -2);
  animation: event-intro-feather-fall var(--feather-duration) linear var(--feather-delay) infinite;
}

.event-intro__feather img {
  display: block;
  width: 100%;
  height: var(--feather-display-size);
  object-fit: contain;
  animation: event-intro-feather-sway var(--feather-duration) ease-in-out var(--feather-delay) infinite;
}

.event-intro__feather,
.event-intro__feather img {
  animation-play-state: var(--feather-play-state, paused);
}

@keyframes event-intro-feather-fall {
  0% {
    opacity: 0;
    transform: translateY(calc(-1 * var(--feather-display-size)));
  }

  20%,
  68% {
    opacity: var(--feather-opacity, .5);
  }

  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes event-intro-feather-sway {
  0% {
    transform: translateX(0) rotate(var(--feather-angle)) scaleX(var(--feather-flip, 1));
  }

  35% {
    transform: translateX(calc(var(--feather-sway) * var(--feather-sway-range, 1))) rotate(calc(var(--feather-angle) + 22deg)) scaleX(var(--feather-flip, 1));
  }

  72% {
    transform: translateX(calc(var(--feather-sway) * var(--feather-sway-range, 1) * -.65)) rotate(calc(var(--feather-angle) - 13deg)) scaleX(var(--feather-flip, 1));
  }

  100% {
    transform: translateX(4px) rotate(calc(var(--feather-angle) + 13deg)) scaleX(var(--feather-flip, 1));
  }
}

@media (max-width: 767px) {
  .event-intro__feathers {
    --feather-sway-range: .42;
  }

  .event-intro__feather {
    --feather-display-size: var(--feather-sp-size);
    left: var(--feather-sp-x);
  }

  .event-intro__feather--desktop {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-intro__feathers {
    display: none;
  }
}

/* BOXと鍵 */
.secret-trigger {
  position: absolute;
}

.secret-trigger--box {
  bottom: 7px;
  left: 9%;
  width: 72px;
}

.secret-trigger--key {
  top: calc(100% + 7px);
  right: 6%;
  width: 64px;
}

.secret-trigger__button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
}

.secret-trigger__button:not([inert]) {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.secret-trigger__button img {
  display: block;
  width: 100%;
  height: auto;
}

@media (hover: hover) {
  .secret-trigger__button:not([inert]):hover img {
    filter: brightness(1.1);
  }
}

.secret-modal {
  --dialog-width: 640px;
  padding: .5rem;
}

.secret-modal__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 52px);
  height: auto;
  object-fit: contain;
}

.secret-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d4b277;
  border-radius: 50%;
  background: var(--color-main);
  color: var(--color-white);
  font: 1.5rem/1 var(--font-base);
  cursor: pointer;
}

.secret-trigger__button:focus-visible,
.secret-modal__close:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 3px;
}

.secret-modal__close:focus-visible {
  outline-color: #d4b277;
}

@media (min-width: 768px) {
  .secret-trigger--box {
    bottom: 24px;
    width: 108px;
  }

  .secret-trigger--key {
    top: calc(100% + 12px);
    width: 84px;
  }
}

/* 09. 遊び方 */
.how-to-play {
  --play-step-gap: 4.5rem;
  --play-footprints-width: 3.5rem;
  --play-feather-width: 1.25rem;
  background: var(--color-sub);
}

.how-to-play .container {
  position: relative;
}

.how-to-play__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--play-step-gap);
  list-style: none;
  counter-reset: play-step;
}

.how-to-play__step {
  position: relative;
  display: grid;
  gap: .75rem;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
  counter-increment: play-step;
  background: var(--color-white);
  padding: 20px;
  border-radius: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  .how-to-play__step.is-reveal-pending:not(:focus-within) {
    opacity: 0;
  }

  .how-to-play__step.is-revealing:not(:focus-within) {
    animation: how-to-play-step-reveal .8s ease-out;
  }
}

@keyframes how-to-play-step-reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.how-to-play__heading {
  display: flex;
  align-items: baseline;
  gap: .875rem;
  color: var(--color-main);
  font-family: var(--font-mincho);
}

.how-to-play__number {
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.how-to-play__number::before {
  content: counter(play-step, decimal-leading-zero);
}

.how-to-play__heading h3 {
  font-size: clamp(1.25rem, 4vw, 1.875rem);
  line-height: 1.4;
}

.how-to-play__image {
  width: 80%;
  max-width: 500px;
  margin-inline: auto;
}

.how-to-play__image img,
.how-to-play__decoration img {
  display: block;
  width: 100%;
  height: auto;
}

.how-to-play__description {
  color: var(--color-dark);
  font-family: var(--font-base);
}

.how-to-play__decoration {
  position: absolute;
  pointer-events: none;
}

.how-to-play__decoration--feather {
  inset-block-start: 0;
  inset-inline-end: 8%;
  width: var(--play-feather-width);
  transform: rotate(20deg);
}

.how-to-play__decoration--footprints {
  inset-block-start: calc(100% + var(--play-step-gap) / 2);
  inset-inline-start: var(--play-footprints-x, 64%);
  width: var(--play-footprints-width);
  transform: translate(-50%, -50%) rotate(var(--play-footprints-angle, 24deg));
}

.how-to-play__step:nth-child(even) {
  --play-footprints-x: 36%;
  --play-footprints-angle: 125deg;
}

/* 10. 謎解きとは */
.about-nazotoki {
  padding-block-start: 0;
  background: var(--color-dark);
  color: #ffffff;
}

.about-nazotoki__visual {
  position: relative;
}

.about-nazotoki__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.about-nazotoki__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--color-dark));
  pointer-events: none;
}

.about-nazotoki__inner {
  padding-block-start: 1.5rem;
}

.about-nazotoki__content .section-title {
  color: var(--color-accent-2);
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  text-align: start;
}

.about-nazotoki__body {
  font-family: var(--font-base);
  line-height: 1.8;
}

.about-nazotoki__body p+p {
  margin-top: 1em;
}

@media (min-width: 768px) {
  .about-nazotoki {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: 37.5rem;
    padding-block: 3.5rem;
  }

  .about-nazotoki__visual {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 52%;
  }

  .about-nazotoki__visual img {
    height: 100%;
    object-fit: cover;
  }

  .about-nazotoki__visual::after {
    background: linear-gradient(to right, var(--color-dark) 27%, transparent 72%);
  }

  .about-nazotoki__inner {
    position: relative;
    z-index: 1;
    padding-block-start: 0;
  }

  .about-nazotoki__content {
    max-width: min(32rem, 65%);
  }
}

/* 11. 開催概要 */
.event-info__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.event-info__details {
  border-top: 1px solid var(--color-border);
  color: var(--color-dark);
}

.event-info__details>div {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.event-info__details dt {
  color: var(--color-main);
  font-weight: 700;
}

.event-info__sales {
  margin-top: 32px;
}

.event-info__sales-title {
  margin-bottom: 12px;
  color: var(--color-main);
  font-family: var(--font-mincho);
  font-size: 1.25rem;
  text-align: center;
}

.event-info__shops {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.event-info__shop {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 1.25rem;
  border: 1px solid #b8956366;
  border-radius: 3px;
  background: #f5ead0 var(--paper-background) center / cover;
  box-shadow: 0 2px 5px #42260e1a;
  text-align: left;
}

.event-info__shop-name {
  margin: 0 0 4px;
  color: var(--color-main);
  font-family: var(--font-mincho);
  font-size: 1rem;
  font-weight: 700;
}

.event-info__map {
  width: 100%;
  height: clamp(18rem, 70vw, 22rem);
}

.event-info__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .event-info__sales {
    margin-top: 44px;
  }

  .event-info__shops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .event-info__shop {
    padding: 1.5rem;
  }

  .event-info__layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }

  .event-info__details>div {
    grid-template-columns: 5em minmax(0, 1fr);
    gap: .75rem;
  }

  .event-info__map {
    height: 18rem;
  }
}

/* 12. mozoについて */
.about-mozo {
  background: var(--color-sub);
}

.about-mozo__layout {
  display: grid;
  gap: 24px;
}

.about-mozo__body {
  font-family: var(--font-mincho);
  line-height: 1.8;
}

.about-mozo__body p+p {
  margin-top: 16px;
}

.about-mozo__wiggle {
  display: inline-block;
  white-space: nowrap;
}

.about-mozo__wiggle>span {
  display: inline-block;
  color: var(--color-main);
  font-weight: 700;
  animation: about-mozo-wiggle 4.4s ease-in-out infinite;
}

.about-mozo__wiggle>span:nth-child(2) {
  animation-delay: .16s;
}

.about-mozo__wiggle>span:nth-child(3) {
  animation-delay: .4s;
}

.about-mozo__wiggle>span:nth-child(4) {
  animation-delay: .27s;
}

@keyframes about-mozo-wiggle {

  0%,
  64%,
  88%,
  100% {
    transform: translate(0, 0) rotate(0);
  }

  70% {
    transform: translate(-1px, -3px) rotate(-3deg);
  }

  76% {
    transform: translate(2px, 2px) rotate(3deg);
  }

  82% {
    transform: translate(-1px, -1px) rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-mozo__wiggle>span {
    animation: none;
  }
}

.about-mozo__image {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.about-mozo__image>img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (min-width: 768px) {
  .about-mozo__layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 32px;
  }
}

@media (min-width: 900px) {
  .about-mozo__body .section-title--leaf {
    padding-inline-start: 0;
  }

  .about-mozo__body .section-title--leaf::before {
    left: -44px;
  }
}

/* 13. NANICA-NAGOYA-について */
.about-nanica {
  /* 素材を差し替えるときは、元画像の幅 / 高さを指定する */
  --nanica-background-image: url("../img/about-nanica-bg.webp");
  --nanica-background-ratio: 4 / 3;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  background: var(--color-main);
  color: var(--color-white);
  text-align: center;
}

.about-nanica__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.about-nanica__background-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  height: 100%;
  animation: about-nanica-scroll 60s linear infinite;
}

.about-nanica__background-item {
  flex: 1 0 auto;
  height: 100%;
  aspect-ratio: var(--nanica-background-ratio);
  background: var(--nanica-background-image) center / cover no-repeat;
}

.about-nanica__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-main);
  opacity: .86;
}

.about-nanica__inner .section-title {
  color: inherit;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.about-nanica__body {
  margin-inline: auto;
  font-family: var(--font-base);
  line-height: 1.8;
  padding: 20px;
  background-color: rgba(11, 27, 15, 0.6);
  border-radius: 10px;
}

.about-nanica__body p+p {
  margin-block-start: .75rem;
}

.about-nanica__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-block-start: 1.75rem;
  padding: .625rem 1.5rem;
  background: var(--color-white);
  color: var(--color-main);
  font-weight: 700;
  text-decoration: none;
}

.about-nanica__button:hover {
  background: var(--color-sub);
}

.about-nanica__button:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: .25rem;
}

@keyframes about-nanica-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .about-nanica {
    min-height: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-nanica__background-track {
    animation: none;
  }
}

/* 14–15. Q&A・注意事項 */
.faq {
  padding-block-end: 0;
}

.notes {
  padding-block-start: 1.25rem;
}

:is(.faq__title, .notes__title, .faq__question) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: 1rem .75rem;
  list-style: none;
  cursor: pointer;
}

:is(.faq__title, .notes__title, .faq__question)::-webkit-details-marker {
  display: none;
}

:is(.faq__title, .notes__title, .faq__question):focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: -2px;
}

:is(.faq__title, .notes__title, .faq__question)::after {
  content: "";
  width: 1rem;
  height: 1rem;
  color: var(--color-main);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}

:is(.faq__accordion, .notes__accordion, .faq__item)[open]>:is(.faq__title, .notes__title, .faq__question)::after {
  background-size: 100% 2px, 0 0;
}

.faq__accordion,
.notes__accordion {
  border-block: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-dark);
}

.faq__title,
.notes__title {
  color: var(--color-main);
  font-family: var(--font-mincho);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
}

.faq__list {
  padding-inline: clamp(.25rem, 2vw, 1rem);
}

.faq__item {
  border-block-start: 1px solid var(--color-border);
}

.faq__question {
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  font-weight: 700;
}

.faq__label {
  color: var(--color-main);
  font-weight: 700;
}

.faq__answer {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: .75rem;
  margin-block-end: .75rem;
  padding: .875rem .75rem;
  background: color-mix(in srgb, var(--color-sub) 22%, var(--color-white));
}

.notes__list {
  padding: 1rem 1rem 1.25rem 2rem;
  border-block-start: 1px solid var(--color-border);
  list-style: disc;
}

.notes__list li+li {
  margin-block-start: .75rem;
}

/* 16. クレジット */
.credits {
  background-color: var(--color-dark);
}

.credits__body {
  max-width: 760px;
}

.credits__body img {
  display: block;
  width: 100%;
}

/* 17. フッター */
.footer {
  padding-bottom: 3rem;
  background: var(--color-white);
}

.footer__img {
  position: relative;
  width: min(100%, 300px);
  margin-inline: auto;
}

.footer__img>img {
  display: block;
  width: 100%;
  height: auto;
}

.footer__nest {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer__chick {
  position: absolute;
  top: var(--nest-top);
  left: var(--nest-left);
  width: var(--nest-width);
  height: auto;
}

.footer__chick[data-chick-id="01"] {
  --nest-top: 13%;
  --nest-left: 34%;
  --nest-width: 22%;
  --nest-fledge-x: -100%;
  --nest-fledge-angle: -14deg;
  --nest-fledge-delay: 0ms;
}

.footer__chick[data-chick-id="02"] {
  --nest-top: 18%;
  --nest-left: 56%;
  --nest-width: 21%;
  --nest-hop-delay: 85ms;
  --nest-fledge-x: 85%;
  --nest-fledge-angle: 13deg;
  --nest-fledge-delay: 45ms;
}

.footer__chick[data-chick-id="03"] {
  --nest-top: 31%;
  --nest-left: 15%;
  --nest-width: 22%;
  --nest-hop-delay: 135ms;
  --nest-fledge-x: -62%;
  --nest-fledge-angle: -20deg;
  --nest-fledge-delay: 95ms;
}

.footer__chick[data-chick-id="04"] {
  --nest-top: 38%;
  --nest-left: 34%;
  --nest-width: 19%;
  --nest-hop-delay: 185ms;
  --nest-fledge-x: -110%;
  --nest-fledge-angle: -12deg;
  --nest-fledge-delay: 150ms;
}

.footer__chick[data-chick-id="05"] {
  --nest-top: 39%;
  --nest-left: 53%;
  --nest-width: 21%;
  --nest-hop-delay: 230ms;
  --nest-fledge-x: 110%;
  --nest-fledge-angle: 18deg;
  --nest-fledge-delay: 120ms;
}

.footer__chick[data-chick-id="11"] {
  --nest-top: 31%;
  --nest-left: 72%;
  --nest-width: 19%;
  --nest-hop-delay: 270ms;
  --nest-fledge-x: 58%;
  --nest-fledge-angle: 21deg;
  --nest-fledge-delay: 65ms;
}

.footer__chick-count {
  margin-top: 12px;
  color: var(--color-main);
  font-family: var(--font-mincho);
  text-align: center;
}

.footer__chick-status {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: 700;
}

.footer__chick-total {
  margin-top: 4px;
  font-size: .875rem;
}

.footer__chick-actions {
  min-height: 44px;
  margin-top: 12px;
  text-align: center;
}

.footer__fledge {
  min-height: 44px;
  padding: .5rem 1.125rem;
  border: 1px solid var(--color-main);
  border-radius: 5px;
  background: transparent;
  color: var(--color-main);
  font: 700 .875rem/1.4 var(--font-mincho);
  cursor: pointer;
}

.footer__fledge:hover:enabled {
  background: #1b5b3d12;
}

.footer__fledge:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 3px;
}

.footer__fledge:disabled {
  opacity: .6;
  cursor: default;
}

/* 迷子のひよこ */
.lost-chick {
  position: absolute;
  z-index: 2;
  width: var(--lost-chick-size, 50px);
  height: var(--lost-chick-size, 50px);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lost-chick img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lost-chick:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 3px;
}

.lost-chick--intro {
  inset: 0;
  width: 100%;
  height: 100%;
}

.lost-chick--intro:focus-visible {
  outline-offset: -3px;
}

.lost-chick--board {
  top: -35px;
  right: 4px;
  --lost-chick-size: 46px;
}

.lost-chick--investigation {
  top: 30px;
  left: 11px;
  --lost-chick-size: 44px;
}

.lost-chick--play {
  bottom: -57px;
  right: 32px;
}

.lost-chick--event {
  top: -21px;
  right: 40px;
}

.lost-chick--about {
  right: -4px;
  top: 2%;
}

.lost-chick.is-collected {
  pointer-events: none;
}

@media (min-width: 768px) {
  .lost-chick {
    --lost-chick-size: 64px;
  }

  .lost-chick--board {
    top: -45px;
    right: 18px;
  }

  .lost-chick--investigation {
    top: 75px;
    left: 132px;
  }

  .lost-chick--play {
    bottom: -75px;
    left: 86%;
  }

  .lost-chick--event {
    top: -10px;
    right: 22%;
  }

  .lost-chick--about {
    top: -7px;
    right: -3px;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lost-chick:hover img {
    transform: translateY(-3px) rotate(-4deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lost-chick.is-collected img {
    animation: lost-chick-hop 520ms ease-out both;
  }

  .footer__chick.is-returning {
    animation: nest-chick-arrive 440ms ease-out both;
  }

  .footer__nest.is-complete .footer__chick {
    animation: nest-chick-celebrate 600ms ease-in-out both;
    animation-delay: var(--nest-hop-delay, 0ms);
  }

  .footer__nest:not(.is-visible) .footer__chick {
    animation-play-state: paused;
  }

  .footer__nest.is-fledging .footer__chick {
    animation: nest-chick-fledge 720ms ease-in-out var(--nest-fledge-delay) both;
  }
}

@keyframes lost-chick-hop {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  32% {
    transform: translateY(-12px) scale(1.08);
    opacity: 1;
  }

  100% {
    transform: translateY(-31px) scale(.9);
    opacity: 0;
  }
}

@keyframes nest-chick-arrive {
  0% {
    transform: translateY(6px) scale(.8);
    opacity: 0;
  }

  65% {
    transform: translateY(-5px) scale(1.08);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes nest-chick-celebrate {
  38% {
    transform: translateY(-10px) rotate(-5deg);
  }

  70% {
    transform: translateY(0) rotate(3deg);
  }
}

@keyframes nest-chick-fledge {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  33% {
    transform: translate(calc(var(--nest-fledge-x) * .26), -23px) rotate(calc(var(--nest-fledge-angle) * .5)) scale(1.08);
    opacity: 1;
  }

  100% {
    transform: translate(var(--nest-fledge-x), -43px) rotate(var(--nest-fledge-angle)) scale(.82);
    opacity: 0;
  }
}

.chick-toast {
  position: absolute;
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: .55rem .85rem;
  border: 1px solid #bb9864;
  border-radius: 6px;
  background: #fff6df;
  box-shadow: 0 3px 12px #42260e26;
  color: var(--color-main);
  font-size: .875rem;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
}

.chick-toast__remaining {
  display: block;
}

.chick-toast::after {
  content: "";
  position: absolute;
  left: var(--chick-toast-tail, 50%);
  bottom: -5px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid #bb9864;
  border-bottom: 1px solid #bb9864;
  background: #fff6df;
}

.chick-toast.is-below::after {
  top: -5px;
  bottom: auto;
  transform: translateX(-50%) rotate(225deg);
}

@media (min-width: 768px) {
  :root {
    --section-space: 6.5rem;
  }

  .container {
    width: min(calc(100% - 4rem), var(--content-width));
  }

  .mv__layout {
    grid-template-columns: minmax(0, 1fr) 7rem;
    column-gap: 10px;
    align-items: stretch;
  }

  .mv__banner-wrap {
    filter: drop-shadow(0.2rem 0.2rem 0.2rem rgba(0, 0, 0, 0.3));
  }

  .mv__banner {
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0,
        100% 0,
        100% 100%,
        50% calc(100% - 2rem),
        0 100%);
  }

  .mv__banner-content {
    letter-spacing: .06em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .mv__date-year {
    text-orientation: upright;
  }

  .mv__date-number {
    text-combine-upright: all;
  }

  .investigation__item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 1.75rem;
    padding-inline: 1.5rem;
  }

  .investigation__item--02 .investigation__text {
    order: 2;
  }

  .how-to-play {
    --play-step-gap: 6rem;
    --play-footprints-width: 4.5rem;
    --play-feather-width: 1.75rem;
  }

  .how-to-play__step {
    justify-self: start;
    --play-footprints-x: 78%;
  }

  .how-to-play__step:nth-child(even) {
    justify-self: end;
    --play-footprints-x: 22%;
  }
}