ul#main_nav {
	z-index: 100;
}

#r5_modal_area {
	position: fixed;
	background-color: rgba(0,0,0,0.8);
	z-index: 10000;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	transition: all 300ms;
}

#r5_modal_area .for_sp {
	display: none;
}

#r5_modal_cont {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    width: 580px;
    height: 300px;
    margin: auto;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 300ms;
    text-align: center;
    box-sizing: border-box;
}

#r5_modal_cont .notice {
	background-color: #b7e9d5;
	padding: 10px;
	position: absolute;
	top: -30px;
	border-radius: 10px;
}

#r5_modal_cont .title {
	color: #006243;
	font-size: 1.3rem;
	font-weight: bold;
	border-bottom: 2px dotted #bebebe;
}

#r5_modal_cont .text {
	font-weight: bold;
}

#r5_modal_cont #r5_modal_link {
    display: flex;
    color: #fff;
    font-size: 0.875rem;
    background-color: #006243;
    margin-top: 20px;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
}

#r5_modal_cont #r5_modal_link:hover {
	text-decoration: none;
	filter: brightness(1.2);
	cursor: pointer;
}

@media screen and (max-width: 640px) {

	#r5_modal_area .for_sp {
		display: block;
	}

	#r5_modal_cont {
		width: calc(100vw - 40px);
		height: 380px;
	}

	#r5_modal_cont .text {
		font-size: 0.85rem;
	}

	#r5_modal_cont #r5_modal_link {
		font-size: 0.75rem;
		line-height: 1.5;
	}
	
}

@media screen and (max-width: 400px) {

	#r5_modal_cont {
		padding: 1rem;
	}

	#r5_modal_cont .title {
		font-size: 1.1rem;
		margin-bottom: 1rem;
	}

	#r5_modal_cont .text {
		font-size: 0.8rem;
	}

}

