/* レコスタ コンシェルジュ・ウィジェット（プレーンCSS / Compass非依存） */

.recosta-cc {
	position: fixed;
	left: 50%;
	right: auto;
	bottom: 16px;
	transform: translateX(-50%); /* 画面下中央。右下の「TOPへ戻る」ボタンと干渉しない */
	z-index: 36; /* TOPへ戻る(35)より前面 */
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* マスコット起動ボタン */
.recosta-cc__toggle {
	display: block;
	width: 72px;
	height: 72px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	outline: none;
}
.recosta-cc__toggle .recosta-cc__mascot {
	width: 72px;
	height: 72px;
	object-fit: contain;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
	animation: recostaFuwa 3s ease-in-out infinite;
}

@keyframes recostaFuwa {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* パネル本体 */
.recosta-cc__panel {
	position: absolute;
	left: 50%;
	right: auto;
	bottom: 84px;
	width: 360px;
	max-width: calc(100vw - 32px);
	max-height: 70vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	overflow: hidden;
	transform: translateX(-50%) translateY(24px); /* 中央寄せ＋スライド初期位置 */
	opacity: 0;
	pointer-events: none;
	transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .4s ease;
}
.recosta-cc.is-open .recosta-cc__panel {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
	pointer-events: auto;
}
.recosta-cc.is-open .recosta-cc__toggle {
	display: none;
}

/* ヘッダ */
.recosta-cc__head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 40px 14px 14px;
	background: #1C97B5;
	color: #fff;
}
.recosta-cc__head .recosta-cc__mascot {
	width: 48px;
	height: 48px;
	object-fit: contain;
	flex: 0 0 auto;
	animation: recostaFuwa 3s ease-in-out infinite;
}
.recosta-cc__head p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	font-weight: bold;
}
.recosta-cc__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	border: none;
	background: rgba(255, 255, 255, .25);
	color: #fff;
	border-radius: 50%;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.recosta-cc__close:hover { background: rgba(255, 255, 255, .4); }

/* 入力フォーム */
.recosta-cc__form {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-bottom: 1px solid #eee;
}
.recosta-cc__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 14px;
}
.recosta-cc__form button {
	flex: 0 0 auto;
	padding: 0 16px;
	border: none;
	background: #FFD81A;
	color: #333;
	font-weight: bold;
	border-radius: 8px;
	cursor: pointer;
}

/* ステータス */
.recosta-cc__status {
	padding: 8px 14px 0;
	font-size: 12px;
	color: #888;
	min-height: 14px;
}
.recosta-cc__status:empty { padding: 0; }

/* 結果リスト */
.recosta-cc__results {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 8px 12px;
}
.recosta-cc__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}
.recosta-cc__thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
	background-color: #eee;
}
.recosta-cc__meta {
	flex: 1 1 auto;
	min-width: 0;
}
.recosta-cc__name {
	display: block;
	font-size: 14px;
	font-weight: bold;
	color: #1C97B5;
	text-decoration: none;
	word-break: break-all;
}
.recosta-cc__name:hover { text-decoration: underline; }
.recosta-cc__addr {
	margin: 2px 0 0;
	font-size: 12px;
	color: #888;
}
/* 行内ボタン（コピー / 開く） */
.recosta-cc__btns {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.recosta-cc__copy,
.recosta-cc__open {
	padding: 6px 12px;
	border: 1px solid #1C97B5;
	border-radius: 6px;
	font-size: 12px;
	font-weight: bold;
	cursor: pointer;
	white-space: nowrap;
	text-align: center;
}
.recosta-cc__copy {
	background: #fff;
	color: #1C97B5;
}
.recosta-cc__copy:hover,
.recosta-cc__copy.is-copied { background: #1C97B5; color: #fff; }
.recosta-cc__open {
	background: #1C97B5;
	color: #fff;
}
.recosta-cc__open:hover { background: #157a93; }

/* 全部コピー（赤い目立つボタン） */
.recosta-cc__copyall {
	margin: 0;
	padding: 14px;
	border: none;
	border-top: 1px solid #eee;
	background: #e3342f;
	color: #fff;
	font-weight: bold;
	font-size: 14px;
	letter-spacing: .03em;
	cursor: pointer;
}
.recosta-cc__copyall:hover { background: #c5221d; }

/* モバイル：ボトムシート化 */
@media (max-width: 640px) {
	.recosta-cc {
		left: 50%;
		right: auto;
		bottom: 12px;
		transform: translateX(-50%);
	}
	.recosta-cc__panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: 100%;
		max-height: 80vh;
		border-radius: 14px 14px 0 0;
		transform: translateY(24px); /* ボトムシートは縦スライドのみ */
	}
	.recosta-cc.is-open .recosta-cc__panel {
		transform: translateY(0);
	}
	.recosta-cc__toggle,
	.recosta-cc__toggle .recosta-cc__mascot {
		width: 64px;
		height: 64px;
	}
}
