/*-------------------------------------------------modal-------------------------------------------------*/

/*-------------------------------------------------カスタムプロパティ-------------------------------------------------*/
:root{
	--baseWidth: 100vw;
}
@media screen and (min-width:500px) {
	:root{
		--baseWidth: 500px;
	}
}
#modal_screen {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.7);
	z-index: 1000;
	display: none;
}
#modal_wrapper {
	width: calc(var(--baseWidth) * 0.86);
	height: 512px;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	z-index: 1001;
	display: none;
	opacity: 0;
}
#modal_wrapper a {
	display: block;
}
#modal_wrapper img,
#modal_wrapper video {
	width: 100%;
	height: auto;
	display: block;
}
#modal_wrapper p {
	text-align: center;
	font-weight: bold;
	font-size: 14px;
	margin-bottom: 5px;
	line-height: 1.4em;
}
#modal_wrapper p span.pink {
	color: #f83891;
}
#modal_wrapper p span.num {
	font-size: 1.1em;
}
.modal_clbtn {
	width: 30px;
	height: 30px;
	background-color: rgba(0,0,0,0.8);
	position: absolute;
	z-index: 3;
	top: -10px;
	right: -20px;
}
.modal_clbtn div {
	position: relative;
}
.modal_clbtn div:before,
.modal_clbtn div:after {
	content: '';
	display: block;
	width: 22px;
	height: 2px;
	position: absolute;
	top: 14px;
	left: 4px;
	background: #FFFFFF;
	border-radius: 10px;
}
.modal_clbtn div:before {
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.modal_clbtn div:after {
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}
.modal_btn a{
	position: relative;
	display: block;
	width: 90%;
	margin: 5px auto 0;
	padding: 10px 0;
	line-height: 18px;
	border-radius: 7px;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	text-align: center;
	background-color: #007aff;
	text-shadow: 0px 1px 1px rgba(0,0,0,0.2);
}
.modal_btn a.modal_ios,
.modal_btn a.modal_pc {
	background-color: #1082ff;
	box-shadow: 0px 3px 0px #015ec3;
	-webkit-animation: mdl_btn_push 1.2s ease-in-out infinite alternate;
	animation: mdl_btn_push 1.2s ease-in-out infinite alternate;
}
@-webkit-keyframes mdl_btn_push {
	0% {top:0px;box-shadow: 0px 3px 0px #015ec3;}
	80% {top:0px;box-shadow: 0px 3px 0px #015ec3;}
	90% {top:3px;box-shadow: 0px 1px 0px #015ec3;}
	100% {top:0px;box-shadow: 0px 3px 0px #015ec3;}
}
@keyframes mdl_btn_push {
	0% {top:0px;box-shadow: 0px 3px 0px #015ec3;}
	80% {top:0px;box-shadow: 0px 3px 0px #015ec3;}
	90% {top:3px;box-shadow: 0px 1px 0px #015ec3;}
	100% {top:0px;box-shadow: 0px 3px 0px #015ec3;}
}
.modal_btn a.modal_adr {
	background-color: #74af3f;
	box-shadow: 0px 3px 0px #517b2b;
	-webkit-animation: mdl_btn_push2 1.2s ease-in-out infinite alternate;
	animation: mdl_btn_push2 1.2s ease-in-out infinite alternate;
}
@-webkit-keyframes mdl_btn_push2 {
	0% {top:0px;box-shadow: 0px 3px 0px #517b2b;}
	80% {top:0px;box-shadow: 0px 3px 0px #517b2b;}
	90% {top:3px;box-shadow: 0px 1px 0px #517b2b;}
	100% {top:0px;box-shadow: 0px 3px 0px #517b2b;}
}
@keyframes mdl_btn_push2 {
	0% {top:0px;box-shadow: 0px 3px 0px #517b2b;}
	80% {top:0px;box-shadow: 0px 3px 0px #517b2b;}
	90% {top:3px;box-shadow: 0px 1px 0px #517b2b;}
	100% {top:0px;box-shadow: 0px 3px 0px #517b2b;}
}
#modal_wrapper .modal_box {
	position: relative;
	background-color: #fff;
	border-radius: 6px;
	height: 100%;
	overflow: hidden;
	display: none;
}
#modal_wrapper .modal_title {
	margin: 6px auto 0;
}
#modal_wrapper .modal_img {
	position: relative;
	z-index: 2;
	max-width: 350px;
	margin-left: auto;
	margin-top: calc(var(--baseWidth) * 0.85 * -0.14);
}
#modal_wrapper .modal_phone {
	width: 92%;
	margin: 5px auto 0;
}
#modal_wrapper .modal_phone a {
	position: relative;
}
#modal_wrapper .modal_phone a > img {
	position: relative;
	z-index: 2;
}
#modal_wrapper .modal_phone a .modal_main {
	width: 90%;
	background-color: #000;
	position: absolute;
	top: 2.2%;
	right: 0;
	left: 0;
	margin: auto;
	border-top-left-radius: 5%;
	border-top-right-radius: 5%;
	overflow: hidden;
	z-index: 1;
}
#modal_wrapper .modal_phone a .modal_main video,
#modal_wrapper .modal_phone a .modal_main img {
	margin-top: -4%;
}
/*-------------------------------------------------メディアクエリ-------------------------------------------------*/
@media screen and (max-width:320px) {
	#modal_wrapper .modal_phone a .modal_main video,
	#modal_wrapper .modal_phone a .modal_main img {
		margin-top: 0%;
	}
}
@media screen and (min-width:390px) {
	#modal_wrapper {
		height: 562px;
	}
}
/*--------------------PC対応--------------------*/
@media screen and (min-width:500px) {
	.modal_clbtn,.dl_btn,#head_icon img {
		cursor: pointer;
	}
	#modal_wrapper {
		height: 612px;
	}
}
/*--------------------common--------------------*/
.yellow {
	color: #FFFE7B !important;
}
