html,
body {
	height: 100%;
}
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
/* ==========================================================================
 * チャット
 * ========================================================================== */
#chat-container {
	overflow-y: auto;
	padding: 20px;
	background: #f9f9f9;
	min-height: 0;
	flex: 1;
}
.message {
	position: relative;
	margin-bottom: 15px;
	padding: 10px;
	border-radius: 5px;
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.5;
	box-shadow: 1px 2px 4px 2px rgba(0, 0, 0, .1);
}
.user-message {
	margin-right: 10px;
	margin-left: 20%;
	color: #3498db;
	font-weight: bold;
	background-color: #e3f2fd;
}
.user-message::before {
	position: absolute;
	content: "";
	top: 10px;
	right: -10px;
	width: 10px;
	height: 12px;
	background: url("../images/message_icon_user.png") no-repeat center center /cover;
	display: block;
	z-index: 1;	
}
.bot-message {
	background-color: #fff;
	margin-right: 10%;
	margin-left: 53px;
}
.bot-message::before {
	position: absolute;
	content: "";
	top: 15px;
	left: -52px;
	width: 53px;
	height: 41px;
	background: url("../images/message_icon_bot.png") no-repeat center center /cover;
	display: block;
	z-index: 1;
}
/* ==========================================================================
 * テンプレート
 * ========================================================================== */
.template-container {
	padding: 5px;
	background: #f0f7ff;
	font-size: 14px;
}
.template-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.template-button {
	margin: 3px 3px 3px 0;
	background: white;
	border: 1px solid #006a9c;
	color: #1976d2;
	padding: 3px 5px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.9em;
	transition: all 0.3s ease;
	text-align: left;
}
.template-button:hover {
	background: #006a9c;
	color: white;
}
/* ==========================================================================
 * ローディング
 * ========================================================================== */
#loading {
	position: absolute;
	left: 50%;
	bottom: 0;
	padding: 10px;
	height: 80px;
	display: none;
	color: #666;
	text-align: center;
	font-weight: bold;
	transform: translateX(-50%);
	z-index: 10;
}
/*-------------------- ローディングアニメーション --------------------*/
.ball-pulse-sync > div {
	background-color: #f5ca1f;
	width: 10px;
	height: 10px;
	border-radius: 100%;
	margin: 5px;
	animation-fill-mode: both;
	display: inline-block;
}
.ball-pulse-sync > div:nth-child(1) {
	animation: ball-pulse-sync 0.6s -0.14s infinite ease-in-out;
}
.ball-pulse-sync > div:nth-child(2) {
	animation: ball-pulse-sync 0.6s -0.07s infinite ease-in-out;
}
.ball-pulse-sync > div:nth-child(3) {
	animation: ball-pulse-sync 0.6s 0s infinite ease-in-out;
}
@keyframes ball-pulse-sync {
	33% {
		transform: translateY(10px);
	}
	66% {
		transform: translateY(-10px);
	}
	100% {
		transform: translateY(0);
	}
}
/* ==========================================================================
 * インプット
 * ========================================================================== */
#input-container {
	margin: 3px;
	display: flex;
	gap: 5px;
}
#user-input {
	flex-grow: 1;
	padding: 5px;
	border: 1px solid #ccc;
	font-size: 1.6rem;
}
#send-button {
	width: 100px;
	padding: 5px 10px;
}