/* ==========================================================================
   パララックス背景(画面固定・スクロールで動く背景装飾)。2026-10-03 トップページ別案(ローカル試作)用。
   HTMLは template-parts/parallax-bg.php、動きは assets/js/parallax-bg.js。
   ========================================================================== */
.pbg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 10%, #F8FBFB 0%, #E8F4F4 55%, #D9EDED 100%);
}
.pbg > * { position: absolute; will-change: transform; }

/* 線の濃さの倍率(1＝参考資料どおり。2026-10-03 ユーザー指示「線はもう少し控えめに」で0.55) */
.pbg { --line-k: .55; }

/* 円の中心点（サイズ0の基準点） */
.pbg-anchor { width: 0; height: 0; }
.pbg-ring {
  position: absolute;
  width: var(--s); height: var(--s);
  left: calc(var(--s) / -2); top: calc(var(--s) / -2);
  border-radius: 50%;
  border: 1px solid rgba(8,136,152,calc(var(--a) * var(--line-k)));
}
.pbg-arc {
  position: absolute; width: 40vw; height: 40vw; left: -20vw; top: -20vw;
  border-radius: 50%; border: 1px solid transparent;
  border-top-color: rgba(8,136,152,calc(.3 * var(--line-k))); border-left-color: rgba(8,136,152,calc(.3 * var(--line-k)));
}

/* 光のぼかし */
.pbg-orb { border-radius: 50%; }
.pbg-orb--light { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(124,196,204,.32), transparent 68%); }
.pbg-orb--deep { width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(8,136,152,.16), transparent 68%); }

/* ドット */
.pbg-dots {
  background-image: radial-gradient(rgba(8,136,152,calc(.32 * var(--line-k))) 1.2px, transparent 1.3px);
  background-size: 16px 16px;
}

/* 縦ライン */
.pbg-vline {
  top: 0; bottom: 0; width: 1px;
  background: linear-gradient(transparent, rgba(8,136,152,calc(var(--a) * var(--line-k))), transparent);
}

/* やわらかい光(白のグラデーション)。2026-10-03 ユーザー指示で追加。
   画面左上から差し込む光(::before)と、スクロールで流れる白い光のたまり(.pbg-glow)。
   光のたまりはゆっくり明るさが変わる(OSの「視差効果を減らす」がオンなら止める)。 */
.pbg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(115deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%);
}
.pbg-glow { border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(255,255,255,.45) 35%, rgba(255,255,255,0) 70%); animation: pbg-glow 9s ease-in-out infinite alternate; }
.pbg-glow--l { width: 70vw; height: 70vw; }
.pbg-glow--m { width: 52vw; height: 52vw; animation-delay: -3s; }
.pbg-glow--s { width: 36vw; height: 36vw; animation-delay: -6s; }
@keyframes pbg-glow { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pbg-glow { animation: none; } }

/* 本文・フッターを背景より前に出す(ヘッダーは base.css で sticky・z-index:50 のため指定不要) */
.site-content, .tf-footer { position: relative; z-index: 1; }
