/* よくある質問チャットウィジェット */
/* サイト全体は html{font-size:62.5%}（1rem=10px）のため、文字サイズはpxで明示する */
.faqchat_btn {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 100000;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 11px 18px 11px 15px;
	border: 2px solid #fff;
	border-radius: 28px;
	background: linear-gradient(135deg, #3D7CAD 0%, #4E97B8 100%);
	color: #fff;
	font-weight: bold;
	box-shadow: 0 8px 22px rgba(46, 84, 110, 0.45);
	cursor: pointer;
	line-height: 1.2;
	letter-spacing: 0;
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", YuGothic, Meiryo, sans-serif;
}
.faqchat_btn:hover {
	background: #336A96;
}
.faqchat_btn_icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	font-size: 14px;
	flex: 0 0 auto;
}
.faqchat_btn_text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}
.faqchat_btn_main {
	font-size: 16px;
	line-height: 1.1;
}
.faqchat_btn_sub {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.1;
	opacity: 0.95;
}
.faqchat_backdrop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	background: rgba(42, 54, 62, 0.28);
	backdrop-filter: blur(2px);
}
.faqchat_backdrop.is-open {
	display: block;
}
.faqchat_panel {
	position: fixed;
	right: 16px;
	bottom: 84px;
	z-index: 100001;
	width: min(420px, calc(100vw - 32px));
	max-height: min(640px, calc(100vh - 130px));
	display: none;
	flex-direction: column;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 18px 46px rgba(65, 91, 110, 0.28);
	overflow: hidden;
	border: 1px solid rgba(120, 180, 230, 0.25);
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", YuGothic, Meiryo, sans-serif;
}
.faqchat_panel.is-open {
	display: flex;
}
.faqchat_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #3D7CAD 0%, #4E97B8 100%);
	color: #fff;
}
.faqchat_head p {
	margin: 0;
	font-size: 17px;
	font-weight: bold;
	line-height: 1.35;
	letter-spacing: 0;
}
.faqchat_head small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.35;
	opacity: 0.92;
	letter-spacing: 0;
}
.faqchat_close {
	border: none;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex: 0 0 auto;
}
.faqchat_body {
	flex: 1;
	overflow-y: auto;
	padding: 18px;
	background: linear-gradient(180deg, #fbfaf7 0%, #f7fbfd 100%);
	-webkit-overflow-scrolling: touch;
}
.faqchat_msg {
	max-width: 92%;
	margin: 0 0 10px;
	padding: 12px 14px;
	border-radius: 16px;
	font-size: 15px;
	line-height: 1.75;
	color: #333;
	overflow-wrap: break-word;
	word-break: normal;
	letter-spacing: 0;
}
.faqchat_msg--bot {
	background: #fff;
	border: 1px solid #D6E8F7;
	border-bottom-left-radius: 6px;
}
.faqchat_msg a {
	color: #336A96;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 600;
}
.faqchat_note {
	font-size: 12px;
	color: #6f685e;
	margin: 2px 2px 14px;
	line-height: 1.6;
	word-break: normal;
	overflow-wrap: break-word;
}
.faqchat_list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
}
.faqchat_item {
	background: #fff;
	border: 1.5px solid #6FA8D2;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(120, 180, 230, 0.12);
}
.faqchat_item.is-open {
	border-color: #3D7CAD;
	box-shadow: 0 5px 14px rgba(61, 124, 173, 0.22);
}
.faqchat_q {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 13px 14px;
	border: none;
	background: none;
	color: #2F6E9E;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.55;
	text-align: left;
	cursor: pointer;
	word-break: normal;
	overflow-wrap: break-word;
	letter-spacing: 0;
}
.faqchat_item.is-open .faqchat_q {
	background: #EAF4FB;
}
.faqchat_q:hover {
	background: #F2F8FC;
}
.faqchat_q_label {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #3D7CAD;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	flex: 0 0 auto;
}
.faqchat_q_text {
	flex: 1 1 auto;
}
.faqchat_q_toggle {
	flex: 0 0 auto;
	color: #3D7CAD;
	font-size: 18px;
	font-weight: bold;
	line-height: 1;
}
.faqchat_a_inner {
	display: flex;
	gap: 10px;
	padding: 13px 14px 15px;
	border-top: 1px dashed #BBD8EE;
	background: #FBFDFF;
}
.faqchat_a_label {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #E8A33D;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	flex: 0 0 auto;
}
.faqchat_a_text {
	flex: 1 1 auto;
	font-size: 15px;
	line-height: 1.85;
	color: #333;
	word-break: normal;
	overflow-wrap: break-word;
	letter-spacing: 0;
}
.faqchat_a_text a {
	display: inline-block;
	margin-top: 8px;
	color: #336A96;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 600;
}
@media screen and (max-width: 599px) {
	.faqchat_btn {
		right: 12px;
		bottom: 12px;
		padding: 10px 15px 10px 12px;
	}
	.faqchat_btn_icon {
		width: 26px;
		height: 26px;
		font-size: 13px;
	}
	.faqchat_btn_main {
		font-size: 15px;
	}
	.faqchat_btn_sub {
		font-size: 11px;
	}
	.faqchat_panel {
		right: 10px;
		left: 10px;
		width: auto;
		bottom: 80px;
		max-height: min(76vh, 640px);
		border-radius: 18px;
	}
	.faqchat_head {
		padding: 13px 16px;
	}
	.faqchat_body {
		padding: 16px 14px 18px;
	}
	.faqchat_msg {
		max-width: 96%;
		font-size: 15px;
		line-height: 1.8;
	}
	.faqchat_q {
		padding: 14px;
		font-size: 16px;
	}
	.faqchat_a_text {
		font-size: 16px;
		line-height: 1.9;
	}
}
