@charset "UTF-8";
/*
 * Tekono 事例一覧ページ（.tka__ 名前空間）
 *
 * case-detail.css を先に読み込む前提（カード内の動画・画像は .tkc__media を共用）。
 * 絞り込みはリンクのみ。JavaScriptは使いません。
 */

/* ============================================================ 土台 */

.tka {
	--tka-ink: #16161a;
	--tka-ink-2: #45454d;
	--tka-ink-3: #75757e;
	--tka-line: #e2e0dc;
	--tka-line-2: #efedea;
	--tka-accent: #9f8362;
	--tka-accent-dark: #7d6549;
	--tka-accent-tint: #f6f2ec;
	--tka-bg-soft: #f8f7f5;

	--tka-wide: 1090px;
	--tka-pad: 20px;

	--tka-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	--tka-num: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

	font-family: var(--tka-font);
	font-weight: 400;
	color: var(--tka-ink);
	line-height: 1.9;
	letter-spacing: 0.02em;
	background: #fff;
	overflow-wrap: anywhere;
	word-break: normal;
	line-break: strict;
}

.tka *,
.tka *::before,
.tka *::after {
	box-sizing: border-box;
}

.tka .tka__wrap {
	width: 100%;
	max-width: var(--tka-wide);
	margin-inline: auto;
	padding-inline: var(--tka-pad);
}

.tka a {
	transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}

/* ============================================================ 見出し */

.tka .tka__head {
	position: static;
	width: auto;
	padding: 0;
	background: none;
	margin: 0 0 40px;
}

.tka p.tka__kicker {
	font-family: var(--tka-num);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--tka-accent);
	margin: 0 0 10px;
}

.tka .tka__h1 {
	font-size: clamp(25px, 4vw, 38px);
	line-height: 1.45;
	font-weight: 700;
	color: var(--tka-ink);
	text-align: left;
	margin: 0 0 20px;
	max-width: 22em;
}

.tka p.tka__lead {
	font-size: 16px;
	line-height: 2;
	font-weight: 400;
	color: var(--tka-ink-2);
	margin: 0 0 20px;
	max-width: 46em;
}

.tka p.tka__count {
	font-size: 13px;
	font-weight: 400;
	color: var(--tka-ink-3);
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--tka-line);
}

.tka .tka__count-n {
	font-family: var(--tka-num);
	font-size: 19px;
	font-weight: 700;
	color: var(--tka-accent-dark);
	margin: 0 2px;
}

/* ============================================================ 絞り込み */

.tka .tka__filter {
	margin: 0 auto 44px;
	padding-block: 0;
}

.tka .tka__filter-group {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 0 16px;
	align-items: start;
	padding: 14px 0;
	border-bottom: 1px solid var(--tka-line-2);
}

.tka .tka__filter-group:first-child {
	border-top: 1px solid var(--tka-line);
}

.tka p.tka__filter-label {
	font-size: 12px;
	font-weight: 700;
	line-height: 2.2;
	color: var(--tka-ink-3);
	margin: 0;
	letter-spacing: 0.06em;
}

.tka .tka__chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tka a.tka__chip {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--tka-line);
	background: #fff;
	color: var(--tka-ink-2);
	font-size: 13px;
	line-height: 1.7;
	text-decoration: none;
}

.tka a.tka__chip:hover {
	border-color: var(--tka-accent);
	color: var(--tka-accent-dark);
	opacity: 1;
}

.tka a.tka__chip.is-on {
	background: var(--tka-accent-dark);
	border-color: var(--tka-accent-dark);
	color: #fff;
	font-weight: 700;
}

.tka .tka__chip-n {
	font-family: var(--tka-num);
	font-size: 11px;
	color: var(--tka-ink-3);
}

.tka a.tka__chip.is-on .tka__chip-n {
	color: rgba(255, 255, 255, 0.75);
}

.tka a.tka__chip:focus-visible {
	outline: 2px solid var(--tka-accent);
	outline-offset: 2px;
}

.tka p.tka__filter-state {
	font-size: 13px;
	font-weight: 400;
	color: var(--tka-ink-2);
	margin: 14px 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
}

.tka .tka__filter-clear {
	color: var(--tka-accent-dark);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	font-size: 13px;
}

/* ============================================================ 一覧 */

.tka .tka__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px 40px;
}

.tka .tka__item {
	min-width: 0;
}

.tka .tka__card {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
}

.tka .tka__card-media {
	margin: 0 0 18px;
	background: var(--tka-bg-soft);
	overflow: hidden;
}

/* カード内のメディア（case-detail.css の .tkc__media と同じ形にする） */
.tka .tka__card-fig,
.tka .tkc__media {
	margin: 0;
	padding: 0;
	background: var(--tka-bg-soft);
	overflow: hidden;
}

.tka .tkc__media--r2-1 { aspect-ratio: 2 / 1; }
.tka .tkc__media--r16-9 { aspect-ratio: 16 / 9; }
.tka .tkc__media--r4-3 { aspect-ratio: 4 / 3; }
.tka .tkc__media--r1-1 { aspect-ratio: 1 / 1; }

.tka .tkc__video,
.tka .tkc__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tka .tka__card-nomedia {
	display: block;
	aspect-ratio: 2 / 1;
	background: var(--tka-bg-soft);
}

.tka .tka__card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.tka p.tka__card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
}

.tka .tka__card-cat {
	display: inline-block;
	padding: 3px 10px;
	border: 1px solid var(--tka-accent);
	background: var(--tka-accent-tint);
	color: var(--tka-accent-dark);
	font-size: 11px;
	letter-spacing: 0.04em;
}

.tka .tka__card-ind {
	display: inline-block;
	padding: 3px 10px;
	border: 1px solid var(--tka-line);
	color: var(--tka-ink-3);
	font-size: 11px;
	letter-spacing: 0.04em;
}

.tka .tka__card-h {
	font-size: 19px;
	line-height: 1.6;
	font-weight: 700;
	text-align: left;
	color: var(--tka-ink);
	margin: 0 0 6px;
}

/* カード全体をクリックできるようにする（リンク自体は見出しの中に置く） */
.tka a.tka__card-link {
	color: inherit;
	text-decoration: none;
}

.tka a.tka__card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.tka .tka__card:hover .tka__card-link {
	color: var(--tka-accent-dark);
}

.tka a.tka__card-link:focus-visible {
	outline: 2px solid var(--tka-accent);
	outline-offset: 3px;
}

.tka .tka__card:has(.tka__card-link:focus-visible) {
	outline: 2px solid var(--tka-accent);
	outline-offset: 8px;
}

.tka p.tka__card-client {
	font-size: 13px;
	font-weight: 400;
	color: var(--tka-ink-3);
	margin: 0 0 14px;
}

/* --- カード内の成果2件 --- */

.tka .tka__card-kr {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0 0 14px;
	border-top: 1px solid var(--tka-line);
	border-bottom: 1px solid var(--tka-line-2);
}

.tka .tka__card-kr-item {
	padding: 12px 14px 13px;
	border-left: 1px solid var(--tka-line-2);
	min-width: 0;
}

.tka .tka__card-kr-item:first-child {
	border-left: 0;
	padding-left: 0;
}

.tka .tka__card-kr dt {
	font-size: 12px;
	line-height: 1.6;
	color: var(--tka-ink-3);
	margin: 0 0 2px;
}

.tka .tka__card-kr dd {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 2px;
	line-height: 1.15;
	color: var(--tka-accent-dark);
}

.tka .tka__card-kr-n {
	font-family: var(--tka-num);
	font-size: 26px;
	font-weight: 700;
}

.tka .tka__card-kr-u {
	font-size: 12px;
	font-weight: 700;
}

.tka p.tka__card-ex {
	font-size: 14px;
	line-height: 1.9;
	font-weight: 400;
	color: var(--tka-ink-2);
	margin: 0 0 16px;
}

.tka p.tka__card-more {
	margin: auto 0 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--tka-accent-dark);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tka p.tka__card-more::after {
	content: "→";
	font-family: var(--tka-num);
	transition: transform 0.25s;
}

.tka .tka__card:hover .tka__card-more::after {
	transform: translateX(4px);
}

/* JSONがまだ無い事例のカード */
.tka .tka__card--legacy .tka__card-h {
	font-size: 17px;
}

/* --- 該当なし --- */

.tka p.tka__empty {
	font-size: 15px;
	font-weight: 400;
	color: var(--tka-ink-2);
	margin: 40px 0;
	padding: 28px 24px;
	background: var(--tka-bg-soft);
}

.tka .tka__empty a {
	color: var(--tka-accent-dark);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	margin-left: 8px;
}

/* ============================================================ CTA */

.tka .tka__cta {
	padding: 0;
	margin: 88px 0 0;
}

.tka .tka__cta-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 32px;
	padding: 36px 40px;
	background: var(--tka-accent-tint);
	border-top: 2px solid var(--tka-accent);
}

.tka .tka__cta-box > div {
	flex: 1 1 380px;
	min-width: 0;
}

.tka p.tka__cta-h {
	font-size: clamp(18px, 2.4vw, 23px);
	line-height: 1.6;
	font-weight: 700;
	color: var(--tka-ink);
	margin: 0 0 8px;
}

.tka p.tka__cta-t {
	font-size: 14px;
	line-height: 1.9;
	font-weight: 400;
	color: var(--tka-ink-2);
	margin: 0;
	max-width: 620px;
}

.tka a.tka__cta-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 14px 34px;
	background: var(--tka-accent-dark);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
}

.tka a.tka__cta-btn::after {
	content: "→";
	margin-left: 12px;
	font-family: var(--tka-num);
}

.tka a.tka__cta-btn:hover {
	background: #6b563e;
	color: #fff;
	opacity: 1;
}

/* ============================================================ 1024px 以下 */

@media (max-width: 1023px) {
	.tka .tka__list {
		gap: 40px 28px;
	}

	.tka .tka__card-kr-n {
		font-size: 23px;
	}
}

/* ============================================================ 768px 以下 */

@media (max-width: 768px) {
	.tka {
		--tka-pad: 16px;
		line-height: 1.85;
	}

	.tka .tka__head {
		margin-bottom: 28px;
	}

	.tka .tka__h1 {
		font-size: 23px;
		line-height: 1.5;
	}

	.tka p.tka__lead {
		font-size: 15px;
		line-height: 1.9;
	}

	.tka .tka__filter {
		margin-bottom: 32px;
	}

	.tka .tka__filter-group {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 14px 0 16px;
	}

	.tka p.tka__filter-label {
		line-height: 1.6;
	}

	.tka .tka__chips {
		gap: 7px;
	}

	.tka a.tka__chip {
		padding: 6px 12px;
		font-size: 12px;
	}

	.tka .tka__list {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.tka .tka__card-media {
		margin-bottom: 14px;
	}

	.tka .tka__card-h {
		font-size: 17px;
	}

	.tka .tka__card-kr-n {
		font-size: 24px;
	}

	.tka p.tka__card-ex {
		font-size: 14px;
	}

	.tka .tka__cta {
		margin-top: 64px;
	}

	.tka .tka__cta-box {
		padding: 26px 20px 24px;
		gap: 20px;
	}

	.tka a.tka__cta-btn {
		width: 100%;
		min-height: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tka * {
		transition: none !important;
		animation: none !important;
	}
}
