@media screen and (max-width:768px) {
	#template01 .leaf_top {
		left: -200px;
		top: -110px;
	}
	#template01 .leaf_bottom{
		right: -200px;
		bottom: -100px;
	}
}
@media screen and (max-width:560px) {
	#main .header {
		width:100%;
		padding-top:30px;
	}
	.template_c4 .animation_wrapper{
		height: 100vh;
	}
	.template_c4 .animation_wrapper2{
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.template_c4b .animation_wrapper{
		height: 100vh;
	}
	.template_c4b .animation_wrapper2{
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.template_c4c .animation_wrapper{
		height: 100vh;
	}
	.template_c4c .animation_wrapper2{
		display: flex;
		justify-content: center;
		align-items: center;
	}
	#main .h { font-size:18px; }

	.c-header .info {
		text-align:left;
	}

	.c-header .img {
		width:90%;
	}
	.form table {
		width:100%;
	}
	.form table .l { width:49%; }
	.form table .m { width:2%; }
	.form table .r { width:49%; }

	.sp-none { display:none; }

	#template04 .gift_text{
		margin-top: 30px;
		line-height: 35px;
	}
	.term{
		margin-top: 40px;
	}
	.gift_text2{
		margin-top: 30px;
	}
	.invitation_text1,.gift_text,.invitation_text2{
		font-size: 13px;
	}
	.gift_text2{
		font-size: 12px;
	}

	.message_dates{
		font-size: 18px;
	}
	.message_date{
		font-size: 18px;
	}
	.message_times{
		font-size: 18px;
		padding-top: 20px;
	}
	.message_time{
		font-size: 18px;
		padding-top: 10px;
	}
	.message_info_text{
		font-size: 17px;
		padding-top: 20px;
	}
	.message_info_page{
		padding-top: 10px;
	}
	
}

@media screen and (max-width:560px) {
	.gift_text,.gift_text2,.gift_text3{ padding-left: 5px; padding-right: 5px; }
	.gift_inner{
		padding-bottom: calc(40px + constant(safe-area-inset-bottom)) !important;
		padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important;
	}
}