/* 二日月ブランディング 背景アニメーション用CSS（styles.css の後に読み込む） */

/* 最下層：月なし／第四階層：FV用（月あり）。どちらも画面に固定 */
.fixed-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;          /* モバイルのアドレスバー開閉で月や線がずれないよう、最大ビューポート高に固定 */
  z-index: 0;
  pointer-events: none;
  background: transparent;
}
.fixed-field[data-bg-field="base"] { background: var(--nasukon); }
.fixed-field svg { display: block; width: 100%; height: 100%; max-width: none; }

/* 第四階層：FVの範囲だけで切り抜く（中の fixed 要素も切り抜かれる） */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  clip: rect(0, auto, auto, 0);
  clip-path: inset(0);
}

/* 線アニメーション（元SVGと同じキーフレーム。位置は transform 側に持たせ、動きを止めても帯が重ならない） */
.band {
  transform: translate(var(--x), 0);
  transform-box: fill-box;
  transform-origin: center;
  animation: fold 7s cubic-bezier(.65,0,.25,1) infinite;
  animation-delay: var(--delay);
}
@keyframes fold {
  0%   { transform: translate(var(--x), 0) rotate(0deg) scaleY(1); }
  15%  { transform: translate(var(--x), 0) rotate(0deg) scaleY(1); }
  32%  { transform: translate(var(--x), 0) rotate(calc(var(--amp) * .45deg)) scaleY(.96); }
  47%  { transform: translate(var(--x), 0) rotate(calc(var(--amp) * 1deg)) scaleY(.78); }
  63%  { transform: translate(var(--x), 0) rotate(calc(var(--amp) * -.75deg)) scaleY(.86); }
  80%  { transform: translate(var(--x), 0) rotate(calc(var(--amp) * -.25deg)) scaleY(.96); }
  100% { transform: translate(var(--x), 0) rotate(0deg) scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .band { animation: none; } }
