@charset "UTF-8";

/* ==============================
   Kiratt モバイル固定CTAバー (改善版)
   - ブランド色グラデーション
   - 独立ボタン形状
   - 大きめアイコン + 大きめ文字
   - 浮遊感のある影
   kcta- prefix で衝突回避
   ============================== */

/* ===== カラートークン ===== */
:root {
	/* LINE ブランド色 */
	--kcta-line-from: #06C755;
	--kcta-line-to: #04A847;
	--kcta-line-shadow: rgba(6, 199, 85, 0.35);

	/* Kiratt ブランド色 (#129BB9 ベースのグラデ) */
	--kcta-brand-from: #129BB9;
	--kcta-brand-to: #0E7A92;
	--kcta-brand-shadow: rgba(18, 155, 185, 0.4);

	/* バー背景 */
	--kcta-bar-bg: #ffffff;
	--kcta-bar-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

/* ===== バーのベース ===== */
.kcta-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: none;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px 10px;
	background: var(--kcta-bar-bg);
	box-shadow: var(--kcta-bar-shadow);
	gap: 8px;

	/* iOSセーフエリア対応 */
	padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));

	/* 初期は隠す → JSで表示制御 */
	transform: translateY(110%);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* スクロール時に表示 */
.kcta-bar.is-visible {
	transform: translateY(0);
}

/* フッター可視時に隠す */
.kcta-bar.is-hidden {
	transform: translateY(110%);
}

/* ===== モバイル時のみ表示 ===== */
@media screen and (max-width: 1024px) {
	.kcta-bar {
		display: flex;
	}

	/* ページ下部にCTAバー分の余白を追加 (フッター被り防止) */
	body.has-kcta-bar {
		padding-bottom: 80px;
	}
}

/* ===== ボタン共通 ===== */
.kcta-bar__btn {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 60px;
	padding: 8px 6px;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	border-radius: 14px;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	position: relative;
	overflow: hidden;
	border: none;
	cursor: pointer;
}

.kcta-bar__btn:hover,
.kcta-bar__btn:focus {
	color: #fff !important;
	text-decoration: none !important;
}

.kcta-bar__btn:active {
	transform: scale(0.97);
}

/* タップ時のリップル効果 */
.kcta-bar__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0);
	transition: background 0.2s ease;
	pointer-events: none;
	border-radius: inherit;
}

.kcta-bar__btn:active::after {
	background: rgba(255, 255, 255, 0.18);
}

/* ===== LINE ボタン ===== */
.kcta-bar__btn--line {
	background: linear-gradient(135deg, var(--kcta-line-from) 0%, var(--kcta-line-to) 100%);
	box-shadow: 0 4px 12px var(--kcta-line-shadow);
}

.kcta-bar__btn--line:hover,
.kcta-bar__btn--line:focus {
	box-shadow: 0 6px 16px var(--kcta-line-shadow);
}

/* ===== WEB予約ボタン (Kirattブランド色) ===== */
.kcta-bar__btn--reserve {
	background: linear-gradient(135deg, var(--kcta-brand-from) 0%, var(--kcta-brand-to) 100%);
	box-shadow: 0 4px 12px var(--kcta-brand-shadow);
}

.kcta-bar__btn--reserve:hover,
.kcta-bar__btn--reserve:focus {
	box-shadow: 0 6px 16px var(--kcta-brand-shadow);
}

/* WEB予約ボタンに微細な光沢アニメーション */
.kcta-bar__btn--reserve::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.22) 50%,
		transparent 100%
	);
	animation: kctaShine 4.5s ease-in-out infinite;
	pointer-events: none;
}

@keyframes kctaShine {
	0% { left: -100%; }
	60% { left: 200%; }
	100% { left: 200%; }
}

/* アクセシビリティ: モーション削減設定の尊重 */
@media (prefers-reduced-motion: reduce) {
	.kcta-bar {
		transition: none;
	}
	.kcta-bar__btn--reserve::before {
		animation: none;
		display: none;
	}
}

/* ===== アイコン (半透明白丸 + SVG) ===== */
.kcta-bar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.kcta-bar__icon svg {
	width: 18px;
	height: 18px;
}

/* ===== テキスト ===== */
.kcta-bar__txt {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	text-align: left;
}

.kcta-bar__main {
	display: block;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
}

.kcta-bar__sub {
	display: block;
	font-size: 10px;
	font-weight: 400;
	opacity: 0.95;
	margin-top: 2px;
	color: #fff;
}

/* ===== レスポンシブ調整 ===== */
@media screen and (max-width: 380px) {
	.kcta-bar {
		padding: 6px 8px 8px;
		padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
		gap: 6px;
	}

	.kcta-bar__btn {
		min-height: 56px;
		gap: 8px;
		border-radius: 12px;
	}

	.kcta-bar__icon {
		width: 26px;
		height: 26px;
	}

	.kcta-bar__icon svg {
		width: 16px;
		height: 16px;
	}

	.kcta-bar__main {
		font-size: 15px;
	}

	.kcta-bar__sub {
		font-size: 9px;
	}
}

/* ===== PC では完全に非表示 ===== */
@media screen and (min-width: 1025px) {
	.kcta-bar {
		display: none !important;
	}

	body.has-kcta-bar {
		padding-bottom: 0;
	}
}