/* #chatbot-container 全体のレイアウト */
#chatbot-container {
	position: fixed;
	bottom: 80px;
	right: 20px;
	width: 350px;
	max-height: 500px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	background-color: #fff;
	font-family: Arial, sans-serif;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* メッセージ表示エリア */
#messages {
	flex-grow: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}
#messages.active {
	padding: 15px;
	border-bottom: 1px solid #eee;
}

/* メッセージの共通スタイル */
.user-message,
.bot-message {
	padding: 10px 15px;
	margin-bottom: 10px;
	border-radius: 18px;
	max-width: 80%;
	word-wrap: break-word; /* 長い単語の折り返し */
}

/* ユーザーのメッセージ */
.user-message {
	background-color: #007bff;
	color: #fff;
	margin-left: auto; /* 右寄せ */
}

/* ボットのメッセージ */
.bot-message {
	background-color: #f1f1f1;
	color: #333;
	margin-right: auto; /* 左寄せ */
}
.bot-message h2 {
	font-weight: bold;
}
.bot-message a {
	text-decoration: underline;
}

/* 入力フォームと送信ボタンのコンテナ */
#chat-box {
	display: flex; /* これが重要 */
	flex-direction: row; /* 水平に並べる */
	align-items: center; /* 垂直方向中央寄せ */
	padding: 10px;
}

/* 入力フォーム */
#user-input {
	flex-grow: 1; /* 残りのスペースをすべて占める */
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 10px 15px;
	font-size: 14px;
	outline: none;
	height: auto;
}

/* 送信ボタン */
#send-button {
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 10px 15px;
	margin-left: 8px;
	cursor: pointer;
	transition: background-color 0.3s;
	height: auto;
}

#send-button:hover {
	background-color: #0056b3;
}
