/*モーダルを開くボタン*/
.modal-open,
.modal-open02,
.modal-open03,
.modal-open04,
.modal-open00,
.modal-rich,
.modal-openYT {
  cursor: pointer;
 
}
/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container,
.modal-container02,
.modal-container03,
.modal-container04,
.modal-rich,
.modal-YT {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0,0,0,50%);
  padding: 40px 10px 20px 10px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
	z-index: 100;
}

/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container00 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0,0,0,50%);
  padding: 40px 10px 20px 10px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
z-index: 100;
}


/*モーダル本体の擬似要素の指定*/
.modal-container:before,
.modal-container02:before,
.modal-container03:before,
.modal-container04:before,
.modal-container00:before,
.modal-rich:before,
.modal-YT:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 95%;
}
/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active,
.modal-container02.active,
.modal-container03.active,
.modal-container04.active,
.modal-container00.active,
.modal-rich.active,
.modal-YT.active {
  opacity: 1;
  visibility: visible;
}
/*モーダル枠の指定*/
.modal-body{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 1000px;
  width: 96%;
	left: -3px;
		
}

/*モーダルを閉じるボタンの指定*/
.modal-close{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -40px;
  right: -10px;
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
/*モーダル内のコンテンツの指定*/
.modal-content{
  background: #fff;
  text-align: left;
  padding: 30px;
	box-sizing: border-box;
}
.modal-content-youtube {
  background: #fff;
  text-align: left;
  padding: 30px;
	box-sizing: border-box;
}

@media screen and (max-width: 768px) {
/*モーダル内のコンテンツの指定*/
.modal-content{
  background: #fff;
  text-align: left;
  padding: 10px;
	height: 90vh;
 overflow:auto;
 overflow-y:scroll;
 overflow-x:hidden;
}
	
.modal-content-youtube {
  background: #fff;
  text-align: left;
  padding:10px;
	box-sizing: border-box;
}
}

