/*
 * CASE一覧（/case/）。about.css を土台にして、一覧専用の部分だけをここに書く。
 * 色・書体の変数（--qa-*）は about.css の #qol-about で定義している。
 */

#qol-about .qc-head h2,
#qol-about .qc-card__title {
	font-family: var(--qa-serif) !important;
	font-weight: 500;
}

#qol-about .qc-stats__num,
#qol-about .qc-head__num,
#qol-about .qc-head__count span,
#qol-about .qc-nav__count {
	font-family: var(--qa-latin) !important;
}

/* HERO：見出しの右に件数を並べる */

.qc-hero__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 32px 48px;
}

.qc-stats {
	display: flex;
	margin: 0;
}

.qc-stats > div {
	padding: 0 32px;
	border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.qc-stats > div:last-child {
	padding-right: 0;
}

.qc-stats dt {
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	letter-spacing: 0.08em;
	line-height: 1.5;
}

.qc-stats dd {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	line-height: 1;
}

.qc-stats__num {
	margin-right: 4px;
	color: #fff;
	font-size: 48px;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

/* ページ内メニューの件数 */

.qc-nav__count {
	display: inline-block;
	min-width: 1.9em;
	margin-left: 8px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--qa-soft);
	color: var(--qa-gold-dark);
	font-size: 12px;
	line-height: 1.7;
	text-align: center;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.qa-nav a.is-current .qc-nav__count {
	background: var(--qa-gold);
	color: #fff;
}

/* カテゴリーのセクション */

.qa-section.qc-section {
	padding: 120px 0 128px;
}

.qc-section--soft {
	background: var(--qa-soft);
}

.qc-section .qa-inner {
	position: relative;
}

/* 英字の透かしは見出しの説明文に重なりすぎないよう、ABOUTより上に置く */
.qc-section .qa-watermark {
	top: 32px;
}

.qc-head {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 32px 72px;
	align-items: end;
	margin-bottom: 56px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--qa-line);
}

.qc-head .qa-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
}

.qc-head__num {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-style: normal;
}

.qc-head__num::after {
	content: "";
	width: 32px;
	height: 1px;
	background: currentColor;
}

#qol-about .qc-head h2 {
	margin: 0;
	color: var(--qa-ink);
	font-size: 40px;
	line-height: 1.5;
}

.qc-head__count {
	color: var(--qa-muted);
	font-size: 13px;
	line-height: 1.4;
}

.qc-head__count span {
	margin-right: 6px;
	color: var(--qa-ink);
	font-size: 32px;
	font-variant-numeric: tabular-nums;
}

.qc-head__desc {
	margin-top: 12px;
	line-height: 2;
}

/* エリアの絞り込み */

.qc-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 44px;
}

.qc-filter__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 18px;
	border: 1px solid var(--qa-line);
	border-radius: 999px;
	background: #fff;
	color: var(--qa-text);
	font-family: inherit;
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.qc-filter__btn span {
	color: var(--qa-muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	transition: color 0.3s ease;
}

.qc-filter__btn:hover {
	border-color: var(--qa-ink);
}

.qc-filter__btn[aria-pressed="true"] {
	border-color: var(--qa-ink);
	background: var(--qa-ink);
	color: #fff;
}

.qc-filter__btn[aria-pressed="true"] span {
	color: var(--qa-gold-light);
}

#qol-about .qc-filter__btn:focus-visible,
#qol-about .qc-card__link:focus-visible {
	outline: 2px solid var(--qa-gold-dark);
	outline-offset: 3px;
}

/* カード */

.qc-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 32px;
}

.qc-card {
	min-width: 0;
}

.qc-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--qa-text);
	text-decoration: none;
}

.qc-card__image {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9e6df;
}

#qol-about .qc-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 写真の上にかける薄い影。ホバーで少し濃くする */
.qc-card__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 9, 7, 0) 55%, rgba(10, 9, 7, 0.35) 100%);
	opacity: 0.7;
	transition: opacity 0.6s ease;
}

.qc-card__area {
	position: absolute;
	left: 16px;
	bottom: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.06em;
	line-height: 1.5;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* 位置を示すピン */
.qc-card__area::before {
	content: "";
	width: 7px;
	height: 7px;
	border: 2px solid var(--qa-gold-light);
	border-radius: 50%;
}

.qc-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding-top: 22px;
}

#qol-about .qc-card__title {
	margin: 0;
	color: var(--qa-ink);
	font-size: 20px;
	line-height: 1.6;
}

.qc-card__meta {
	display: flex;
	flex-wrap: wrap;
	margin-top: 10px;
	color: var(--qa-muted);
	font-size: 13px;
	line-height: 1.6;
}

.qc-card__meta li + li::before {
	content: "/";
	margin: 0 10px;
	color: var(--qa-line);
}

.qc-card__more {
	margin-top: auto;
	padding-top: 18px;
	color: var(--qa-ink);
	font-size: 13px;
	letter-spacing: 0.06em;
}

.qc-card__more::after {
	width: 32px;
}

.qc-card__link:hover img {
	transform: scale(1.06);
}

.qc-card__link:hover .qc-card__image::after {
	opacity: 1;
}

.qc-card__link:hover .qc-card__more::after {
	width: 56px;
}

/* 絞り込み・「さらに表示」で隠す */

.qc-card.is-hidden,
.qc-list:not(.is-expanded):not(.is-filtered) .qc-card.is-over {
	display: none;
}

.qc-more {
	display: block;
	margin: 64px auto 0;
	padding: 16px 48px;
	border: 1px solid var(--qa-ink);
	border-radius: 0;
	background: transparent;
	color: var(--qa-ink);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.qc-more:hover {
	background: var(--qa-ink);
	color: #fff;
}

.qc-more[hidden] {
	display: none;
}

/* 横に並んだカードを少しずつずらして表示する */
.qa-js .qc-list .qc-card:nth-child(3n+2) {
	transition-delay: 0.1s;
}

.qa-js .qc-list .qc-card:nth-child(3n) {
	transition-delay: 0.2s;
}

/* 絞り込み直後のフェード */
.qc-card.is-entering {
	animation: qcFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes qcFadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qc-card.is-entering {
		animation: none;
	}

	#qol-about .qc-card__image img {
		transition: none;
	}
}

@media screen and (max-width: 1050px) {
	.qc-stats > div {
		padding: 0 24px;
	}

	.qc-stats > div:first-child {
		padding-left: 0;
		border-left: 0;
	}

	.qc-stats__num {
		font-size: 36px;
	}

	.qa-section.qc-section {
		padding: 96px 0 104px;
	}

	.qc-head {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.qc-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 24px;
	}

	.qa-js .qc-list .qc-card {
		transition-delay: 0s;
	}

	.qa-js .qc-list .qc-card:nth-child(even) {
		transition-delay: 0.1s;
	}
}

@media screen and (max-width: 650px) {
	.qc-hero__inner {
		gap: 24px;
	}

	.qc-section .qa-watermark {
		top: 24px;
	}

	.qc-stats {
		width: 100%;
	}

	.qc-stats > div {
		flex: 1;
		padding: 0 14px;
	}

	.qc-stats__num {
		font-size: 30px;
	}

	.qc-nav__count {
		margin-left: 6px;
		font-size: 11px;
	}

	.qa-section.qc-section {
		padding: 72px 0 80px;
	}

	.qc-head {
		margin-bottom: 32px;
		padding-bottom: 24px;
	}

	/* 見出しの大きさは ABOUT・TOP のスマートフォン表示（24px）にそろえる */
	#qol-about .qc-head h2 {
		font-size: 24px;
	}

	.qc-head__count span {
		font-size: 26px;
	}

	/* 絞り込みは横にスクロールさせ、縦に長くならないようにする */
	.qc-filter {
		flex-wrap: nowrap;
		margin: -6px -20px 26px;
		/* 上下の余白は、選択中の枠（outline）が切れないようにするため */
		padding: 6px 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.qc-filter::-webkit-scrollbar {
		display: none;
	}

	.qc-filter__btn {
		flex-shrink: 0;
		padding: 7px 14px;
		font-size: 12px;
	}

	.qc-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	#qol-about .qc-card__title {
		font-size: 19px;
	}

	.qa-js .qc-list .qc-card:nth-child(even) {
		transition-delay: 0s;
	}

	.qc-more {
		margin-top: 48px;
	}
}
