html, body {
  touch-action: none;  /* タッチ操作のズームを完全に無効化 */
  overscroll-behavior: none; /* スクロールのバウンド効果も無効化（任意） */
}

.openingmodal,
/* 冒険者作成画面のため追加 */
.openingmodal2,
.endingmodal {
  /* touch-action: manipulation; */
  position: fixed;
  /* z-index: 1000; */
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  flex-direction: column;
}

.openingmodal.active,
/* 冒険者作成画面のため追加 */
.openingmodal2.active,
.endingmodal.active {
  opacity: 1;
  pointer-events: auto;
}




.opening-content,
/* 冒険者作成画面のため追加 */
.opening-content2,
.ending-content {
  margin: 10px;
  /* touch-action: manipulation; */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ending-content {
  width: 390px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} /* 「０」と異なり、要素の中央配置のためにこの指定が必要だった */




.logo-image {
  margin-bottom: 20px!important;
}

.preview-image {
  max-width: 39%;
}

.openingmodal button,
/* 冒険者作成画面のため追加 */
.openingmodal2 button,
.endingmodal button {
  margin: 7px;
  /* touch-action: manipulation; */
  font-size: 1.1rem;
  padding: 9px 15px;
  border-radius: 30px;
  border: none;
  background-color: white;
  color: black;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 1s ease;
  z-index: 9999;
}

.gameover-text {
  margin: 0;
  margin-top: 30px!important;
  /* touch-action: manipulation; */
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
}


#openingModal2 button{
  margin: 10px 5px;
  padding: 5px 10px;
}
.step-text {
  margin-top: 5px;
  font-size: 1.1rem;
}
.preview {
  width: 128px!important;
  height: 384px!important;
  /* border: solid 1px white; */
  /* border-radius: 10px; */
  /* padding: 5px 5px 0 15px!important; */
}
.preview-img {
  /* margin-top: -30px!important; */
  margin-top: -10px!important;
  /* margin: 0 auto; */
  width: 90%!important;
  height: 90%!important;
  /* width: 70px!important;
  height: 170px!important; */
}






/* ブラウザ時計 */
.date-body {
  color: white;
  font-weight: bold;
  font-size: 1.3rem;
  font-family: 'Courier New', monospace;
  margin: 2px;
}
.gold-body {
  width: 190px;
  border: solid 4px white;
  border-radius: 10px;
  padding:3px 0;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  margin-left: 15px;
  margin-bottom: 2px;
  line-height: 1.5rem;
}
.message-body {
  padding: 7px;
  background-color: white;
  color: tomato;
  font-weight: bold;
  font-size: 0.7rem;
  line-height: 0.1rem;
}
.clock-body {
  color: white;
  font-weight: bold;
  font-size: 4.5rem;
  font-family: 'Courier New', monospace;
  margin: 5px 0;
}
.hint-area{
  width: 300px;
  margin-bottom: 13px;
  padding: 5px 10px;
  border: solid 2px white;
  border-radius: 10px;
}
.hint1-body{
  font-weight: bold;
  font-size: 1.5rem;
}
.hint2-body{
  font-weight: normal;
  font-size: 1.1rem;
}









  /*===============================
パソコン画面用
=================================*/
@media print, screen and (min-width: 820px) {
.opening-content,
/* 冒険者作成画面のため追加 */
.opening-content2,
.ending-content {
  margin-top: 5%;
}
.logo-image {
  margin: 0;
  /* touch-action: manipulation; */
  /* max-width: 50%; */
  width: 220px!important;
}
.preview-image {
  margin: 0;
  /* touch-action: manipulation; */
  /* max-width: 70%; */
  width: 220px!important;
}
.gameover-text {
  margin: 0;
  font-size: 3.5rem;
}
}