/* ============================================================
   スワローズトレカ 4th ANNIVERSARY プレゼントキャンペーン LP
   ============================================================ */

:root {
  --green-deep: #0b6a2f;
  --green-main: #149a44;
  --green-ray: #1fae52;
  --green-light: #58c878;
  --navy: #0e2a6d;
  --navy-deep: #091d4e;
  --red: #e5002d;
  --red-deep: #c00026;
  --yellow: #ffe33f;
  --cream: #fffdf2;
  --ink: #222;
  --font-round: "Noto Sans JP", sans-serif;
  --font-base: "Noto Sans JP", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-base);
  color: var(--ink);
  /* PC時の左右マージン：暗いネイビー地にモノクロロゴをスクリーン合成でタイル（賑やかし） */
  background: url("assets/bg_logo_tile.png") repeat 0 0 / 240px 240px var(--navy-deep);
  background-blend-mode: screen;
  line-height: 1.6;
}

/* SP版メイン：1024px以下はカードを全幅化（fightersLPと同方式） */
@media (max-width: 1024px) {
  body {
    background: var(--green-main);
  }

  .lp {
    max-width: none;
    box-shadow: none;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.nb {
  display: inline-block;
}

.sp-only {
  display: none;
}

@media (max-width: 480px) {
  .sp-only {
    display: inline;
  }
}

/* ============ LAYOUT ============ */

.lp {
  max-width: 520px;
  margin: 0 auto;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 14px, transparent 14px 28px)
    var(--green-main);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* 注意：section 自体は positioned にしない。
   positioned にするとセクション背景が紙吹雪(z-index:0)より上に描画されてしまう */
section {
  padding: 40px 20px;
}

/* 紙吹雪(z-index:0)より上にコンテンツを持ち上げる。
   セクション背景は非positionedなので紙吹雪の下に残る */
section > *,
.footer {
  position: relative;
  z-index: 1;
}

/* ============ REVEAL ============ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  /* none にしてスタッキングコンテキストを残さない（紙吹雪の背面配置に必要） */
  transform: none;
}

/* ============ PLACEHOLDER ============ */

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 700;
  background:
    linear-gradient(45deg, #f1f1f1 25%, #e7e7e7 25%, #e7e7e7 50%, #f1f1f1 50%, #f1f1f1 75%, #e7e7e7 75%),
    #f1f1f1;
  background-size: 24px 24px;
  border: 2px dashed #c9c9c9;
  border-radius: 6px;
}

.ph--kv {
  aspect-ratio: 4 / 3;
}

.ph--goods {
  aspect-ratio: 1 / 1;
}

.ph--screen {
  aspect-ratio: 9 / 16;
}

.ph--wide {
  aspect-ratio: 16 / 9;
}

/* ============ CONFETTI ============ */

.confetti {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  /* テキスト・ボックス(z-index:1)より下、セクション背景より上 */
  z-index: 0;
}

.confetti i {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  opacity: 0.85;
  animation: confetti-fall linear infinite;
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(0, -20px, 0) rotateZ(0deg) rotateY(0deg);
  }
  100% {
    transform: translate3d(var(--sway, 40px), 105vh, 0) rotateZ(var(--spin, 540deg)) rotateY(720deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .confetti {
    display: none;
  }
}

/* ============ CHARACTER (ひょこっと) ============ */

/* クリップ窓：カード上端に窓を置き、中で画像がせり上がる。
   窓はキャラより一回り大きく（左右+24px・上+32px）取り、
   回転による左右の見切れとバウンス時の頭の見切れを防ぐ。
   下辺だけカード上端に揃えてクリップする */
.chara {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chara img {
  display: block;
  transform: translateY(101%);
  transform-origin: 50% 100%;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --up: 画像下端を窓下端に置いたまま、見せたい高さだけ上に出す下方向オフセット */
.peek.is-visible img {
  transform: translateY(var(--up, 56%)) rotate(var(--tilt, 0deg));
}

/* タイトル左詰めで空いた右側に大きく配置（テキストと同じラインに並ぶ） */
.chara--entry { top: -169px; right: -14px; width: 178px; height: 170px; --tilt: 3deg; --up: 40.5%; }
.chara--entry img { width: 130px; }

.chara--period { top: -109px; right: -10px; width: 152px; height: 110px; --tilt: -4deg; --up: 57.2%; }
.chara--period img { width: 104px; }

.chara--mission { top: -169px; right: -12px; width: 178px; height: 170px; --tilt: 4deg; --up: 39.8%; }
.chara--mission img { width: 130px; }

.chara--regist { top: -159px; right: -12px; width: 168px; height: 160px; --tilt: -3deg; --up: 40.2%; }
.chara--regist img { width: 120px; }

.chara--event { top: -139px; right: -12px; width: 148px; height: 140px; --tilt: 3deg; --up: 42.3%; }
.chara--event img { width: 100px; }

@media (prefers-reduced-motion: reduce) {
  .chara img,
  .peek.is-visible img {
    transform: translateY(var(--up, 56%));
    transition: none;
  }
}

/* ============ SECTION TITLE ============ */

.sec-ttl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 24px;
  text-align: left;
  font-family: var(--font-round);
}

.sec-ttl__sub {
  display: inline-block;
  padding: 3px 18px;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sec-ttl__main {
  color: #fff;
  font-size: clamp(19px, 5.9vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.sec-ttl__main em {
  font-style: normal;
  color: var(--yellow);
}

.sec-ttl--dark .sec-ttl__sub {
  background: var(--red);
  color: #fff;
}

/* ============ HERO ============ */

.hero {
  padding: 0;
  background: var(--navy);
}

.hero__kv {
  width: 100%;
}

.hero__kv img {
  width: 100%;
  display: block;
}

/* ============ PRIZE ============ */

.prize {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 14px, transparent 14px 28px)
    var(--navy);
}

.prize__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.prize-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

.prize-card__head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 10px;
  background: #f0f0f0;
  color: var(--ink);
}

.prize-card__rank {
  align-self: flex-start;
  padding: 2px 12px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.prize-card__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.prize-card__count {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: baseline;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.prize-card__count small {
  font-size: 11px;
  margin-left: 2px;
}

.prize-card__img {
  padding: 10px;
  background: #fff;
  flex: 1;
}

.prize__note {
  margin-top: 20px;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

.prize__note strong {
  font-family: var(--font-round);
  font-size: 17px;
  font-weight: 900;
  color: var(--yellow);
}

/* ============ PERIOD ============ */

.period {
  /* キャラ(高さ78px+バウンス余白)が前セクションのテキストに重ならないよう上を広めに */
  padding-top: 96px;
}

.period__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--navy);
  border-radius: 8px;
  border: 3px solid #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
}

.period__label {
  padding: 3px 20px;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-round);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.period__date {
  text-align: center;
}

.period__main {
  color: #fff;
  font-family: var(--font-round);
  font-size: clamp(16px, 5.2vw, 21px);
  font-weight: 900;
  line-height: 1.5;
}

/* ============ ENTRY ============ */

.entry {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 14px, transparent 14px 28px)
    var(--navy);
}

.entry__card {
  position: relative;
  margin-top: 16px;
  padding: 24px 16px;
  background: var(--cream);
  border-radius: 8px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  text-align: center;
}

.entry__lead {
  font-size: 16px;
  line-height: 1.8;
}

.entry__lead strong {
  font-family: var(--font-round);
  font-size: 19px;
  font-weight: 900;
  color: var(--red);
}

.entry__flow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 20px 0 24px;
  list-style: none;
  counter-reset: flow;
}

.entry__flow-item {
  position: relative;
  counter-increment: flow;
}

.entry__flow-item::before {
  content: counter(flow);
  position: absolute;
  top: -8px;
  left: -4px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-round);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.entry__flow-item:not(:last-child)::after {
  content: "▶";
  position: absolute;
  top: 50%;
  right: -9px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--green-main);
  font-size: 11px;
}

.entry__note {
  margin: -10px 0 20px;
  font-size: 12px;
  color: #767676;
}

/* ============ CTA ============ */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 16px 40px 18px 24px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff5a3c 0%, var(--red) 55%, var(--red-deep) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 0 #8f001c, 0 8px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #8f001c;
}

.cta__sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
}

.cta__main {
  font-family: var(--font-round);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.cta__arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 14px;
}

.cta--xl {
  max-width: 440px;
  padding: 20px 44px 22px 28px;
}

.cta--xl .cta__main {
  font-size: 21px;
}

/* ============ MISSION ============ */

.mission__lead-box {
  position: relative;
  margin-bottom: 14px;
  padding: 18px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.mission__lead {
  text-align: center;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
}

.mission__lead strong {
  font-family: var(--font-round);
  font-size: 16px;
  font-weight: 800;
  color: var(--red);
}

.mission__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.mission-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 18px;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 8px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

/* 外枠は口数バッジの背景色と揃える */
.mission-card:has(.mission-card__pt--2) {
  border-color: #1d5fbf;
}

.mission-card:has(.mission-card__pt--3) {
  border-color: #d86400;
}

.mission-card__txt {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.mission-card__pt {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-shrink: 0;
  min-width: 74px;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-round);
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.mission-card__pt small {
  font-size: 12px;
  margin-left: 1px;
}

.mission-card__pt--1 {
  background: var(--navy);
}

.mission-card__pt--2 {
  background: #1d5fbf;
}

.mission-card__pt--3 {
  background: #d86400;
}

.mission__more {
  margin-top: 26px;
  text-align: center;
  color: #fff;
  font-family: var(--font-round);
  font-size: clamp(15px, 4.6vw, 19px);
  font-weight: 800;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mission__more em {
  font-style: normal;
  color: var(--yellow);
  font-size: 24px;
}

.mission__note {
  margin-top: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.btn-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin: 18px auto 0;
  padding: 13px 20px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-round);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-detail:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* ============ REGIST ============ */

.regist {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 14px, transparent 14px 28px)
    var(--navy);
  text-align: center;
}

/* 注意：overflow:hidden にするとキャラのクリップ窓ごと切れるので、
   角丸と影は img 側に付ける */
.regist__visual {
  position: relative;
  max-width: 460px;
  margin: 16px auto 16px;
}

.regist__visual > img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.regist__note {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

/* ============ NOTES ============ */

.notes {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 14px, transparent 14px 28px)
    var(--green-main);
}

.notes__block {
  margin-bottom: 24px;
  padding: 20px 18px;
  background: #fff;
  border-radius: 8px;
}

.notes__block:last-child {
  margin-bottom: 0;
}

.notes__h {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--green-main);
  color: var(--navy);
  font-family: var(--font-round);
  font-size: 17px;
  font-weight: 900;
}

.notes__list {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
}

.notes__list li {
  margin-bottom: 6px;
}

.notes__list li:last-child {
  margin-bottom: 0;
}

.notes__links {
  margin-top: 14px;
  list-style: none;
}

.notes__links li {
  margin-bottom: 6px;
}

.notes__links a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

/* ============ EVENT ============ */

.event {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 14px, transparent 14px 28px)
    var(--navy);
}

.event__item {
  position: relative;
  max-width: 460px;
  margin: 0 auto 18px;
  padding: 24px 16px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
  text-align: center;
}

.event__item:first-of-type {
  margin-top: 16px;
}

.event__item-date {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 14px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.event__item-ttl {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}

.event__item-desc {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.8;
}

.event__item-desc strong {
  color: var(--red);
}

.event__item-note {
  margin-bottom: 12px;
  font-size: 11px;
  color: #767676;
  line-height: 1.7;
  text-align: left;
}

.event__item-banner {
  border-radius: 6px;
  overflow: hidden;
}

.event__soon {
  margin-top: 26px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
}

.event__coming {
  margin-top: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  letter-spacing: 0.14em;
}

/* ============ FINAL ============ */

.final {
  padding-bottom: 56px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.15), transparent 60%),
    repeating-conic-gradient(
      from 0deg at 50% 45%,
      var(--green-main) 0deg 11.25deg,
      var(--green-ray) 11.25deg 22.5deg
    );
}

.final__pre {
  margin-bottom: 10px;
  color: var(--yellow);
  font-family: var(--font-round);
  font-size: 17px;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.final__ttl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-round);
}

.final__ttl-sub {
  align-self: center;
  padding: 3px 18px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.final__ttl-main {
  color: #fff;
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 4px 0 var(--navy-deep);
}

/* ============ CAMPAIGN ENDED ============ */

.campaign-ended {
  position: relative;
  z-index: 2;
  padding: 18px 16px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  border-top: 3px solid var(--navy-deep);
  border-bottom: 3px solid var(--navy-deep);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.campaign-ended__inner {
  display: inline-block;
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.35);
  line-height: 1.4;
}

/* キャンペーン期間カード内の終了告知 */
.period__ended {
  margin-top: 4px;
  padding: 10px 14px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  border: 2px solid var(--yellow);
  border-radius: 8px;
  color: #fff;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.4;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

/* 常時フロート終了告知 */
.ended-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)) 14px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  border-top: 3px solid var(--navy-deep);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.ended-float__inner {
  display: inline-block;
  font-size: clamp(15px, 4.4vw, 20px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
  line-height: 1.4;
}

/* フロートに隠れないよう下部に余白 */
.footer {
  padding-bottom: 76px !important;
}

/* ============ FOOTER ============ */

.footer {
  padding: 20px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 12px;
}
