/**
 * CTA Orchestrator — Frontend Styles
 *
 * BEM prefix: .cta-orch__
 * CSS custom properties: --cta-orch-accent (#06C755 default)
 * Breakpoints: 599px (mobile), 959px (tablet/device-pc hide)
 * No !important allowed.
 *
 * @package CTA_Orchestrator
 */

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
	--cta-orch-accent: #06C755;
	--cta-orch-accent-dark: #059a44;
	--cta-orch-text: #333;
	--cta-orch-sub-text: #666;
	--cta-orch-border: #ddd;
	--cta-orch-bg: #fff;
	--cta-orch-shadow: 0 0 8px rgba(0, 0, 0, 0.10);
	--cta-orch-radius: 8px;

	/* CVボックス配色（案3「F社トンマナ寄せ」由来。横展開時はここを差し替えるだけで配色変更可）
	   --cta-orch-cv-frame*  ティールグラデの額縁帯／--cta-orch-cv-btn*  黄色グラデのCVボタン／
	   --cta-orch-cv-line  ボタン左の差し色（LINEグリーン） */
	--cta-orch-cv-frame: #0e9b8f;
	--cta-orch-cv-frame-dark: #0a7d74;
	--cta-orch-cv-heading: #0c5a53;
	--cta-orch-cv-lead: #4b5b58;
	--cta-orch-cv-item: #2f3d3a;
	--cta-orch-cv-line: #06C755;
	--cta-orch-cv-btn: #ffd83b;
	--cta-orch-cv-btn-light: #ffe066;
	--cta-orch-cv-btn-dark: #e8b800;
	--cta-orch-cv-btn-text: #1b3d2f;
}

/* ============================================================
   Device Targeting
   ============================================================ */
@media (max-width: 959px) {
	.cta-orch--device-pc {
		display: none;
	}
}

@media (min-width: 960px) {
	.cta-orch--device-sp {
		display: none;
	}
}

/* ============================================================
   Shared: Microcopy
   ============================================================ */
/* pタグ要素はテーマの本文pスタイル（.single-contents p 等）に詳細度で負けるため、
   タイポグラフィを !important で固定する（cv-box-heading / dual-heading も同様）。 */
.cta-orch__microcopy {
	box-sizing: border-box;
	margin: 0.4em 0 !important;
	font-size: 0.8em !important;
	line-height: 1.5 !important;
	color: var(--cta-orch-sub-text) !important;
	text-align: center !important;
}

.cta-orch__microcopy--top {
	margin-bottom: 0.5em;
}

.cta-orch__microcopy--bottom {
	margin-top: 0.5em;
}

/* スマホ専用改行: 入力欄の改行は599px以下でのみ効く */
.cta-orch-br--sp { display: none; }
@media (max-width: 599px) {
	.cta-orch-br--sp { display: inline; }
}

/* ============================================================
   Shared: Button Base
   ============================================================ */
.cta-orch__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75em 1.6em;
	border-radius: 7px;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-orch__btn:focus {
	outline: 3px solid rgba(6, 199, 85, 0.4);
	outline-offset: 2px;
}

/* Main button */
.cta-orch__btn--main {
	background-color: var(--cta-orch-accent);
	color: #fff;
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.20);
	width: 100%;
}

.cta-orch__btn--main:hover {
	opacity: 0.88;
	transform: translateY(-1px);
	box-shadow: 0 5px 0 rgba(0, 0, 0, 0.20);
}

.cta-orch__btn--main:active {
	opacity: 1;
	transform: translateY(4px);
	box-shadow: 0 0 0 transparent;
}

/* Sub / outline button */
.cta-orch__btn--sub {
	background-color: transparent;
	color: var(--cta-orch-accent);
	border: 2px solid var(--cta-orch-accent);
	width: 100%;
}

.cta-orch__btn--sub:hover {
	background-color: rgba(6, 199, 85, 0.06);
	opacity: 1;
}

/* Size variants */
.cta-orch__btn--sm {
	padding: 0.5em 1.2em;
	font-size: 0.85em;
}

.cta-orch__btn--md {
	padding: 0.75em 1.6em;
	font-size: 1em;
}

.cta-orch__btn--lg {
	padding: 0.9em 2em;
	font-size: 1.1em;
}

/* ============================================================
   Template: CV-Box  （案3「F社トンマナ寄せ」を標準デザインとして採用）
   構造: ティールグラデの額縁帯 → 内側に白カード。
   画像は見出し直後（白カード内・中央寄せ）、microcopy--top はメインボタン直上。
   配色は :root の --cta-orch-cv-* 変数で制御（横展開時はそこを差し替える）。
   ============================================================ */
.cta-orch__cv-box {
	box-sizing: border-box;
	width: 100%;
	margin: 2em auto;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--cta-orch-cv-frame) 0%, var(--cta-orch-cv-frame-dark) 100%);
	box-shadow: 0 12px 30px rgba(10, 125, 116, 0.28);
	overflow: hidden;
	padding: 0.4em;                            /* 帯が白カードの周囲に額縁状に見える */
	min-height: 120px;
	line-height: 1.8;
	color: #fff;
}

/* Badge strip — ティール地に白文字（カード上の見出し帯） */
.cta-orch__cv-box-badge {
	box-sizing: border-box;
	width: 100%;
	padding: 0.7em 1.2em 0.5em;
	background: transparent;
	text-align: center;
}

.cta-orch__cv-box-badge span {
	font-size: 0.84em;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Inner layout — 白カード化（画像は body 内の見出し下に縦積み） */
.cta-orch__cv-box-inner {
	box-sizing: border-box;
	background: #fff;
	border-radius: 12px;
	padding: 1.5em 1.6em 1.5em;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

/* Body column */
.cta-orch__cv-box-body {
	box-sizing: border-box;
}

/* pタグ採用（目次対策）のため、テーマの本文pスタイル（.single-contents p 等）に
   詳細度で負けないよう !important でタイポグラフィを固定する。 */
.cta-orch__cv-box-heading {
	box-sizing: border-box;
	margin: 0 0 0.3em !important;
	font-size: 1.26em !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	letter-spacing: 0.005em;
	color: var(--cta-orch-cv-heading);
	text-wrap: balance;
}

/* Image — 見出し直後・白カード内・中央寄せ */
.cta-orch__cv-box-img {
	box-sizing: border-box;
	margin: 0.5em 0 0.8em;
	text-align: center;
}

.cta-orch__cv-box-img img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
}

.cta-orch__cv-box-lead {
	box-sizing: border-box;
	margin: 0 0 0.6em !important;
	font-size: 0.9em !important;
	line-height: 1.7 !important;
	color: var(--cta-orch-cv-lead) !important;
}

/* Checklist — 緑丸✓白抜き */
.cta-orch__checklist {
	box-sizing: border-box;
	margin: 0 0 0.8em;
	padding: 0;
	list-style: none;
}

.cta-orch__checklist-item {
	box-sizing: border-box;
	position: relative;
	padding-left: 2em;
	margin-bottom: 0.45em;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.6;
	color: var(--cta-orch-cv-item);
}

.cta-orch__checklist-item::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 0.16em;
	width: 1.4em;
	height: 1.4em;
	border-radius: 50%;
	background: linear-gradient(180deg, #18b3a4 0%, var(--cta-orch-cv-frame) 100%);
	color: #fff;
	font-size: 0.78em;
	font-weight: 800;
	line-height: 1.4em;
	text-align: center;
	box-shadow: 0 2px 5px rgba(14, 155, 143, 0.30);
}

/* microcopy--top — メインボタン直上（白カード内）。サブテキスト色・中央寄せで白地に馴染ませる */
.cta-orch__cv-box-btns .cta-orch__microcopy--top {
	margin: 0 0 0.5em !important;
	color: var(--cta-orch-sub-text) !important;
	font-weight: 700 !important;
	text-align: center !important;
}

/* Button group */
.cta-orch__cv-box-btns {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0.6em;
	margin-top: 1em;
}

/* メインボタン — 黄色アクセント（CV訴求の主役・濃いティール文字で可読性確保） */
.cta-orch__cv-box .cta-orch__btn--main {
	padding: 0.95em 1.6em;
	border-radius: 999px;
	font-size: 1.06em;
	color: var(--cta-orch-cv-btn-text);
	background: linear-gradient(180deg, var(--cta-orch-cv-btn-light) 0%, var(--cta-orch-cv-btn) 100%);
	box-shadow: 0 5px 0 var(--cta-orch-cv-btn-dark), 0 8px 16px rgba(0, 0, 0, 0.18);
}

.cta-orch__cv-box .cta-orch__btn--main:hover {
	opacity: 1;
	transform: translateY(-1px);
	box-shadow: 0 6px 0 var(--cta-orch-cv-btn-dark), 0 10px 20px rgba(0, 0, 0, 0.22);
}

.cta-orch__cv-box .cta-orch__btn--main:active {
	transform: translateY(5px);
	box-shadow: 0 0 0 var(--cta-orch-cv-btn-dark);
}

/* LINEアイコン風の丸（黄ボタン左の差し色） */
.cta-orch__cv-box .cta-orch__btn--main::before {
	content: '';
	width: 1.25em;
	height: 1.25em;
	margin-right: 0.55em;
	border-radius: 28%;
	background: var(--cta-orch-cv-line);
	box-shadow: inset 0 0 0 0.18em #fff, inset 0 0 0 0.30em var(--cta-orch-cv-line);
	flex-shrink: 0;
}

/* CV-box microcopy（白カード外＝額縁帯の上）。--top は構造上ボタン直上へ移動済みのため
   ここで効くのは --bottom（額縁帯の下端・白文字） */
.cta-orch__cv-box > .cta-orch__microcopy {
	padding: 0 1.2em;
}

.cta-orch__cv-box > .cta-orch__microcopy--bottom {
	margin: 0.6em 0 0.2em !important;
	padding-bottom: 0.4em;
	font-size: 0.74em !important;
	color: rgba(255, 255, 255, 0.85) !important;
}

/* CV-box responsive */
@media (max-width: 599px) {
	.cta-orch__cv-box-inner {
		padding: 1.3em 1.1em;
	}

	.cta-orch__cv-box-body {
		width: 100%;
	}

	.cta-orch__cv-box-heading {
		font-size: 1.16em !important;
		text-align: center;
	}

	.cta-orch__cv-box-lead {
		text-align: center;
	}

	.cta-orch__cv-box > .cta-orch__microcopy {
		padding: 0 0.8em;
	}
}

/* ============================================================
   Template: Banner
   ============================================================ */
.cta-orch__banner {
	box-sizing: border-box;
	width: 100%;
	margin: 2em auto;
	min-height: 60px;
	text-align: center;
}

.cta-orch__banner-link {
	display: block;
	border-radius: var(--cta-orch-radius);
	overflow: hidden;
	box-shadow: var(--cta-orch-shadow);
	transition: opacity 0.2s ease;
	line-height: 0;
}

.cta-orch__banner-link:hover {
	opacity: 0.88;
}

.cta-orch__banner-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: var(--cta-orch-radius);
}

/* Banner responsive */
@media (max-width: 599px) {
	.cta-orch__banner {
		margin: 1.4em auto;
	}
}

/* ============================================================
   Template: Button
   ============================================================ */
.cta-orch__button {
	box-sizing: border-box;
	width: 100%;
	margin: 2em auto;
	min-height: 48px;
	text-align: center;
}

/* Balloon (microcopy_top) */
.cta-orch__balloon {
	box-sizing: border-box;
	display: inline-block;
	position: relative;
	margin-bottom: 0.6em;
	padding: 0.3em 0.9em;
	background: #fff3cd;
	border: 1px solid #ffe080;
	border-radius: 4px;
	font-size: 0.8em;
	line-height: 1.5;
	color: #7a5c00;
}

.cta-orch__balloon::after {
	content: '';
	position: absolute;
	bottom: -7px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid #ffe080;
}

.cta-orch__balloon-text {
	display: block;
}

/* Button (single) standalone container */
.cta-orch__button .cta-orch__btn--main {
	max-width: 480px;
	margin: 0 auto;
}

/* Button responsive */
@media (max-width: 599px) {
	.cta-orch__button {
		margin: 1.4em auto;
	}

	.cta-orch__button .cta-orch__btn--main {
		max-width: 100%;
	}

	.cta-orch__btn--lg {
		font-size: 1em;
		padding: 0.8em 1.4em;
	}
}

/* ============================================================
   Template: Dual
   ============================================================ */
.cta-orch__dual {
	box-sizing: border-box;
	width: 100%;
	margin: 2em auto;
	min-height: 52px;
	text-align: center;
}

/* pタグ採用（目次対策）のため、テーマの本文pスタイルに負けないよう !important 固定。 */
.cta-orch__dual-heading {
	box-sizing: border-box;
	margin: 0 0 0.4em !important;
	font-size: 1.1em !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	color: var(--cta-orch-text);
	text-wrap: balance;
}

/* Dual button row */
.cta-orch__dual-btns {
	box-sizing: border-box;
	display: flex;
	align-items: stretch;
	gap: 0.8em;
	justify-content: center;
}

.cta-orch__dual-btn {
	flex: 1 1 0;
	max-width: 320px;
	width: auto;
}

/* Dual responsive — stack on mobile */
@media (max-width: 599px) {
	.cta-orch__dual {
		margin: 1.4em auto;
	}

	.cta-orch__dual-btns {
		flex-direction: column;
		align-items: stretch;
	}

	.cta-orch__dual-btn {
		max-width: 100%;
		width: 100%;
	}
}

/* ============================================================
   Template: Free
   ============================================================ */
.cta-orch__free {
	box-sizing: border-box;
	width: 100%;
	margin: 2em auto;
	min-height: 1em;
	line-height: 1.8;
	color: var(--cta-orch-text);
}

.cta-orch__free-body {
	box-sizing: border-box;
}

/* Free responsive */
@media (max-width: 599px) {
	.cta-orch__free {
		margin: 1.4em auto;
	}
}
