@charset "utf-8";

/* ===============================================
   トップページ News & Insights
   =============================================== */
.top-news {
	padding-top: 96px;
	padding-bottom: 96px;
}

/* 見出し行 */
.top-news__head {
	margin-bottom: 40px;
}
.top-news__title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	color: var(--blue);
	font-size: var(--fs-section-title);
	font-weight: var(--fw-section-title);
	line-height: var(--lh-section-title);
}
.top-news__sub {
	margin: 0;
	font-size: var(--fs-section-sub);
	font-weight: var(--fw-section-sub);
	line-height: var(--lh-section-sub);
	color: #444;
}
.top-news__viewall {
	margin: 0;
}
.top-news__viewall a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--gold);
	color: var(--gold);
	font-size: var(--fs-link);
	font-weight: var(--fw-link);
	line-height: var(--lh-btn);
	text-decoration: none;
}
.top-news__viewall a::after {
	content: "→";
	transition: transform .2s;
}
.top-news__viewall a:hover {
	border-bottom-color: transparent;
	color: var(--gold-hover);
	text-decoration: none;
}
.top-news__viewall a:hover::after {
	transform: translateX(3px);
}

/* カード一覧 */
.top-news__list .wp-block-post-template {
	gap: 48px 40px;
}
/* カードの上罫線 */
.top-news__list .wp-block-post {
	padding-top: 24px;
	border-top: 1px solid var(--tn-cat-color, var(--line));
}

/* カード内 */
.top-news__img {
	margin: 0 0 16px;
	border-radius: var(--radius-news);
	overflow: hidden;
}
.top-news__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-news);
}
/* カテゴリー：背景は薄いカテゴリー色、文字はカテゴリー色 */
/* カテゴリー：複数あるときは1つずつ別のバッジにする */
.top-news__cat {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
	font-size: var(--fs-label);
	font-weight: var(--fw-label);
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: var(--lh-label);
}
.top-news__cat a {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 2px;
	background: hsl(from var(--tn-cat-color, var(--blue)) h s 96%);
	/* 選んだ色の明度を12%下げる（背景との差 4.5 以上） */
	color: hsl(from var(--tn-cat-color, var(--blue)) h s calc(l - 12));
	text-decoration: none;
}
/* 区切りの「,」は出さない */
.top-news__cat .wp-block-post-terms__separator {
	display: none;
}
.top-news__card-title {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	font-size: var(--fs-card-title);
	font-weight: var(--fw-card-title);
	line-height: var(--lh-card-title);
}
.top-news__card-title a {
	color: #1a1a24;
	text-decoration: none;
}
.top-news__date {
	margin: 0 0 18px;
	font-size: var(--fs-date);
	font-weight: var(--fw-date);
	line-height: var(--lh-date);
	color: var(--text-date);
}
/* read-more ブロック*/
.top-news__more,
a.top-news__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--blue);
	font-size: var(--fs-link);
	font-weight: var(--fw-link);
	line-height: var(--lh-btn);
	text-decoration: none;
}
.top-news__more:hover,
.top-news__more:focus {
	color: var(--blue);
	text-decoration: none;
}
.top-news__more::after {
	content: "→";
	transition: transform .2s;
}
.top-news__more:hover::after {
	transform: translateX(3px);
}

/* SP・タブレットは2列 */
@media (max-width: 991.98px) {
	.top-news {
		padding-top: 64px;
		padding-bottom: 64px;
	}
	.top-news__list .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
	}
	.top-news__card-title {
		font-size: 15px;
	}
}
