/* Extracted from style.css for conditional enqueue. Do not edit in isolation without syncing. */
/* ============================================================
   PC右端「見積もりチェックシート」書類重ね型フロートタブ
   - xl（1280px）以上の左右余白に収まる幅（56px）で静かに配置
   - 後ろに薄ベージュの書類を斜めに重ね、ホバーで左側に案内カードを表示
   ============================================================ */
.os-cl-float {
	display: none;
}

.os-cl-float[hidden] {
	display: none !important;
}

@keyframes os-cl-float-enter {
	from {
		opacity: 0;
		transform: translateX(1.5rem);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes os-cl-sheet-settle {
	from {
		transform: rotate(0deg) translateX(3px);
	}
	to {
		transform: rotate(-2.2deg) translateX(0);
	}
}

@media (min-width: 80rem) {
	.os-cl-float {
		position: fixed;
		top: 30%;
		right: 0;
		z-index: 35;
		display: block;
		animation: os-cl-float-enter 550ms cubic-bezier(0.22, 1, 0.36, 1) 350ms both;
	}
}

.os-cl-float__link {
	position: relative;
	display: block;
	color: var(--color-ink, #1c1c1a);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

/* 後ろに斜めに重ねた1枚目の書類 */
.os-cl-float__sheet {
	position: absolute;
	inset: 3px 0 3px -3px;
	z-index: 0;
	border: 1px solid var(--color-rule-primary, #e8d7c4);
	border-right: 0;
	border-radius: 0.75rem 0 0 0.75rem;
	background-color: #fff6ec;
	background-image: repeating-linear-gradient(
		to bottom,
		transparent 0,
		transparent 17px,
		rgba(232, 215, 196, 0.55) 17px,
		rgba(232, 215, 196, 0.55) 18px
	);
	box-shadow: -2px 2px 8px rgba(34, 19, 7, 0.05);
	transform-origin: bottom right;
	transform: rotate(-2.2deg);
	animation: os-cl-sheet-settle 450ms cubic-bezier(0.22, 1, 0.36, 1) 650ms backwards;
	transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease;
}

/* 前面のタブ本体（表紙） */
.os-cl-float__front {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.625rem;
	width: 3.5rem;
	padding: 0.9375rem 0.5rem 1.0625rem;
	border: 1px solid var(--color-rule-primary, #e8d7c4);
	border-right: 0;
	border-radius: 0.75rem 0 0 0.75rem;
	background: var(--color-surface, #ffffff);
	box-shadow: -4px 4px 16px rgba(34, 19, 7, 0.09);
	transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.os-cl-float__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.125rem;
	height: 2.125rem;
	border-radius: 0.5rem;
	background: #fff1e6;
	color: var(--color-accent, #ea6a12);
	flex-shrink: 0;
}

.os-cl-float__icon-svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}

.os-cl-float__label {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.1em;
	color: inherit;
	white-space: nowrap;
}

.os-cl-float__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	padding: 0.1875rem 0.375rem;
	border-radius: 9999px;
	background: #fff1e6;
	color: var(--color-accent, #ea6a12);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.os-cl-float__badge[hidden] {
	display: none;
}

/* ホバー・フォーカス時に左側へ開く案内カード */
.os-cl-float__popover {
	position: absolute;
	top: 50%;
	right: calc(100% + 0.875rem);
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	width: 13.75rem;
	padding: 0.875rem 1rem;
	border: 1px solid var(--color-rule-primary, #e8d7c4);
	border-radius: 0.75rem;
	background: var(--color-surface, #ffffff);
	box-shadow: 0 10px 28px rgba(34, 19, 7, 0.13);
	text-align: left;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-50%) translateX(8px);
	transition: opacity 180ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1), visibility 180ms ease;
}

/* タブと案内カードの間のマウス移動でホバーが切れないようにする透明ブリッジ */
.os-cl-float__popover::after {
	content: "";
	position: absolute;
	top: 0;
	left: 100%;
	width: 1.125rem;
	height: 100%;
}

/* 右向き吹き出し矢印 */
.os-cl-float__popover::before {
	content: "";
	position: absolute;
	top: 50%;
	right: -6px;
	width: 10px;
	height: 10px;
	border-top: 1px solid var(--color-rule-primary, #e8d7c4);
	border-right: 1px solid var(--color-rule-primary, #e8d7c4);
	background: var(--color-surface, #ffffff);
	transform: translateY(-50%) rotate(45deg);
}

.os-cl-float__popover-title {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--color-ink, #1c1c1a);
}

.os-cl-float__popover-body {
	display: block;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--color-ink-secondary, #4d4b46);
}

.os-cl-float__popover-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 0.25rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-accent, #ea6a12);
}

.os-cl-float__popover-arrow {
	display: block;
	width: 0.875rem;
	height: 0.875rem;
	flex-shrink: 0;
}

.os-cl-float__link:focus-visible {
	outline: none;
}

.os-cl-float__link:focus-visible .os-cl-float__front {
	outline: 2px solid var(--color-accent, #ea6a12);
	outline-offset: -2px;
}

.os-cl-float__link:focus-visible .os-cl-float__sheet {
	transform: rotate(-6deg) translateX(-4px);
}

.os-cl-float__link:focus-visible .os-cl-float__popover {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(-50%) translateX(0);
}

@media (hover: hover) {
	.os-cl-float__link:hover .os-cl-float__front {
		background: var(--color-surface-secondary, #fff6ec);
		border-color: var(--color-accent, #ea6a12);
		color: var(--color-accent, #ea6a12);
	}
	.os-cl-float__link:hover .os-cl-float__sheet {
		border-color: rgba(234, 106, 18, 0.45);
		transform: rotate(-6deg) translateX(-4px);
	}
	.os-cl-float__link:hover .os-cl-float__popover {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(-50%) translateX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.os-cl-float,
	.os-cl-float__sheet {
		animation: none;
	}
	.os-cl-float__sheet,
	.os-cl-float__front,
	.os-cl-float__popover {
		transition: none;
	}
}

@media print {
	.os-cl-float {
		display: none !important;
	}
}
