/**
 * メディア記事用スクロールポップアップ
 * 60% スクロール + 30 秒滞在で右下にスライドイン表示。
 * モバイルは画面下部に固定。
 */

.qp-scroll-popup {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 360px;
	max-width: calc(100vw - 32px);
	background: #ffffff;
	border-radius: 14px;
	box-shadow:
		0 24px 48px -12px rgba(0, 0, 0, 0.22),
		0 8px 16px -8px rgba(0, 0, 0, 0.12);
	padding: 20px 20px 18px;
	z-index: 9999;
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.32s ease,
		transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
	font-family: inherit;
}

.qp-scroll-popup.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.qp-scroll-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: #888;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.qp-scroll-popup__close:hover,
.qp-scroll-popup__close:focus-visible {
	background-color: rgba(0, 0, 0, 0.06);
	color: #222;
	outline: none;
}

/* ── バッジ ── */
.qp-scroll-popup__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 12px;
}

.qp-scroll-popup__badge--brand {
	background: linear-gradient(135deg, #0073aa 0%, #00a8e8 100%);
	color: #ffffff;
}

/* ── キャリア相談導線 ── */
.qp-scroll-popup__brand-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.4;
	margin: 0 0 8px;
}

.qp-scroll-popup__brand-text {
	font-size: 0.82rem;
	color: #555;
	line-height: 1.55;
	margin: 0 0 14px;
}

.qp-scroll-popup__brand-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.qp-scroll-popup__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.qp-scroll-popup__btn--primary {
	background: #0a0a0a;
	color: #ffffff;
}

.qp-scroll-popup__btn--primary:hover,
.qp-scroll-popup__btn--primary:focus-visible {
	background: #222;
}

.qp-scroll-popup__btn--secondary {
	background: #ffffff;
	color: #0a0a0a;
	border: 1px solid #e0e0e0;
}

.qp-scroll-popup__btn--secondary:hover,
.qp-scroll-popup__btn--secondary:focus-visible {
	background: #f6f6f8;
	border-color: #cfcfcf;
}

/* ── モバイル ── */
@media (max-width: 600px) {
	.qp-scroll-popup {
		right: 12px;
		left: 12px;
		bottom: 12px;
		width: auto;
		max-width: none;
		padding: 18px 16px 16px;
		border-radius: 12px;
	}
}

/* アクセシビリティ: モーション抑制設定の尊重 */
@media (prefers-reduced-motion: reduce) {
	.qp-scroll-popup {
		transition: opacity 0.2s ease;
		transform: none;
	}
}
