@charset "UTF-8";

/* ============================================================
	WORKS
	- 実績一覧・詳細ページ
	============================================================ */

/* 一覧 */
.p-cats {
	margin: 80px auto;
}

.p-cats__list {
	display: flex;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}

.p-cats__item {
	width: 180px;
}

.p-cats__btn {
	display: block;
	width: 100%;
	text-decoration: none;
	background-color: var(--color_white);
	border-radius: 8px;
	border: solid 2px var(--color01);
	font-size:  clamp(14px, calc(16 / 768 * 100vw), 16px);
	line-height: 1.5;
	letter-spacing: 0.1em;
	color: var(--color01);
	font-weight: var(--fw_jp_bold);
	text-align: center;
	padding: 0.4em 1.0em;
	height: 100%;
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
}
.p-cats__btn:hover {
	background-color: var(--color01);
	color: var(--color_white);
}

.p-cats__btn.is-current {
	background-color: var(--color01);
	color: var(--color_white);
}

.p-archive {
	margin: 80px auto;
}

.p-archive__content {
	display: flex;
	flex-wrap: wrap;
	gap: 64px 5%;
}

.p-archive__item {
	width: 30%;
	display: block;
	color: var(--color_black);
	text-decoration: none;
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
}

.p-archive__item:hover {
	color: var(--color02);
}

.p-archive__item-txt {
	margin-top: 16px;
}

.p-archive__item-category {
	line-height: 1.6;
	color: var(--color01);
	font-weight: var(--fw_jp_bold);
}

.p-archive__item-ttl {
	font-size: clamp(16px, calc(20 / 768 * 100vw), 20px);
	line-height: 1.5;
	font-weight: var(--fw_jp_medium);
}

.p-archive__item-img {
	height: 270px;
	border-radius: 16px;
	-webkit-border-radius: 16px;
	-moz-border-radius: 16px;
	-ms-border-radius: 16px;
	-o-border-radius: 16px;
	overflow: hidden;
}

.p-archive__item-img img {
	transition:.3s;
	-webkit-transition:.3s;
	-moz-transition:.3s;
	-ms-transition:.3s;
	-o-transition:.3s;
}
.p-archive__item:hover .p-archive__item-img img {
	transform: scale(1.04);
	-webkit-transform: scale(1.04);
	-moz-transform: scale(1.04);
	-ms-transform: scale(1.04);
	-o-transform: scale(1.04);
}

.p-archive__empty {
	text-align: center;
	font-size:  clamp(16px, calc(18 / 768 * 100vw), 18px);
	font-weight: var(--fw_jp_bold);
	width: 100%;
}


/* 詳細 */
.p-detail {
	margin: 80px auto;
}

.p-detail__content {
	max-width: 1000px;
	margin: 0 auto;
}

.p-detail__category {
	color: var(--color01);
	font-size: clamp(14px, calc(20 / 768 * 100vw), 20px);
	font-weight: var(--fw_jp_bold);
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-align: center;
	margin-bottom: 0.5em;
}

.p-detail__ttl {
	font-size: clamp(20px, calc(32 / 768 * 100vw), 32px);
	line-height: 1.5;
	font-weight: var(--fw_jp_bold);
	margin-bottom: 1em;
	text-align: center;
}

.p-detail__gallery {
	margin: 0 auto;
}

.p-detail__gallery .swiper-button-prev::after,
.p-detail__gallery .swiper-button-next::after {
	color: var(--color_gray04);
}

.p-detail__gallery .swiper-button-prev,
.p-detail__gallery .swiper-button-next {
	background: transparent;
	padding: 0;
}

.p-detail__gallery .p-detail__slider .swiper-slide {
	aspect-ratio: 4 / 3;
	background-color: var(--color_gray05);
}

.p-detail__gallery .p-detail__slider .swiper-slide img {
	width: 100%;
	height: 100%;
}

.p-detail__gallery .p-detail__thumbnail {
	margin-top: 24px;
}

.p-detail__gallery .p-detail__thumbnail .swiper-slide {
	cursor: pointer;
	aspect-ratio: 4 / 3;
	opacity: 0.7;
	transition: opacity .3s;
}

.p-detail__gallery .p-detail__thumbnail .swiper-slide img {
	width: 100%;
	height: 100%;
}

.p-detail__gallery .p-detail__thumbnail .swiper-slide-thumb-active {
	opacity: 1;
}

.p-detail__info {
	border-top: 1px solid var(--color_gray03);
	margin: 64px auto 0;
}

.p-detail__info-row {
	display: flex;
	align-items: flex-start;
	gap: 2em;
	border-bottom: 1px solid var(--color_gray03);
	padding: 32px 24px;
}

.p-detail__info-row dt {
	color: var(--color01);
	line-height: 1.5;
	font-weight: var(--fw_jp_bold);
	flex: 0 0 30%;
}

.p-detail__info-row dd {
	flex: 1;
	margin: 0;
	text-align: justify;
}

.p-detail__info-row--body dd a {
	color: var(--color01);
	word-break: break-all;
}

.p-detail .c-btns {
	margin: 64px auto 0;
	text-align: center;
}


/* エラーテキスト */
.p-detail__error {
	font-size: clamp(18px, calc(30 / 768 * 100vw), 30px);
	line-height: 1.5;
	font-weight: var(--fw_jp_bold);
	letter-spacing: 0.05em;
	color: var(--color_err);
	text-align: center;
}



/* スマートフォン用 - ブレイクポイント768 */
@media screen and (max-width: 768px) {

	/* 一覧 */
	.p-cats { margin: 40px auto; }
	.p-cats__list { gap: 8px; }
	.p-cats__item { width: 150px; }
	.p-cats__btn { padding: 0.4em 0.7em; }
	.p-archive { margin: 40px auto; }
	.p-archive__content { gap: 32px 6%; }
	.p-archive__item { width: 47%; }
	.p-archive__item-txt { margin-top: 8px; }
	.p-archive__item-img { height: 180px; }


	/* 詳細 */
	.p-detail { margin: 40px auto; }
	.p-detail__gallery .p-detail__thumbnail { margin-top: 16px; }
	.p-detail__info { margin-top: 48px; }
	.p-detail__info-row { flex-direction: column; gap: 0.5em; padding: 24px 0; }
	.p-detail__info-row dt { flex-basis: auto; }
	.p-detail .c-btns { margin: 40px auto 0; }

	/* エラーテキスト */
	.p-detail__error { letter-spacing: 0; }

}

/* スマートフォン用 - ブレイクポイント480 */
@media screen and (max-width: 480px) {

	/* 一覧 */
	.p-archive__item { width: 100%; }
	.p-archive__item-img { height: 200px; }

}
