.modal-game {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 400;
  overflow: hidden;
}
#game-background {
  width: 100%;
  height: 100%;
}
#game-background picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
}
.selection-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  margin: 0 auto;
  gap: 40px
}
.choose {
  position: relative;
  height: 200px;
  width: 160px;
  background-color: rgba(51, 51, 51, 0.7)
}
.choose::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(51, 51, 51, 0.7); /* 内側の枠線 */
  pointer-events: none;
}
.choose::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid rgba(51, 51, 51, 0.7); /* 外側の枠線 */
  pointer-events: none;
}
#sele1-nakami,#sele2-nakami,#sele3-nakami {
  font-size: 0.9em;
  color: #ccc;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin-top: 40px;
  -webkit-user-select: none;
  user-select: none;
}
#sele1-title,#sele2-title,#sele3-title {
  margin-top: 5px;
  text-align: center;
  font-weight: bold;
  color: #f6d893;
  text-decoration: underline #999;
  text-shadow: 1px 1px 1px rgba(255, 127, 126, 0.5);
  -webkit-user-select: none;
  user-select: none;
}
@media screen and (max-width: 767px) {
  .selection-container {
    flex-direction: column;
    gap: 30px;
  }
  .choose {
    height: 60px;
    width: 80%;
  }
  #sele1-nakami,#sele2-nakami,#sele3-nakami {
    margin-top: 10px;
  }
  #sele1-title,#sele2-title,#sele3-title {
    font-size: 0.8em;
  }
}
#support {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2em;
  margin: 0 auto;
  z-index: 401;
}
.style-bar {
  position: relative;
  width: 30%;
  background-color: rgba(68, 68, 68, 0.5);
  border: 1px solid #222;
  border-radius: 15px;
  overflow: hidden;
}
.style-bar-inner {
  width: 100%;  /* これをjsで変更 */
  height: 100%;
  background: linear-gradient(to bottom, #ff7f7e, #f78c77);
  border-radius: 12px;
  transition: width 0.5s ease-in-out;
}
#left,#central,#right {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 0.8em;
  color: #ccc;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

/* ゲーム選択肢の表示用 */
.fadeout2 {
  animation: fadeOut2 .5s;
  animation-fill-mode: both;
}
@keyframes fadeOut2 {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
  }
}
.fadein {
  animation: fadeIn .5s;
  animation-fill-mode: both;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.7;
  }
}
#current-index {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: #ccc;
  text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.5);
}