@charset "utf-8";
/*--------------------------------------------------
	ポップアップ用CSS
--------------------------------------------------*/
/* ラジオボックス非表示 */
.popupModal1 > input { 
	display: none;
}

.popupModal1 > input:nth-child(1) + label { 
	cursor: pointer;
}

/* 初期設定 ポップアップ非表示 */
.modalPopup2 { 
	display: none;
}

/* ラジオ１ チェックでポップアップ表示 */
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + .modalPopup2 {
	display: block;
	z-index: 998;
	position: fixed;
	width: 90%;
	height: 80%;
	border-radius: 20px;
	left: 50%;
	top: 50%;
	margin-top: 30px;
	-webkit-transform: translate(-50%,-50%);
	-ms-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
	background: #333333;
	padding: 10px 20px;
	overflow: hidden;
}

/* PCのときはページの真ん中の600x600領域 */
@media (min-width: 768px) {
	.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + .modalPopup2{
			 width: 800px;
			 height: 700px;
			 padding: 30px;
			 max-width: 100%;
	}
}

.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + .modalPopup2 > div {
	overflow:auto;
	-webkit-overflow-scrolling:touch;
	display: inline-block;
	width: 100%;
	height: 100%;
}

.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + .modalPopup2 > div > iframe {
	width: 100%;
	  height:100%;
	  border:none;
	  display:block;
}

/* ポップアップの中の要素 */
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + .modalPopup2 > div > img {
	max-width: 100%;
}

/* ラジオ１ 以外のラベルを初期は非表示 */
.popupModal1 > input:nth-child(1) + label ~ label {
	display: none;
}

.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label {
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.70);
	display: block;
	position: fixed;
	left: 0;
	top: 0;
	z-index: 997;
	text-indent: -999999px;
	overflow: hidden;
}


/* ポップアップ非表示 */
.popupModal1 > input:nth-child(1) + label + input:nth-child(3):checked + label + .modalPopup2 { 
	display: none;
}

.modalPopup2 {
	animation: fadeIn 1s ease 0s 1 normal;
	-webkit-animation: fadeIn 1s ease 0s 1 normal;
}

@keyframes fadeIn {
	0% {opacity: 0}
	100% {opacity: 1}
}

@-webkit-keyframes fadeIn {
	0% {opacity: 0}
	100% {opacity: 1}
}

.popupModal1 .modalTitle {
	 padding-bottom: .5em;
	 text-align: center;
	 margin: .5em 0;
	 border-bottom: 1px solid #ccc;
	 font-weight: bold;
}

.popupModal1 .modalMain {
	 color:#222;
	 text-align: left;
	 font-size: 14px;
	 line-height: 1.8em;
}
