@charset "UTF-8";

:root {
	--afc-home-green: #2f954b;
	--afc-home-green-soft: #edf8ef;
	--afc-home-blue: #347cbf;
	--afc-home-blue-soft: #eef6fd;
	--afc-home-gold: #dfa400;
	--afc-home-gold-soft: #fff8e8;
	--afc-home-text: #202020;
	--afc-home-muted: #656565;
	--afc-home-line: #e6e1d9;
	--afc-home-radius: 14px;
}

.afc-home-content,
.afc-home-content *,
.afc-home-content *::before,
.afc-home-content *::after {
	box-sizing: border-box;
}

#content.afc-home-content {
	width: min(1060px, calc(100% - 32px));
	max-width: 1060px;
	margin: 0 auto;
	padding: 24px 0 30px;
}

.afc-home-content #afc-home-main {
	float: none;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.afc-home {
	color: var(--afc-home-text);
	font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.afc-home article {
	display: grid;
	gap: 18px;
}

.afc-home h2,
.afc-home h3,
.afc-home p {
	margin-top: 0;
}

.afc-home-hero {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background: #fffaf3;
	box-shadow: 0 8px 28px rgba(81, 62, 33, .06);
}

.afc-home-hero > img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.afc-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	min-height: 48px;
	padding: 10px 20px;
	border: 2px solid currentColor;
	border-radius: 999px;
	background: #fff;
	color: var(--afc-home-green);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

a.afc-home-button:hover,
a.afc-home-button:focus-visible {
	color: inherit;
	transform: translateY(-2px);
	box-shadow: 0 7px 18px rgba(0, 0, 0, .12);
}

.afc-home-button.is-primary {
	border-color: var(--afc-home-green);
	background: var(--afc-home-green);
	color: #fff;
}

.afc-home-button.is-insurance {
	color: var(--afc-home-blue);
}

.afc-home-button.is-assets {
	color: var(--afc-home-gold);
}

.afc-home-button.is-pending {
	cursor: default;
	border-color: #c9c9c9;
	background: #f4f4f4;
	color: #777;
}

.afc-home-pending-label {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 999px;
	background: #dedede;
	font-size: 10px;
	letter-spacing: .04em;
}

.afc-home-topic-area {
	padding-top: 4px;
}

.afc-home-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-bottom: 14px;
	font-size: clamp(20px, 2.5vw, 27px);
	text-align: center;
}

.afc-home-heading::before,
.afc-home-heading::after {
	content: "";
	width: 38px;
	height: 2px;
	background: var(--afc-home-green);
}

.afc-home-heading::after {
	background: var(--afc-home-gold);
}

.afc-home-topic-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.afc-home-topic-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	padding: 16px;
	border: 1px solid #b9dec2;
	border-radius: var(--afc-home-radius);
	background: #fff;
}

.afc-home-topic-card.is-insurance {
	border-color: #bdd5eb;
}

.afc-home-topic-card.is-assets {
	border-color: #ead49a;
}

.afc-home-topic-copy {
	display: grid;
	grid-template-columns: 90px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	margin-bottom: 14px;
}

.afc-home-topic-copy img {
	width: 90px;
	height: 90px;
	margin: 0;
	border-radius: 10px;
	object-fit: cover;
}

.afc-home-topic-copy h3 {
	margin-bottom: 7px;
	color: var(--afc-home-green);
	font-size: 18px;
	line-height: 1.4;
}

.afc-home-topic-card.is-insurance h3 {
	color: var(--afc-home-blue);
}

.afc-home-topic-card.is-assets h3 {
	color: var(--afc-home-text);
}

.afc-home-topic-copy p {
	margin-bottom: 0;
	font-size: 13px;
	line-height: 1.75;
}

.afc-home-post-section,
.afc-home-starter {
	padding: 18px;
	border: 1px solid var(--afc-home-line);
	border-radius: var(--afc-home-radius);
	background: linear-gradient(145deg, #fff, #fffdf9);
}

.afc-home-post-section.is-household {
	border-color: #d5e6d8;
}

.afc-home-post-section.is-insurance {
	border-color: #cbdff0;
	background: linear-gradient(145deg, #fff, var(--afc-home-blue-soft));
}

.afc-home-post-section.is-assets {
	border-color: #eadfca;
	background: linear-gradient(145deg, #fff, var(--afc-home-gold-soft));
}

.afc-home-section-header {
	margin-bottom: 14px;
	text-align: center;
}

.afc-home-section-header h2,
.afc-home-starter > h2,
.afc-home-final-cta h2 {
	margin-bottom: 5px;
	font-size: clamp(21px, 2.6vw, 28px);
	line-height: 1.45;
}

.afc-home-section-header p {
	margin-bottom: 0;
	color: var(--afc-home-muted);
	font-size: 13px;
	line-height: 1.7;
}

.afc-home-article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.afc-home-article-grid.has-5-columns {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.afc-home-article-card {
	display: flex;
	overflow: hidden;
	flex-direction: column;
	min-width: 0;
	border: 1px solid #e4e4e4;
	border-radius: 9px;
	background: #fff;
	color: var(--afc-home-text) !important;
	text-decoration: none !important;
	transition: transform .2s ease, box-shadow .2s ease;
}

a.afc-home-article-card:hover,
a.afc-home-article-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .1);
}

.afc-home-article-card.is-pending {
	opacity: .72;
}

.afc-home-article-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 7;
	background: #f5f1ea;
}

.afc-home-article-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.afc-home-tag {
	position: absolute;
	top: 7px;
	left: 7px;
	padding: 3px 8px;
	border-radius: 5px;
	background: var(--afc-home-green);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
}

.is-insurance .afc-home-tag {
	background: var(--afc-home-blue);
}

.is-assets .afc-home-tag {
	background: var(--afc-home-gold);
}

.afc-home-article-body {
	padding: 11px 12px 13px;
}

.afc-home-article-body h3 {
	margin-bottom: 6px;
	font-size: 16px;
	line-height: 1.55;
}

.afc-home-article-body p {
	margin-bottom: 0;
	color: #4d4d4d;
	font-size: 12px;
	line-height: 1.65;
}

.afc-home-article-grid.has-5-columns .afc-home-article-body h3 {
	font-size: 14px;
}

.afc-home-section-action {
	width: min(360px, 100%);
	margin: 14px auto 0;
}

.afc-home-starter > h2 {
	text-align: center;
}

.afc-home-starter-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.afc-home-article-card.is-compact {
	display: grid;
	grid-template-columns: 38% minmax(0, 1fr);
}

.afc-home-article-card.is-compact .afc-home-article-image {
	aspect-ratio: auto;
	min-height: 132px;
}

.afc-home-final-cta {
	padding: 22px;
	border-radius: var(--afc-home-radius);
	background: linear-gradient(105deg, var(--afc-home-green-soft), #fff 48%, var(--afc-home-gold-soft));
	text-align: center;
}

.afc-home-final-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	max-width: 850px;
	margin: 14px auto 0;
}

.afc-home-final-actions .afc-home-button:not(.is-pending) {
	border-color: transparent;
	color: #fff;
}

.afc-home-final-actions .is-household:not(.is-pending) {
	background: var(--afc-home-green);
}

.afc-home-final-actions .is-insurance:not(.is-pending) {
	background: var(--afc-home-blue);
}

.afc-home-final-actions .is-assets:not(.is-pending) {
	background: var(--afc-home-gold);
}

@media only screen and (max-width: 959px) {
	#content.afc-home-content {
		width: min(100% - 24px, 820px);
		padding-top: 16px;
	}

	.afc-home-topic-grid,
	.afc-home-starter-grid {
		grid-template-columns: 1fr;
	}

	.afc-home-topic-copy {
		grid-template-columns: 110px minmax(0, 1fr);
	}

	.afc-home-topic-copy img {
		width: 110px;
		height: 100px;
	}

	.afc-home-article-grid.has-5-columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 599px) {
	#content.afc-home-content {
		width: calc(100% - 20px);
		padding-top: 10px;
	}

	.afc-home article {
		gap: 13px;
	}

	.afc-home-hero {
		border-radius: 12px;
	}

	.afc-home-heading {
		gap: 10px;
		font-size: 19px;
	}

	.afc-home-heading::before,
	.afc-home-heading::after {
		width: 20px;
	}

	.afc-home-topic-card,
	.afc-home-post-section,
	.afc-home-starter,
	.afc-home-final-cta {
		padding: 13px;
		border-radius: 11px;
	}

	.afc-home-topic-copy {
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 11px;
	}

	.afc-home-topic-copy img {
		width: 84px;
		height: 84px;
	}

	.afc-home-topic-copy h3 {
		font-size: 16px;
	}

	.afc-home-topic-copy p {
		font-size: 12px;
	}

	.afc-home-article-grid,
	.afc-home-article-grid.has-5-columns,
	.afc-home-final-actions {
		grid-template-columns: 1fr;
	}

	.afc-home-article-card {
		display: grid;
		grid-template-columns: 38% minmax(0, 1fr);
	}

	.afc-home-article-image,
	.afc-home-article-card.is-compact .afc-home-article-image {
		aspect-ratio: auto;
		min-height: 130px;
	}

	.afc-home-article-body {
		padding: 10px;
	}

	.afc-home-article-body h3,
	.afc-home-article-grid.has-5-columns .afc-home-article-body h3 {
		font-size: 14px;
	}

	.afc-home-article-body p {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}

	.afc-home-section-header h2,
	.afc-home-starter > h2,
	.afc-home-final-cta h2 {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.afc-home-button,
	.afc-home-article-card {
		transition: none;
	}
}
