/* オセロボードのスタイル */

.board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 2px;
  background: linear-gradient(135deg, #0d5c29 0%, #1a7a3e 100%);
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  width: min(70vh, 600px);
  height: min(70vh, 600px);
  aspect-ratio: 1;
}

.cell {
  background: linear-gradient(135deg, #1a7a3e 0%, #0d5c29 100%);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cell:hover {
  background: linear-gradient(135deg, #25a04f 0%, #1a7a3e 100%);
}

.cell.valid-move {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  cursor: pointer;
  animation: pulse 1.5s ease-in-out infinite;
}

.cell.valid-move::after {
  content: '';
  position: absolute;
  width: 30%;
  height: 30%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.cell.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* ボード上の石 */
.cell .piece {
  width: 85%;
  height: 85%;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
              inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.cell .piece::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 30%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.cell .piece-black {
  background: radial-gradient(circle at 30% 30%, #4a4a4a, #000);
}

.cell .piece-white {
  background: radial-gradient(circle at 30% 30%, #fff, #d0d0d0);
}

/* パルスアニメーション */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
  }
}
