@charset "UTF-8";
/* =========================================================
   cards.css — 共通カード（F2）
   c-tag / c-label / c-card-works / c-card-purpose / c-card-blog / c-card-news
   ========================================================= */

/* ---------- タグ・ラベル ---------- */
/* c-tag: 施工事例カード・ブログ一覧のタグ（Figma tg） */
.c-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2.75px 9.625px;
	border-radius: 4.125px;
	background: var(--c-blue-pale);
	color: var(--c-blue);
	font-size: 13.38px;
	font-weight: 500;
	line-height: 1.65;
	white-space: nowrap;
}
/* c-label: お知らせ／ブログ(TOP) のカテゴリー（Figma cat） */
.c-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 3px;
	background: var(--c-blue-pale);
	color: var(--c-blue);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
}
.c-label--s { font-size: 11px; }
.c-label--fixed { min-width: 62px; }

/* ---------- 施工事例カード card_works 354x349.5 ---------- */
.c-card-works {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 354px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--c-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.c-card-works__img {
	aspect-ratio: 354 / 266;
	overflow: hidden;
	background: #e6ebf1;
}
.c-card-works__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--ease);
}
.c-card-works__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 11px 22px;
}
.c-card-works__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.c-card-works__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--c-text);
}
.c-card-works:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.c-card-works:hover .c-card-works__img img { transform: scale(1.05); }

/* ---------- 目的カード card_works(目的) 354x439 ---------- */
.c-card-purpose {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 354px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--c-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	transition: box-shadow .3s var(--ease);
}
.c-card-purpose__img { aspect-ratio: 354 / 266; overflow: hidden; background: #e6ebf1; }
.c-card-purpose__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); }
/* 番号バッジ（Figma Rectangle 129: 112x62 / 右辺斜め） */
.c-card-purpose__num {
	position: absolute;
	top: 0;
	left: 0;
	width: 105px;
	height: 54px;
	padding: 4px 0 0 26px;
	background: var(--c-blue);
	clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
	color: var(--c-white);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.5;
}
.c-card-purpose__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 15px;
	min-height: 173px;
	padding: 11px 17px 15px;
	background: var(--c-blue);
	color: var(--c-white);
}
.c-card-purpose__title {
	max-width: 299px;
	min-height: calc(26px * 1.4 * 2);
	word-break: keep-all; /* tst_ui_jp_wrap() の <wbr> 位置でのみ改行 */
	overflow-wrap: anywhere;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
}
.c-card-purpose__foot {
	display: flex;
	align-items: flex-end;
	gap: 26px;
	margin-top: auto;
}
.c-card-purpose__text {
	flex: 0 1 256px; /* 行数にかかわらず下詰め（.c-card-purpose__foot が下端・下揃え） */
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}
.c-card-purpose__arrow { flex-shrink: 0; margin-bottom: 8px; transition: transform .3s var(--ease); }
.c-card-purpose:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.c-card-purpose:hover .c-card-purpose__img img { opacity: .8; } /* Figma: ホバーは透過80%（拡大しない） */
.c-card-purpose:hover .c-card-purpose__arrow { transform: translateX(3px); }

/* ---------- ブログカード ---------- */
.c-card-blog {
	display: flex;
	flex-direction: column;
	width: 100%;
	border-bottom: 1px solid #dce3ea;
}
.c-card-blog__img { overflow: hidden; background: #e5e7eb; }
.c-card-blog__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.c-card-blog__info { display: flex; flex-direction: column; }
.c-card-blog__meta { display: flex; align-items: center; overflow: hidden; }
.c-card-blog__cats { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; } /* カテゴリーが複数のとき横に並べる */
.c-card-blog__date { color: var(--c-text-sub); line-height: 1.5; white-space: nowrap; }
.c-card-blog__title { color: var(--c-text); line-height: 1.5; }
.c-card-blog:hover .c-card-blog__img img { transform: scale(1.05); }
.c-card-blog:hover .c-card-blog__title { color: var(--c-blue); }

/* s: TOP card_blog 240x275 */
.c-card-blog--s { max-width: 240px; min-height: 275px; gap: 13px; padding-bottom: 16px; }
.c-card-blog--s .c-card-blog__img { height: 180px; border-radius: 4px; }
.c-card-blog--s .c-card-blog__info { gap: 4px; }
.c-card-blog--s .c-card-blog__meta { gap: 8px; }
.c-card-blog--s .c-card-blog__date { font-size: 13px; }
.c-card-blog--s .c-label { font-size: 11px; }
.c-card-blog--s .c-card-blog__title {
	min-height: 41px;
	font-size: 14px;
	font-weight: 400;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* m: ブログ一覧 nwList_2 354x381 */
.c-card-blog--m { max-width: 354px; gap: 19px; padding-bottom: 24px; border-bottom-width: 1.5px; }
.c-card-blog--m .c-card-blog__img { aspect-ratio: 354 / 265.5; border-radius: 6px; }
.c-card-blog--m .c-card-blog__info { gap: 6px; min-height: 73px; }
.c-card-blog--m .c-card-blog__meta { gap: 12px; }
.c-card-blog--m .c-card-blog__date { font-size: 14px; }
.c-card-blog--m .c-card-blog__title { font-size: 16px; font-weight: 700; }

/* ---------- お知らせ行 ---------- */
.c-news-list { display: flex; flex-direction: column; }
.c-card-news {
	display: grid;
	align-items: center;
	border-bottom: 1px solid #dce3ea;
	line-height: 1.5;
}
.c-card-news__cat { display: flex; }
.c-card-news__title { color: var(--c-text); transition: color .2s; }
.c-card-news:hover .c-card-news__title { color: var(--c-blue); }

/* list: お知らせ一覧 card_news 1100x60 */
.c-card-news--list {
	grid-template-columns: 100px minmax(92px, max-content) 1fr;
	min-height: 60px;
	padding: 14px 0;
}
.c-card-news--list .c-card-news__date { color: #8a98a6; font-size: 16px; }
.c-card-news--list .c-card-news__cat { padding-right: 20px; }
.c-card-news--list .c-card-news__title { font-size: 16px; }

/* top: TOP NEWS nrow */
.c-card-news--top {
	grid-template-columns: auto auto 1fr;
	column-gap: 20px;
	padding: 16px 0;
	border-bottom-color: var(--c-blue-pale);
}
.c-card-news--top:first-child,
.c-news-list > li:first-child > .c-card-news--top { padding-top: 7px; }
.c-card-news--top .c-card-news__date { color: var(--c-text-sub); font-size: 13px; }
.c-card-news--top .c-label { font-size: 11px; }
.c-card-news--top .c-card-news__title { font-size: 14px; }

/* =========================================================
   SP（≤767px）
   ========================================================= */
@media (max-width: 767px) {
	/* 施工事例カード 一覧用（Figma blog-card_sp 3418:28552, 333x335） */
	.c-card-works {
		max-width: none;
		gap: 11px;
		border: 1px solid #dce3ea;
		border-radius: 4px;
	}
	.c-card-works__img { aspect-ratio: 333 / 250; }
	.c-card-works__body { gap: 6px; padding: 0 30px 15px 15px; }
	.c-card-works__tags { gap: 6px; }
	.c-card-works__title { line-height: 1.65; }

	/* スライダー内（Figma card_works_sp 2541:14052, 210w） */
	[data-slider] .c-card-works {
		width: 210px;
		max-width: 210px;
		gap: 0;
		border: 0;
		border-radius: 2.4px;
		box-shadow: 0 1.2px 4.7px rgba(0, 0, 0, .15);
	}
	[data-slider] .c-card-works__img { aspect-ratio: 210 / 158; }
	[data-slider] .c-card-works__body { gap: 0; padding: 6.5px 9px; }
	[data-slider] .c-card-works__tags { gap: 7px; }
	[data-slider] .c-card-works .c-tag { padding: 1.6px 5.7px; border-radius: 2.4px; font-size: 11px; }
	[data-slider] .c-card-works__title {
		font-size: 14px;
		line-height: 1.5;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* 目的カード（Figma card_works 目的 3418:30562, 333x357） */
	.c-card-purpose { max-width: none; border-radius: 3.8px; box-shadow: 0 1.9px 7.5px rgba(0, 0, 0, .15); }
	.c-card-purpose__img { aspect-ratio: 333 / 250; }
	.c-card-purpose__num { width: 98px; height: 51px; padding: 3px 0 0 24px; font-size: 26px; }
	/* 青帯: 説明文1行=88px / 2行=約107px（Figma 3418:30595 / 30567） */
	.c-card-purpose__body { gap: 11px; min-height: 88px; padding: 11px 15px 13px; }
	.c-card-purpose__title { max-width: none; min-height: 0; font-size: 19px; line-height: 1.4; }
	.c-card-purpose__foot { gap: 24px; }
	.c-card-purpose__text { flex: 0 1 241px; min-height: 0; font-size: 15px; }
	.c-card-purpose__arrow { width: 20px; height: 20px; margin-bottom: 7px; }

	/* ブログカード s / m → サムネ付き横並び行（Figma ブログ一覧_SP nwList 3443:33301 / TOP BLOG nrow） */
	.c-card-blog--s,
	.c-card-blog--m {
		flex-direction: row;
		align-items: flex-start;
		gap: 12px;
		max-width: none;
		min-height: 85px;
		padding: 8px 0;
		border-bottom: 1px solid #dce3ea;
	}
	.c-card-blog--s .c-card-blog__img,
	.c-card-blog--m .c-card-blog__img {
		flex: none;
		width: 92px;
		height: 69px;
		aspect-ratio: auto;
		border-radius: 6px;
	}
	.c-card-blog--s .c-card-blog__info,
	.c-card-blog--m .c-card-blog__info { flex: 1; gap: 8px; min-width: 0; min-height: 0; }
	.c-card-blog--s .c-card-blog__meta,
	.c-card-blog--m .c-card-blog__meta { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
	.c-card-blog--s .c-card-blog__date,
	.c-card-blog--m .c-card-blog__date { font-size: 10px; }
	.c-card-blog .c-label,
	.c-card-blog .c-tag {
		min-width: 0;
		padding: 4px 10px;
		border-radius: 3px;
		font-size: 11px;
		line-height: 1.5;
	}
	.c-card-blog--s .c-card-blog__title,
	.c-card-blog--m .c-card-blog__title {
		min-height: 0;
		font-size: 12px;
		font-weight: 400;
		line-height: 1.5;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* お知らせ行 list / top（Figma お知らせ一覧_SP nwList 3443:32013 の nrow 56px）
	   左 64px 列にカテゴリー＋日付を縦積み、右にタイトル */
	.c-card-news--list,
	.c-card-news--top {
		grid-template-columns: 64px 1fr;
		grid-template-rows: auto auto;
		column-gap: 5px;
		row-gap: 0;
		min-height: 56px;
		padding: 8px 0;
		border-bottom-color: var(--c-blue-pale);
	}
	.c-card-news--top:first-child,
	.c-news-list > li:first-child > .c-card-news--top { padding-top: 8px; }
	.c-card-news__cat { grid-area: 1 / 1; }
	.c-card-news__cat .c-label { width: 100%; font-size: 11px; }
	.c-card-news--list .c-card-news__date,
	.c-card-news--top .c-card-news__date {
		grid-area: 2 / 1;
		font-size: 10px;
		line-height: 1.5;
		color: var(--c-text-sub);
		text-align: center;
	}
	.c-card-news--list .c-card-news__cat { padding-right: 0; }
	.c-card-news--list .c-card-news__title,
	.c-card-news--top .c-card-news__title {
		grid-area: 1 / 2 / 3 / 3;
		align-self: center;
		font-size: 12px;
		line-height: 1.5;
	}
}
