@charset "utf-8";
/* ==========================================================
   施工事例・お客様の声（works/index.php）
   事例の中身は config/works.php で管理します
   ========================================================== */
.wk_sec { padding: 2.75rem 0 5.25rem; }
.wk_inner { max-width: 77rem; margin: 0 auto; padding: 0 1rem; }
.nowrap { display: inline-block; }

/* タブ */
.wk_tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.wk_tabs a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 12.5rem;
	height: 3.4375rem;
	border: 2px solid var(--color-green-light);
	border-radius: 999px;
	background: var(--color-white);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .04em;
	transition: background-color .3s ease, color .3s ease;
}
.wk_tabs a.is-current { border: 0; background: var(--grad-green); color: var(--color-white); }
@media (hover: hover) {
	.wk_tabs a:not(.is-current):hover { background: var(--color-green-light); color: var(--color-white); }
}
.wk_none { margin-top: 4rem; font-size: 1rem; text-align: center; }

/* 事例1件 */
.wk_item { margin-top: 4rem; background: var(--color-white); }
.wk_tabs + .wk_item { margin-top: 4.3125rem; }
.wk_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.75rem;
	padding: .75rem 2rem .75rem 2.0625rem;
	background: var(--grad-green);
	color: var(--color-white);
}
.wk_head h2 { font-family: var(--font-serif); font-size: 1.875rem; font-weight: 600; line-height: 1.4; letter-spacing: .06em; }
.wk_head .tag {
	flex: none;
	padding: .3125rem .5625rem .375rem;
	background: var(--color-white);
	color: var(--color-green);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .04em;
}
.wk_body { padding: 2rem 2.0625rem 2.125rem; }

/* 施工前・施工後の写真 */
.wk_photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4.4375rem; }
.wk_photos figure { position: relative; margin: 0; }
.wk_photos img { display: block; width: 100%; height: auto; }
.wk_photos figcaption {
	position: absolute;
	left: 0;
	top: 0;
	padding: .25rem .5rem .1875rem;
	color: var(--color-white);
	font-family: var(--font-en);
	font-size: 1.125rem;
	font-weight: 700;
	font-variant: small-caps;
	line-height: 1.2;
	letter-spacing: .06em;
}
.wk_photos .before { background: var(--color-navy); }
.wk_photos .after { background: var(--color-green); }
/* 写真の間の矢印（緑の丸＋白い矢印） */
.wk_photos::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 2.625rem;
	height: 2.625rem;
	border-radius: 50%;
	background: var(--color-green) url(../images/common/ic_vector-w.svg) no-repeat center / 1.125rem auto;
	transform: translate(-50%, -50%);
}

/* 施工場所などの表 */
.wk_spec { display: grid; grid-template-columns: 1fr 1fr; gap: .3125rem .25rem; margin-top: 2.125rem; }
.wk_spec > div { display: flex; gap: .25rem; min-height: 3.125rem; }
.wk_spec dt, .wk_spec dd { display: flex; align-items: center; font-size: 1rem; line-height: 1.5; }
.wk_spec dt { flex: none; justify-content: center; width: 7.8125rem; background: #8cc07f; color: var(--color-white); font-weight: 700; }
.wk_spec dd { flex: 1; padding: .5rem 1rem; background: #f0f0f0; }

/* お客様の声・担当者よりひと言 */
.wk_voices { display: grid; grid-template-columns: 1fr 1fr; gap: 2.1875rem; margin-top: 2.125rem; }
.wk_voice { padding: 1.125rem 1.75rem 1.5rem; border-radius: .625rem; background: var(--color-bg-cream); }
.wk_voice-rep { background: var(--color-bg-green); }
.wk_voice h3 { display: flex; align-items: center; color: var(--color-green-light); font-size: 1.25rem; font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.wk_voice h3 img { flex: none; width: 4.125rem; height: 4.125rem; margin-right: .75rem; border-radius: 50%; object-fit: cover; }
.wk_voice p { margin-top: .5rem; font-size: 1rem; line-height: 1.75; }

/* ページ送り */
.wk_pager { display: flex; align-items: center; justify-content: center; gap: .875rem; margin-top: 4.25rem; }
.wk_pager .num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--color-green-light);
	background: var(--color-white);
	color: var(--color-green);
	font-size: 1.125rem;
	font-weight: 500;
	transition: background-color .3s ease, color .3s ease;
}
.wk_pager .num.is-current { background: var(--color-green-light); color: var(--color-white); }
.wk_pager .arrow { position: relative; width: 1.5rem; height: 2.5rem; }
.wk_pager .arrow::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: .625rem;
	height: .625rem;
	border-top: 2px solid var(--color-green-light);
	border-right: 2px solid var(--color-green-light);
	transform: translate(-70%, -50%) rotate(45deg);
}
.wk_pager .prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
@media (hover: hover) {
	.wk_pager a.num:hover { background: var(--color-green-light); color: var(--color-white); }
	.wk_pager .arrow { transition: opacity .3s ease; }
	.wk_pager .arrow:hover { opacity: .6; }
}

@media only screen and (max-width: 1199px) {
	.wk_sec { padding: 1rem 0 2.5rem; }
	.wk_inner { max-width: 40rem; padding: 0 .9375rem; }
	.wk_tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem .75rem; padding: 0 .25rem; }
	.wk_tabs a { width: auto; height: 2.875rem; }
	.wk_item, .wk_tabs + .wk_item { margin-top: 1.5rem; }
	.wk_item + .wk_item { margin-top: 3.5rem; }
	.wk_head { flex-direction: column; justify-content: center; gap: .5rem; min-height: 0; padding: .875rem 1rem 1rem; text-align: center; }
	.wk_head h2 { font-size: 1.3125rem; }
	.wk_head .tag { padding: .1875rem .4375rem .25rem; font-size: .9375rem; }
	.wk_body { padding: 1.125rem 1rem 1.25rem; }
	.wk_photos { grid-template-columns: 1fr; gap: .75rem; }
	.wk_photos figcaption { font-size: .875rem; }
	.wk_photos::after { display: none; }
	.wk_spec { grid-template-columns: 1fr; gap: .5rem; margin-top: 1.25rem; }
	.wk_spec > div { gap: .375rem; min-height: 3rem; }
	.wk_spec dt, .wk_spec dd { font-size: .9375rem; }
	.wk_spec dt { width: 6.875rem; }
	.wk_voices { grid-template-columns: 1fr; gap: .875rem; margin-top: 1rem; }
	.wk_voice { padding: 1rem 1rem 1.125rem; }
	.wk_voice h3 { font-size: 1.1875rem; }
	.wk_voice h3 img { width: 3.25rem; height: 3.25rem; }
	.wk_voice p { font-size: .9375rem; line-height: 1.7; }
	.wk_pager { margin-top: 2.25rem; }
}

/* タブ・ページ送りで一覧を入れ替えている間は、少し薄くして「切り替え中」と分かるようにする */
.wk_inner { transition: opacity .2s ease; }
.wk_inner.is-loading { opacity: .5; pointer-events: none; }
