/* CSS */
body {
    margin: 0;
    overflow: hidden;
    background: #000;
    color: #ff0000;
}
canvas {
    display: block;
}
.HP{
    background-color: #000;
}
#info {
    position: absolute;
    background-color: #000;
    font-size: 20px;
    width: 40%;
    /* border: 1px solid #fff; */
    padding: 1% 12% 3% 4%;
    /* top: 10px;
    left: 10px; */
    color: #fff;
    font-family: Arial, sans-serif;
}
#hpBarContainer {
    background-image: url(../img/abg_btn\ \(Copy\).png);
    background-size: cover;
    position: absolute;
    top: 50px;
    left: 1.5%;
    width: 52.5%;
    height: 4.5%;
    border: 1px solid #fff;
    transform: skew(-40deg);
}
#hpBar {
    width: 100%;
    height: 100%;
    /* background-color: orange; */
    background-image: url(../img/bg_btn.png);
    background-size: cover;
}
#gameOver {
    display: none;
    position: absolute;
    width: 100%;
    padding: 20% 40% 45% 20%;
    background-image: url(../img/splash-gameover.png);
    background-size: 65%;
    background-color: #00000088;
    /* transform: translate(-50%, -50%); */
    font-size: 36px; color: #fff;
    z-index: 20;
}
/* ダメージエフェクト */
#damageEffect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* 初期状態で非表示 */
    pointer-events: none; /* クリックを透過させる */
    z-index: 10; /* 他の要素より手前に表示 */
}

#damageSplash {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像が画面にフィットするよう調整 */
    opacity: 1;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 0.1s ease forwards; /* 0.3秒でフェードアウト */
}
#gun {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像が画面にフィットするよう調整 */
}