@charset "UTF-8";

/* LP全体で共有する配色と角丸サイズを変数として管理する。 */
/* OS・ブラウザのprefers-reduced-motion設定に関係なく演出を実行する版。 */
:root {
  --nazotoki-ink: #1f1f1f;
  --nazotoki-brown: #28120b;
  --nazotoki-gold: #b29442;
  --nazotoki-yellow: #ffcc00;
  --nazotoki-pink: #e00086;
  --nazotoki-green: #a7df70;
  --nazotoki-radius: 50px;
}

/* 要素サイズの計算を統一し、画像や余白による横崩れを防ぐ。 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* background: #eeeeee; */
  color: var(--nazotoki-ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* LP本体を全幅表示にし、M PLUS Rounded 1cの標準ウェイトを500へ統一する。 */
.nazotoki-lp {
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 28px rgba(0, 0, 0, .12);
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-weight: 500;
}

/* 見た目には表示せず、見出しや補足を読み上げ支援へ届ける。 */
.nazotoki-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 「※」で始まる注記をぶら下げインデントにし、折り返し位置を揃える。 */
.nazotoki-hanging-note {
  padding-left: 1em;
  text-indent: -1em;
}

/* 各セクションの本文幅と重なり順を共通化する。 */
.nazotoki-section-inner {
  position: relative;
  z-index: 2;
  width: min(1078px, calc(100% - 48px));
  margin-inline: auto;
}

/* 各セクションのh2を「ストーリー」と同じ太さに統一する。 */
.nazotoki-section-title {
  margin: 0;
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* 参加方法・景品などで使用する白いカードの共通外観。 */
.nazotoki-card {
  position: relative;
  background: #fff;
  border-radius: var(--nazotoki-radius);
}

/* ファーストビュー：高さは900pxと画面高の大きい方にし、ジャングル背景上に各要素を配置する。 */
.nazotoki-hero {
  position: relative;
  height: max(900px, 100vh);
  overflow: hidden;
  background: linear-gradient(180deg, #0b5961 0%, #35642a 52%, #1a3113 100%);
}

/* 背景画像を中央・最大1680pxに収め、ヒーローの高さ全体を覆う。 */
.nazotoki-hero::before,
.nazotoki-hero::after {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 1680px);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.nazotoki-hero::before {
  background-image: url("/sites/default/files/page/lp/youme-mysteryrally/img/hero-bg-a.webp");
}

/* 背景Bは初期読み込み後にJSで取得し、準備完了後にフェード表示する。 */
.nazotoki-hero::after {
  opacity: 0;
}

.nazotoki-hero.is-bg-b-ready::after {
  background-image: url("/sites/default/files/page/lp/youme-mysteryrally/img/hero-bg-b.webp");
  animation: nazotoki-hero-bg-switch .7s ease-in-out forwards;
}

@keyframes nazotoki-hero-bg-switch {
  to {
    opacity: 1;
  }
}

.nazotoki-hero__shade {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 192px;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent);
}

.nazotoki-hero__paper {
  position: absolute;
  z-index: 2;
  top: -5px;
  left: 50%;
  width: 137.2%;
  max-width: none;
  transform: translate(-50%, -100%);
}

.nazotoki-hero.is-bg-b-ready .nazotoki-hero__paper {
  animation: nazotoki-hero-paper-enter .7s ease-in-out forwards;
}

@keyframes nazotoki-hero-paper-enter {
  to {
    transform: translate(-50%, 0);
  }
}

/* 左右のヤシの木をヒーロー下端に固定し、中央コンテンツの背面に配置する。 */
.nazotoki-hero__tree {
  position: absolute;
  z-index: 3;
  bottom: 0;
  width: clamp(420px, 42.86vw, 600px);
  max-width: none;
  transform-origin: center bottom;
  pointer-events: none;
}

.nazotoki-hero__tree--left {
  left: -180px;
  transform: translateX(-100%) rotate(-45deg);
}

.nazotoki-hero__tree--right {
  right: -180px;
  transform: translateX(100%) rotate(45deg);
}

.nazotoki-hero.is-bg-b-ready .nazotoki-hero__tree--left {
  animation: nazotoki-hero-tree-left-enter .7s ease-in-out forwards;
}

.nazotoki-hero.is-bg-b-ready .nazotoki-hero__tree--right {
  animation: nazotoki-hero-tree-right-enter .7s ease-in-out forwards;
}

@keyframes nazotoki-hero-tree-left-enter {
  to {
    transform: translateX(0) rotate(0);
  }
}

@keyframes nazotoki-hero-tree-right-enter {
  to {
    transform: translateX(0) rotate(0);
  }
}

.nazotoki-hero__logos {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 7.8% 0;
}

.nazotoki-hero__logo-left {
  width: 229px;
}

.nazotoki-hero__logo-right {
  width: 145px;
}

.nazotoki-hero__content {
  position: absolute;
  z-index: 14;
  top: 60px;
  left: 50%;
  width: min(704px, 58vw);
  transform: translateX(-50%);
}

/* 高さのあるPC画面ではメインコンテンツをヒーローの上下中央に配置する。 */
@media (min-width: 1101px) and (min-height: 1100px) {
  .nazotoki-hero__content {
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.nazotoki-hero__pretitle {
  width: 400px;
  margin-inline: auto;
}

.nazotoki-hero__main {
  display: flow-root;
}

.nazotoki-hero__title {
  position: relative;
  left: -30px;
  width: 600px;
  margin: 100px auto 0;
}

/* 開催日パネルはFigma書き出し画像を使い、ブラウザ間の文字組み差を防ぐ。 */
.nazotoki-hero__date-wrap {
  position: relative;
  width: 474px;
  margin: 8px auto 0;
}

.nazotoki-hero__pretitle {
  opacity: 0;
  transform: translate(-120px, 80px);
}

.nazotoki-hero__title {
  opacity: 0;
  transform: scale(0.35);
  transform-origin: center center;
}

.nazotoki-hero__date-wrap {
  opacity: 0;
  transform: translateY(60px);
}

.nazotoki-hero__date {
  position: relative;
  z-index: 2;
  width: 100%;
}

.nazotoki-hero__date-arrow {
  position: absolute;
  z-index: 1;
  top: calc(100% - 1px);
  max-width: none;
  pointer-events: none;
}

.nazotoki-hero__date-arrow--right {
  top: calc(100% - 11px);
  right: calc(5% + 30px);
  width: 154px;
}

.nazotoki-hero__date-arrow--down {
  top: calc(100% - 6px);
  right: calc(12% + 30px);
  display: none;
  width: 40px;
}

.nazotoki-hero.is-bg-b-ready .nazotoki-hero__pretitle {
  animation: nazotoki-hero-pretitle-slide-in .65s cubic-bezier(0.22, 1, 0.36, 1) .15s forwards;
}

.nazotoki-hero.is-title-ready .nazotoki-hero__title {
  animation: nazotoki-hero-title-pop .45s ease-out forwards;
}

.nazotoki-hero.is-bg-b-ready .nazotoki-hero__date-wrap {
  animation: nazotoki-hero-date-rise .5s cubic-bezier(0.22, 1, 0.36, 1) .85s forwards;
}

@keyframes nazotoki-hero-pretitle-slide-in {
  from {
    opacity: 0;
    transform: translate(-120px, 80px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes nazotoki-hero-title-pop {
  0% {
    opacity: 0;
    filter: brightness(2.4) drop-shadow(0 0 24px rgba(255, 255, 255, .95));
    transform: scale(0.35);
  }
  35% {
    filter: brightness(2.8) drop-shadow(0 0 34px rgba(255, 255, 255, 1));
  }
  55% {
    opacity: 1;
    filter: brightness(1.5) drop-shadow(0 0 16px rgba(255, 255, 255, .65));
    transform: scale(1.12);
  }
  70% {
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    filter: brightness(1) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    transform: scale(1);
  }
}

@keyframes nazotoki-hero-date-rise {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nazotoki-hero__character {
  position: absolute;
  z-index: 6;
  object-fit: contain;
}

.nazotoki-hero__character--one {
  bottom: 120px;
  left: 12.5%;
  width: 132px;
}

.nazotoki-hero__character--two {
  z-index: 5;
  bottom: 120px;
  left: 24.5%;
  width: 144px;
}

/* 1400px以上ではキャラクターを1400px幅時の位置に固定し、中央から左へ離れ過ぎないようにする。 */
@media (min-width: 1400px) {
  .nazotoki-hero__character--one {
    left: calc(50% - 525px);
  }

  .nazotoki-hero__character--two {
    left: calc(50% - 357px);
  }
}

/* 賞品と矢印を同じ基準で配置し、画面幅が変わっても両者の位置関係を維持する。 */
.nazotoki-hero__prize-wrap {
  position: absolute;
  right: 4.5%;
  bottom: 24px;
  width: 260px;
}

.nazotoki-hero__prize {
  position: relative;
  z-index: 12;
  width: 100%;
  opacity: 0;
  filter: brightness(3) saturate(0.6) drop-shadow(0 0 28px rgba(255, 255, 255, 0.95));
  transform: translate(-18px, -18px);
}

/* 1200px以上では賞品を1200px幅時の位置に固定し、中央から右へ離れ過ぎないようにする。 */
@media (min-width: 1200px) {
  .nazotoki-hero__prize-wrap {
    right: calc(50% - 546px);
  }
}

/* 高さ1300px以上のPCでは賞品を日付と同じ中央基準で右下に配置する。 */
@media (min-width: 1101px) and (min-height: 1300px) {
  .nazotoki-hero__prize-wrap {
    top: calc(50% + 250px);
    right: auto;
    bottom: auto;
    left: calc(50% + 286px);
  }
}

.nazotoki-hero.is-bg-b-ready .nazotoki-hero__prize {
  animation: nazotoki-hero-prize-flash .35s ease-out 1.55s forwards;
}

@keyframes nazotoki-hero-prize-flash {
  0% {
    opacity: 0;
    filter: brightness(3) saturate(0.6) drop-shadow(0 0 28px rgba(255, 255, 255, 0.95));
  }
  25% {
    opacity: 1;
    filter: brightness(3.4) saturate(0.8) drop-shadow(0 0 36px rgba(255, 255, 255, 1));
  }
  60% {
    opacity: 1;
    filter: brightness(1.35) saturate(1.1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.55));
  }
  100% {
    opacity: 1;
    filter: brightness(1) saturate(1) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
}

.nazotoki-hero__foreground {
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(100%);
}

.nazotoki-hero.is-bg-b-ready .nazotoki-hero__foreground {
  animation: nazotoki-hero-foreground-enter .7s ease-in-out forwards;
}

@keyframes nazotoki-hero-foreground-enter {
  to {
    transform: translateY(0);
  }
}

/* ストーリー：暗い遺跡背景の上に巻物と本文を重ねる。 */
.nazotoki-story {
  position: relative;
  height: auto;
  overflow: hidden;
  background-color: var(--nazotoki-brown);
  background-image: url("/sites/default/files/page/lp/youme-mysteryrally/img/story-jungle-overlay.png");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.nazotoki-story__scroll {
  position: relative;
  width: 900px;
  height: 910px;
  margin: 104px auto 0;
}

.nazotoki-story__torch {
  position: absolute;
  z-index: 1;
  top: -50px;
  width: 640px;
  pointer-events: none;
}

.nazotoki-story__torch--left {
  left: -384px;
}

.nazotoki-story__torch--right {
  right: -352px;
  transform: scaleX(-1);
}

.nazotoki-story__top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.nazotoki-story__paper-top,
.nazotoki-story__paper-bottom {
  position: absolute;
  z-index: 2;
  left: 0;
  width: 100%;
}

.nazotoki-story__paper-top {
  top: 0;
}

.nazotoki-story__paper-bottom {
  bottom: 0;
}

/* 巻物内の文章を読みやすい幅・行間で固定する。 */
.nazotoki-story__body {
  position: absolute;
  z-index: 3;
  top: 126px;
  left: 117px;
  width: 665px;
  /* font-size: 1em; */
  line-height: 1.6;
}

.nazotoki-story__body h2 {
  margin: 0 0 36px;
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.nazotoki-story__body p {
  margin: 0 0 19px;
}

.nazotoki-story__character {
  position: absolute;
  z-index: 4;
  top: 116px;
  left: 0;
  width: 128px;
}

.nazotoki-story__chest {
  position: absolute;
  z-index: 4;
  right: -8px;
  bottom: 84px;
  width: 208px;
  height: 237px;
  object-fit: contain;
}

/* 参加方法：下端へ向かって透明になる古地図WebP上に3つの手順カードを縦に並べる。 */
.nazotoki-howto {
  position: relative;
  padding: 220px 0 90px;
  background-color: #6e4b1c;
  background-image: linear-gradient(rgba(156, 113, 48, .2), rgba(54, 39, 17, .94)), url("/sites/default/files/page/lp/youme-mysteryrally/img/howto-parchment-bg-1920.webp");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100%;
}

/* 1920pxを超える画面だけ高解像度の古地図背景へ切り替える。 */
@media (min-width: 1921px) {
  .nazotoki-howto {
    background-image: linear-gradient(rgba(156, 113, 48, .2), rgba(54, 39, 17, .94)), url("/sites/default/files/page/lp/youme-mysteryrally/img/howto-parchment-bg-opt.webp");
  }
}

/* セクション境界にFigmaの波形画像を重ね、背景の切り替わりを滑らかにする。 */
.nazotoki-howto::before,
.nazotoki-gifts::before,
.nazotoki-info::before,
.nazotoki-footer::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -1px;
  left: 0;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  pointer-events: none;
}

.nazotoki-howto::before {
  height: 164px;
  background-image: url("/sites/default/files/page/lp/youme-mysteryrally/img/wave-howto-top.svg");
  /* transform: translateY(-48%); */
}

/* 古地図背景の上でも見出しが埋もれないよう、淡い明色のグローを加える。 */
.nazotoki-howto__title {
  margin-bottom: 64px;
  text-shadow:
    0 0 3px rgba(255, 248, 214, .95),
    0 0 10px rgba(255, 239, 174, .85),
    0 0 20px rgba(255, 224, 128, .55);
}

.nazotoki-howto .nazotoki-card + .nazotoki-card {
  margin-top: 56px;
}

.nazotoki-howto__search {
  padding: 37px 92px 60px;
}

.nazotoki-step-heading {
  position: relative;
  margin: 0 0 38px;
  padding-left: 56px;
  font-size: 1.75em;
  font-weight: 700;
  line-height: 1.2;
}

.nazotoki-step-heading > span {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--nazotoki-brown);
  background: var(--nazotoki-yellow);
  font-size: 0.642857em;
}

/* 第1手順の開催表と注意事項をPCでは2列で表示する。 */
.nazotoki-howto__search-grid {
  display: grid;
  grid-template-columns: 463px 1fr;
  gap: 44px;
}

/* 開催期間の表をセル幅が崩れない固定レイアウトにする。 */
.nazotoki-schedule {
  width: 100%;
  border-collapse: collapse;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1em;
}

.nazotoki-schedule th,
.nazotoki-schedule td {
  height: 64px;
  padding: 13px;
  border: 1px solid #b3b3b3;
  text-align: left;
}

.nazotoki-schedule th {
  color: #fff;
  background: var(--nazotoki-gold);
  text-align: center;
}

.nazotoki-schedule th:first-child,
.nazotoki-schedule td:first-child {
  width: 174px;
}

.nazotoki-howto__notes {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9375em;
  line-height: 1.45;
}

.nazotoki-howto__notes p {
  margin: 0 0 10px;
}

.nazotoki-howto__access {
  padding: 38px 92px 58px;
}

.nazotoki-howto__access p {
  margin: -9px 0 28px 56px;
  font-size: 1em;
}

/* ページ内で共通利用するピンクのCTAと操作時の状態を定義する。 */
.nazotoki-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 22px 48px;
  border-radius: 999px;
  color: #fff;
  background: var(--nazotoki-pink);
  box-shadow: 0 9px 18px rgba(83, 0, 50, .22);
  font-size: 2.125em;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.nazotoki-cta:hover {
  opacity: 1;
  filter: brightness(1.08);
  transform: translateY(-3px) rotate(0.05deg);
}

.nazotoki-cta:focus-visible,
.nazotoki-info-table a:focus-visible {
  outline: 4px solid #101010;
  outline-offset: 5px;
}

/* 参加方法（2）のCTAをカード中央に配置する。 */
.nazotoki-cta--inline {
  width: 74%;
  margin-inline: auto;
  min-height: 80px;
}

.nazotoki-howto__game {
  padding: 42px 94px 54px;
}

/* ゲーム開始手順をPCでは3列、狭い画面では段階的に縦並びへ変更する。 */
.nazotoki-game-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px 72px;
  margin: 44px 0 50px;
  padding: 0;
  list-style: none;
}

.nazotoki-game-steps li {
  min-width: 0;
}

.nazotoki-game-steps__image {
  position: relative;
  aspect-ratio: 302 / 500;
  overflow: visible;
  border-radius: 0;
  background: #aa9d77;
}

.nazotoki-game-steps__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nazotoki-game-steps__image > span {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  margin-top: -21.5px;
  margin-left: -21.5px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: #fff;
  background: #d86705;
  font-weight: 900;
}

.nazotoki-game-steps p {
  margin: 6px 0 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9375em;
  line-height: 1.35;
}

.nazotoki-game-steps p.nazotoki-game-steps__note {
  font-size: 0.875em;
}

.nazotoki-game-steps__decoration {
  position: relative;
  min-height: 285px;
}

.nazotoki-game-steps__decoration img:first-child {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom:120px;
  width: 119px;
}

.nazotoki-game-steps__decoration img:last-child {
  position: absolute;
  right: 10%;
  bottom: 5px;
  width: 212px;
}

.nazotoki-game-steps__footnotes {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.875em;
  line-height: 1.35;
}

.nazotoki-game-steps__footnotes p {
  margin: 0;
}

.nazotoki-game-steps__footnotes p + p {
  margin-top: 0.5em;
}

/* 再開に必要な情報の注意書きを、文字高と揃えたアイコンと太字で強調する。 */
.nazotoki-game-steps__important-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.25em;
  font-weight: 700;
}

.nazotoki-game-steps__important-note img {
  width: auto;
  height: 1em;
  margin-top: 0.175em;
}

/* プレゼント：下端へ向かって透明になる青い洞窟WebP上に景品カードを配置する。 */
.nazotoki-gifts {
  position: relative;
  padding: 240px 0 280px;
  color: var(--nazotoki-ink);
  background-color: #003b87;
  background-image: url("/sites/default/files/page/lp/youme-mysteryrally/img/gift-blue-bg.webp"), linear-gradient(#003d89 8%, #498ade 40%, #002a60 100%);
  background-position: center top, center;
  background-size: 100% auto, 100% 100%;
  background-repeat: no-repeat;
}

.nazotoki-gifts::before {
  height: 160px;
  background-image: url("/sites/default/files/page/lp/youme-mysteryrally/img/wave-campaign-top.svg");
  /* transform: translateY(-50%); */
}

/* プレゼント見出しの副題を、主見出しより控えめな白文字で表示する。 */
.nazotoki-gifts__subtitle {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 20, 54, .65);
}

/* 青い背景上の白文字に濃色シャドウを加え、輪郭と奥行きを明確にする。 */
.nazotoki-gifts__title {
  margin-bottom: 66px;
  color: #fff;
  text-shadow:
    0 2px 3px rgba(0, 22, 58, .9),
    0 6px 14px rgba(0, 20, 54, .65);
}

.nazotoki-gift-card {
  padding: 40px 69px;
}

.nazotoki-gift-card + .nazotoki-gift-card {
  margin-top: 50px;
}

/* 当選人数・参加者特典をカード左上の円形バッジで強調する。 */
.nazotoki-gift-card__badge {
  position: absolute;
  z-index: 3;
  top: -21px;
  left: -14px;
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  color: var(--nazotoki-brown);
  background: var(--nazotoki-yellow);
  font-size: 1.125em;
  font-weight: 900;
  line-height: 1.6;
  text-align: center;
}

.nazotoki-gift-card header {
  padding-left: 114px;
}

.nazotoki-gift-card header p,
.nazotoki-gift-card__ar-copy > p {
  margin: 0;
  color: #e64292;
  font-size: 1.5em;
  font-weight: 900;
}

.nazotoki-gift-card h3 {
  margin: 0;
  font-size: 2.25em;
  font-weight: 700;
  line-height: 1.34;
}

.nazotoki-gift-card__model-note {
  display: inline-block;
  font-size: 0.6em;
  line-height: 1;
  white-space: nowrap;
}

/* Nintendo Switch 2の画像と応募条件をPCでは左右に分ける。 */
.nazotoki-gift-card__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
  margin-top: 35px;
}

.nazotoki-gift-card figure {
  margin: 0;
}

.nazotoki-gift-card--switch figure img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.nazotoki-gift-card figcaption {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1em;
}

.nazotoki-gift-card h4 {
  margin: 14px 0 18px;
  font-size: 1.75em;
  line-height: 1.35;
}

.nazotoki-gift-card__grid p {
  margin: 0 0 30px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9375em;
  line-height: 1.48;
}

/* 応募条件の注記を段落ごとに分け、連続する注意事項の間隔を揃える。 */
.nazotoki-gift-card__grid .nazotoki-hanging-note {
  margin-bottom: 0.5em;
}

/* AR特典カードはスマートフォン画像と説明文を横並びにする。 */
.nazotoki-gift-card--ar {
  display: grid;
  grid-template-columns: 294px 1fr;
  align-items: center;
  gap: 52px;
  min-height: 407px;
  padding: 34px 96px;
}

.nazotoki-gift-card--ar .nazotoki-gift-card__badge {
  background: var(--nazotoki-green);
}

.nazotoki-gift-card--ar figure {
  display: grid;
  place-items: center;
  width: 294px;
  height: 294px;
  border-radius: 50%;
  background: #d8effe;
}

.nazotoki-gift-card--ar figure img {
  width: 165px;
  transform: rotate(-5.76deg);
}

.nazotoki-gift-card__ar-copy h4 {
  margin-top: 22px;
}

.nazotoki-gift-card__ar-break {
  display: none;
}

.nazotoki-gift-card__ar-copy small {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1em;
}

/* キャンペーン概要：開催情報の表と安全上の注意を白背景でまとめる。 */
.nazotoki-info {
  position: relative;
  padding: 5px 0 170px;
  background: #fff;
}

.nazotoki-info::before {
  height: 200px;
  background-image: url("/sites/default/files/page/lp/youme-mysteryrally/img/wave-blue-top.svg");
  transform: translateY(-180px) rotate(180deg);
  transform-origin: center;
}

.nazotoki-info .nazotoki-section-title {
  margin-bottom: 62px;
}

/* 概要表：参加方法（1）の開催表と同じ文字サイズ・セル高・余白・罫線に揃える。 */
.nazotoki-info-table {
  width: 894px;
  max-width: 100%;
  margin: 0 auto;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1em;
}

.nazotoki-info-table > div {
  display: grid;
  grid-template-columns: 174px 1fr;
}

.nazotoki-info-table dt,
.nazotoki-info-table dd {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  margin: 0;
  padding: 13px;
  border: 1px solid #b3b3b3;
}

.nazotoki-info-table dt {
  align-items: center;
  color: #fff;
  background: var(--nazotoki-gold);
  font-size: 1em;
  font-weight: 700;
  text-align: center;
}

.nazotoki-info-table dd {
  border-left: 0;
  background: #fff;
}

.nazotoki-info-table > div + div dt,
.nazotoki-info-table > div + div dd {
  border-top: 0;
}

.nazotoki-info-table a {
  color: #7955cd;
  font-weight: 700;
}

.nazotoki-warning-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 82px 0 44px;
  font-size: 2em;
  text-align: center;
}

.nazotoki-warning-title img {
  flex: none;
  width: 39px;
  height: auto;
}

/* 注意事項を暗いピンクの背景と白文字でまとめる。 */
.nazotoki-warning {
  width: 894px;
  max-width: 100%;
  margin-inline: auto;
  padding: 48px 32px;
  border-radius: 0;
  color: #fff;
  background: #bb0070;
  font-size: 1.375em;
  font-weight: 700;
}

.nazotoki-warning__lead {
  margin: 0 0 28px;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 1em;
  line-height: 1.45;
  text-align: center;
}

.nazotoki-warning__notes {
  margin: 0;
  color: #fff;
  font-size: 0.7em;
}

/* フッター：城内背景に最終CTAと主催者情報を重ねる。 */
.nazotoki-footer {
  position: relative;
  min-height: 918px;
  padding: 310px 0 120px;
  color: #fff;
  background: #281f3b url("/sites/default/files/page/lp/youme-mysteryrally/img/footer-castle-bg.png") center top / cover no-repeat;
}

.nazotoki-footer::before {
  height: 198px;
  background-image: url("/sites/default/files/page/lp/youme-mysteryrally/img/wave-footer-divider.svg");
  /* transform: translateY(-49%); */
}

.nazotoki-footer::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  aspect-ratio: 1400 / 247;
  background: url("/sites/default/files/page/lp/youme-mysteryrally/img/wave-footer-cta.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

/* 1400px以上では下部ウェーブの高さを固定し、フッターテキストへの重なりを防ぐ。 */
@media (min-width: 1400px) {
  .nazotoki-footer::after {
    height: 247px;
    aspect-ratio: auto;
  }
}

.nazotoki-footer__inner {
  position: relative;
  z-index: 2;
  width: min(1000px, calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
}

.nazotoki-cta--footer {
  width: 797px;
  max-width: 100%;
  min-height: 118px;
  margin: 0 auto 58px;
  font-size: 2.5em;
}

.nazotoki-footer p {
  margin: 0;
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1.6;
}

.nazotoki-footer__credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.nazotoki-footer__credit img {
  width: 176px;
  height: auto;
}

.nazotoki-footer small {
  font-size: 0.666667em;
}

/* M PLUS Rounded 1cの文字輪郭に微小な回転を与え、ブラウザ描画時のジャギーを抑える。 */
.nazotoki-section-title,
.nazotoki-gifts__subtitle,
.nazotoki-story__body,
.nazotoki-step-heading,
.nazotoki-howto__access p,
.nazotoki-cta,
.nazotoki-game-steps__image > span,
.nazotoki-gift-card__badge,
.nazotoki-gift-card header,
.nazotoki-gift-card h4,
.nazotoki-gift-card__ar-copy > p,
.nazotoki-gift-card__ar-copy h3,
.nazotoki-warning-title,
.nazotoki-warning__lead,
.nazotoki-warning__notes,
.nazotoki-footer p {
  transform: rotate(0.05deg);
}

/* ストーリー以降の主要要素を、表示領域へ入ったときに下から穏やかに表示する。 */
.nazotoki-reveal-ready .nazotoki-scroll-reveal {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity .7s ease-out,
    translate .7s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, translate;
}

.nazotoki-reveal-ready .nazotoki-scroll-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  will-change: auto;
}

/* タブレット幅：主要画像とカードの余白を画面幅に合わせて縮小する。 */
@media (max-width: 1100px) {
  .nazotoki-hero__content {
    width: 56%;
  }

  .nazotoki-hero__prize-wrap {
    right: 4%;
    bottom: 0;
    width: min(22vw, 240px);
  }

  .nazotoki-hero__character--one,
  .nazotoki-hero__character--two {
    bottom: 80px;
  }

  .nazotoki-hero__character--one {
    width: clamp(92px, 11vw, 112px);
  }

  .nazotoki-hero__character--two {
    width: clamp(100px, 12vw, 120px);
  }

  .nazotoki-story__scroll {
    width: min(900px, 82vw);
  }

  .nazotoki-story__body {
    left: 13%;
    width: 74%;
  }

  .nazotoki-howto__search {
    padding-inline: 7%;
  }

  .nazotoki-howto__search-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .nazotoki-howto__access,
  .nazotoki-howto__game {
    padding-inline: 7%;
  }

  .nazotoki-game-steps {
    gap: 46px 5%;
  }

  .nazotoki-gift-card--ar {
    padding-inline: 7%;
  }
}

/* タブレット縦向きでは中央要素と賞品を画面比率に基づいて配置する。 */
@media (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  .nazotoki-hero__content {
    top: 0;
    height: 100%;
  }

  .nazotoki-hero__pretitle {
    position: absolute;
    top: 15%;
    left: 50%;
    translate: -50% 0;
  }

  .nazotoki-hero__main {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    translate: 0 -50%;
  }

  .nazotoki-hero__title {
    left: 0;
    margin-top: 0;
    translate: 0 0;
  }

  .nazotoki-hero__date-wrap {
    margin-top: 8px;
    translate: 0 0;
  }

  .nazotoki-hero__date-arrow--right {
    right: calc(10% + 30px);
    rotate: 40deg;
  }

  .nazotoki-hero__prize-wrap {
    right: 5%;
    bottom: 6%;
    width: min(24vw, 240px);
  }
}

/* スマホ縦向きではブラウザUIを含む表示領域内にヒーローを収める。 */
@media (max-width: 767px) and (orientation: portrait) {
  .nazotoki-hero {
    height: 100vh;
    max-height: 800px;
    height: 100svh;
    max-height: 800px;
  }
}

/* モバイル幅：カードや表を縦方向へ組み替え、文字とタップ領域を確保する。 */
@media (max-width: 767px) {
  :root {
    --nazotoki-radius: 24px;
  }

  .nazotoki-lp {
    box-shadow: none;
  }

  .nazotoki-section-inner {
    width: min(calc(100% - 28px), 560px);
  }

  .nazotoki-section-title {
    font-size: 2em;
  }

  .nazotoki-hero {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 9 / 16;
    background-position: center top;
  }

  .nazotoki-hero__paper {
    width: 240%;
  }

  .nazotoki-hero__tree {
    width: 330px;
  }

  .nazotoki-hero__tree--left {
    left: -150px;
  }

  .nazotoki-hero__tree--right {
    right: -150px;
  }

  .nazotoki-hero__logos {
    padding: 16px 18px 0;
  }

  .nazotoki-hero__logo-left {
    width: 130px;
  }

  .nazotoki-hero__logo-right {
    width: 82px;
  }

  .nazotoki-hero__content {
    top: 80px;
    width: calc(100% - 24px);
  }

  .nazotoki-hero__pretitle {
    width: min(78vw, 390px);
  }

  .nazotoki-hero__title {
    left: -10px;
    width: min(77vw, 506px);
    margin-top: 80px;
  }

  .nazotoki-hero__date-wrap {
    width: min(396px, 84vw);
    margin-top: 0;
  }

  .nazotoki-hero__title {
    translate: 0 -50px;
  }

  .nazotoki-hero__date-wrap {
    translate: 0 -20px;
  }

  .nazotoki-hero__character--one {
    left: 7%;
    width: 95px;
    bottom: 44px;
  }

  .nazotoki-hero__character--two {
    left: 28%;
    width: 100px;
    bottom: 44px;
  }

  .nazotoki-hero__prize-wrap {
    right: 3%;
    bottom: 12px;
    width: min(38%, 185px);
  }

  .nazotoki-hero__date-arrow--right {
    display: none;
  }

  .nazotoki-hero__date-arrow--down {
    display: block;
  }

  .nazotoki-hero__foreground {
    width: 100%;
    bottom: 0;
  }

  .nazotoki-story {
    height: auto;
    min-height: 946px;
    padding: 76px 14px 0;
    background-size: auto 540px;
  }

  .nazotoki-story__top {
    left: 0;
    width: 200%;
  }
  .nazotoki-story__scroll {
    width: 100%;
    height: auto;
    min-height: 870px;
    margin: 0 auto;
    padding: 86px 32px 84px;
    border-radius: 10px;
    background: transparent;
    box-shadow: 0 14px 26px rgba(0, 0, 0, .35);
  }

  .nazotoki-story__scroll::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    background: #e7bc85 url("/sites/default/files/page/lp/youme-mysteryrally/img/story-paper-top.png") center / cover no-repeat;
    pointer-events: none;
  }

  .nazotoki-story__torch {
    top: 50px;
    width: 392px;
  }

  .nazotoki-story__torch--left {
    left: -196px;
  }

  .nazotoki-story__torch--right {
    right: -196px;
  }

  .nazotoki-story__paper-top,
  .nazotoki-story__paper-bottom {
    display: none;
  }

  .nazotoki-story__paper-bottom {
    display: block;
    left: -3%;
    width: 108%;
    max-width: none;
  }

  .nazotoki-story__body {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    font-size: 0.875em;
    line-height: 1.65;
  }

  .nazotoki-story__body h2 {
    margin-bottom: 28px;
    font-size: 2.285714em;
  }

  .nazotoki-story__body p {
    margin-bottom: 16px;
  }

  .nazotoki-story__character {
    top: 54px;
    left: -7px;
    width: 82px;
  }

  .nazotoki-story__chest {
    right: -8px;
    bottom: 17px;
    width: 124px;
    height: 140px;
  }

  .nazotoki-howto {
    padding: 92px 0 46px;
  }

  .nazotoki-howto::before,
  .nazotoki-gifts::before,
  .nazotoki-info::before,
  .nazotoki-footer::before {
    height: 70px;
  }

  .nazotoki-info::before {
    transform: translateY(-50px) rotate(180deg);
  }

  .nazotoki-howto__title,
  .nazotoki-gifts__title {
    margin-bottom: 38px;
  }

  .nazotoki-gifts__subtitle {
    font-size: 1em;
  }

  .nazotoki-howto .nazotoki-card + .nazotoki-card {
    margin-top: 28px;
  }

  .nazotoki-howto__search,
  .nazotoki-howto__access,
  .nazotoki-howto__game {
    padding: 28px 20px 34px;
  }

  .nazotoki-step-heading {
    margin-bottom: 26px;
    padding-left: 44px;
    font-size: 1.25em;
  }

  .nazotoki-step-heading > span {
    width: 32px;
    height: 32px;
    font-size: 0.8em;
  }

  .nazotoki-howto__search-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .nazotoki-schedule {
    font-size: 0.8125em;
  }

  .nazotoki-schedule th,
  .nazotoki-schedule td {
    height: 54px;
    padding: 8px;
  }

  .nazotoki-schedule th:first-child,
  .nazotoki-schedule td:first-child {
    width: 31%;
  }

  .nazotoki-howto__notes,
  .nazotoki-howto__access p {
    font-size: 0.8125em;
  }

  .nazotoki-howto__access p {
    margin: 0 0 22px;
  }

  .nazotoki-cta {
    min-height: 62px;
    padding: 14px 24px;
    font-size: 1.375em;
  }

  .nazotoki-cta--inline {
    width: 100%;
    font-size: 1.25em;
  }

  .nazotoki-game-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 18px;
    margin: 28px 0 38px;
  }

  .nazotoki-game-steps p,
  .nazotoki-game-steps__footnotes {
    font-size: 0.75em;
  }

  .nazotoki-game-steps p.nazotoki-game-steps__note {
    font-size: 0.75em;
  }

  .nazotoki-game-steps__decoration {
    min-height: 180px;
  }

  .nazotoki-game-steps__decoration img:first-child {
    bottom: 76px;
    width: 70px;
  }

  .nazotoki-game-steps__decoration img:last-child {
    width: 130px;
  }

  .nazotoki-gifts {
    padding: 110px 0 125px;
    background-size: auto 560px, 100% 100%;
  }

  .nazotoki-gift-card {
    padding: 72px 20px 32px;
  }

  .nazotoki-gift-card__badge {
    top: -18px;
    left: 16px;
    width: 90px;
    height: 90px;
    font-size: 0.875em;
  }

  .nazotoki-gift-card header {
    padding-left: 0;
  }

  .nazotoki-gift-card header p,
  .nazotoki-gift-card__ar-copy > p {
    font-size: 1.0625em;
  }

  .nazotoki-gift-card h3 {
    font-size: 1.6875em;
  }

  .nazotoki-gift-card__grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .nazotoki-gift-card h4 {
    font-size: 1.3125em;
  }

  .nazotoki-gift-card__grid p {
    font-size: 0.8125em;
  }

  .nazotoki-gift-card--ar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 94px 24px 36px;
  }

  .nazotoki-gift-card--ar figure {
    width: 230px;
    height: 230px;
  }

  .nazotoki-gift-card--ar figure img {
    width: 126px;
  }

  .nazotoki-gift-card__ar-copy {
    margin-top: 15px;
    text-align: center;
  }

  .nazotoki-gift-card__ar-break {
    display: inline;
  }

  .nazotoki-gift-card__ar-copy small {
    font-size: 0.8125em;
  }

  .nazotoki-info {
    padding: 86px 0 120px;
  }

  .nazotoki-info .nazotoki-section-title {
    margin-bottom: 38px;
  }

  .nazotoki-info-table {
    font-size: 0.8125em;
  }

  .nazotoki-info-table > div {
    grid-template-columns: 31% 1fr;
  }

  .nazotoki-info-table dt,
  .nazotoki-info-table dd {
    min-height: 54px;
    padding: 8px;
  }

  .nazotoki-warning-title {
    margin: 54px 0 28px;
    font-size: 1.4375em;
  }

  .nazotoki-warning-title img {
    width: 32px;
  }

  .nazotoki-warning {
    padding: 28px 22px;
    font-size: 0.875em;
  }

  .nazotoki-footer {
    min-height: 620px;
    padding: 220px 0 80px;
    background-position: center top;
  }

  .nazotoki-footer::after {
    bottom: -1px;
  }

  #tenpo {
    position: relative;
    z-index: 2;
    margin-top: -2px;
  }

  .nazotoki-footer__inner {
    width: calc(100% - 28px);
  }

  .nazotoki-cta--footer {
    min-height: 74px;
    margin-bottom: 36px;
    font-size: 1.5em;
  }

  .nazotoki-footer p {
    font-size: 1.0625em;
  }

  .nazotoki-footer__credit img {
    width: 132px;
  }

  .nazotoki-footer small {
    font-size: 0.705882em;
  }
}

/* 小型スマートフォンの縦向きではヒーロー内の要素を詰め、重なりを防ぐ。 */
@media (max-width: 390px) and (orientation: portrait) {
  .nazotoki-hero__content {
    top: 70px;
  }

  .nazotoki-hero__pretitle {
    width: min(65vw, 255px);
  }

  .nazotoki-hero__title,
  .nazotoki-hero__date-wrap {
    position: relative;
    top: 50px;
  }

  .nazotoki-hero__title {
    margin-top: 40px;
  }

  .nazotoki-hero__date-wrap {
    width: min(336px, 84vw);
    margin-top: -22px;
  }

  .nazotoki-hero__character--one {
    width: 78px;
    bottom: 64px;
  }

  .nazotoki-hero__character--two {
    width: 82px;
    bottom: 64px;
  }
}

/* 小型スマートフォンでもゲーム手順の2列表示を維持する。 */
@media (max-width: 390px) {
  .nazotoki-game-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .nazotoki-game-steps__image {
    max-width: 230px;
  }
}

/* 3つの横長装飾画像を中央基準で配置し、画面幅に応じて左右へ拡大する。 */
.nazotoki-hero__foreground,
.nazotoki-story__top {
  left: 50%;
  translate: -50% 0;
}

.nazotoki-hero__paper,
.nazotoki-hero__foreground,
.nazotoki-story__top {
  width: 100%;
  max-width: none;
}

@media (max-width: 1919px) {
  .nazotoki-hero__paper,
  .nazotoki-hero__foreground,
  .nazotoki-story__top {
    width: 150%;
  }
}

@media (max-width: 1679px) {
  .nazotoki-hero__paper,
  .nazotoki-hero__foreground,
  .nazotoki-story__top {
    width: 175%;
  }
}

@media (max-width: 1279px) {
  .nazotoki-hero__paper,
  .nazotoki-hero__foreground,
  .nazotoki-story__top {
    width: 200%;
  }
}

@media (max-width: 767px) {
  .nazotoki-hero__paper,
  .nazotoki-hero__foreground,
  .nazotoki-story__top {
    width: 300%;
  }
}

@media (max-width: 519px) {
  .nazotoki-hero__paper,
  .nazotoki-hero__foreground,
  .nazotoki-story__top {
    width: 400%;
  }
}
