/* styles.css */
body {
  font-family: 'Arial', sans-serif;
  background-color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* コンテンツを上端から始める */
  align-items: center;
  height: 100vh;
  margin: 0;
  padding-top: 20px; /* 上部にパディングを追加してタイトルに余白を与える */
}

#game-container {
  width: 80vmin;
  max-width: 600px;
  margin-bottom: 20px; /* ゲームコンテナとPRスペースの間に余白を追加 */
}

#board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-gap: 1vmin;
  background-color: #024;
  padding: 1vmin;
}

.cell {
  background-color: #0d662d;
  border-radius: 4px;
  position: relative;
}

.cell::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.stone {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  top: 10%;
  left: 10%;
}

.stone.black {
  background-color: black;
}

.stone.white {
  background-color: white;
}

#status {
  text-align: center;
  padding: 20px;
}

.player {
  display: inline-block;
  vertical-align: middle;
  font-size: 2em; /* マークのサイズを大きくして明確に表示 */
}



#game-message {
  text-align: center;
  margin-top: 20px;
}


.player.white {
  color: white; /* 文字色は白 */
  background-color: #333; /* 背景色を濃い灰色に設定 */
  border-radius: 50%; /* 円形の背景にする */
  width: 1.5em; /* マークと背景のサイズを指定 */
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto; /* 中央揃え */
}

.stone img {
  width: 100%;
  height: auto;
  max-width: none;
}

/* タイトルのスタイル */
#game-title h1 {
  color: white;
  margin: 0;
  padding: 10px 0;
  width: 100%; /* タイトルの幅を100%にして中央寄せ */
  background: #333; /* 背景色を暗めに設定 */
  text-align: center;
}

/* PRスペースのスタイル */
#pr-space {
  background: #f9f9f9; /* 背景色 */
  padding: 20px;
  text-align: center;
}

#pr-space h2 {
  color: #333;
}

#pr-space img {
  max-width: 100%; /* 画像がコンテナを超えないようにする */
  height: auto;
}

#pr-space {
  width: 80vmin; /* ゲームコンテナと同じ幅に設定 */
  max-width: 600px; /* 必要に応じて最大幅を設定 */
  background: #f9f9f9; /* 背景色 */
  padding: 20px;
  text-align: center;
  box-sizing: border-box; /* パディングを幅に含める */
}