/*---------------------------------------------
カラー変数・基本フォント
---------------------------------------------*/
:root {
  --rose: #dc4e7a;
  --ink: #b72272;
  --blue: #c2e5e8;
  font-family: "M PLUS Rounded 1c", sans-serif;
  color: var(--ink);
}
/*---------------------------------------------
body・ページ共通
---------------------------------------------*/
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
img, picture { display: block; width: 100%; }
img { height: auto; }
.mobile-break { display: none; }
/*---------------------------------------------
メインビジュアルは画面幅いっぱいに表示
---------------------------------------------*/
.hero { width: 100%; }

@media (min-width: 768px) {
  /* PC版のみ背景を全面に敷き、透過PNGは画面内に収める */
  .hero {
    background: url("../img/pc_main_bg02.jpg") center top / cover no-repeat;
  }
  .hero picture {
    height: min(100vh, 75.34vw);
    height: min(100svh, 75.34vw);
    padding: clamp(8px, 1.5vh, 24px) 3%;
  }
  .hero img {
    height: 100%;
    object-fit: contain;
  }
}
body { background: #fff; }
/*---------------------------------------------
ガチャ抽選会・賞品の背景と上下の余白
---------------------------------------------*/
.campaign {
  padding: clamp(42px, 11vw, 160px) 0 clamp(40px, 10.5vw, 150px);
  background-color: var(--blue);
  /* 雪柄は上端と下端に1枚ずつ配置。表示幅は background-size で調整。 */
  background-image: url("../img/bg_moyo01.png"), url("../img/bg_moyo02.png");
  background-position: center top, center bottom;
  background-repeat: no-repeat;
  background-size: min(100%, 1440px) auto;
}
.campaign-panel {
  position: relative;
  width: min(86%, 1240px);
  margin: auto;
  padding: 0 5.9% clamp(32px, 8vw, 115px);
  border-radius: clamp(16px, 4.5vw, 65px);
  background: #fff;
}
.campaign-panel::before {
  position: absolute;
  inset: clamp(5px, 1.7vw, 24px);
  border: 2px dotted var(--rose);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}
.campaign-heading { position: relative; top: clamp(-106px, -7.4vw, -32px); width: 108%; margin: 0 -4% clamp(-86px, -6vw, -20px); }
.campaign-banner { width: 93%; margin: 0 auto; }
/*---------------------------------------------
開催日・会場・参加手順のピンクの囲み
---------------------------------------------*/
.campaign-info {
  position: relative;
  width: 78%;
  margin: 0 auto;
  padding: 2.8%;
  border-radius: clamp(12px, 3vw, 42px);
  background: #f8d1dd;
  font-size: clamp(14px, 2.5vw, 36px);
  font-weight: 800;
}
.campaign-info::before, .campaign-info::after {
  position: absolute;
  width: 12%;
  aspect-ratio: 1;
  background: center / contain no-repeat;
  content: "";
}
.campaign-info::before { right: 119%; top: -13%; background-image: url("../img/moyo01.png"); }
.campaign-info::after { left: 118%; bottom: 5%; background-image: url("../img/moyo02.png"); }
.schedule { display: flex; align-items: center; gap: 4%; }
.schedule strong { flex: 0 0 31%; padding: .15em .35em; background: var(--rose); border-radius: .65em; color: white; text-align: center; font-size: .76em; }
.schedule small { font-size: .6em; white-space: nowrap; }
.dates { display: flex; align-items: center; justify-content: space-between; gap: .1em; margin: .25em 0 .36em; font-size: 1.32em; line-height: 1.2; white-space: nowrap; }
.month { font-size: .65em; }
.dates b { display: inline-grid; width: 1.4em; height: 1.4em; margin-left: .15em; place-items: center; vertical-align: .18em; border-radius: 50%; color: #fff; background: var(--rose); font-size: .55em; }
.dates .sat { background: #3c509e; }
.steps { display: flex; gap: 4%; list-style: none; padding: 0; margin: .65em 0 .45em; }
.steps li { flex: 1; min-width: 0; position: relative; }
.steps img { width: 100%; height: auto; }
.steps li + li::before { position: absolute; right: 102%; top: 37%; width: 8%; height: 27%; background: url("../img/ya.png") center / contain no-repeat; content: ""; }
.notes { font-size: .69em; }
.excluded { margin-top: .55em; font-size: .55em; }
.excluded small { display: inline-block; font-size: .86em; font-weight: 500; }
.prize-heading { position: relative; width: 100%; margin: 3.2% 0 0; }
.prize-heading picture { width: 44%; margin-inline: auto; }
.prize-character { position: absolute; bottom: 4%; }
.prize-character.left { left: -1%; width: 12%; }
.prize-character.right { right: -1%; width: 16%; }
/*---------------------------------------------
賞品の並び。PCは上段2列、残りは3列
---------------------------------------------*/
.prize-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6%; padding: 0; margin: 0; align-items: end; list-style: none; }
.prize-grid li { grid-column: span 2; }
.prize-grid li:nth-child(-n+2) { grid-column: span 3; }
/*---------------------------------------------
館内装飾セクションのストライプ背景
---------------------------------------------*/
.decoration { background: repeating-linear-gradient(55deg, #fff 0 12px, #bfe3e6 12px 24px, #fff 24px 36px, #f5c3da 36px 48px); }
.decoration-inner { width: min(78%, 1120px); margin: auto; padding: clamp(24px, 6vw, 86px) 0 clamp(18px, 4.8vw, 69px); }
/*---------------------------------------------
装飾の期間・場所の案内
---------------------------------------------*/
.decoration-info { width: 68%; margin: 1.8% auto 3.6%; padding: 2% 4%; background: white; border: 2px solid currentColor; border-radius: 6px; font-size: clamp(12px, 1.85vw, 26px); font-weight: 800; }
.decoration-info div { display: flex; gap: .8em; align-items: flex-start; }
.decoration-info div + div { margin-top: .32em; }
.decoration-info dt { flex: 0 0 4em; text-align: center; background: var(--ink); color: white; font-size: .82em; padding: .25em 0; }
.decoration-info dd span { display: inline-block; }
/*---------------------------------------------
装飾紹介文のみ。完成PDFに合わせて見出し800、本文500
---------------------------------------------*/
.decoration-copy { width: 86%; margin: auto auto 5.5%; padding: 3% 2%; background: white; border-radius: 999px; text-align: center; font-family: "M PLUS Rounded 1c", sans-serif; font-size: clamp(12px, 1.9vw, 26px); font-weight: 500; }
.decoration-copy h3 { font-weight: 800; font-size: 1.28em; margin-bottom: .25em; }
/*---------------------------------------------
装飾写真はPCで横2枚、スマホで縦2枚
---------------------------------------------*/
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5%; padding-inline: 2.5%; }
.photos img { border-radius: 8%; }
/*---------------------------------------------
テレビ枠と動画。画面の位置は .screen の inset で調整
---------------------------------------------*/
.timelapse { width: 89%; margin: 2.7% auto 0; }
.tv { position: relative; }

/*---------------------------------------------
テレビの左右の飾り。再生ボタンや動画操作を妨げないようにする
---------------------------------------------*/
.tv::before,
.tv::after {
  position: absolute;
  z-index: 1;
  background: center / contain no-repeat;
  pointer-events: none;
  content: "";
}
.tv::before {
  top: 39%;
  left: -13%;
  width: 21%;
  aspect-ratio: 428 / 1111;
  background-image: url("../img/movie_moyo01.png");
}
.tv::after {
  top: 14%;
  right: -13%;
  width: 25%;
  aspect-ratio: 506 / 1012;
  background-image: url("../img/movie_moyo02.png");
}
.screen { position: absolute; inset: 31% 9% 7%; border: clamp(5px, 1.8vw, 25px) solid #9ca8d0; border-radius: clamp(12px, 5vw, 66px); overflow: hidden; display: grid; place-items: center; background: #ebe9e8; color: #111; font-weight: 800; font-size: clamp(12px, 2.4vw, 34px); }
.screen:has(video) { background: #000; }
.screen video { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
/*---------------------------------------------
動画の再生ボタン
---------------------------------------------*/
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.video-play span {
  display: grid;
  place-items: center;
  width: clamp(44px, 7vw, 88px);
  aspect-ratio: 1;
  margin: auto;
  padding-left: .1em;
  font-size: 26.666px;
  line-height: 1;
  border-radius: 50%;
  background: #d92340;
}
.video-play:hover span { background: #b91832; }
.video-play:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
figcaption { margin: 2.8% auto 0; color: #111; text-align: center; font-size: clamp(11px, 1.45vw, 21px); font-weight: 700; }
/*---------------------------------------------
フッターのロゴ・著作権表記・公式サイトボタン
---------------------------------------------*/
footer { padding: clamp(22px, 4vw, 58px) 12px clamp(24px, 6vw, 86px); text-align: center; }
footer img { width: min(45%, 430px); margin: 0 auto; }
.copyright { margin: 1.4em auto 2.2em; display: flex; justify-content: center; gap: 1em; color: #27112d; font-size: clamp(8px, .85vw, 12px); font-weight: 800; }
footer a { display: inline-block; padding: .85em 3.4em; border-radius: 999px; background: var(--rose); color: white; font-size: clamp(13px, 1.5vw, 22px); font-weight: 800; text-decoration: none; }
footer a:hover { background: var(--ink); }

/*---------------------------------------------
ページ上部へ戻るボタン
---------------------------------------------*/
.page-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .page-top {
    transition: opacity .25s ease, visibility 0s linear .25s;
  }
  .page-top.is-visible {
    transition-delay: 0s;
  }
}
footer .page-top a {
  display: inline-flex;
  width: clamp(64px, 9vw, 88px);
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2em;
  padding: 0;
  border-radius: 50%;
  background: #d92340;
  color: #fff;
  font-size: clamp(15px, 2vw, 22px);
  line-height: 1;
}
footer .page-top a:hover {
  background: #b91832;
}
.page-top svg {
  width: 1.65em;
  height: auto;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/*---------------------------------------------
大画面で抽選会パネルの横余白を固定
---------------------------------------------*/
@media (min-width: 1441px) {
  .campaign-panel { padding-inline: 85px; }
}
/*---------------------------------------------
スマホ用の調整。画像の切替幅は index.php の media と揃える
---------------------------------------------*/
@media (max-width: 767px) {
  .campaign { padding: 12vw 0 11vw; }
  .campaign-panel { width: 93%; padding: 0 5.5% 12vw; }
  .campaign-heading { top: -10vw; width: 119%; margin: 0 -9.5% -9vw; }
  .campaign-banner { width: 100%; }
  .campaign-info { width: 100%; padding: 4.2% 5%; font-size: clamp(17px, 5.5vw, 36px); text-align: center; }
  .campaign-info::before, .campaign-info::after, .prize-character, .slash, .desktop-only { display: none; }
  .schedule { display: flex; flex-direction: column; gap: .2em; }
  .schedule strong { width: 55%; }
  .schedule small { display: block; }
  .dates { flex-direction: column; gap: 0; }
  .month { margin: .12em 0; }
  .steps { flex-direction: column; width: 80%; gap: 7vw; margin: .65em auto; }
  .steps li + li::before { top: -3.5vw; left: 50%; right: auto; width: 16%; height: 7vw; transform: translate(-50%, -50%) rotate(90deg); }
  .notes, .excluded { text-align: left; }
  .notes span { display: block; }
  .prize-heading { margin-top: 4%; }
  .prize-heading picture { width: 96%; }
  .prize-grid { grid-template-columns: 1fr; gap: 2vw; }
  .prize-grid li, .prize-grid li:nth-child(-n+2) { grid-column: auto; }
  .decoration { background-size: auto; }
  .decoration-inner { width: 94%; padding: 6vw 0; }
  /* 期間・場所の文字サイズは 11px / 3vw / 20px をそれぞれ1.2倍 */
  .decoration-info { width: 94%; font-size: clamp(13.2px, 3.6vw, 24px); }
  .decoration-info div { gap: .55em; }
  .mobile-break { display: initial; }
  .decoration-copy { width: 95%; border-radius: 4vw; font-size: clamp(11px, 3.15vw, 21px); }
  .decoration-copy h3 { font-size: 1.08em; }
  .photos { grid-template-columns: 1fr; gap: 3vw; }
  .timelapse { width: 96%; }
  /* スマホ版PDFでは左の飾りを画面下寄り、右の飾りを上寄りに配置 */
  .tv::before { top: 53%; left: -2%; width: 16%; }
  .tv::after { top: 20%; right: 0; width: 16%; }
  .screen { border-width: 2vw; border-radius: 6vw; }
  figcaption { max-width: 100%; font-size: clamp(11px, 3vw, 20px); }
  footer img { width: 83%; max-width: 430px; }
  .copyright { flex-direction: column; gap: 0; margin-block: 1em 2em; }
}

/*---------------------------------------------
初回表示とスクロール時のフェード
---------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
  body {
    animation: page-fade-in 2.8s ease both;
  }

  .reveal-pending {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .9s ease;
  }

  .reveal-pending.is-revealed,
  .reveal-pending:focus-within {
    opacity: 1;
    transform: none;
  }
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
