/* DecodeFX Campaign System — myfxmarkets 風 UI */

/* 親(ダークテーマ/flexコンテナ)から独立した明るい全幅レイアウトにする */
.dfx-campaign {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: #f6f7fb;
	color: #1f2433;
}

/* =====================  HERO  ===================== */
.dfx-hero {
	position: relative;
	background: #211e51;
	color: #fff;
	text-align: center;
	padding: 70px 20px 96px;
	border-radius: 0 0 50% 50% / 0 0 20% 20%;
	overflow: hidden;
}
.dfx-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin: 0 auto;
}
.dfx-hero-pill {
	display: inline-block;
	background: rgba(255, 255, 255, .18);
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	padding: 6px 20px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.dfx-hero-title {
	font-size: 3rem;
	font-weight: 800;
	margin: 0 0 18px;
	color: #fff;
	line-height: 1.2;
}
.dfx-hero-lead {
	font-size: 1rem;
	line-height: 1.95;
	color: rgba(255, 255, 255, .92);
	margin: 0 0 30px;
}
.dfx-hero-ctas {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}
.dfx-btn {
	display: inline-block;
	padding: 13px 34px;
	border-radius: 999px;
	font-weight: 700;
	font-size: .98rem;
	text-decoration: none;
	transition: transform .15s ease, opacity .15s ease;
}
.dfx-btn:hover {
	transform: translateY(-2px);
	opacity: .92;
}
.dfx-btn-primary {
	background: #f5cd0f;
	color: #0d1350;
}
.dfx-btn-secondary {
	background: #fff;
	color: #0d1350;
}

/* =====================  ARCHIVE LIST  ===================== */
.dfx-archive-body {
	padding: 60px 20px 80px;
}
.dfx-archive-inner {
	max-width: 1040px;
	margin: 0 auto;
}
.dfx-row-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.dfx-row {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 28px;
	background: #fff;
	border-radius: 25px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 10px 30px rgba(30, 34, 89, .07);
	transition: transform .18s ease, box-shadow .18s ease;
}
.dfx-row:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(30, 34, 89, .13);
}
.dfx-row-thumb {
	flex: 0 0 230px;
	background: #eef0f6;
}
.dfx-row-img {
	width: 230px;
	height: 100%;
	min-height: 168px;
	object-fit: cover;
	display: block;
}
.dfx-row-noimg {
	width: 230px;
	min-height: 168px;
}
.dfx-row-body {
	flex: 1;
	padding: 26px 32px 26px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	min-width: 0;
}
.dfx-row-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.55;
	color: #1f2433;
}
.dfx-row-period {
	font-size: .84rem;
	color: #9aa1b2;
	margin: 0;
}
.dfx-row-excerpt {
	font-size: .92rem;
	color: #6b7280;
	line-height: 1.85;
	margin: 0;
}

/* badge */
.dfx-badge {
	display: inline-block;
	padding: 5px 16px;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
}
.dfx-badge-ended {
	background: #b6bccb;
}
.dfx-row .dfx-badge-ended {
	position: absolute;
	top: 18px;
	right: 18px;
}

/* ended = grayed (参考サイト準拠) */
.dfx-row.is-ended .dfx-row-img {
	filter: grayscale(100%);
	opacity: .5;
}
.dfx-row.is-ended .dfx-row-title {
	color: #aab0bf;
}
.dfx-row.is-ended .dfx-row-excerpt {
	color: #c2c7d2;
}

/* pagination */
.dfx-pagination {
	margin-top: 44px;
	text-align: center;
}
.dfx-pagination .page-numbers {
	display: inline-block;
	min-width: 44px;
	padding: 10px 15px;
	margin: 0 4px;
	border: 1px solid #e1e4ec;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: #374151;
	font-weight: 600;
}
.dfx-pagination .page-numbers.current {
	background: #211e51;
	border-color: #211e51;
	color: #fff;
}
.dfx-pagination a.page-numbers:hover {
	background: #eef0fb;
}
.dfx-empty {
	text-align: center;
	color: #6b7280;
	padding: 56px 0;
}

/* =====================  SINGLE  ===================== */
.dfx-campaign-single .dfx-single-wrap {
	max-width: 880px;
	margin: 0 auto;
	padding: 48px 20px 72px;
}
.dfx-back {
	margin-bottom: 18px;
}
.dfx-back a {
	color: #6b7280;
	text-decoration: none;
	font-size: .9rem;
}
.dfx-single-card {
	background: #fff;
	border-radius: 22px;
	padding: 44px 50px;
	box-shadow: 0 12px 40px rgba(30, 34, 89, .10);
}
.dfx-single-head {
	margin-bottom: 24px;
}
.dfx-single-title {
	font-size: 1.85rem;
	font-weight: 800;
	margin: 0 0 12px;
	line-height: 1.4;
	color: #1f2433;
}
.dfx-single-head .dfx-badge {
	vertical-align: middle;
}
.dfx-badge-active {
	background: #16a34a;
}
.dfx-single-period {
	color: #6b7280;
	font-size: .95rem;
	margin: 12px 0 0;
}
.dfx-single-banner {
	margin: 0 0 32px;
	border-radius: 16px;
	overflow: hidden;
}
.dfx-single-banner-img {
	width: 100%;
	height: auto;
	display: block;
}
.dfx-single-content {
	line-height: 1.95;
	color: #2b3040;
	margin-bottom: 44px;
}
.dfx-single-content img {
	max-width: 100%;
	height: auto;
}

/* form */
.dfx-form-area {
	border-top: 2px solid #f0f1f5;
	padding-top: 36px;
}
.dfx-form-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0 0 24px;
	text-align: center;
	color: #1f2433;
}
.dfx-cf7-row {
	margin-bottom: 18px;
}
.dfx-cf7-row label {
	display: block;
	font-weight: 600;
	font-size: .95rem;
}
.dfx-req {
	display: inline-block;
	background: #c8102e;
	color: #fff;
	font-size: .7rem;
	padding: 2px 8px;
	border-radius: 4px;
	margin-left: 6px;
	vertical-align: middle;
}
.dfx-form-area input[type="text"],
.dfx-form-area input[type="email"] {
	width: 100%;
	padding: 13px 15px;
	margin-top: 7px;
	border: 1px solid #d6dae3;
	border-radius: 10px;
	font-size: 1rem;
	box-sizing: border-box;
}
.dfx-form-area input[type="text"]:focus,
.dfx-form-area input[type="email"]:focus {
	outline: none;
	border-color: #211e51;
	box-shadow: 0 0 0 3px rgba(33, 30, 81, .15);
}
.dfx-cf7-acceptance {
	margin: 24px 0;
	font-size: .92rem;
	line-height: 1.7;
}
.dfx-cf7-submit {
	text-align: center;
}
.dfx-form-area input[type="submit"] {
	background: #211e51;
	color: #fff;
	border: 0;
	padding: 15px 60px;
	border-radius: 999px;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease;
}
.dfx-form-area input[type="submit"]:hover {
	transform: translateY(-2px);
	opacity: .92;
}
.dfx-form-closed {
	background: #f1f2f6;
	border: 1px dashed #c8cdd9;
	border-radius: 14px;
	padding: 30px;
	text-align: center;
	color: #6b7280;
	font-weight: 600;
}

/* =====================  RESPONSIVE  ===================== */
.dfx-br-pc {
	display: inline;
}
@media (max-width: 760px) {
	.dfx-hero {
		padding: 52px 18px 72px;
		border-radius: 0 0 40% 40% / 0 0 8% 8%;
	}
	.dfx-hero-title {
		font-size: 2.1rem;
	}
	.dfx-br-pc {
		display: none;
	}
	.dfx-row {
		flex-direction: column;
		gap: 0;
	}
	.dfx-row-thumb {
		flex: none;
	}
	.dfx-row-img,
	.dfx-row-noimg {
		width: 100%;
		height: auto;
		min-height: 0;
	}
	.dfx-row-body {
		padding: 22px 24px 26px;
	}
	.dfx-single-card {
		padding: 28px 22px;
	}
	.dfx-single-title {
		font-size: 1.5rem;
	}
}
