.select:hover {
 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}
.black{background: radial-gradient(circle at 30% 30%, #555, #000);
  }
.white{
  background: radial-gradient(circle at 30% 30%, #fff, #bbb);
  
}
.white44{box-shadow: inset 5px 5px 10px rgba(255, 255, 255, 0.6),
              inset -5px -5px 10px rgba(0, 0, 0, 0.3),
              0 5px 10px rgba(0, 0, 0, 0.5);}
.black44{box-shadow: inset 5px 5px 10px rgba(255, 255, 255, 0.1),
              inset -5px -5px 10px rgba(0, 0, 0, 0.6),
              0 5px 10px rgba(0, 0, 0, 0.7);}
'.bbody {
  text-align: center;
}
.main {
  display: inline-block;
  position: relative;
}

/* start */
#modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  overflow: hidden;
 z-index: 1000; /* 明示的に最前面 */
}

#modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://3ndgame.sakura.ne.jp/root/wp-content/ogold.png") center center / cover no-repeat;
  opacity: 0.8; /* 透過度 */
  z-index: 0; /* 背景レイヤー */
}

#modal > * {
  position: relative;
  z-index: 1; /* 子要素を前面に */
}


#menu {
  display: flex;
  flex-direction: column; /* 横並びから縦並びに変更 */
  align-items: center;     /* 中央揃え */
  gap: 12px;               /* 縦の間隔 */
  padding: 10px;
  margin-top: 60px;
}


.select {
  background-size: cover;
  background-position: center;
  text-indent: -9999px;
  width: 30vw;
  max-width: 100px;
  height: 120px;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
              inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  margin: 0; /* marginがボタン間隔を不均等にしている可能性あり */
}


.h3,
.p {
  color: white;
}
#menu p {
  width: 100px;
  font-size: 24px;
  padding: 3px;
  margin: 15px;
  
  cursor: pointer;
  
  color: white;
}

/* game */
#board {
  margin: 0 auto;
  background: #444444;
}
td.cell {
  background: rgb(170, 200, 160); 
  width: 23px;
  height: 23px;
  margin: 2px;
}
.cell div {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin: 0 auto;
}
.cell-6 > tr > td {
  width: 50px;
  height: 50px;
}
.cell-6 > tr > td > div {
  width: 42px;
  height: 42px;
}
.cell-4 > tr > td {
  width: 75px;
  height: 75px;
}
.cell-4 > tr > td > div {
  width: 60px;
  height: 60px;
}

.h2 {
  text-align: center;
  margin: 5px 0;
}
#counter {
  margin: 0 auto;
  width: 200px;
  display: flex;
  line-height: 50px;
  font-weight: bold;
 
}
#numBlack, #numWhite {
  position: relative;
  font-size: 36px;
  margin: 5px;
  width: 130px;
  height: 50px;
  color: black; /* 数字の色を黒に統一 */
  border-radius: 15px;
  text-align: center;
  line-height: 50px;
  font-weight: bold;
  background-color: #eee;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2),
              0 4px 8px rgba(0, 0, 0, 0.2);
  padding-left: 40px; /* 数字が石と重ならないように余白を作る */
padding-right: 5px;
}

/* 左側に石の装飾 */
#numBlack::before,
#numWhite::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/* 黒石用のbefore背景 */
#numBlack::before {
  background: radial-gradient(circle at 30% 30%, #555, #000);
  box-shadow: inset 5px 5px 10px rgba(255, 255, 255, 0.1),
              inset -5px -5px 10px rgba(0, 0, 0, 0.6),
              0 5px 10px rgba(0, 0, 0, 0.7);
}

/* 白石用のbefore背景 */
#numWhite::before {
  background: radial-gradient(circle at 30% 30%, #fff, #bbb);
  box-shadow: inset 5px 5px 10px rgba(255, 255, 255, 0.6),
              inset -5px -5px 10px rgba(0, 0, 0, 0.3),
              0 5px 10px rgba(0, 0, 0, 0.5);
}

/* end */
#restartBtn {
  z-index: 1;
  opacity: 0; /* 初期は非表示 */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -110%);
  width: 100%;
  max-width: 320px;
  height: 105px;
  line-height: 50px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;

  color: #3b2e19;
  background: url("https://u.jimcdn.com/cms/o/s939e7d60f2541492/userlayout/img/rishu.png?t=1750374922") no-repeat center center / cover;
  backdrop-filter: blur(6px);

  border: none;
  border-radius: 47.5px;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 6px rgba(180, 160, 130, 0.2);
  

  transition: all 0.3s ease;
}

#restartBtn:hover {
  filter: brightness(1.05);
  transform: translate(-50%, -110%) scale(1.03);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 3px rgba(255, 255, 255, 0.7),
    inset 0 -2px 6px rgba(140, 120, 100, 0.3);
}


.hide {
  display: none;
}
.turn-display {
  background-image: url('https://u.jimcdn.com/cms/o/s939e7d60f2541492/userlayout/img/neibiinohuchi.png?t=1749914306');
  background-size: cover;
  background-position: center;
  width: 170px;
  height: 30px;
  line-height: 30px!important;
  margin: 0 auto;
  font-family: 'Georgia', 'serif'!important;
  font-size: 16px!important;
  font-weight: bold!important;
  color: #FFD700!important; /* ゴールド系 */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6)!important;
  border: 2px solid gold!important;
  border-radius: 6px!important;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5)!important;
}

.board-wrapper {
  display: inline-block;
  padding: 10px; /* 枠の「内側の幅」10px */
  background-image: url('https://u.jimcdn.com/cms/o/s939e7d60f2541492/userlayout/img/woooooooody.png?t=1750368556');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.btn-4x4 {
  background-image: url('https://u.jimcdn.com/cms/o/s939e7d60f2541492/userlayout/img/fofo.png?t=1750608626');
}

.btn-6x6 {
  background-image: url('https://u.jimcdn.com/cms/o/s939e7d60f2541492/userlayout/img/sisi.png?t=1750608833');
}

.btn-8x8 {
  background-image: url('https://3ndgame.sakura.ne.jp/root/wp-content/gamestartgold-removebg-preview-removebg-preview.png');
}
.gold-border {
  border: 1px solid #d4af37; /* ゴールド色 */
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
  background: linear-gradient(to bottom, #fffdf5, #f8e9c0);

}