/* ============================================================
   JLPT Compass — ブログ記事内 PDF CTA
   設置先: /wp-content/themes/jlptc-child/css/pdf-cta.css
   ============================================================ */

.jlpt-pdf-cta {
	--jlpt-pdf-cta-bg: #1e3a3a;
	--jlpt-pdf-cta-bg-light: #245050;
	--jlpt-pdf-cta-text: #ffffff;
	--jlpt-pdf-cta-muted: rgba(255, 255, 255, 0.82);
	--jlpt-pdf-cta-accent: #f5c99b;
	--jlpt-pdf-cta-button-bg: #c1693f;
	--jlpt-pdf-cta-button-text: #ffffff;
	box-sizing: border-box;
	margin: 2em 0;
}

.jlpt-pdf-cta * {
	box-sizing: border-box;
}

/* ---- card（記事末尾用） -------------------------------------- */
.jlpt-pdf-cta--card {
	background: var(--jlpt-pdf-cta-bg);
	border-radius: 16px;
	padding: 2em 1.75em;
	color: var(--jlpt-pdf-cta-text);
}

.jlpt-pdf-cta--card .jlpt-pdf-cta-inner {
	max-width: 520px;
}

.jlpt-pdf-cta-eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--jlpt-pdf-cta-accent);
	text-transform: uppercase;
	margin-bottom: 0.6em;
}

.jlpt-pdf-cta-title {
	font-size: 1.25rem;
	line-height: 1.5;
	font-weight: 700;
	margin: 0 0 0.6em;
	color: var(--jlpt-pdf-cta-text);
}

.jlpt-pdf-cta-body {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--jlpt-pdf-cta-muted);
	margin: 0 0 1.25em;
}

.jlpt-pdf-cta--card .jlpt-pdf-cta-button {
	display: inline-block;
	background: var(--jlpt-pdf-cta-button-bg);
	color: var(--jlpt-pdf-cta-button-text);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.85em 1.6em;
	border-radius: 999px;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.jlpt-pdf-cta--card .jlpt-pdf-cta-button:hover {
	opacity: 0.85;
	color: var(--jlpt-pdf-cta-button-text);
}

/* ---- inline（記事途中用の小さい帯） --------------------------- */
.jlpt-pdf-cta--inline {
	background: var(--jlpt-pdf-cta-bg-light);
	border-radius: 12px;
	padding: 1em 1.25em;
	color: var(--jlpt-pdf-cta-text);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em 1.25em;
}

.jlpt-pdf-cta--inline .jlpt-pdf-cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em 1.25em;
	width: 100%;
}

.jlpt-pdf-cta-inline-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--jlpt-pdf-cta-text);
	flex: 1 1 260px;
}

.jlpt-pdf-cta-inline-text strong {
	display: block;
	margin-bottom: 0.2em;
}

.jlpt-pdf-cta--inline .jlpt-pdf-cta-button {
	display: inline-block;
	background: var(--jlpt-pdf-cta-button-bg);
	color: var(--jlpt-pdf-cta-button-text);
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.65em 1.3em;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	flex: 0 0 auto;
	transition: opacity 0.15s ease;
}

.jlpt-pdf-cta--inline .jlpt-pdf-cta-button:hover {
	opacity: 0.85;
	color: var(--jlpt-pdf-cta-button-text);
}

/* ---- スマホ表示 ------------------------------------------------ */
@media (max-width: 480px) {
	.jlpt-pdf-cta--card {
		padding: 1.5em 1.25em;
	}

	.jlpt-pdf-cta--inline .jlpt-pdf-cta-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.jlpt-pdf-cta--inline .jlpt-pdf-cta-button {
		width: 100%;
		text-align: center;
	}
}