/* KAERUボタン */
.kaeru_icon {
	position: fixed !important;
	top: unset !important;
	bottom: 18vw !important;
	/*bottom: 4vw !important;*/
	right: 31vw !important;
	z-index: 2147483645;
}

.kaeru_icon .kaeru_icon_background {
	position: absolute;
	bottom: 0;
	object-fit: cover;
	width: 29vw;
	height: 11vw;
	border-radius: 2vw;
	padding: 1vw;
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: center;
	align-items: center;
	border: none;
}

/* 画像のサイズとテキストとの余白 */
.kaeru_icon .kaeru_icon_background img {
	height: 77%;
	margin-right: 0.5vw;
	padding-left: 1vw;
	width: auto;
}

.kaeru_icon .kaeru_icon_background span {
	font-size: 4.8vw;
	margin-top: 0.4vw;
	padding-right: 1vw;
	font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 900;
	font-style: normal;
	color: #424242;
}

body.modal-open {
	overflow: hidden;
	height: 100vh;
	position: fixed;
	width: 100%;
}

/* モーダル全体 */
.modal {
	margin: 0;
	padding: 0;
	background-color: rgba(0, 0, 0, 0.5);
	/* 背景を暗く */
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	width: 100%;
	z-index: 2147483646;
	position: fixed;
}

/* モーダルウィンドー部分 */
.modal_window {
	background-color: white;
	width: 60%;
	max-width: 75vw;
	border-radius: 5vw;
	box-shadow: 0 1vw 2vw rgba(0, 0, 0, 0.2);
	text-align: center;
	padding: 5vw 0 0;
}

.modal_window h2 {
	font-size: 1.2em;
	display: block;
	margin: 0 0 2vw;
	padding: 0;
	color: #666;
	letter-spacing: 0.1em;
	background: transparent;
}

.modal_window button {
	display: block;
	width: 100%;
	padding: 3vw;
	border: none;
	border-top: 1px solid #ccc;
	color: #007aff;
	text-decoration: none;
	font-size: 3.7vw;
}

.modal_window button:last-child {
	color: #666;
}

.modal_window p {
	margin: 0 2vw 2vw;
	color: #666;
	font-size: 2.8vw;
}

/* ローディング背景 */
.loading {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(255, 255, 255, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2147483647;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

/* フェードイン用クラス */
.loading.show {
	opacity: 1;
	pointer-events: all;
}

/* 中央コンテンツ */
.loading_inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 80%;
}

/* メイン画像 */
.loading_image {
	width: 100%;
	height: auto;
	margin-bottom: 2vw;
}

/* デフォルトでは非表示 */
.kaeru_icon {
	display: none;
}

/* show-kaeru-iconクラスが付与されている場合のみ表示 */
html.show-kaeru-icon .kaeru_icon {
	display: block;
}