@charset "UTF-8";
/* 診断ボックス全体 */
.content-box {
	position: fixed;
	inset: 0;
	background-color: rgb(0 0 0 / 0.7);
	display: grid;
	place-items: center;
	overflow: auto;
	transition: opacity 0.7s;
	padding: 30px 0;
	z-index: 99999;
}
.content-box.is-hide {
	display: none;
	translate: 0 -30px;
	pointer-events: none;
}
.content-box-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 6px solid rgb(0 146 69 / 0.8);
	width: min(calc(300 / 375 * 100vw), 350px);
	min-height: 490px;
	border-radius: 25px;
	padding: 60px 24px 44px;
	box-shadow: 0 3px 6px rgb(0 0 0 / 0.16);
	transition: opacity 0.7s,translate 0.7s;
	box-sizing: border-box;
}
.content-box-inner:has(.question-box.is-hide) {
	border-color: #DF414F;
	justify-content: space-between;
	padding: 28px 24px 44px;
}
@media (min-width: 768px) {
	.content-box {
		align-items: start;
		padding: 100px 30px 60px;
	}
	.content-box-inner {
		border: 12px solid rgb(0 146 69 / 0.8);
		width: min(100%, 1000px);
		min-height: 800px;
		padding: 72px 80px 78px;
	}
	.content-box-inner:has(.question-box.is-hide) {
		padding: 90px 80px 80px;
	}
}

/* question */
.question-box.is-hide,
.select-btn-box.is-hide {
	display: none;
}
.question-image {
	width: min(calc(223 / 375 * 100vw), 250px);
	margin-inline: auto;
}
.question-image img{
	width: 100%;
	height: auto;
}
.question-image .sub {
	margin-top: 8px;
}
.question-txt {
	font-size: 18px;
	line-height: calc(24 / 18);
	font-weight: 700;
	font-family: var(--font-primary);
	color: #707070;
	margin-top: 12px;
}
@media (min-width: 768px) {
	.question-image {
		width: 357.5px;
	}
	.question-image .sub {
		margin-top: 10px;
	}
	.question-txt {
		font-size: 40px;
		line-height: calc(65 / 40);
		width: fit-content;
		margin-inline: auto;
	}
}

/* 診断結果 */
.result-box.is-hide {
	display: none;
}

#resultStar {
	margin-inline: auto;
	width: 74px;
	height: 30px;
	--duration: 1s;
	--delay01: 0.2s;
	--delay02: 0.4s;
	--scaleBase: 1;
	--scale: 1.25;
	--scaleOver: 1.7;
	--easing: ease;
}
#resultStar svg {
	overflow: visible!important;
	width: 100%;
}
#resultStar .star {
	scale: var(--baseScale);
	fill: rgb(240 160 167 / 0);
}

#resultStar.result-star-1 .star01 {
	translate: -7% 0;
	animation: showStar01 var(--duration) forwards;
}
#resultStar.result-star-1 .star02 {
	animation: showStar_noEmphasis02 var(--duration) var(--easing) var(--delay01) forwards;
}
#resultStar.result-star-1 .star03 {
	translate: 7% 0;
	animation: showStar_noEmphasis03 var(--duration) var(--easing) var(--delay02) forwards;
}

#resultStar.result-star-2 .star01 {
	translate: -7% 0;
	animation: showStar01 var(--duration) var(--easing) forwards;
}
#resultStar.result-star-2 .star02 {
	animation: showStar02 var(--duration) var(--easing) var(--delay01) forwards;
}
#resultStar.result-star-2 .star03 {
	translate: 7% 0;
	animation: showStar_noEmphasis03 var(--duration) var(--easing) var(--delay02) forwards;
}

#resultStar.result-star-3 .star01 {
	translate: -7% 0;
	animation: showStar01 var(--duration) var(--easing) forwards;
}
#resultStar.result-star-3 .star02 {
	animation: showStar02 var(--duration) var(--easing) var(--delay01) forwards;
}
#resultStar.result-star-3 .star03 {
	translate: 7% 0;
	animation: showStar03 var(--duration) var(--easing) var(--delay02) forwards;
}
@keyframes showStar01 {
	0% {
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 0);
	}
	30% {
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 1);
		transform-origin: left;
	}
	80% {
		fill: rgb(225 65 79 / 1);
	}
	90% {
		scale: var(--scaleOver);
		fill: rgb(225 65 79 / 1);
	}
	100% {
		transform-origin: left;
		scale: var(--scale);
		rotate: var(--rotate);
		fill: rgb(225 65 79 / 1);
	}
}
@keyframes showStar02 {
	0% {
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 0);
	}
	30% {
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 1);
		transform-origin: center;
	}
	80% {
		fill: rgb(225 65 79 / 1);
	}
	90% {
		scale: var(--scaleOver);
		fill: rgb(225 65 79 / 1);
	}
	100% {
		transform-origin: center;
		scale: var(--scale);
		fill: rgb(225 65 79 / 1);
	}
}
@keyframes showStar03 {
	0% {
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 0);
	}
	30% {
		transform-origin: right;
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 1);
	}
	80% {
		fill: rgb(225 65 79 / 1);
	}
	90% {
		scale: var(--scaleOver);
		fill: rgb(225 65 79 / 1);
	}
	100% {
		transform-origin: right;
		scale: var(--scale);
		fill: rgb(225 65 79 / 1);
	}
}
@keyframes showStar_noEmphasis01 {
	0% {
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 0);
	}
	30% {
		transform-origin: left;
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 1);
	}
	90% {
		scale: var(--scaleOver);
		fill: rgb(240 160 167 / 1);
	}
	100% {
		transform-origin: left;
		scale: var(--scale);
		fill: rgb(240 160 167 / 1);
	}
}
@keyframes showStar_noEmphasis02 {
	0% {
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 0);
	}
	30% {
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 1);
		transform-origin: center;
	}
	90% {
		scale: var(--scaleOver);
		fill: rgb(240 160 167 / 1);
	}
	100% {
		transform-origin: center;
		scale: var(--scale);
		fill: rgb(240 160 167 / 1);
	}
}
@keyframes showStar_noEmphasis03 {
	0% {
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 0);
	}
	30% {
		transform-origin: right;
		scale: var(--scaleBase);
		fill: rgb(240 160 167 / 1);
	}
	90% {
		scale: var(--scaleOver);
		fill: rgb(240 160 167 / 1);
	}
	100% {
		transform-origin: right;
		scale: var(--scale);
		fill: rgb(240 160 167 / 1);
	}
}

.result-title {
	border-bottom: 2.5px dotted #DF414F;
	color: #DF414F;
	font-size: 28px;
	font-weight: 700;
	line-height: calc(34 / 28);
	font-family: var(--font-primary);
	text-align: center;
	padding: 3px 0 12px;
}
.result-description {
	font-size: 16px;
	line-height: calc(24 / 16);
	margin-top: 12px;
}
@media (min-width: 768px) {
	.result-box {
		margin-inline: auto;
	}
	#resultStar {
		width: 110px;
		height: 45px;
	}
	.result-title {
		border-bottom: 5px dotted #DF414F;
		font-size: 40px;
		line-height: calc(65 / 40);
		padding: 6px 0 23px;
		max-width: 565px;
		margin-inline: auto;
	}
	.result-description {
		font-size: 20px;
		line-height: calc(44 / 20);
		margin: 65px auto 0;
		max-width: 800px;
	}
}

/* ---------- ボタン ---------- */
/* 共通 */
.btn {
	display: block;
	cursor: pointer;
	border: none;
	background-color: #fff;
	touch-action: manipulation;
}

/* 閉じるボタン */
.btn-close {
	color: #E2E0E0;
	background-color: transparent;
	position: absolute;
	top: 10px;
	right: 13px;
	font-size: 40px;
	font-weight: 300;
	line-height: 1;
	font-weight: 500;
	font-family: var(--font-primary);
	transition: color 0.3s;
}
@media (min-width: 768px) {
	.btn-close {
		top: 40px;
		right: min(calc(70 / 1100 * 100vw), 70px);
		font-size: 97px;
		font-weight: 300;
	}
	.btn-close:hover {
		color: #333;
	}
}

/* yes/noボタン */
.select-btn-box {
	display: grid;
	grid-template-columns: auto auto;
	justify-content: center;
	column-gap: 23px;
	margin-top: auto;
}
.btn-yes,
.btn-no {
	display: grid;
	place-items: center;
	border-radius: 50%;
	background-color: #fff;
	box-sizing: border-box;
	font-size: 22px;
	font-weight: 900;
	font-family:  "Zen Kaku Gothic New", sans-serif;
	text-transform: uppercase;
	width: min(110px, calc(110 / 375 * 100vw));
	height: min(110px, calc(110 / 375 * 100vw));
	transition: color 0.3s,background-color 0.3s;
}
.btn-yes {
	--base-color: #FF5A85;
	border: 6px solid var(--base-color);
	color: var(--base-color);
}
.btn-no {
	--base-color: #7AD3EB;
	border: 6px solid var(--base-color);
	color: var(--base-color);
}
.btn-yes.is-active,
.btn-no.is-active {
	background-color: var(--base-color);
	color: #fff;
}
@media (min-width: 768px) {
	.select-btn-box {
		column-gap: 120px;
	}
	.btn-yes,
	.btn-no {
		font-size: 40px;
		width: 192px;
		height:  192px;
	}
	.btn-yes:hover,
	.btn-no:hover {
		background-color: var(--base-color);
		color: #fff;
	}
}

/* next/backボタン */
.prev-next-btn-wrap {
	display: grid;
	grid-template-columns: auto auto;
	justify-content: space-between;
	column-gap: 38px;
	margin-top: 43px;
}
.content-box-inner:has(.question-box.is-hide) .prev-next-btn-wrap {
	margin-top: 16px;
}
.prev-next-btn-wrap .btn {
	display: block;
	color: inherit;
	background-color: #E8E8E8;
	border: 5px solid #E8E8E8;
	border-radius: 100vh;
	font-weight: 500;
	width: 94px;
	height: 28px;
	position: relative;
	transition: background-color 0.3s;
}
.btn-next {
	font-size: 11px;
	text-transform: uppercase;
	font-family: var(--font-primary);
	padding-right: 10px;
	opacity: 0.3;
	pointer-events: none;
	transition: opacity 0.7s;
}
.btn-next::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 10px;
	translate: 0 -50%;
	background: url(../img/feature/diabnosis_img_icon_next.svg) no-repeat center / contain;
	width: 11px;
	height: 4px;
}
.btn-prev {
	font-size: 10px;
	text-transform: uppercase;
	padding-left: 10px;
	font-family: var(--font-primary);
	transition: opacity 0.7s;
}
.btn-prev::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 10px;
	translate: 0 -50%;
	background: url(../img//feature/diabnosis_img_icon_prev.svg) no-repeat center / contain;
	width: 11px;
	height: 4px;
}
.content-box:has(.btn-yes.is-active) .btn-next,
.content-box:has(.btn-no.is-active) .btn-next {
	opacity: 1;
	pointer-events: visible;
}
.btn-next.is-hide {
	opacity: 0;
	pointer-events: none;
}
.btn-prev.is-hide {
	opacity: 0;
	pointer-events: none;
}
@media  (min-width: 768px) {
	.prev-next-btn-wrap {
		margin-top: 66px;
	}
	.prev-next-btn-wrap .btn {
		font-size: 20px;
		width: 170px;
		height: 50px;
		padding: 0 40px;
	}
	.btn-next::after {
		top: 45%;
		right: 12px;
		width: 19.35px;
		height: 6.55px;
	}
	.btn-prev::before {
		top: 45%;
		left: 12px;
		width: 19.35px;
		height: 6.55px;
	}
	.btn-next:hover,
	.btn-prev:hover {
		background-color: #fff;
	}
}