@charset "UTF-8";

/* ==========================================================================
   Case Archive (Renewal 2026)
   Design source: Figma node 14154:7515 (導入事例_TOP)
   Scope: #renewal_2026_case_archive で完全に閉じる。
          subpage.css の .cf-breadcrumb / .cf-result__* / .cf-heading-basic /
          .wp-pagenavi 等の既存ルールとは衝突しない。
   ========================================================================== */

#renewal_2026_case_archive {
	background-color: #fff;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	color: #101828;
	padding-bottom: 40px;
}

#renewal_2026_case_archive *,
#renewal_2026_case_archive *::before,
#renewal_2026_case_archive *::after {
	box-sizing: border-box;
}

#renewal_2026_case_archive a {
	color: inherit;
	text-decoration: none;
}

#renewal_2026_case_archive ul,
#renewal_2026_case_archive ol,
#renewal_2026_case_archive li {
	margin: 0;
	list-style: none;
}

#renewal_2026_case_archive h1,
#renewal_2026_case_archive h2,
#renewal_2026_case_archive h3,
#renewal_2026_case_archive p,
#renewal_2026_case_archive figure {
	margin: 0;
}

/* ----- Breadcrumb ----- */
.p-case-archive__breadcrumb {
	max-width: 950px;
	width: 100%;
	margin: 0 auto;
	padding: 8px 16px;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
	font-family: "Inter", "Noto Sans JP", sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #99A1AF;
	overflow: hidden;
	white-space: nowrap;
}

.p-case-archive__breadcrumb > a,
.p-case-archive__breadcrumb > .p-case-archive__breadcrumb-sep {
	flex-shrink: 0;
}

.p-case-archive__breadcrumb a {
	color: #99A1AF;
	transition: opacity 0.2s;
}

.p-case-archive__breadcrumb a:hover {
	opacity: 0.7;
}

.p-case-archive__breadcrumb-sep {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	color: #99A1AF;
}

.p-case-archive__breadcrumb-current {
	color: #101828;
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ----- Hero ----- */
.p-case-archive__hero {
	background-color: #F9FAFB;
	padding: 80px 16px;
	text-align: center;
}

.p-case-archive__hero-title {
	font-family: "Noto Sans JP", sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 40px;
	color: #101828;
	letter-spacing: -0.02em;
}

/* ----- Main container ----- */
.p-case-archive__container {
	max-width: 950px;
	width: 100%;
	margin: 0 auto;
	padding: 40px 16px 0;
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.p-case-archive__main {
	flex: 1 1 auto;
	min-width: 0;
}

.p-case-archive__sidebar {
	flex: 0 0 220px;
	max-width: 220px;
	padding: 24px;
	border-radius: 16px;
	background: #F9FAFB;
}

/* ----- Card grid ----- */
.p-case-archive__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px 26px;
}

.p-case-archive__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	transition: opacity .2s;
}

a.p-case-archive__card:hover {
	opacity: .8;
}

.p-case-archive__thumbnail {
	position: relative;
	width: 100%;
	padding-bottom: 56.18%;
	overflow: hidden;
	border-radius: 4px;
	background: #f5f5f5;
}

.p-case-archive__thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-case-archive__body {
	display: flex;
	flex-direction: column;
	margin-top: 16px;
}

.p-case-archive__team {
	color: #101828;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

.p-case-archive__title {
	margin-top: 10px;
	color: #101828;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.7;
}

/* タグ 2段構成
   上段：event / area / type の子ターム
   下段：purpose の子ターム */
.p-case-archive__tag-rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 12px;
}

.p-case-archive__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.p-case-archive__tags > li {
	padding: 2px 8px;
	border: 1px solid #d80c18;
	border-radius: 4px;
	background: #fff;
	color: #d80c18;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
}

.p-case-archive__empty {
	padding: 40px 0;
	text-align: center;
	color: #666;
}

/* ----- Sidebar (filter keywords - チェックボックス絞り込み) ----- */
.p-case-archive__sidebar-heading {
	font-size: 16px;
	font-weight: 700;
	color: #101828;
	margin-bottom: 16px;
}

.p-case-archive__filter {
	margin: 0;
}

.p-case-archive__filter-group-label {
	margin: 16px 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #101828;
}

.p-case-archive__filter-group-label:first-child {
	margin-top: 0;
}

/* 折りたたみパネル（<div> + JS トグル方式） */
.p-case-archive__filter-summary {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: transparent;
	border: none;
	width: 100%;
	text-align: left;
}

/* PC : 開閉ボタンは非表示、中身は常時表示 */
@media screen and (min-width: 768px) {
	.p-case-archive__filter-summary {
		display: none;
	}
	.p-case-archive__filter-body {
		display: block;
	}
}

.p-case-archive__filter .keyword ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 0 12px;
	border-bottom: 1px dotted #E5E7EB;
}

.p-case-archive__filter .keyword ul:last-of-type {
	border-bottom: none;
}

.p-case-archive__filter-label {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border: 1px solid #E5E7EB;
	border-radius: 4px;
	background: #fff;
	color: #374151;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	transition: all .2s;
	user-select: none;
}

/* チェックボックス本体は非表示。
   focus / focus-visible でアウトラインも出さない（色は checked のみで判別） */
.p-case-archive__filter-label input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0 0 0 0);
	overflow: hidden;
	white-space: nowrap;
	outline: none;
}

/* チェック済みのラベル：カードのタグと同じデザイン
   （白背景 / 赤枠 / 赤文字 / 太字） */
.p-case-archive__filter-label:has(input:checked) {
	padding: 2px 8px;
	background: #fff;
	border-color: #d80c18;
	color: #d80c18;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
}

.p-case-archive__filter-submit {
	margin-top: 16px;
	width: 100%;
	padding: 8px 12px;
	border: none;
	border-radius: 4px;
	background: #d80c18;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.p-case-archive__filter-submit:hover {
	opacity: .8;
}

/* ----- Pagination -----
   wp-pagenavi の wrapper_class を独自名に差し替えて、
   subpage.css / pagenavi-css.css の .wp-pagenavi ルールから完全に切り離す。 */
.p-case-archive__pagenavi-wrap {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.p-case-archive__pagenavi {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: "Noto Sans JP", sans-serif;
}

.p-case-archive__pagenavi a,
.p-case-archive__pagenavi span {
	flex: 0 0 auto;
	width: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	margin: 0;
	padding: 8px;
	border-radius: 8px;
	background: #fff;
	border: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: #101828;
	text-decoration: none;
	transition: opacity .2s, background-color .2s;
	box-sizing: border-box;
}

.p-case-archive__pagenavi a::before,
.p-case-archive__pagenavi a::after,
.p-case-archive__pagenavi span::before,
.p-case-archive__pagenavi span::after {
	content: none;
}

.p-case-archive__pagenavi a:hover {
	background-color: #F3F4F6;
}

.p-case-archive__pagenavi .current {
	border: 1px solid rgba(0, 0, 0, 0.1);
	color: #d80c18;
	background: #fff;
}

.p-case-archive__pagenavi .extend {
	background: transparent;
	color: #101828;
}

.p-case-archive__pagenavi .previouspostslink,
.p-case-archive__pagenavi .nextpostslink {
	min-width: 0;
	padding: 8px 12px;
	background: transparent;
	color: #777B83;
	gap: 4px;
	white-space: nowrap;
}

.p-case-archive__pagenavi .previouspostslink:hover,
.p-case-archive__pagenavi .nextpostslink:hover {
	background: transparent;
	opacity: .6;
}

.p-case-archive__pagenavi .previouspostslink::before,
.p-case-archive__pagenavi .nextpostslink::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	flex-shrink: 0;
}

.p-case-archive__pagenavi .previouspostslink::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23777B83' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='10,4 6,8 10,12'/></svg>");
}

.p-case-archive__pagenavi .nextpostslink::after {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23777B83' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6,4 10,8 6,12'/></svg>");
}

.p-case-archive__pagenavi .pages {
	display: none;
}

/* ----- SP ----- */
@media screen and (max-width: 767px) {
	.p-case-archive__hero {
		padding: 40px 16px;
	}

	.p-case-archive__hero-title {
		font-size: 28px;
		line-height: 32px;
	}

	.p-case-archive__container {
		flex-direction: column;
		padding: 24px 16px 0;
		gap: 16px;
	}

	/* サイドバーをカード一覧の「上」へ */
	.p-case-archive__sidebar {
		order: 1;
		flex: 1 1 auto;
		max-width: none;
		width: 100%;
	}

	.p-case-archive__main {
		order: 2;
		width: 100%;
	}

	/* PC のヘッダー風タイトルは非表示（summary が代わりを担う） */
	.p-case-archive__sidebar-heading {
		display: none;
	}

	/* 折りたたみの外枠 */
	.p-case-archive__filter-collapse {
		border: 1px solid #E5E7EB;
		border-radius: 8px;
		background: #F9FAFB;
		overflow: hidden;
	}

	/* 閉じた状態の見出し（ピル全体）*/
	.p-case-archive__filter-summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 12px 16px;
		cursor: pointer;
		font-size: 14px;
		font-weight: 700;
		color: #101828;
		line-height: 1.4;
	}

	.p-case-archive__filter-summary-label {
		display: inline-flex;
		align-items: center;
		gap: 8px;
	}

	.p-case-archive__filter-icon {
		flex-shrink: 0;
		color: #101828;
	}

	.p-case-archive__filter-count {
		color: #99A1AF;
		font-weight: 500;
		margin-left: 2px;
	}

	.p-case-archive__filter-chevron {
		flex-shrink: 0;
		color: #101828;
		transition: transform .2s;
	}

	.p-case-archive__filter-collapse[data-open="true"] .p-case-archive__filter-chevron {
		transform: rotate(180deg);
	}

	/* 閉じた状態は中身を隠す */
	.p-case-archive__filter-collapse[data-open="false"] .p-case-archive__filter-body {
		display: none;
	}

	/* 開いた状態の中身 */
	.p-case-archive__filter-body {
		padding: 0 16px 16px;
		background: #F9FAFB;
	}

	/* グループラベルは非表示（dividerで区切る） */
	.p-case-archive__filter-group-label {
		display: none;
	}

	/* グループ間の dotted divider を弱めに */
	.p-case-archive__filter .keyword ul {
		padding: 12px 0;
		border-bottom: 1px solid #E5E7EB;
	}

	.p-case-archive__filter .keyword ul:first-of-type {
		padding-top: 4px;
	}

	.p-case-archive__list {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.p-case-archive__team {
		font-size: 16px;
	}
}
