@charset "utf-8";
/* CSS Document */

#cover{
	width: 100%;
	height: 100%;
	z-index: 100;
	position: fixed;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.7);
	cursor: pointer;
}

button.close{
	position: absolute;
	right: 0.5em;
	top: 0.5em;
	margin: 0;
	padding: 0;
	cursor: pointer;
	border: none;
	background-color: #FFF;
}

button.close img{
	display: block;
}


/*モーダルウィンドウコンテンツ*/
#contents .modalArea{
	display: none;
	position: fixed;
	top: 44%;
	left: 50%;
	z-index: 150;
	box-sizing: border-box;
	width: 90%;
	max-width: 840px;
	margin-left: 0;
	padding: 2em 3em 2em 2em;
	background: #FFF;
	transform: translate(-50%, -50%);
}
#contents .modalArea p.title{
	margin-bottom: 1em;
	margin-left: 0;
	padding: 0 0 5px 1em;
	border-bottom: 1px solid #D0D0D0;
	font-size: 1.231rem;
	font-weight: 700;
}

#contents .modalArea p > a.textLink{
	display: block;
	margin-left: 0;
}

#contents .modalArea > .modalFlex{
	display: flex;
	align-items: flex-start;
}

#contents .modalArea .textWrap{
	margin-left: 1em;
}

#contents .modalArea .textWrap ul.flex {
	flex-direction: row;
	justify-content: flex-start;
	margin: 1em 0 0 1em;
}

#contents .modalArea .textWrap ul.flex > li:first-child{
	margin-right: 10px;
	
}

#contents .modalArea .textWrap .singleBtn{
	margin-left: 1em;
}
#contents .modalArea ul.btnList{
	margin: 1em 0 1em 1em;
}
#contents .modalArea ul.btnList li + li{
	margin-top: 1em;
}

#contents .modalArea ul.btnList li a{
	width: 54%;
}

#contents .modalArea .textWrap.borderArea{
	margin-left: calc(70px + 1em);
	margin-top: 1em;
	border-top: 1px dotted #ccc;
	padding-top: 1.5em;
}

@media (max-width: 640px) {
	#contents .modalArea{
		top:50%;
		padding: 1.5em 1em;
	}
	#contents .modalArea button.close{
		width: 18px;
		right: 5px;
		background-color: transparent;
	}
	
	
	#contents .modalArea button.close > img{
		width: 100%;
		height: auto;
	}
	#contents .modalArea p.title{
		margin-top: 6px;
		padding-left: 0;
	}
	#contents .modalArea .textWrap ul.flex {
		justify-content: space-evenly;
		width: 94%;
		margin-left: 0;
	}
	
	#contents .modalArea .textWrap{
		margin-left: 0;
	}

	#contents .modalArea .textWrap ul.flex > li:first-child {
		margin-right: 0;
	}
	#contents .modalArea .textWrap .singleBtn,
	#contents .modalArea ul.btnList{
		margin-left: 0;
	}
}

@media (max-width: 540px) {
	#contents .modalArea .textWrap ul.flex {
		flex-wrap: wrap;
	}
	#contents .modalArea > .modalFlex{
		flex-direction: column;
	}
	#contents .modalArea > .modalFlex .pct{
		margin: 0 auto 12px;
	}
	#contents .modalArea .textWrap ul.flex {
		width: 100%;
	}
	#contents .modalArea .textWrap.borderArea {
	margin-left: 0;
	}
}
@media (max-width: 484px) {
	#contents .modalArea .textWrap ul.flex li a img{
		width: 150px;
	}
}
@media (max-width: 390px) {
	#contents .modalArea{
		width: 94%;
	}
	#contents .modalArea .textWrap ul.flex {
		justify-content: space-between;
}
@media (max-width: 348px) {
	#contents .modalArea .textWrap ul.flex {
		flex-direction: column;
		justify-content: center;
	}
}

@media (max-width: 320px) {
	#contents .modalArea{
		left: 47%;
	}
	#contents .modalArea > .modalFlex .pct{
		margin: 0 auto;
	}
	#contents .modalArea > .modalFlex .pct img{
		width: 50px;
		height: auto;
	}
	
}

/* モーダルの縦スクロール */
#contents .modalArea{
	max-height: 80vh;
	overflow-y: auto;
}