@charset "utf-8";

/* ===============================================
   トップページ Case Studies
   =============================================== */
.top-cs {
	padding-top: 96px;
	padding-bottom: 96px;
}

/* 見出し行 */
.top-cs__head {
	margin-bottom: 40px;
	padding-bottom: 14px;
	border-bottom: 1px solid #ddd;
}
.top-cs__title {
	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-cs__sub {
	margin: 0;
	font-size: var(--fs-section-sub);
	font-weight: var(--fw-section-sub);
	line-height: var(--lh-section-sub);
	color: #555;
}
.top-cs__viewall {
	margin: 0;
}
.top-cs__viewall a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 4px;
	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-cs__viewall a::after {
	content: "→";
	transition: transform .2s;
}
.top-cs__viewall a:hover {
	border-bottom-color: transparent;
	color: var(--gold-hover);
	text-decoration: none;
}
.top-cs__viewall a:hover::after {
	transform: translateX(3px);
}

/* カード */
.top-cs__list .wp-block-post-template {
	gap: 30px;
}
.top-cs__list .wp-block-post {
	display: flex;
	flex-direction: column;
	padding-bottom: 22px;
	border: 1px solid #e8e6e1;
	border-radius: var(--radius-case);
	background: var(--white);
	overflow: hidden;
}
.top-cs__img {
	margin: 0 0 18px;
}
.top-cs__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-case) var(--radius-case) 0 0;
}
.top-cs__cat {
	margin: 0 22px 10px;
	color: var(--gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.5;
}
/* 国が未設定：場所だけ残す */
.top-cs__cat--empty {
	visibility: hidden;
}
.top-cs__card-title {
	margin: 0 22px 18px;
	padding: 0;
	border: 0;
	font-size: var(--fs-card-title);
	font-weight: var(--fw-card-title);
	line-height: var(--lh-card-title);
}
.top-cs__card-title a {
	color: #1a1a24;
	text-decoration: none;
}
/* 抜粋（投稿の抜粋ブロック・追加 CSS クラス top-cs__excerpt） */
.top-cs__list .top-cs__excerpt {
	margin: 0 22px 18px;
}
.top-cs__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: #666;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* 「続きを読む」は出さない（Read Case Study があるため） */
.top-cs__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}
.top-cs__more,
a.top-cs__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: auto 22px 0;
	color: var(--blue);
	font-size: var(--fs-link);
	font-weight: var(--fw-link);
	line-height: var(--lh-btn);
	text-decoration: none;
}
.top-cs__more:hover,
.top-cs__more:focus {
	color: var(--blue);
	text-decoration: none;
}
.top-cs__more::after {
	content: "→";
	transition: transform .2s;
}
.top-cs__more:hover::after {
	transform: translateX(3px);
}

/* タームのリンクを無効化 */
.top-cs__cat a,
.top-news__cat a {
	pointer-events: none;
	cursor: default;
}
/* Case Studies のカテゴリーは金色 */
.top-cs__cat a {
	color: var(--gold);
}

/* SP */
@media (max-width: 991.98px) {
	.top-cs {
		padding-top: 64px;
		padding-bottom: 64px;
	}
	.top-cs__list .wp-block-post-template {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
