/**
 * モーダル open 時、フローティング系要素を 0.3s でフェードアウト
 *
 * 検出する「モーダル open」のシグナル:
 *   - html.is-modal-open / body.is-modal-open  （custom-modal / client-modal）
 *   - body.is-std-popup-open                    （代表的な性病 ポップアップ）
 *   - body:has(.modal-overlay.is-open)          （テーマ標準モーダル - 実測これがトップページの本命）
 *   - body:has(.modal.is-open)                  （テーマ標準モーダル別バリエーション）
 *   - body:has(.js-modal-overlay.is-open)       （client-modal 用オーバーレイ）
 *
 * 対象要素:
 *   - .c-floating-menu       （PCフローティング - 実際のクラス名）
 *   - .c-floating-menu-sp    （SPフローティング）
 *   - .c-floating-menu-pc    （念のため保険）
 *   - .back-to-top           （ページ上部に戻る）
 */

html.is-modal-open :where(.c-floating-menu, .c-floating-menu-sp, .c-floating-menu-pc, .back-to-top),
body.is-modal-open :where(.c-floating-menu, .c-floating-menu-sp, .c-floating-menu-pc, .back-to-top),
body.is-std-popup-open :where(.c-floating-menu, .c-floating-menu-sp, .c-floating-menu-pc, .back-to-top),
body:has(.modal-overlay.is-open) :where(.c-floating-menu, .c-floating-menu-sp, .c-floating-menu-pc, .back-to-top),
body:has(.modal.is-open) :where(.c-floating-menu, .c-floating-menu-sp, .c-floating-menu-pc, .back-to-top),
body:has(.js-modal-overlay.is-open) :where(.c-floating-menu, .c-floating-menu-sp, .c-floating-menu-pc, .back-to-top) {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}
