/* =========================================================
   EXTECH 技術記事CTA [tech_cta]
   色は連載ナビ（青系）と区別するためオレンジ系にしています。
   テーマの p・a の指定に負けないよう、主要な指定は詳細度を上げています。
   ========================================================= */
.tech-cta {
	--cta-primary: #c2570f; /* オレンジ（白文字とのコントラスト比4.5:1） */
	--cta-bg: #fff6ee;
	--cta-border: #f3d9c2;
	--cta-text: #1f2933;
	--cta-muted: #52606d;
	--cta-radius: 10px;

	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1.25em 2em;
	align-items: center;
	margin: 3em 0 1.5em;
	padding: 1.75em 2em;
	border: 1px solid var(--cta-border);
	border-left: 6px solid var(--cta-primary);
	border-radius: var(--cta-radius);
	background: var(--cta-bg);
	color: var(--cta-text);
	font-size: 15px;
	line-height: 1.6;
}

/* ---- テキスト ---- */
.tech-cta .tech-cta__body > p {
	margin: 0 !important;
}
.tech-cta .tech-cta__body > .tech-cta__label {
	display: inline-block;
	margin-bottom: .6em !important;
	padding: .25em .8em;
	border-radius: 999px;
	background: var(--cta-primary);
	color: #fff;
	font-size: .75em;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .05em;
}
.tech-cta .tech-cta__heading {
	color: var(--cta-text);
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.45;
}
.tech-cta .tech-cta__body > .tech-cta__desc {
	margin-top: .4em !important;
	color: var(--cta-muted);
	font-size: .93em;
	line-height: 1.7;
}

/* ---- ボタン ---- */
.tech-cta .tech-cta__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .7em;
	min-width: 17em;
	max-width: 24em;
}
html body .tech-cta a.tech-cta__button,
html body .tech-cta a.tech-cta__button:link,
html body .tech-cta a.tech-cta__button:visited {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: .75em 2.6em .75em 1.4em;
	border: none;
	border-radius: 999px;
	background: var(--cta-primary);
	box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	font-size: .95em;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-wrap: balance;
	word-break: auto-phrase;
	text-decoration: none !important;
	transition: transform .12s, box-shadow .12s, filter .12s;
}
html body .tech-cta a.tech-cta__button::after {
	position: absolute;
	right: 1.2em;
	top: 50%;
	content: "→";
	transform: translateY(-50%);
	transition: right .12s;
}
html body .tech-cta a.tech-cta__button:hover,
html body .tech-cta a.tech-cta__button:focus-visible {
	color: #fff !important;
	filter: brightness(1.08);
	transform: translateY(1px);
	box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
html body .tech-cta a.tech-cta__button:hover::after { right: .9em; }
html body .tech-cta a.tech-cta__button:focus-visible {
	outline: 3px solid var(--cta-primary);
	outline-offset: 3px;
}

html body .tech-cta a.tech-cta__sub,
html body .tech-cta a.tech-cta__sub:visited {
	color: var(--cta-primary) !important;
	font-size: .88em;
	text-decoration: underline !important;
	text-underline-offset: .2em;
}
html body .tech-cta a.tech-cta__sub::after { content: " ›"; }

/* ---- 記事途中用（compact） ---- */
.tech-cta--compact {
	margin: 2.5em 0;
	padding: 1em 1.4em;
	border-left-width: 4px;
	gap: .8em 1.5em;
}
.tech-cta--compact .tech-cta__label { display: none !important; }
.tech-cta--compact .tech-cta__heading { font-size: 1em; }
.tech-cta--compact .tech-cta__actions { min-width: 13em; }
html body .tech-cta--compact a.tech-cta__button { min-height: 44px; font-size: .9em; }

/* ---- スマートフォン ---- */
@media (max-width: 640px) {
	.tech-cta {
		grid-template-columns: 1fr;
		padding: 1.4em 1.2em;
		border-left-width: 1px;
		border-top: 5px solid var(--cta-primary);
		font-size: 14px;
	}
	.tech-cta .tech-cta__actions {
		min-width: 0;
		max-width: none;
	}
	.tech-cta--compact { border-top-width: 4px; }
}
