@charset "utf-8";
/*------------------------------------------------------------
	message
------------------------------------------------------------*/
#pagePath {
	/* margin-bottom: 0.4rem; */
}
#pagePath::before {
	background: #ECF3F8;
}
#main .mainBox {
	background: #ECF3F8;
}
#main .mainImg img {
	width: 100%;
}
#main .content {
	padding: 3.9rem 0 27.8rem;
}
#main h2 {
	padding-bottom: 0.4rem;
	width: 10.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	left: -4.2rem;
	top: -14.6rem;
	color: #fff;
	text-align: center;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	aspect-ratio: 104/120;
	background: url(../img/message/bg01.png) no-repeat center center / 100%;
	z-index: 1;
}
#main .ttl {
	margin-bottom: 6.4rem;
	color: #122C5C;
	font-weight: 500;
	font-size: 6rem;
}
#main .textBox {
	padding: 10.7rem 14rem;
	position: relative;
	border-radius: 2.4rem;
	background: #fff;
	margin-top: -13rem;
}
#main .textBox p {
	margin-bottom: 3.6rem;
	font-size: 1.8rem;
	line-height: 2;
}
#main .textBox p.ttl {
    margin-bottom: 7rem;
}
#main .textBox .last {
	margin: 9.1rem 12.8rem 0 0;
	text-align: right;
}
#main .textBox .last img {
	width: 19.4rem;
	margin-left: 2rem;
	vertical-align: -0.65em;
}
#main .textBox .photo {
	width: 16rem;
	position: absolute;
	right: 8rem;
    bottom: 3.4rem;
}
#main .textBox .photo img {
	width: 100%;
}
@media all and (min-width: 897px) and (max-width: 1599px) {
	#main .textBox .photo {
		/* width: max(15rem, 27vw); */
		/* width: 16rem;
		position: absolute; */
		/* right: min(calc(50% - 46rem), calc(50% - 36vw));
		bottom: min(-9.1rem, -7.125vw); */
		/* right: min(calc(50% - 40rem), calc(50% - 15vw));
        bottom: min(4.1rem, 2.125vw);
		transform: translateX(50%); */
	}
}
@media all and (max-width: 896px) {
	/* #pagePath {
		margin-bottom: 0.2rem;
	} */
	#main .mainImg img {
		aspect-ratio: 375/210;
		object-fit: cover;
	}
	#main .content {
		padding: 3.5rem 0 16rem;
	}
	#main h2 {
		padding-bottom: 0;
		width: 7.4rem;
		left: -2rem;
		top: -7rem;
		font-size: 1.3rem;
	}
	#main .ttl {
		margin-bottom: 2rem;
		font-size: 2.4rem;
	}
	#main .textBox {
		padding: 2rem 2rem;
		border-radius: 1.2rem;
		margin-top: -6rem;
	}
	#main .textBox p {
		margin-bottom: 1.8rem;
		font-size: 1.4rem;
		line-height: 1.875;
	}
	#main .textBox p.ttl {
		margin: 3rem auto 40px;
        text-align: center;
        max-width: 90%;
	}
	#main .textBox .last {
		margin: 3rem 0 0 0;
	}
	#main .textBox .last img {
		width: 12rem;
		margin-left: 1rem;
		vertical-align: -0.4em;
	}
	#main .textBox .photo {
		margin: 2rem auto 0;
		max-width: 100%;
		position: relative;
		right: auto;
		bottom: auto;
	}
}