/* ==========================================
   施工事例 アーカイブ
========================================== */

.p-works-section {
	margin-bottom: 60px;
}

.p-works-main {
	width: 75%;
}

.p-works-section__title {
	background: #000;
	color: #fff;
	padding: 0.3em 1em;
	margin-bottom: 20px;
	font-size: 20px;
	font-weight: bold;
}

.p-works-card {
	transition: transform 0.3s;
}

.p-works-card:hover {
	transform: translateY(-5px);
}

.p-works-card__img img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.p-works-card__tag {
	display: inline-block;
	background: #000;
	color: #fff;
	border-radius: 50px;
	padding: 2px 15px;
	font-size: 15px;
	margin-right: 5px;
	margin-top: 1em;
	font-weight: bold;
}

.p-works-card__link {
	text-decoration: none;
	color: #000;
}

.p-works-card__add {
	border-bottom: 1px solid;
	border-top: 1px solid;
	margin-top: 0.5em;
}

.p-works-card__more {
	text-align: end;
	font-size: 15px;
}


/* 2カラムレイアウト */
.p-works-columns {
	display: flex;
	justify-content: space-between;
	margin-top: 40px;
}


/* 一覧カード */
.p-works-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-bottom: 50px;
}


/* サイドカテゴリタイトル */
.p-side-category__title {
	font-size: 18px;
	font-weight: bold;
	border-bottom: 1px solid;
}


/* ==========================================
   施工事例 シングル
========================================== */

.p-works-single {
	margin-bottom: 10%;
}


/* タイトル黒帯 */
.p-works-detail__title-header {
	background-color: #000;
	margin-bottom: 20px;
	padding: 10px 15px;
}

.p-works-detail__title-text {
	color: #fff;
	font-size: 24px;
	font-weight: bold;
	margin: 0;
	line-height: 1.4;
}


/* ==========================================
   施工前
========================================== */

.p-works-detail__before {
	margin-bottom: 40px;
}

.p-works-detail__before-inner {
	width: calc((100% - 15px) * 2 / 3);
}

.p-works-detail__before-view {
	width: 100%;
}

.p-works-detail__before-view img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================
   施工前・施工後 共通タイトル
========================================== */

.p-works-detail__photo-title {
	text-align: left;
	background: #fff;
	padding: 7px 5px;
	font-size: 18px;
	font-weight: bold;
}


/* ==========================================
   施工後ギャラリー
========================================== */

.p-works-detail__gallery-container {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 15px;
	align-items: start;
}

.p-works-detail__main-view {
	position: relative;
}

.p-works-detail__main-view img {
	width: 100%;
	height: auto;
	display: block;
}


/* サムネイル */
.p-works-detail__thumb-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
	align-content: start;
	align-items: start;
}

.p-works-detail__thumb-item {
	margin: 0;
}

.p-works-detail__thumb-item img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	cursor: pointer;
}


/* ==========================================
   説明文
========================================== */

.p-works-detail__description {
	margin-top: 25px;
}

.p-works-detail__text {
	font-size: 16px;
	text-align: justify;
	line-height: 1.5;
}


/* ==========================================
   カテゴリーバッジ
========================================== */

.p-works-detail__categories {
	margin-top: 2%;
}

.p-works-detail__badge {
	display: inline-block;
	background: #000;
	color: #fff;
	padding: 5px 15px;
	border-radius: 20px;
	margin-right: 10px;
	font-size: 14px;
}


/* ==========================================
   サイドバー
========================================== */

.p-works-sidebar ul {
	list-style: none !important;
	padding: 0 !important;
	margin: 20px 0 0 0 !important;
}

.p-works-sidebar li {
	position: relative;
	padding-left: 25px !important;
	margin-bottom: 12px;
	list-style: none !important;
}

.p-works-sidebar li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4em;
	width: 12px;
	height: 12px;
	background-color: #f39800;
	border-radius: 50%;
}

.p-works-sidebar li a {
	text-decoration: none;
	color: #000;
	font-weight: bold;
}

.p-side-category__title {
	border-bottom: 1px solid #333 !important;
	padding-bottom: 5px;
	margin-bottom: 15px;
	display: block;
}


/* ==========================================
   タブレット以下
========================================== */

@media screen and (max-width: 1023px) {

	.p-works-columns {
		flex-direction: column-reverse;
	}

	.p-works-main {
		width: 100%;
	}

	.p-side-category__list {
		display: flex;
		justify-content: space-between;
		flex-direction: row;
		flex-wrap: nowrap;
	}

	.p-works-sidebar ul {
		margin: 10px 0 0 0 !important;
	}

	.p-works-sidebar li {
		padding-left: 13px !important;
	}

	.p-works-sidebar li::before {
		top: 0.5em;
	}

	.p-works-section__title {
		margin-top: 5%;
	}

}


/* ==========================================
   スマホ
========================================== */

@media screen and (max-width: 768px) {

	/* アーカイブ */
	.p-works-list {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	/* シングル */
	.p-works-detail__title-text {
		font-size: 20px;
	}

	.p-works-detail__before {
		margin-bottom: 30px;
	}

	.p-works-detail__gallery-container {
		display: block;
	}

	.p-works-detail__thumb-list {
		grid-template-columns: repeat(4, 1fr);
		gap: 8px;
		margin-top: 10px;
	}

	.p-works-detail__photo-title {
		font-size: 16px;
	}

	.p-works-detail__description {
		margin-top: 20px;
	}

	.p-works-detail__text {
		font-size: 15px;
	}
	.p-works-detail__before-inner {
		width: 100%;
	}

}