/* ---------------------------------------------------------------------------
   TOPヒーロー：季節ごとに変わる背景
   - 開いた日の季節（春3-5月／夏6-8月／秋9-11月／冬12-2月）の色と舞うものだけを見せる。四季を巡らせはしない
   - 季節は index.html の小さなスクリプトが .hz-season--spring などのクラスで指定する（スクリプトが動かないときは夏＝いつもの緑）
   - 動きを減らす設定の人には、舞うものは出さず、季節の色だけ
   - 手前の山は「事業を見る」ボタンの白文字が読める濃さを保つこと
   --------------------------------------------------------------------------- */

.c2-hero-panel {
  --hz-sky: #f1f6ed; --hz-l1: #bdd3b5; --hz-l2: #96b88d;
  --hz-l3: #6e996a; --hz-l4: #3e7243; --hz-river: #fafdf5;
}
.c2-hero-panel .hz-sky   { fill: var(--hz-sky); }
.c2-hero-panel .hz-l1    { fill: var(--hz-l1); }
.c2-hero-panel .hz-l2    { fill: var(--hz-l2); }
.c2-hero-panel .hz-l3    { fill: var(--hz-l3); }
.c2-hero-panel .hz-l4    { fill: var(--hz-l4); }
.c2-hero-panel .hz-river { fill: var(--hz-river); }

/* 春：桜がかすむ遠景と若葉 / 夏：いつものハンチスの緑 / 秋：紅葉 / 冬：雪をかぶった青灰 */
.c2-hero-panel.hz-season--spring {
  --hz-sky: #f7f2f0; --hz-l1: #ecc9d0; --hz-l2: #b7d29e;
  --hz-l3: #85b075; --hz-l4: #4c7f45; --hz-river: #fffafa;
}
.c2-hero-panel.hz-season--summer {
  --hz-sky: #f1f6ed; --hz-l1: #bdd3b5; --hz-l2: #96b88d;
  --hz-l3: #6e996a; --hz-l4: #3e7243; --hz-river: #fafdf5;
}
.c2-hero-panel.hz-season--autumn {
  --hz-sky: #f8f1e5; --hz-l1: #e6caa0; --hz-l2: #d5a46f;
  --hz-l3: #b87547; --hz-l4: #7b4a2d; --hz-river: #fdf6ea;
}
.c2-hero-panel.hz-season--winter {
  --hz-sky: #eef2f4; --hz-l1: #f7fafb; --hz-l2: #cad7dd;
  --hz-l3: #98aeb8; --hz-l4: #566f7b; --hz-river: #ffffff;
}

/* --- 舞うもの：その季節のグループだけ表示 -------------------------------- */
.hz-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hz-fx__group { position: absolute; inset: 0; display: none; }
.hz-season--spring .hz-fx__group--spring,
.hz-season--summer .hz-fx__group--summer,
.hz-season--autumn .hz-fx__group--autumn,
.hz-season--winter .hz-fx__group--winter { display: block; }

.hz-p { position: absolute; top: -24px; display: block; will-change: transform; }

/* 落ちてくるもの（花びら・落ち葉・雪）：上から下へ、横に揺れながら */
@keyframes hz-fall {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(calc(var(--dx) * 0.35 + 14px), 150px) rotate(calc(var(--rot) * 0.25)); }
  50%  { transform: translate(calc(var(--dx) * 0.6 - 10px), 300px) rotate(calc(var(--rot) * 0.5)); }
  75%  { transform: translate(calc(var(--dx) * 0.85 + 12px), 450px) rotate(calc(var(--rot) * 0.75)); }
  100% { transform: translate(var(--dx), 600px) rotate(var(--rot)); }
}
/* 夏の光：下から上へ、ふわっと明滅しながら */
@keyframes hz-rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 0.9; }
  50%  { transform: translate(calc(var(--dx) * 0.5 + 10px), -170px); opacity: 0.5; }
  85%  { opacity: 0.85; }
  100% { transform: translate(var(--dx), -340px); opacity: 0; }
}

.hz-p--petal {
  width: 10px; height: 7px;
  background: #f3c6d1;
  border-radius: 70% 0 70% 0;
  animation: hz-fall var(--dur) linear infinite;
  animation-delay: var(--delay);
}
.hz-p--light {
  top: auto; bottom: 40px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff4b8;
  box-shadow: 0 0 10px 4px rgba(255, 232, 140, 0.75);
  animation: hz-rise var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}
.hz-p--leaf {
  width: 13px; height: 9px;
  background: var(--c, #d98a4a);
  border-radius: 0 80% 0 80%;
  animation: hz-fall var(--dur) linear infinite;
  animation-delay: var(--delay);
}
.hz-p--snow {
  width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 2px rgba(70, 90, 100, 0.25);
  animation: hz-fall var(--dur) linear infinite;
  animation-delay: var(--delay);
}

/* 見出し・ボタンは舞うものより手前 */
.c2-hero-panel__content, .c2-hero-panel__secondary { z-index: 1; }

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