@charset "UTF-8";
/* ==========================================================
   共通：変数 / リセット / ヘッダー / フッター / 装飾 / 見出し
   ブレークポイント：768px未満をSP表示
   ========================================================== */
:root {
  --c-navy: #1f2557;
  --c-pink: #f2297a;
  --c-pink-chip: #e6277b;
  --c-purple: #6b3fe6;
  --c-yellow: #ffe14d;
  --c-marker: #ffea84;
  --c-lavender: #efecfb;
  --c-lavender-2: #f2effc;
  --c-cream: #fff9e6;
  --c-cream-2: #fff5d0;
  --c-sky: #3ba3e8;

  --f-dela: "Dela Gothic One", sans-serif;
  --f-pop: "Mochiy Pop One", sans-serif;
  --f-round: "M PLUS Rounded 1c", sans-serif;
  --f-hand: "Yusei Magic", sans-serif;

  /* 1440pxデザイン基準の単位。1440px以上では1pxで止まる */
  --u: min(calc(100vw / 1440), 1px);
  --header-h: 80px;
}

@media (max-width: 767.98px) {
  :root {
    /* SPは375px基準。大きめの端末では1.5倍で止めて中央寄せにする */
    --u: min(calc(100vw / 375), 1.5px);
    --header-h: 56px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  /* 上スクロール（オーバースクロール）時に見える背景をヘッダーと同じ黄色に */
  background-color: var(--c-yellow);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding-top: var(--header-h);
  overflow-x: clip;
  color: var(--c-navy);
  /* ヘッダー下の余白（padding-top）が上スクロール時に見えるため、ヘッダーと同じ黄色にする */
  background: var(--c-yellow);
  font-family: var(--f-round);
  font-weight: 800;
  line-height: 1.6;
}
/* ページ下半分ではフッター色に切り替える（js/main.js で .is-lower を付与） */
html.is-lower { background-color: #fdfdfd; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-purple); outline-offset: 2px; }

.sp-only { display: none; }
@media (max-width: 767.98px) {
  .pc-only { display: none; }
  .sp-only { display: revert; }
}

/* 画面幅いっぱいのセクション＋中央寄せの内側コンテンツ */
.section {
  position: relative;
  width: 100%;
  overflow-x: clip;
}
.section__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}

/* 装飾レイヤー：デザイン座標（中心点）で配置する */
.stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(1440 * var(--u));
  height: 100%;
  margin-left: calc(-720 * var(--u));
  pointer-events: none;
}
.deco {
  position: absolute;
  left: calc(var(--cx) * var(--u));
  top: calc(var(--cy) * var(--u));
  width: calc(var(--w) * var(--u));
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1));
}
.deco--front { z-index: 2; }
@media (max-width: 767.98px) {
  .stage { width: calc(375 * var(--u)); margin-left: calc(-187.5 * var(--u)); }
  .section__inner { max-width: calc(375 * var(--u)); }
}

/* 投票受付前（js/vote.js の VOTE_ENABLED = false）は投票ボタンを押せなくする */
.is-vote-closed :is(.btn-vote, .float-vote) { cursor: default; pointer-events: none; }
/* 押せないことが分かるよう、ボタンの上に半透明の薄いグレーを重ねる（色・濃さはここで調整） */
.is-vote-closed .btn-vote { position: relative; }
.is-vote-closed :is(.btn-vote, .float-vote)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: rgba(204, 204, 204, .5);
}

/* 飾りスラッシュ付き見出しの共通部品 */
.slash {
  flex-shrink: 0;
  width: calc(40 * var(--u));
  height: auto;
}
.slash--flip { transform: scaleY(-1); }

/* 大きい「投票する！」ボタン（ピンク） */
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(462 * var(--u));
  height: calc(87 * var(--u));
  padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u)) calc(22 * var(--u));
  border-radius: 999px;
  background: var(--c-pink);
  color: #fff;
  font-size: calc(40 * var(--u));
  line-height: 1.5;
  white-space: nowrap;
}
.btn-cta img { flex-shrink: 0; width: calc(40 * var(--u)); }
@media (max-width: 767.98px) {
  .btn-cta { width: calc(280 * var(--u)); height: calc(60 * var(--u)); font-size: calc(24 * var(--u)); }
  .btn-cta img { width: calc(30 * var(--u)); }
}

/* 傾いたチップ */
.chip {
  display: inline-block;
  padding: calc(8 * var(--u)) calc(22 * var(--u));
  border-radius: 6px;
  background: var(--c-pink-chip);
  color: #fff;
  font-family: var(--f-pop);
  font-size: calc(32 * var(--u));
  font-weight: 400;
  line-height: 1.4;
  transform: rotate(-3.5deg);
}

/* ------------------------------
   ヘッダー
------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--c-yellow);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, calc(64 * var(--u)), 64px);
}
.header__logo { flex-shrink: 0; width: clamp(100px, calc(157 * var(--u)), 157px); }
.header__logo img { width: 100%; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, calc(40 * var(--u)), 40px);
  font-size: clamp(13px, calc(18 * var(--u)), 18px);
  line-height: 1.4;
  white-space: nowrap;
}
.nav__link { transition: color .2s; }
.nav__link:hover, .nav__link.is-current { color: var(--c-pink); }
.header__cta {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px clamp(14px, calc(28 * var(--u)), 28px);
  border-radius: 999px;
  background: var(--c-pink);
  box-shadow: 0 4px 0 #b5004f;
  color: #fff;
  font-size: clamp(12px, calc(16 * var(--u)), 16px);
  line-height: 1.4;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.header__cta img { width: clamp(22px, calc(30 * var(--u)), 30px); }
.header__toggle { display: none; }
.header__cta.sp-only { display: none; }

@media (max-width: 767.98px) {
  .header__inner { padding: 0 8px 0 16px; }
  .header__logo { width: 104px; }
  .header__toggle {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
  }
  .header__toggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--c-navy);
    transition: transform .2s, opacity .2s, top .2s;
  }
  .header__toggle span:nth-child(1) { top: 13px; }
  .header__toggle span:nth-child(2) { top: 21px; }
  .header__toggle span:nth-child(3) { top: 29px; }
  .is-menu-open .header__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .is-menu-open .header__toggle span:nth-child(2) { opacity: 0; }
  .is-menu-open .header__toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    max-height: calc(100dvh - var(--header-h));
    padding: 8px 24px 28px;
    overflow-y: auto;
    background: var(--c-yellow);
    box-shadow: 0 8px 16px rgba(31, 37, 87, .15);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .is-menu-open .nav { visibility: visible; opacity: 1; transform: none; }
  .nav__list { display: block; font-size: 16px; }
  .nav__link {
    display: block;
    padding: 14px 4px;
    border-bottom: 2px solid rgba(31, 37, 87, .12);
  }
  .header__cta.pc-only { display: none; }
  .header__cta.sp-only { display: flex; }
  .header__cta {
    justify-content: center;
    margin-top: 20px;
    padding: 10px 10px 10px 24px;
    font-size: 16px;
  }
  .header__cta img { width: 30px; }
}

/* ------------------------------
   ボタン共通：影とホバー
   対象：ヘッダーの「キャンペーンに参加する」／「投票する！」各種／「もっと見る」
   下に影をつけ、ホバー・タップ時は影の分だけ沈み込む＋少し明るく＋矢印が動く
   （フロートボタンは css/float.css）
------------------------------ */
.btn-cta, .btn-vote, .header__cta { --btn-shadow: #b5004f; --btn-hover: #ff4b93; }
.btn-more { --btn-shadow: #4524a8; --btn-hover: #8058f2; }
.btn-cta, .btn-vote, .btn-more, .header__cta {
  box-shadow: 0 4px 0 var(--btn-shadow);
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
:is(.btn-cta, .btn-vote, .btn-more, .header__cta) img { transition: translate .2s; }
@media (hover: hover) {
  :is(.btn-cta, .btn-vote, .btn-more, .header__cta):hover {
    background-color: var(--btn-hover);
    box-shadow: 0 0 0 var(--btn-shadow);
    transform: translateY(4px);
  }
  :is(.btn-cta, .btn-vote, .header__cta):hover img { translate: 4px 0; }
  .btn-more:hover img { translate: 0 4px; }
}
:is(.btn-cta, .btn-vote, .btn-more, .header__cta):active {
  background-color: var(--btn-hover);
  box-shadow: 0 0 0 var(--btn-shadow);
  transform: translateY(4px);
}

/* ------------------------------
   フッター
------------------------------ */
.footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  background: #fdfdfd;
}
.footer__logo { width: 116px; }
.footer__copy {
  color: #000;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.footer .deco--owl { --cx: 1264; --cy: -114.7; --w: 304; }
.footer .deco--cat { --cx: 160; --cy: -5.7; --w: 256; }
@media (max-width: 767.98px) {
  .footer .deco--owl { --cx: 316; --cy: -46; --w: 110; }
  .footer .deco--cat { --cx: 50; --cy: 52; --w: 96; }
}
