/* チャットウインドウのスタイル */
.chat-popup {
	display: none; /* 初期状態では非表示 */
	position: fixed;
	bottom: 0px;
	right: 0px;
	width: 100%;
	height: 100%;
	border: none;
	z-index: 1000;
	box-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
	background-color: #c5c5c5;
	opacity: 0;
	/* transform: scale(0.9); */
	transition: all 0.5s ease;
	zoom: calc(var(--scale) * 1.8);
}

/* 画面サイズが751px以上の場合のPCスタイル */
@media (min-width: 751px) {
	.chat-popup {
		width: 500px; /* 横幅 */
		height: 600px; /* 縦幅 */
		bottom: 20px; /* 画面の下からの距離 */
		right: 20px; /* 画面の右からの距離 */
		box-shadow: 0 0px 15px rgba(0, 0, 0, 0.3);
		border-radius: 20px; /* .iframe-areaと同じにする */
		zoom: var(--scale);
	}
	.iframe-area {
		border-radius: 20px; /* .chat-popupと同じにする */
	}
}

/* チャットウインドウを閉じるボタンCSS */
.close-button {
	display: block;
	position: fixed;
	top: 15px; /* 閉じるボタン位置調整 */
	right: 15px; /* 閉じるボタン位置調整 */
	width: 25px;
	height: 25px;
	border: 1px solid #605341; /* 枠 */
	background: #e9e9e9; /* ボタンの背景色 */
	cursor: pointer;
	z-index: 1001; /* iframeの上に表示されるようにする */
	border-radius: 5px;
}

.close-button:hover {
	border: 1px solid #000000; /* マウスが上に来たときの枠 */
	background: #e1d6c7; /* マウスが上に来たときの背景色 */
	transition: background 0.2s ease;
}

.close-button::before,
.close-button::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2px; /* 棒の幅（太さ） */
	height: 27px; /* 棒の高さ */
	background: #605341; /* バツ印の色 */
}

.close-button:hover::before,
.close-button:hover::after {
	background: #685945; /* マウスが上に来たときのバツ印の色 */
}

.close-button::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.close-button::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}
