@charset "utf-8";
/* CSS Document */

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.5);
}
.modalOpen{
	position: relative;
	display: block;
	margin: 0 0 0 auto;
	background: none;
	border: none;
	color: #fff;
	font-family: inherit;
	font-size: 100%;
	cursor: pointer;
	transition: 0.3s;
}
.modal .modal-box {
	position: relative;
    background-color: #fff;
    margin: 15% auto;
	padding: 50px;
    max-width: 1100px;
    width: 90%;
	border-radius: 10px;
    animation-name: modalopen;
    animation-duration: 1s;
	color: #222;
}
@keyframes modalopen{
    from{ opacity: 0;}
    to{opacity: 1;}
}
.modalClose {
	position: absolute;
	top: 30px;
	right: 30px;
	width: 2rem;      /* ボタン全体の幅 */
	height: 2rem;     /* ボタン全体の高さ */
	cursor: pointer;
	background: transparent;
	border: none;
}
.modalClose::before,
.modalClose::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2rem;
	height: 0.2rem;
	background: var(--color-primary);
	transform-origin: center;
}
.modalClose::before { transform: translate(-50%, -50%) rotate(45deg); }
.modalClose::after  { transform: translate(-50%, -50%) rotate(-45deg); }


@media screen and (max-width:840px){
	.modal .modal-box {
		padding:60px 30px 30px;
	}

}


