/* LINE友だち追加フローティングボタン - フロントエンド */

#lff-widget {
	position: fixed;
	z-index: 999999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

#lff-widget.lff-visible {
	opacity: 1;
	pointer-events: auto;
}

#lff-widget.lff-hidden {
	display: none !important;
}

/* ===== PC: 右側固定 縦タブ ===== */
.lff-desktop-tab {
	display: none;
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 16px 10px;
	border-radius: 12px 0 0 12px;
	box-shadow: -2px 4px 14px rgba(0, 0, 0, 0.18);
	text-decoration: none;
	min-width: 64px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lff-desktop-tab:hover {
	transform: translateY(-50%) translateX(-4px);
	box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.24);
}

.lff-desktop-tab .lff-icon-svg,
.lff-desktop-tab .lff-icon-img {
	width: 28px;
	height: 28px;
	display: block;
	border-radius: 6px;
}

.lff-desktop-tab .lff-text {
	writing-mode: vertical-rl;
	text-orientation: upright;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 0.05em;
	line-height: 1.4;
}

/* ===== SP: 下部固定 全幅バー ===== */
.lff-mobile-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	text-decoration: none;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
}

.lff-mobile-bar .lff-icon-svg,
.lff-mobile-bar .lff-icon-img {
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	border-radius: 6px;
}

.lff-mobile-bar .lff-text-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.lff-mobile-bar .lff-text-main {
	font-size: 15px;
	font-weight: bold;
}

.lff-mobile-bar .lff-arrow {
	font-size: 22px;
	font-weight: bold;
	opacity: 0.85;
}

/* ===== 閉じるボタン ===== */
.lff-close-btn {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ffffff;
	color: #666;
	font-size: 15px;
	line-height: 22px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	z-index: 2;
}

.lff-desktop-tab {
	position: fixed;
}

/* ===== パルスアニメーション ===== */
.lff-pulse .lff-icon-svg,
.lff-pulse .lff-icon-img {
	animation: lff-pulse-anim 1.4s ease-in-out 3;
}

@keyframes lff-pulse-anim {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.18);
	}
	100% {
		transform: scale(1);
	}
}

/* ===== 吹き出し（訴求メッセージ） ===== */
.lff-tooltip {
	position: fixed;
	max-width: 240px;
	background: #ffffff;
	color: #333333;
	border-radius: 12px;
	padding: 12px 30px 12px 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	font-size: 13px;
	line-height: 1.5;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 1000000;
}

.lff-tooltip.lff-tooltip-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lff-tooltip p {
	margin: 0;
}

.lff-tooltip-close {
	position: absolute;
	top: 6px;
	right: 8px;
	border: none;
	background: transparent;
	font-size: 15px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 4px;
}

/* PC: 吹き出しはタブの左側 */
.lff-tooltip[data-position="desktop"] {
	right: 90px;
	top: 50%;
	transform: translateY(-50%) translateY(6px);
}
.lff-tooltip[data-position="desktop"].lff-tooltip-visible {
	transform: translateY(-50%) translateY(0);
}

/* SP: 吹き出しはバーの上 */
.lff-tooltip[data-position="mobile"] {
	left: 16px;
	right: 16px;
	max-width: none;
	bottom: 76px;
}

/* ===== インラインショートコード用ボタン ===== */
.lff-inline-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: bold;
	font-size: 15px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lff-inline-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.lff-inline-button .lff-icon-svg,
.lff-inline-button .lff-icon-img {
	width: 22px;
	height: 22px;
	border-radius: 5px;
}

/* ===== 表示制御（JSがdevice設定に応じて付与） ===== */
#lff-widget.lff-show-desktop .lff-desktop-tab {
	display: flex;
}
#lff-widget.lff-show-mobile .lff-mobile-bar {
	display: flex;
}
