/* ===== 全体レイアウト・背景 ===== */
html,
body {
  margin: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #222;
  position: relative;
  font-family: sans-serif;
  text-align: center;
}

/* ===== Canvas描画エリア ===== */
canvas {
  image-rendering: pixelated;
  touch-action: none;
}

#bomb-button {
  position: fixed;
  bottom: 5vh;
  right: 5vw;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: #ffffff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}


/* ===== サウンドボタン ===== */
#sound-toggle {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 10;
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  background: #eee;
  font-size: 16px;
  cursor: pointer;
}

/* === （以下はタイル型表示やデバッグ用の名残と思われるCSS） === */
#game {
  display: grid;
  grid-template-columns: repeat(10, 32px);
  grid-template-rows: repeat(10, 32px);
  margin: 20px auto;
  width: fit-content;
}

.cell {
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.wall {
  background-color: #555;
}

.player {
  background-color: orange;
}

.bomb {
  background-color: black;
  border-radius: 50%;
}

.fire {
  background-color: yellow;
  animation: explode 0.4s ease-out;
}

@keyframes explode {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.4);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.cpu {
  background-color: lightblue;
}

#game-wrapper {
  position: relative;
  display: inline-block;
}

#bomb-button {
  position: absolute;
  left: 0;
  bottom: -50px;
  /* 位置調整：ここを変えると上下に動かせます */
  padding: 10px 18px;
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 16px;
  z-index: 10;
  cursor: pointer;
}