/**
 * 画面下固定 CTA
 * PC は depost-fixed-cta-dock で背景 #222 を一枚にし、fixed 要素＋グラデ擬似で出る白筋を防ぐ。
 */

.depost-fixed-cta-dock--pc {
	display: none;
}

.depost-fixed-cta--pc {
	display: none;
}

/* PC スペーサー — 固定バー実高に合わせる（バーを細くしたらここも下げる） */
.depost-fixed-cta__spacer--pc {
	display: none;
	height: calc(100px + env(safe-area-inset-bottom, 0px));
}

/* SP スペーサー — ピル付き＋セーフエリア */
.depost-fixed-cta__spacer--sp {
	display: none;
	height: calc(76px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1024px) {
	.depost-fixed-cta-dock--pc {
		display: block;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		width: auto;
		z-index: 9999;
		box-sizing: border-box;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background-color: #222;
		border-top: none;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		box-shadow: none;
	}

	.depost-fixed-cta-dock--pc::before {
		content: none;
	}

	.depost-fixed-cta--pc {
		display: block;
		position: static;
		left: auto;
		right: auto;
		bottom: auto;
		width: 100%;
		z-index: auto;
		background: transparent;
		padding: 6px 1.5% 8px;
		box-sizing: border-box;
		overflow: visible;
		box-shadow: none;
		border-radius: 0 !important;
	}

	.depost-fixed-cta__spacer--pc {
		display: block;
	}

	.depost-fixed-cta--sp {
		display: none !important;
	}

	.depost-fixed-cta__spacer--sp {
		display: none !important;
	}
}

/* 3要素を中央に集めて表示（電話番号ブロックが画面中心に） */
.depost-fixed-cta__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(12px, 2vw, 28px);
	box-sizing: border-box;
	font-weight: 700;
	color: #fff;
}

/* labo 用は LP と同一レイアウトのため追加指定不要 */

.depost-fixed-cta__left--labo {
	text-align: right;
	align-self: center;
}

.depost-fixed-cta__site-lead {
	margin: 0;
	font-family: "Noto Sans JP", sans-serif;
	font-size: clamp(11px, 0.95vw, 13px);
	font-weight: 700;
	line-height: 1.45;
	color: #fff;
	letter-spacing: 0.02em;
}

.depost-fixed-cta__hours--labo {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 0.2rem 0.45rem;
	font-weight: 500;
}

.depost-fixed-cta__hours--labo .depost-fixed-cta__hours-time {
	font-weight: 700;
	letter-spacing: 0.02em;
}

.depost-fixed-cta__hours--labo .depost-fixed-cta__hours-day {
	opacity: 0.95;
}

.depost-fixed-cta-dock--pc:has(.depost-fixed-cta__inner--labo) + .depost-fixed-cta__spacer--pc {
	height: calc(108px + env(safe-area-inset-bottom, 0px));
}

.depost-fixed-cta__left {
	text-align: right;
	line-height: 1.02;
	font-family: "Noto Sans JP", sans-serif;
	font-weight: 700;
	color: #fff;
}

.depost-fixed-cta__lead--lg {
	font-size: clamp(28px, 2.6vw, 34px);
	color: #fff;
}

.depost-fixed-cta__lead--sm {
	font-size: clamp(21px, 2vw, 24px);
	color: #fff;
}

.depost-fixed-cta__center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1px;
	line-height: 1.15;
	min-width: 0;
}

/* キャッチ行 */
.depost-fixed-cta__copy {
	margin: 0;
	padding: 0 0.5rem;
	font-family: "Noto Sans JP", sans-serif;
	font-size: clamp(13px, 1.15vw, 15px);
	font-weight: 700;
	color: #fff;
	line-height: 1.35;
	white-space: nowrap;
	overflow: visible;
}

/* 電話番号 */
.depost-fixed-cta__tel {
	display: block;
	margin: 0;
	font-family: Roboto, "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(36px, 3.8vw, 48px);
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.depost-fixed-cta__tel:hover,
.depost-fixed-cta__tel:focus-visible {
	opacity: 0.85;
}

.depost-fixed-cta__hours {
	margin: 0;
	font-family: "Noto Sans JP", sans-serif;
	font-size: clamp(11px, 1vw, 13px);
	font-weight: 400;
	color: #fff;
	line-height: 1.15;
}

/* フッターCTA: .depost-lp-cta-pc-right center — メールボタン幅を潰さない */
.depost-fixed-cta__right {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

@media (min-width: 1024px) {
	.depost-fixed-cta__right {
		min-width: min-content;
		justify-self: center;
	}
}

/*
 * 固定CTA のメールボタン: 32px SVG, px-8, text 0.95rem / 1.6rem, rounded-lg, shadow-md
 * 色はデポスト仕様でネイビー維持
 */
.depost-fixed-cta__mail {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 8px clamp(20px, 3.5vw, 32px);
	background: #1a3d99;
	border: 1px solid #fff;
	border-radius: 10px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.12), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	color: #fff !important;
	transition: opacity 0.15s ease, background-color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
	flex-shrink: 0;
}

@media (max-width: 1023px) {
	.depost-fixed-cta__mail {
		max-width: 100%;
	}
}

.depost-fixed-cta__mail:hover,
.depost-fixed-cta__mail:focus-visible {
	opacity: 0.92;
}

.depost-fixed-cta__mail-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.depost-fixed-cta__mail-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.2;
	text-align: left;
	flex-shrink: 0;
}

/* 上: サブ行相当 0.95rem — 1行固定（単語途中改行しない） */
.depost-fixed-cta__mail-line1 {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.92);
	white-space: nowrap;
}

/* 下: 主行 1.6rem — 1行固定 */
.depost-fixed-cta__mail-line2 {
	font-family: "Noto Sans JP", sans-serif;
	font-size: clamp(1.35rem, 1.6vw, 1.6rem);
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
}

/* SP — padding 11px 11px 20px, 半透明バー */
@media (max-width: 1023px) {
	.depost-fixed-cta--sp {
		display: block;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		width: auto;
		z-index: 90;
		background: rgba(0, 0, 0, 0.55);
		border-radius: 0 !important;
		padding: 6px 6px calc(10px + env(safe-area-inset-bottom, 0px));
		box-sizing: border-box;
		box-shadow: none;
		border-top: none;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		overflow: visible;
	}

	.depost-fixed-cta--sp::before {
		content: none;
	}

	.depost-fixed-cta--sp::after {
		content: none;
	}

	.depost-fixed-cta__spacer--sp {
		display: block;
	}
}

.depost-fixed-cta--sp-has-caption + .depost-fixed-cta__spacer--sp {
	height: calc(118px + env(safe-area-inset-bottom, 0px));
}

.depost-fixed-cta__sp-head {
	padding: 0 4px 4px;
	text-align: center;
}

.depost-fixed-cta__sp-lead {
	margin: 0 0 2px;
	font-family: "Noto Sans JP", sans-serif;
	font-size: clamp(12px, 3.2vw, 14px);
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	letter-spacing: 0.02em;
}

.depost-fixed-cta__sp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem 0.5rem;
	margin: 0;
	font-family: "Noto Sans JP", sans-serif;
	font-size: clamp(11px, 2.9vw, 12px);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.3;
}

.depost-fixed-cta__sp-tel {
	color: #fff !important;
	font-family: Roboto, "Noto Sans JP", sans-serif;
	font-weight: 700;
	font-size: clamp(13px, 3.5vw, 15px);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.depost-fixed-cta__sp-hours {
	font-weight: 500;
}

/* SP: 画像ボタン2分割レイアウト */
.depost-fixed-cta__sp-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.depost-fixed-cta__sp-btn {
	display: block;
	width: 45%;
	max-width: 250px;
	-webkit-tap-highlight-color: transparent;
}

.depost-fixed-cta__sp-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

/* landscape SP: CTA圧縮 */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 460px) {
	.depost-fixed-cta--sp {
		padding: 4px 6px calc(6px + env(safe-area-inset-bottom, 0px));
	}

	.depost-fixed-cta__sp-btn {
		width: 40%;
		max-width: 200px;
	}

	.depost-fixed-cta__sp-img {
		border-radius: 4px;
	}

	.depost-fixed-cta__spacer--sp {
		height: calc(50px + env(safe-area-inset-bottom, 0px));
	}
}

/* 極小SP: ボタンを少し広げて押しやすく */
@media (max-width: 374px) {
	.depost-fixed-cta__sp-btn {
		width: 48%;
	}

	.depost-fixed-cta__sp-row {
		gap: 4px;
	}

	.depost-fixed-cta--sp {
		padding: 6px 6px calc(10px + env(safe-area-inset-bottom, 0px));
	}
}

/* PC CTA: 1024-1280px付近 — ギャップをやや詰める */
@media (min-width: 1024px) and (max-width: 1280px) {
	.depost-fixed-cta__inner {
		gap: clamp(10px, 1.8vw, 22px);
	}

	.depost-fixed-cta__site-lead {
		font-size: clamp(10px, 0.9vw, 12px);
	}

	.depost-fixed-cta__lead--lg {
		font-size: clamp(22px, 2.2vw, 28px);
	}

	.depost-fixed-cta__lead--sm {
		font-size: clamp(16px, 1.6vw, 20px);
	}

	.depost-fixed-cta__tel {
		font-size: clamp(28px, 3vw, 38px);
	}

	.depost-fixed-cta__mail {
		padding: 8px clamp(14px, 2.2vw, 24px);
		min-height: 48px;
		gap: 6px;
	}

	.depost-fixed-cta__mail-line1 {
		font-size: 0.8rem;
	}

	.depost-fixed-cta__mail-line2 {
		font-size: clamp(1.1rem, 1.3vw, 1.35rem);
	}
}

/* TOP: 固定CTA手前のスペーサーだけクリームに統一（下地制御は front-page.css に集約） */
body.depost-is-front .depost-fixed-cta__spacer--pc,
body.depost-is-front .depost-fixed-cta__spacer--sp,
body.home .depost-fixed-cta__spacer--pc,
body.home .depost-fixed-cta__spacer--sp {
	background-color: #fdfbf4 !important;
}
