/**
 * 施工事例
 */

.work-case-archive,
.work-case-single {
	box-sizing: border-box;
	width: min(1180px, calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
	padding-top: 64px;
	padding-bottom: 80px;
}

.work-case-archive *,
.work-case-single * {
	box-sizing: border-box;
}

.work-case-archive__header {
	max-width: 820px;
	margin-right: auto;
	margin-bottom: 44px;
	margin-left: auto;
	text-align: center;
}

.work-case-archive__title {
	margin: 0 0 20px;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.35;
}

.work-case-archive__description {
	margin: 0;
	font-size: 1rem;
	line-height: 1.9;
}

.work-case-category-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0 0 42px;
}

.work-case-category-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid #1f6b4f;
	border-radius: 999px;
	color: #1f6b4f;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition:
		color 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease;
}

.work-case-category-nav__link:hover,
.work-case-category-nav__link:focus-visible,
.work-case-category-nav__link.is-current {
	border-color: #1f6b4f;
	background-color: #1f6b4f;
	color: #fff;
}

.work-case-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.work-case-card {
	overflow: hidden;
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	background-color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.work-case-card__image-link {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background-color: #f3f3f3;
}

.work-case-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.work-case-card__image-link:hover .work-case-card__image {
	transform: scale(1.04);
}

.work-case-card__no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #777;
	font-weight: 700;
}

.work-case-card__body {
	padding: 24px;
}

.work-case-card__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.work-case-card__category {
	display: inline-flex;
	padding: 5px 10px;
	border-radius: 4px;
	background-color: #eef6f2;
	color: #1f6b4f;
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.work-case-card__title {
	margin: 0 0 14px;
	font-size: 1.25rem;
	line-height: 1.55;
}

.work-case-card__title a {
	color: inherit;
	text-decoration: none;
}

.work-case-card__title a:hover,
.work-case-card__title a:focus-visible {
	color: #1f6b4f;
}

.work-case-card__excerpt {
	margin: 0 0 18px;
	color: #555;
	font-size: 0.95rem;
	line-height: 1.8;
}

.work-case-card__meta {
	margin: 0 0 20px;
	border-top: 1px solid #e8e8e8;
}

.work-case-card__meta-item {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #e8e8e8;
	font-size: 0.9rem;
	line-height: 1.6;
}

.work-case-card__meta-item dt {
	font-weight: 700;
}

.work-case-card__meta-item dd {
	margin: 0;
}

.work-case-card__button-wrap {
	margin: 0;
}

.work-case-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 10px 28px;
	border: 1px solid #1f6b4f;
	border-radius: 6px;
	background-color: #1f6b4f;
	color: #fff;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

.work-case-button:hover,
.work-case-button:focus-visible {
	background-color: #18543e;
	color: #fff;
}

.work-case-button--outline {
	width: 100%;
	background-color: #fff;
	color: #1f6b4f;
}

.work-case-button--outline:hover,
.work-case-button--outline:focus-visible {
	background-color: #1f6b4f;
	color: #fff;
}

.work-case-more-link-wrap {
	margin: 40px 0 0;
	text-align: center;
}

.work-case-empty {
	margin: 30px 0;
	padding: 28px;
	border-radius: 8px;
	background-color: #f7f7f7;
	text-align: center;
}

.work-case-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 48px;
}

.work-case-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 6px 12px;
	border: 1px solid #d5d5d5;
	border-radius: 5px;
	color: #333;
	text-decoration: none;
}

.work-case-pagination .page-numbers.current,
.work-case-pagination a.page-numbers:hover,
.work-case-pagination a.page-numbers:focus-visible {
	border-color: #1f6b4f;
	background-color: #1f6b4f;
	color: #fff;
}

.work-case-single__header {
	max-width: 900px;
	margin-right: auto;
	margin-bottom: 44px;
	margin-left: auto;
	text-align: center;
}

.work-case-single__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 18px;
}

.work-case-single__title {
	margin: 0 0 20px;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.4;
}

.work-case-single__excerpt {
	margin: 0 auto;
	color: #555;
	font-size: 1.05rem;
	line-height: 1.9;
}

.work-case-detail {
	max-width: 1000px;
	margin-right: auto;
	margin-left: auto;
}

.work-case-detail__section {
	margin-bottom: 56px;
}

.work-case-detail__heading,
.work-case-related__title,
.work-case-content-title {
	position: relative;
	margin: 0 0 28px;
	padding-bottom: 14px;
	font-size: clamp(1.55rem, 3vw, 2rem);
	line-height: 1.5;
	text-align: center;
}

.work-case-detail__heading::after,
.work-case-related__title::after,
.work-case-content-title::after {
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 64px;
	height: 3px;
	background-color: #1f6b4f;
	content: "";
	transform: translateX(-50%);
}

.work-case-before-after {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.work-case-before-after__item {
	overflow: hidden;
	margin: 0;
	border-radius: 12px;
	background-color: #f5f5f5;
}

.work-case-before-after__label {
	padding: 12px 18px;
	background-color: #333;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.work-case-before-after__item:last-child .work-case-before-after__label {
	background-color: #1f6b4f;
}

.work-case-before-after__label span {
	margin-left: 8px;
	font-size: 0.82rem;
	font-weight: 400;
}

.work-case-before-after__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.work-case-information {
	overflow: hidden;
	margin: 0;
	border: 1px solid #ddd;
	border-radius: 10px;
}

.work-case-information__row {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	border-bottom: 1px solid #ddd;
}

.work-case-information__row:last-child {
	border-bottom: 0;
}

.work-case-information__row dt,
.work-case-information__row dd {
	margin: 0;
	padding: 18px 22px;
	line-height: 1.7;
}

.work-case-information__row dt {
	background-color: #eef6f2;
	font-weight: 700;
}

.work-case-information__row dd a {
	color: #1f6b4f;
	font-weight: 700;
}

.work-case-service-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin: 0 0 56px;
}

.work-case-single__content {
	max-width: 900px;
	margin: 0 auto 70px;
	font-size: 1rem;
	line-height: 1.9;
}

.work-case-single__content > * {
	margin-top: 0;
	margin-bottom: 1.5em;
}

.work-case-single__content h2 {
	margin-top: 2.4em;
	padding-bottom: 12px;
	border-bottom: 3px solid #1f6b4f;
	font-size: 1.65rem;
	line-height: 1.5;
}

.work-case-single__content h3 {
	margin-top: 2em;
	padding-left: 14px;
	border-left: 4px solid #1f6b4f;
	font-size: 1.35rem;
	line-height: 1.5;
}

.work-case-single__content img {
	border-radius: 10px;
}

.work-case-single__content figcaption {
	color: #666;
	font-size: 0.88rem;
	line-height: 1.6;
	text-align: center;
}

.work-case-related {
	margin-top: 70px;
	padding-top: 56px;
	border-top: 1px solid #ddd;
}

.work-case-back-link {
	margin: 60px 0 0;
	text-align: center;
}

@media screen and (max-width: 900px) {
	.work-case-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.work-case-archive,
	.work-case-single {
		width: min(100% - 32px, 1180px);
		padding-top: 48px;
		padding-bottom: 64px;
	}
}

@media screen and (max-width: 600px) {
	.work-case-list {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.work-case-archive,
	.work-case-single {
		width: min(100% - 24px, 1180px);
		padding-top: 36px;
		padding-bottom: 52px;
	}

	.work-case-archive__header,
	.work-case-single__header {
		margin-bottom: 32px;
	}

	.work-case-category-nav {
		gap: 8px;
		justify-content: flex-start;
		margin-bottom: 32px;
	}

	.work-case-category-nav__link {
		min-height: 40px;
		padding: 7px 13px;
		font-size: 0.82rem;
	}

	.work-case-card__body {
		padding: 20px;
	}

	.work-case-before-after {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.work-case-information__row {
		grid-template-columns: 1fr;
	}

	.work-case-information__row dt {
		padding: 12px 16px;
	}

	.work-case-information__row dd {
		padding: 14px 16px;
	}

	.work-case-service-links {
		display: grid;
		grid-template-columns: 1fr;
	}

	.work-case-service-links .work-case-button {
		width: 100%;
	}

	.work-case-detail__section {
		margin-bottom: 44px;
	}

	.work-case-related {
		margin-top: 52px;
		padding-top: 44px;
	}
}