@charset "utf-8";




body {
  width: 100%;  /* モーダル表示時、幅が変更されるのを防ぐ */
}

#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
	z-index: 9999;
}

.modal-mask {
  position: absolute;
  width: 100%;
  height: 100vh;
  opacity: 0.7;
	background-color: #000;
}

.modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
	max-width: 900px;
  background: #fff;
  transform: translate(-50%, -50%);
  /*box-shadow: 3px 3px 5px #888; */
	overflow-y: auto;
	overflow-x: hidden;
  max-height: 90%;
}

.modal-inner {
  position: relative; /* 閉じるボタンの相対位置の基準とする */
  padding: 40px;
  width: 100%;
  height: auto;
}

.modal-title {
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  color: #ff1493;
  text-align: center;
}

.modal-text {
  padding: 5%;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  letter-spacing: 1px;
}

button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px;
  width: 25px;
  height: 25px;
  border: 1px solid #000;
  border-radius: 50%;
  background-color: #000;
  font-size: 20px;
  /*box-shadow: 2px 2px 3px #888;*/
  line-height: 10px;
  color: #fff;
  cursor: pointer;
	z-index: 9999px;
}





@media screen and (max-width:767px) {
	
.modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  background: #fff;
  transform: translate(-50%, -50%);
  /*box-shadow: 3px 3px 5px #888; */
	overflow-y: auto;
	overflow-x: hidden;
  max-height: 90%;
}
	
.modal-inner {
  position: relative; /* 閉じるボタンの相対位置の基準とする */
  padding: 20px;
  width: 100%;
  height: auto;
}

}


