/* =========================================
	 アニメーション用の角度設定（※必須）
========================================= */
@property --angle {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

/* =========================================
	 親要素（可変サイズ）
========================================= */
.fv_img {
	position: relative;
	width: 100%; /* 任意のパーセンテージやvwで可変 */
	max-width: 400px;
	aspect-ratio: 1 / 1; /* 正方形を保つ */
	margin: 0 auto;
}

/* =========================================
	 1. 円を描くアニメーション
========================================= */
.fv_img_circle {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 1px solid var(--color-primary);
	
	/* マスクで枠線を隠しておき、角度（--angle）をアニメーションで広げる */
	-webkit-mask-image: conic-gradient(black var(--angle), transparent var(--angle));
	mask-image: conic-gradient(black var(--angle), transparent var(--angle));
	
	/* 2秒かけて円を描く */
	animation-name: drawCircle;
	animation-duration: 2s;
	animation-timing-function: ease;
	animation-fill-mode: forwards;
}

@keyframes drawCircle {
	100% {
	--angle: 360deg;
	}
}

/* =========================================
	 2. 中身を表示するアニメーション
========================================= */
.fv_img_core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	display: flex;
	justify-content: center;
	align-items: center;
	aspect-ratio: 1 / 1;
	width: 40%;
	background-color: var(--color-primary);
	color: var(--color-white);
	border-radius: 50%;
	font-size: 40px;
	
	/* 初期状態を確実に非表示にする */
	opacity: 0;
	visibility: hidden; 
	
	/* アニメーションの設定 */
	animation-name: fadeInCore;
	animation-duration: 1s;				/* フェードインにかかる時間（1秒） */
	animation-timing-function: ease;
	animation-delay: 2s;					 /* 円の描画が終わるのを待つ時間（2秒） */
	animation-fill-mode: forwards; /* アニメーション完了後の状態をキープ */
}

.fv_txt_img {
	position: absolute;
	color: var(--color-primary);
	
	/* 初期状態を確実に非表示にする */
	opacity: 0;
	visibility: hidden; 
	
	/* アニメーションの設定 */
	animation-name: fadeInCore;
	animation-duration: 1s;				/* フェードインにかかる時間（1秒） */
	animation-timing-function: ease;
	animation-delay: 3s;					 /* 円の描画が終わるのを待つ時間（2秒） */
	animation-fill-mode: forwards; /* アニメーション完了後の状態をキープ */
}
.fv_txt_img dl {
	font-size: 20px;
	line-height: 1.4;
	text-align: center;
}
.fv_txt_img .en {
	font-size: 240%;
}
.fv_txt_img_1 {
	top: -30px;
	left: 55%;
}
.fv_txt_img_2 {
	top: 40%;
	left: 0;
	transform: translateX(-55%);
}
.fv_txt_img_3 {
	top: 85%;
	left: 65%;
}
@keyframes fadeInCore {
	0% {
	opacity: 0;
	visibility: hidden;
	}
	100% {
	opacity: 1;
	visibility: visible;
	}
}

@media (max-width: 1199px) {
	.fv_img {
		max-width: 360px;
		margin: 0 auto;
	}
	.fv_img_core {
		font-size: 32px;
	}
	.fv_txt_img dl {
		font-size: 18px;
	}
	.fv_txt_img .en {
		font-size: 200%;
	}
}
@media (max-width: 991px) {
	.fv_img {
		max-width: 280px;
		margin: 0 auto;
	}
	.fv_img_core {
		font-size: 28px;
	}
	.fv_txt_img .en {
		font-size: 180%;
	}
	.fv_txt_img dl {
		font-size: 16px;
	}
}
@media (max-width: 850px) {
	.fv_img {
		max-width: 280px;
		margin: 0 0 0 auto;
	}
}
@media (max-width: 767px) {
	.fv_img {
		max-width: 240px;
		margin: 0 auto;
	}
	.fv_img_core {
		max-width: 80px;
		font-size: 20px;
	}
	.fv_txt_img_1 {
		top: -20px;
		left: 40%;
	}
	.fv_txt_img_2 {
		top: 55%;
		left: 0;
		transform: translateX(-30%);
	}
	.fv_txt_img_3 {
		top: 75%;
		left: 70%;
	}
}
