/* ANYHOW 案内AI — site guide chat */
.ac-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* launcher */
.ac-panel, .ac-panel *, .ac-panel *::before, .ac-panel *::after, .ac-launcher { box-sizing: border-box; }
.ac-launcher {
	position: fixed;
	right: max(24px, env(safe-area-inset-right));
	bottom: max(24px, env(safe-area-inset-bottom));
	z-index: 70;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #111111;
	color: #FFFFFF;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	cursor: pointer;
	font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
	box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .55);
	transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.ac-launcher:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .6); }
.ac-launcher:focus-visible { outline: 3px solid var(--accent, #FFF04F); outline-offset: 3px; }
.ac-chip {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--accent, #FFF04F);
	color: #111111;
	font-family: Montserrat, sans-serif;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.5;
}
.ac-launcher__label { font-size: 11px; font-weight: 500; letter-spacing: .06em; line-height: 1.2; }
.ac-is-open .ac-launcher[aria-expanded="true"] { background: #333333; }

/* panel */
.ac-panel {
	position: fixed;
	right: max(24px, env(safe-area-inset-right));
	bottom: calc(max(24px, env(safe-area-inset-bottom)) + 84px);
	z-index: 1000;
	width: 380px;
	max-width: calc(100vw - 32px);
	height: min(640px, calc(100vh - 140px));
	height: min(640px, calc(100dvh - 140px));
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	color: #111111;
	border: 1px solid #DDDDDA;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
	font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
	font-size: 14px;
	line-height: 1.7;
	letter-spacing: .02em;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.ac-panel[hidden] { display: none; }
.ac-panel.is-open { opacity: 1; transform: none; }

.ac-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 12px 14px 18px;
	background: #111111;
	color: #FFFFFF;
	flex-shrink: 0;
}
.ac-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.ac-title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.ac-badge {
	display: inline-block;
	padding: 2px 8px;
	background: var(--accent, #FFF04F);
	color: #111111;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.5;
}
.ac-close {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: #FFFFFF;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.ac-close:hover { color: var(--accent, #FFF04F); }
.ac-close:focus-visible, .ac-panel button:focus-visible, .ac-panel a:focus-visible, .ac-log:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 2px;
}
.ac-head .ac-close:focus-visible { outline-color: var(--accent, #FFF04F); }

.ac-notice {
	margin: 0;
	padding: 10px 16px;
	background: #F4F4F2;
	border-bottom: 1px solid #DDDDDA;
	color: #555555;
	font-size: 11.5px;
	line-height: 1.7;
	flex-shrink: 0;
}

.ac-log {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ac-msg { max-width: 100%; }
.ac-msg .ac-text { margin: 0; overflow-wrap: anywhere; }
.ac-msg .ac-text + .ac-text { margin-top: .6em; }
.ac-msg--user {
	align-self: flex-end;
	max-width: 85%;
	padding: 10px 14px;
	background: #111111;
	color: #FFFFFF;
	border-radius: 14px 14px 2px 14px;
	white-space: pre-wrap;
}
.ac-msg--bot {
	align-self: flex-start;
	width: 100%;
	padding: 12px 14px;
	background: #F4F4F2;
	border-radius: 2px 14px 14px 14px;
}
.ac-label {
	display: inline-block;
	margin-bottom: 6px;
	padding: 0 6px;
	border: 1px solid #111111;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.6;
	color: #111111;
	background: #FFFFFF;
}
.ac-msg--bot.is-ai .ac-label { background: var(--accent, #FFF04F); }
.ac-msg a { color: #111111; text-decoration: underline; text-underline-offset: .2em; }

.ac-choices, .ac-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ac-choice, .ac-linkbtn {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid #111111;
	background: #FFFFFF;
	color: #111111;
	font: inherit;
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}
.ac-choice:hover, .ac-linkbtn:hover { background: #111111; color: #FFFFFF; }
.ac-linkbtn::after { content: " \2192"; margin-left: 4px; }

.ac-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #DDDDDA;
}
.ac-mini {
	padding: 4px 0;
	border: 0;
	background: none;
	color: #111111;
	font: inherit;
	font-size: 12px;
	text-decoration: underline;
	text-underline-offset: .25em;
	cursor: pointer;
}

.ac-stores { list-style: none; margin: 12px 0 0; padding: 0; }
.ac-store {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 0;
	border-top: 1px solid #DDDDDA;
}
.ac-store__info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.ac-tag {
	display: inline-block;
	padding: 0 6px;
	background: #111111;
	color: var(--accent, #FFF04F);
	font-family: Montserrat, sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .16em;
	line-height: 1.8;
}
.ac-store__name { font-size: 13.5px; font-weight: 500; }
.ac-store__area { font-size: 12px; color: #555555; }
.ac-store__act { display: flex; align-items: center; gap: 10px; }
.ac-btn {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	background: var(--accent, #FFF04F);
	color: #111111 !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}
.ac-btn:hover { background: #111111; color: var(--accent, #FFF04F) !important; }
.ac-btn--ghost { background: #FFFFFF; box-shadow: inset 0 0 0 1px #111111; }
.ac-tel { font-size: 12px; white-space: nowrap; }

.ac-typing { display: flex; gap: 5px; width: auto; padding: 14px 16px; }
.ac-dot { width: 7px; height: 7px; border-radius: 50%; background: #6B6B6B; animation: acDot 1s infinite ease-in-out; }
.ac-dot:nth-child(2) { animation-delay: .15s; }
.ac-dot:nth-child(3) { animation-delay: .3s; }
@keyframes acDot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.ac-form {
	flex-shrink: 0;
	padding: 10px 12px 12px;
	border-top: 1px solid #DDDDDA;
	background: #FFFFFF;
}
.ac-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	max-height: 120px;
	padding: 10px 12px;
	border: 1px solid #111111;
	border-radius: 0;
	background: #FFFFFF;
	color: #111111;
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
	resize: none;
}
.ac-input:focus { outline: 2px solid #111111; outline-offset: 1px; }
.ac-form__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ac-count { font-family: Montserrat, sans-serif; font-size: 11px; color: #6B6B6B; }
.ac-send {
	min-height: 38px;
	padding: 0 22px;
	border: 0;
	background: var(--accent, #FFF04F);
	color: #111111;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	cursor: pointer;
}
.ac-send:hover { background: #111111; color: var(--accent, #FFF04F); }
.ac-send[disabled] { opacity: .5; cursor: wait; }

/* Mobile: launcher bottom-left (the floating RESERVE badge sits bottom-right); full-screen sheet */
@media (max-width: 760px) {
	.ac-launcher {
		right: auto;
		left: max(14px, env(safe-area-inset-left));
		bottom: max(14px, env(safe-area-inset-bottom));
		width: 64px;
		height: 64px;
	}
	.ac-panel {
		inset: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		border: 0;
		padding-top: env(safe-area-inset-top);
		padding-bottom: env(safe-area-inset-bottom);
		padding-left: env(safe-area-inset-left);
		padding-right: env(safe-area-inset-right);
		box-sizing: border-box;
	}
	.ac-is-open, .ac-is-open body { overflow: hidden; }
	.ac-is-open .ac-launcher, .ac-is-open .badge--float { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.ac-launcher, .ac-panel, .ac-choice, .ac-linkbtn, .ac-btn, .ac-send { transition: none !important; }
	.ac-panel { transform: none; }
	.ac-dot { animation: none; opacity: .6; }
}
