
/* 盤面は9×9グリッド */
#board {
  display: grid;
  grid-template-columns: repeat(9, 60px);
  grid-template-rows: repeat(9, 60px);
  gap: 1px;
  background-color: #333;
  width: 541px; /* 9×60 + 8×1px */
  margin: 10px auto;
  position: relative;
}
.cell {
  width: 60px;
  height: 60px;
  background-color: #f0d9b5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  position: relative;
}
/* 選択中・合法手セルの強調 */
.cell.selected { background-color: yellow; }
.cell.highlight { background-color: lightgreen; }
/* 駒表示。後手は180°回転 */
.piece {
  user-select: none;
  pointer-events: none;
}
/* 成駒は赤色で表示 */
.promoted { color: red; }
.sente { transform: rotate(0deg); }
.gote  { transform: rotate(180deg); }
/* 持ち駒表示用 */
.captured-container {
  text-align: center;
  margin: 5px auto;
  width: 541px;
  padding: 5px;
  border: 1px solid #aaa;
}
.captured-container span {
  font-size: 24px;
  margin: 0 5px;
  cursor: pointer;
}
.captured-container span.selected {
  background-color: orange;
  border-radius: 4px;
}
/* アニメーション用駒 */
.moving-piece {
  position: absolute;
  font-size: 24px;
  z-index: 1000;
  pointer-events: none;
}
#turn {
  text-align: center;
  font-size: 20px;
  margin-top: 10px;
}
