@charset "UTF-8";
/* =========================================================
   クリスマスの演出（2026-12 クリスマスマイホームフェア）
   - 電飾（.xmas-lights）／雪（.xmas-snow、js/xmas.js）／FVのきらめき（.fv__sparkle）
   - ボタンの積雪（.cta__snow）／特典金額の光（shimmer）／見出しのプレゼント・ベル
   動きを減らす設定（prefers-reduced-motion: reduce）では、すべて止めて静止した飾りだけにする
   ========================================================= */

/* ---------- 電飾（セクションの上端に張る。電球は js/xmas.js が並べる） ---------- */
.has-lights { position: relative; padding-top: calc(var(--u) * 92); }
.xmas-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--u) * 66);
  pointer-events: none;
  /* 電線：750px で9たるみ。電球はたるみの底（js/xmas.js が data-count 個並べる） */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 83.33 66' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q41.67 50 83.33 5' fill='none' stroke='%231f3b26' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0 / calc(100% / 9) 100%;
}
.xmas-lights i {
  --b: #ff3b3b;
  position: absolute;
  top: 40%;
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 31);
  margin-left: calc(var(--u) * -11);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85) 0 18%, transparent 30%), var(--b);
  box-shadow: 0 0 calc(var(--u) * 12) calc(var(--u) * 3) color-mix(in srgb, var(--b) 70%, transparent);
}
.xmas-lights i::before { /* 口金 */
  content: "";
  position: absolute;
  top: calc(var(--u) * -7);
  left: 50%;
  width: calc(var(--u) * 11);
  height: calc(var(--u) * 9);
  transform: translateX(-50%);
  border-radius: 2px;
  background: #2d3b31;
}
.xmas-lights i:nth-child(4n + 2) { --b: #ffd23f; }
.xmas-lights i:nth-child(4n + 3) { --b: #3ee07a; }
.xmas-lights i:nth-child(4n + 4) { --b: #4db8ff; }

/* ---------- 雪（全体に重ねるキャンバス。追従CTA（z-index 60）より下） ---------- */
.xmas-snow {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 55;
  width: min(100%, 750px);
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity .4s;
}
.xmas-snow.is-off { opacity: 0; }

/* ---------- FVのきらめき ---------- */
.fv__sparkle {
  position: absolute;
  width: calc(var(--u) * 46);
  aspect-ratio: 1;
  margin: calc(var(--u) * -23) 0 0 calc(var(--u) * -23);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .9) 0, rgba(255, 250, 210, .45) 22%, transparent 55%);
}
.fv__sparkle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
}

/* ---------- ボタンの積雪 ---------- */
.cta__btn { position: relative; }
.cta__snow {
  position: absolute;
  top: calc(var(--u) * -2);
  left: calc(var(--u) * 12);
  right: calc(var(--u) * 12);
  height: calc(var(--u) * 22);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M0 9Q10 1 30 4Q60-1 90 5Q120 0 150 4Q190-1 220 5Q255 0 285 4Q300 6 300 9L300 12Q290 14 284 13Q280 23 274 13Q240 15 210 13Q206 24 200 13Q160 15 120 13Q116 21 111 13Q70 15 40 13Q36 22 31 13Q12 15 0 12Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18));
}

/* ---------- 「ご来場特典」の見出しにプレゼントとベル ---------- */
.final__title { display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 14); }
.final__deco { display: inline-block; width: calc(var(--u) * 58); height: calc(var(--u) * 58); }
.final__deco svg { display: block; width: 100%; height: 100%; }
.final__deco.is-bell { transform-origin: 50% 8%; }

/* ---------- 動き（動きを減らす設定では止める） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .xmas-lights i { animation: xmas-bulb 1.6s ease-in-out infinite; }
  .xmas-lights i:nth-child(even) { animation-delay: .8s; }
  .xmas-lights i:nth-child(3n) { animation-duration: 2.3s; }

  .fv__sparkle { animation: xmas-twinkle 3s ease-in-out infinite var(--d, 0s); }

  /* 日程：弾んで出たあと、ときどき小さく揺れる */
  .fv__date { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both .6s, xmas-sway 5s ease-in-out 1.6s infinite; transform-origin: 50% 0; }

  /* 特典の金額に光を走らせる */
  .final__price-num,
  .mid-cta__bonus-num {
    color: transparent;
    background: linear-gradient(100deg, var(--pink) 0 40%, #ff9e9e 50%, var(--pink) 60% 100%) 100% 0 / 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: xmas-shimmer 3.6s linear infinite;
  }

  .final__deco.is-gift { animation: xmas-hop 3s ease-in-out infinite; }
  .final__deco.is-bell { animation: xmas-ring 3s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-snow, .fv__sparkle { display: none; }
}

@keyframes xmas-bulb {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; box-shadow: none; }
}
@keyframes xmas-twinkle {
  0%, 70%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  80% { opacity: 1; transform: scale(1) rotate(45deg); }
  90% { opacity: .6; transform: scale(.7) rotate(90deg); }
}
@keyframes xmas-sway {
  0%, 80%, 100% { transform: rotate(0deg); }
  84% { transform: rotate(3deg); }
  88% { transform: rotate(-2.5deg); }
  92% { transform: rotate(1.5deg); }
  96% { transform: rotate(-.5deg); }
}
@keyframes xmas-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
@keyframes xmas-hop {
  0%, 60%, 100% { transform: none; }
  68% { transform: translateY(-14%) rotate(-8deg); }
  76% { transform: translateY(0) rotate(6deg); }
  84% { transform: translateY(-6%) rotate(-3deg); }
  92% { transform: none; }
}
@keyframes xmas-ring {
  0%, 50%, 100% { transform: rotate(0deg); }
  56% { transform: rotate(16deg); }
  64% { transform: rotate(-14deg); }
  72% { transform: rotate(9deg); }
  80% { transform: rotate(-5deg); }
  88% { transform: rotate(2deg); }
}
