/* 施工実績（一覧・詳細）
 * 共通パーツ（タイトル帯・ボタン・お問い合わせ導線）は base.css にある。
 */

.yw-photos {
	max-width: 1170px;
	margin: 80px auto;
}

.yw-photos__single,
.yw-slider__slide {
	margin: 0;
	text-align: center;
}

.yw-photos__img {
	display: block;
	width: 100%;
	max-width: 768px;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
}

.yw-slider {
	max-width: 768px;
	margin: 0 auto;
}

.yw-slider__track {
	display: grid;
}

.yw-slider__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s;
}

.yw-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.yw-slider__dots {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
}

.yw-slider__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #000;
	opacity: 0.2;
	cursor: pointer;
}

.yw-slider__dot.is-active {
	opacity: 1;
}

.yw-comment {
	max-width: 768px;
	margin: 0 auto;
	padding: 0 0 160px;
}

.yw-comment__bubble {
	position: relative;
	margin-bottom: 40px;
	padding: 40px;
	border-radius: 8px;
	background: var(--yw-bubble);
	font-size: 1.25em;
	font-weight: 600;
	line-height: 2em;
}

/* 吹き出しの三角（担当者アイコンの上） */
.yw-comment__bubble::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 64px;
	border: 14px solid transparent;
	border-top: 16px solid var(--yw-bubble);
}

.yw-staff {
	display: flex;
	align-items: center;
}

.yw-staff__icon {
	flex: 0 0 20%;
	width: 20%;
	height: auto;
	border: 5px solid var(--yw-primary);
	border-radius: 50%;
}

.yw-staff__name {
	display: flex;
	flex-direction: column;
	padding-left: 24px;
}

.yw-staff__role {
	margin-bottom: 10px;
	font-size: 1em;
	line-height: 1em;
}

.yw-staff__person {
	font-size: 1.5em;
	font-weight: 600;
	line-height: 1em;
}

.yw-back {
	max-width: 768px;
	margin: 0 auto;
	padding: 0 0 160px;
	text-align: center;
}

/* ---------- 一覧ページ ---------- */

.yw-archive__hero {
	padding: 80px 20px;
	background: var(--yw-primary) url("../../../../uploads/2020/12/WorksTop-Img.jpg") bottom center / 100% auto no-repeat;
	color: #fff;
	text-align: center;
}

.yw-archive__logo {
	display: block;
	width: 50px;
	height: auto;
	margin: 0 auto 10px;
}

.yw-archive__title {
	margin: 0 0 10px;
	color: #fff;
	font-size: 2.25em;
	font-weight: 600;
	line-height: 1.5em;
}

.yw-archive__lead {
	margin: 0;
	font-size: 1.125em;
	line-height: 2em;
}

.yw-archive__body {
	position: relative;
	padding: 120px 0 160px;
	background: #f4f5fa;
}

.yw-archive__body::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../../../../uploads/2020/12/WirksList-Img.jpg") center / cover no-repeat;
	filter: saturate(0);
	opacity: 0.1;
}

.yw-cards {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 80px 40px;
	max-width: 1170px;
	margin: 0 auto;
	/* Elementor 版はカラムの左右に 20px の余白があるため合わせる */
	padding: 0 20px;
	list-style: none;
}

.yw-card {
	margin: 0;
	border-radius: 8px 8px 0 0;
	background: #fff;
}

.yw-card__link {
	display: block;
	height: 100%;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.yw-card__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px 8px 0 0;
}

.yw-card__title {
	margin: 0;
	padding: 32px 40px 0;
	color: var(--yw-text);
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.25em;
}

.yw-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 24px;
	color: var(--yw-primary);
	font-size: 1em;
	font-weight: 600;
	letter-spacing: 0.15px;
	transition: color 0.2s;
}

.yw-card__link:hover .yw-card__more,
.yw-card__link:focus-visible .yw-card__more {
	color: rgba(32, 37, 95, 0.65);
}

/* ---------- タブレット ---------- */

@media (max-width: 1024px) {
	.yw-photos {
		margin: 40px auto;
		padding: 0 50px;
	}

	.yw-comment {
		padding: 50px;
	}

	.yw-back {
		padding: 0 0 80px;
	}

	.yw-archive__hero {
		padding: 64px 20px;
	}

	.yw-archive__title {
		margin-top: 8px;
		font-size: 2em;
		line-height: 1em;
	}

	.yw-archive__lead {
		font-size: 1em;
	}

	.yw-archive__body {
		padding: 40px 20px;
	}

	.yw-cards {
		gap: 40px 16px;
		padding: 0;
	}

	.yw-card__title {
		padding: 0;
		margin: 16px 0;
		font-size: 1.25em;
		line-height: 1.5em;
	}

	.yw-card__more {
		padding: 0 0 16px;
	}
}

/* ---------- スマートフォン ---------- */

@media (max-width: 767px) {
	.yw-photos {
		padding: 0 20px;
	}

	.yw-comment {
		padding: 0 20px 80px;
	}

	.yw-comment__bubble {
		padding: 25px 30px;
		font-size: 15px;
	}

	.yw-comment__bubble::after {
		left: 50%;
		transform: translateX(-50%);
	}

	.yw-staff {
		flex-direction: column;
	}

	.yw-staff__icon {
		flex-basis: auto;
		width: 40%;
	}

	.yw-staff__name {
		align-items: center;
		order: -1;
		margin-bottom: 20px;
		padding-left: 0;
	}

	.yw-back {
		padding: 0 20px 40px;
	}

	.yw-back .yw-button {
		padding: 16px 40px;
	}

	.yw-archive__hero {
		padding: 24px 20px 32px;
		background-position: center center;
	}

	.yw-archive__title {
		margin-top: 0;
		font-size: 1.5em;
		line-height: 1.5em;
	}

	.yw-archive__lead {
		line-height: 1.8em;
	}

	.yw-archive__body {
		padding: 80px 20px;
	}

	.yw-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		padding: 0;
	}

	.yw-card__title {
		font-size: 1.375em;
	}
}
