/* Chatbot Styles */
#kyoto-chatbot {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	font-family: 'Noto Sans JP', sans-serif;
}

.chatbot-toggle-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #111;
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease, background-color 0.3s;
}

.chatbot-toggle-btn:hover {
	transform: scale(1.05);
	background-color: #333;
}

.chatbot-window {
	position: absolute;
	bottom: 80px;
	right: 0;
	width: 350px;
	max-height: 500px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.chatbot-window.active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.chatbot-header {
	background: #111;
	color: #fff;
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.chatbot-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
}

.chatbot-close-btn {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 4px;
	opacity: 0.8;
}

.chatbot-close-btn:hover {
	opacity: 1;
}

.chatbot-body {
	padding: 20px;
	overflow-y: auto;
	max-height: 400px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #fcfcfc;
}

.chatbot-message {
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.6;
	max-width: 85%;
	word-break: break-word;
}

.bot-message {
	background: #f1f1f1;
	color: #333;
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}

.user-message {
	background: #111;
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}

.chatbot-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}

.chatbot-option-btn {
	background: #fff;
	border: 1px solid #ddd;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 12px;
	color: #444;
	text-align: left;
	cursor: pointer;
	transition: all 0.2s;
}

.chatbot-option-btn:hover {
	background: #f8f8f8;
	border-color: #111;
	color: #111;
}

@media (max-width: 480px) {
	.chatbot-window {
		width: calc(100vw - 32px);
		right: -8px;
	}
}

/* Chatbot Tooltip */
.chatbot-tooltip {
	position: absolute;
	right: 75px;
	bottom: 12px;
	background-color: #111;
	color: #fff;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	pointer-events: none;
	white-space: nowrap;
	animation: bounceTooltip 2s infinite ease-in-out;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.chatbot-tooltip::after {
	content: '';
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	border-width: 6px 0 6px 6px;
	border-style: solid;
	border-color: transparent transparent transparent #111;
}

@keyframes bounceTooltip {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(-5px); }
}

@media (max-width: 480px) {
	.chatbot-tooltip {
		right: 70px;
		bottom: 15px;
		font-size: 12px;
	}
}

.chatbot-footer {
	border-top: 1px solid #e5e7eb;
	padding: 12px 20px;
	background: #fff;
	display: flex;
	gap: 8px;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
}

.chatbot-input {
	flex: 1;
	border: 1px solid #d1d5db;
	border-radius: 9999px;
	padding: 8px 16px;
	font-size: 14px;
	outline: none;
	width: 100%;
}

.chatbot-input:focus {
	border-color: #111;
}

.chatbot-send-btn {
	background: #111;
	color: #fff;
	border: none;
	border-radius: 9999px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.2s;
}

.chatbot-send-btn:hover {
	background: #333;
}

.chatbot-footer, .chatbot-input, .chatbot-send-btn {
	box-sizing: border-box;
}
