/* ===== 新しい背景（岩肌・光・塵）の設定 ===== */
body {
    background: #16160e; /* 全体のベース背景色 */
}

#bg-rock {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: url("../img/rockwall.jpg"); /* 画像パスは適宜調整してください */
    background-size: cover;
    background-position: center;
    opacity: 0.75;
    z-index: -100;
}

#bg-light {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(242, 242,176, 0.4) 0%,
            rgba(114, 109, 64, 0.2) 30%,
            transparent 70%);
    z-index: -90;
    /* もしlightMoveのアニメーションを使用する場合は別途 @keyframes が必要です */
    animation: lightMove 10s ease-in-out infinite; 
}

@keyframes fog {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    50% { transform: scale(1.2) translate(5%, 2%); opacity: 0.6; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.3; }
}

#bg-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -95;
}

#bg-fog {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse, rgba(255, 255, 255, .03), transparent 100%);
    mix-blend-mode: screen;
    animation: fog 40s linear infinite;
    z-index: -90;
    pointer-events: none; /* コンテンツのクリックを邪魔しないように追加 */
}