/* サイト内AI相談の画面（紺の背景に合わせ、回答は読みやすい白地にする） */
#consultation .consult-notice {
	max-width: 840px;
	margin: 0 auto 24px;
	font-size: 15px;
	line-height: 1.7;
}
#consultation .consult-notice a {
	color: #fcee21;
}
#consult-chat {
	max-width: 840px;
	margin: 0 auto;
}
.consult-turn {
	margin: 0 0 28px;
}
.consult-label {
	font-size: 13px;
	font-weight: bold;
	margin: 0 0 4px;
	opacity: 0.85;
}
.consult-question {
	margin: 0 0 12px 15%;
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.15);
}
.consult-question-text {
	margin: 0;
	white-space: pre-wrap;	/* 改行をそのまま表示する（textContent で入れるため） */
	overflow-wrap: anywhere;
}
.consult-answer {
	margin: 0 15% 0 0;
	padding: 14px 18px;
	border-radius: 12px;
	background: #fff;
	color: #333;
	line-height: 1.8;
	overflow-wrap: anywhere;
}
.consult-answer .consult-label {
	color: #002a7e;
}
.consult-answer h3,
.consult-answer h4,
.consult-answer h5 {
	color: #002a7e;
	background: none;
	border: none;
	padding: 0;
	margin: 16px 0 6px;
	font-size: 17px;
	text-align: left;
}
.consult-answer ul,
.consult-answer ol {
	margin: 6px 0 6px 1.5em;
	padding: 0;
}
.consult-answer table {
	border-collapse: collapse;
	margin: 8px 0;
}
.consult-answer th,
.consult-answer td {
	border: 1px solid #ccc;
	padding: 4px 8px;
	background: #fff;
	color: #333;
}
.consult-answer pre {
	white-space: pre-wrap;
	background: #f4f4f4;
	padding: 8px;
}
.consult-sources {
	margin: 14px 0 0;
	padding: 10px 0 0;
	border-top: 1px solid #ddd;
	font-size: 15px;
}
.consult-sources p {
	margin: 0 0 4px;
	font-weight: bold;
	color: #002a7e;
}
.consult-sources ul {
	margin: 0 0 0 1.2em;
}
.consult-sources a {
	color: #0645ad;
}
#consult-status {
	text-align: center;
	font-weight: bold;
	margin: 12px 0;
}
#consult-error {
	color: #ffb4b4;
	font-weight: bold;
	text-align: center;
}
.consult-remaining {
	text-align: center;
	margin: 8px 0;
}
.consult-form-label {
	display: block;
	margin: 0 0 6px;
}
#consult-question-form textarea,
.consult-industry-other input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	font-size: 16px;	/* iOS で入力時に拡大されないよう16px以上にする */
	border: 1px solid #fff;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-family: inherit;
}
.consult-industry-other {
	margin: 8px 0 0;
}
.consult-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px 20px;
	margin: 20px 0 0;
}
.consult-button-secondary {
	background: transparent;
	color: #fff;
	border: 1px solid #fff;
	border-radius: 100px;
	padding: 10px 28px;
	font-size: 16px;
	cursor: pointer;
}
.consult-button-secondary:disabled {
	opacity: 0.6;
	cursor: default;
}
.consult-entry {
	text-align: center;
	margin: 16px 0;
}
@media screen and (max-width:800px){
	.consult-question {
		margin-left: 0;
	}
	.consult-answer {
		margin-right: 0;
	}
}
/* 担当者へのお問い合わせ（指示書028） */
#consult-inquiry {
	margin: 32px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.4);
}
.consult-handoff {
	max-width: 840px;
	margin: 0 auto 16px;
	padding: 12px 16px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.12);
}
.consult-handoff p {
	margin: 0 0 6px;
	font-weight: bold;
}
.consult-handoff ul {
	margin: 0 0 0 1.4em;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.consult-button-primary {
	border: none;
	cursor: pointer;
	font-family: inherit;
}
.consult-button-primary:disabled {
	opacity: 0.6;
	cursor: default;
}
/* 一番新しい回答の下に出す、担当者へのお問い合わせの案内 */
.consult-handoff-hint {
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff8d6;
	color: #333;
	font-size: 15px;
	line-height: 1.7;
}
.consult-hint-open {
	background: none;
	border: none;
	padding: 0;
	color: #0645ad;
	font-weight: bold;
	font-size: inherit;
	font-family: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.consult-hint-open:disabled {
	opacity: 0.6;
	cursor: default;
}
