﻿@charset "utf-8";

/* -----------------------------------------------------------
    施工事例 詳細
-------------------------------------------------------------- */
.niwork-detail {
	margin: 90px 0 0;
}

.niwork-detail__title {
	font-size: 3.3rem;
	font-weight: bold;
	margin-top: 25px;
	line-height: 1.5;
	letter-spacing: .03em;
}

.niwork-detail .works-detail-cate {
	display: flex;
	gap: 25px;
}

.niwork-detail .works-detail-cate-main {
	align-items: center;
	background: var(--main);
	color: #fff;
	font-size: 1.7rem;
	display: flex;
	padding: 10px 12px;
	line-height: 1;
}

.niwork-detail .works-detail-cate-service {
	align-items: center;
	display: flex;
	gap: 20px;
}

.niwork-detail .works-detail-cate-service .tag {
	color: var(--main);
	line-height: 1;
	padding: 0 0 0 16px;
	position: relative;
}

.niwork-detail .works-detail-cate-service .tag::before {
	content: "";
	background: var(--main);
	display: inline-block;
	width: 10px;
	height: 10px;
	transform: rotate(45deg);
	top: 3px;
	position: absolute;
	left: 0;
}

.niwork-detail .works-detail-client {
	display: flex;
	border: 1px solid var(--border2);
	border-width: 1px 0;
	gap: 18px;
	padding: 25px 5px;
	margin: 30px 0 0;
}

.niwork-detail .works-detail-client dt {
	color: var(--border2);
	font: 700 2.6rem /1 var(--serif);
	flex-shrink: 0;
}

.niwork-detail .works-detail-client dd {
	color: var(--cmnblack);
	font-size: 2.6rem;
	font-weight: bold;
	letter-spacing: .03em;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.works-detail-table {
	display: flex;
	flex-wrap: wrap;
	gap: 25px 15px;
	margin: 40px 0 0;
}

.works-detail-table dl {
	align-items: flex-start;
	display: flex;
	color: var(--cmnblack);
	gap: 20px;
	flex-grow: 1;
	min-width: calc((100% - 15px) / 2);
}

.works-detail-table dt {
	align-items: center;
	background: var(--cmnbg2);
	border-radius: 2px;
	color: var(--gray3);
	display: flex;
	flex-shrink: 0;
	font-size: 1.7rem;
	font-weight: 500;
	justify-content: center;
	height: 65px;
	width: 115px;
}

.works-detail-table dd {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	font-size: 1.7rem;
	font-weight: 500;
	line-height: 1.36;
	letter-spacing: 0;
	width: calc(100% - 115px - 20px);
	height: 100%;
}

.niwork-detail .works-detail-box {
	align-items: center;
	border: 1px solid var(--main);
	border-radius: 4px;
	padding: 30px;
	display: flex;
	gap: 30px;
}

[data-detailbox="task"] {
	margin: 50px 0 0;
}

[data-detailbox="comment"] {
	margin: 35px 0 0;
}

.niwork-detail .works-detail-box dt {
	color: var(--main);
	font-weight: bold;
	width: 80px;
	flex-shrink: 0;
	text-align: center;
}

[data-detailbox="task"] dt {
	font-size: 1.8rem;
}

[data-detailbox="comment"] dt {
	line-height: 1.3;
	position: relative;
	padding: 95px 0 0;
}

[data-detailbox="comment"] dt::before {
	content: "";
	background: url(../img/cmn-woman.svg)center/contain no-repeat;
	top: 0;
	width: 50px;
	height: 90px;
	position: absolute;
	left: 50%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
}

.niwork-detail .works-detail-box dd {
	line-height: 2;
	letter-spacing: .05em;
}

@media screen and (max-width: 768px) {
	.niwork-detail {
		margin: 50px 0 0;
	}

	.niwork-detail__title {
		font-size: 2.4rem;
		margin: 20px 0 0;
		line-height: 1.6;
	}

	.niwork-detail .works-detail-cate {
		gap: 16px;
		flex-wrap: wrap;
	}

	.niwork-detail .works-detail-cate-main {
		width: fit-content;
		font-size: 1.6rem;
		padding: 8px 10px;
	}

	.niwork-detail .works-detail-client {
		flex-direction: column;
		gap: 10px;
		padding: 17px 0 15px;
		margin: 20px 0 0;
	}

	.niwork-detail .works-detail-client dt {
		font-size: 1.6rem;
	}

	.niwork-detail .works-detail-client dd {
		font-size: 1.9rem;
		letter-spacing: .03em;
	}

	.works-detail-table dl {
		height: auto;
		gap: 12px;
		flex-direction: column;
		width: 100%;
		min-width: unset;
	}

	.works-detail-table dt {
		font-size: 1.4rem;
		width: 100%;
		height: auto;
		padding: 10px;
		justify-content: flex-start;
	}

	.works-detail-table dd {
		font-size: 1.6rem;
		line-height: 1.32;
		width: 100%;
		height: auto;
	}

	.niwork-detail .works-detail-box {
		padding: 20px 15px;
		gap: 10px;
		flex-direction: column;
	}

	.niwork-detail .works-detail-box dt {
		font-size: 1.9rem !important;
		width: 100%;
		text-align: center;
	}

	[data-detailbox="comment"] dt {
		padding: 80px 0 0;
	}

	[data-detailbox="comment"] dt::before {
		width: 40px;
		height: 80px;
	}
	.niwork-detail .works-detail-box dd {
		width: 100%;
	}
}

/* -----------------------------------------------------------
    niwork-detail__thumbnail
-------------------------------------------------------------- */
.niwork-thumb__bawrap {
	align-items: center;
	display: flex;
	gap: 5%;
}

.single-image .niwork-thumb__bawrap {
	justify-content: center;
}

.niwork-thumb__ba {
	flex-shrink: 0;
}

[data-detailthumb="before"] {
	width: 38%;
	position: relative;
}

.niwork-detail__thumbnail.single-image [data-detailthumb="before"] {
	display: none;
}

[data-detailthumb="after"] {
	width: 57%;
}

[data-detailthumb="before"]::before {
	border-style: solid;
	border-width: 22px 0 22px 11px;
	border-color: transparent transparent transparent #ddd;
	content: "";
	right: -9%;
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	width: 0;
	height: 0;
}

.niwork-thumb__bawrap .thumb-bawrap {
	position: relative;
}

.niwork-thumb__bawrap .thumb-ba {
	aspect-ratio: 3/2;
	width: 100%;
}

.niwork-thumb__bawrap .thumb-ba img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.niwork-thumb__bawrap .thumb-caption {
	color: #fff;
	font-family: var(--serif);
	left: 0;
	top: 0;
	position: absolute;
	padding: 6px 10px 7px;
}

[data-detailthumb="before"] .thumb-caption {
	background: var(--gray);
	font-size: 1.3rem;
	position: absolute;
}

[data-detailthumb="after"] .thumb-caption {
	background: var(--main);
	font-size: 1.7rem;
}

.niwork-detail__thumbnail.single-image [data-detailthumb="after"] .thumb-caption {
	display: none;
}

@media screen and (max-width: 768px) {
	.niwork-thumb__bawrap {
		gap: 30px;
		flex-direction: column;
	}

	[data-detailthumb="before"] {
		width: 70%;
	}

	[data-detailthumb="after"] {
		width: 100%;
	}

	[data-detailthumb="before"]::before {
		border-color: #ddd transparent transparent transparent;
		border-width: 12px 20px 0px 20px;
		bottom: -20px;
		right: 0;
		left: 50%;
		top: auto;
		-webkit-transform: translateX(-50%);
		transform: translateX(-50%);
	}

	.niwork-thumb__bawrap .thumb-caption {
		padding: 4px 8px 5px;
	}

	[data-detailthumb="before"] .thumb-caption {
		font-size: 1.2rem;
	}

	[data-detailthumb="after"] .thumb-caption {
		font-size: 1.5rem;
	}
}

/* -----------------------------------------------------------
    niwork-detail__gallery
-------------------------------------------------------------- */
#niworks-detail .lb-nav a.lb-next {
	opacity: 1;
	background-position: right -15px top 48%;
}

#niworks-detail .lb-nav a.lb-prev {
	opacity: 1;
	background-position: left -15px top 48%;
}

.niwork-detail__gallery {
	display: flex;
	gap: 20px;
	width: 100%;
	flex-wrap: wrap;
	margin: 60px 0 0;
}

.niwork-detail__gallery a {
	display: block;
	width: calc((100% - 40px) / 3);
	min-width: calc((100% - 40px) / 3);
}

.niwork-detail__gallery figure {
	width: 100%;
}

.niwork-detail__gallery .img {
	aspect-ratio: 3/2;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.niwork-detail__gallery .img::before {
	align-items: center;
	background: var(--main);
	bottom: 0;
	border-radius: 3px 0 0 0;
	color: #fff;
	content: "\f00e";
	display: flex;
	font: 900 1.4rem/1 var(--webicon);
	position: absolute;
	right: 0;
	width: 30px;
	height: 30px;
	justify-content: center;
	padding: 2px 0 0;
	z-index: 2;
}

.niwork-detail__gallery .img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: .5s;
}

@media screen and (min-width: 769px) {
	.niwork-detail__gallery a:hover .img img {
		transform: scale(1.1, 1.1);
	}
}

.niwork-detail__gallery figcaption {
	color: var(--cmnblack) !important;
	display: block;
	margin: 10px 0 0;
	line-height: 1.5;
}

@media screen and (max-width: 768px) {
	.niwork-detail__gallery {
		gap: 30px;
		width: 100%;
		margin: 40px 0 0;
	}

	.niwork-detail__gallery a {
		width: 100%;
		min-width: 100%;
	}

	.niwork-detail__gallery figure {
		align-items: center;
		display: flex;
		gap: 15px;
	}

	.niwork-detail__gallery .img {
		flex-shrink: 0;
		width: 50%;
	}

	.niwork-detail__gallery .img::before {
		font-size: 1.2rem;
		height: 25px;
		width: 25px;
	}

	.niwork-detail__gallery figcaption {
		font-size: 1.5rem;
		margin: 0;
	}
}

/* -------------------------------------------------------------
    nicms-back
-------------------------------------------------------------- */
#niworks-detail .nicms-back {
	margin: 50px auto 0;
}

@media screen and (max-width: 768px) {
	#niworks-detail .nicms-back {
		margin: 30px auto 0;
	}
}

/* -------------------------------------------------------------
    フルリッチ
-------------------------------------------------------------- */
.niwork-fullrich {
	margin-top: 30px;
}

.niwork-fullrich h1, .niwork-fullrich h2, .niwork-fullrich h3, .niwork-fullrich h4 {
	font-weight: bold;
	line-height: 1.4;
}

.niwork-fullrich h1 {
	font-size: 2.7rem;
	font-weight: bold;
	border-bottom: 6px solid var(--main);
	padding: 0 0 15px;
	margin: 50px 0 30px;
}

.niwork-fullrich h2 {
	background: var(--main);
	color: #fff;
	font-size: 2.6rem;
	margin: 50px 0 30px;
	padding: 10px 20px 12px;
	position: relative;
	letter-spacing: .05em;
}

.niwork-fullrich h3 {
	border-bottom: dotted 3px var(--main);
	color: var(--main);
	margin: 40px 0 30px;
	padding: 0 0 10px;
	font-size: 2.4rem;
	letter-spacing: .05em;
}

.niwork-fullrich h4 {
	margin: 30px 0 20px;
	padding: 4px 0 0 16px;
	font-size: 2.3rem;
	position: relative;
}

.niwork-fullrich h4::before {
	background: var(--main);
	position: absolute;
	top: 2px;
	left: 0;
	display: block;
	content: '';
	width: 6px;
	height: 100%;
}

.niwork-fullrich p {
	margin-bottom: 1.5em;
	font-size: 1.6rem;
	letter-spacing: .035em;
	line-height: 2;
	overflow-wrap: break-word;
}

@media screen and (max-width: 768px) {
	.niwork-fullrich {
		margin-top: 20px;
	}

	.niwork-fullrich h1, .niwork-fullrich h2, .niwork-fullrich h3, .niwork-fullrich h4 {
		line-height: 1.5;
	}

	.niwork-fullrich h1 {
		border-bottom-width: 4px;
		font-size: 2.3rem;
		line-height: 1.5;
		margin: 30px 0 20px;
		padding: 0 0 10px;
	}

	.niwork-fullrich h2 {
		margin: 30px 0 20px;
		padding: 8px 15px 10px;
		font-size: 2rem;
	}

	.niwork-fullrich h3 {
		margin: 30px 0;
		padding: 0 0 10px;
		font-size: 1.9rem;
	}

	.niwork-fullrich h4 {
		margin: 30px 0 20px;
		padding: 0 0 0 12px;
		font-size: 1.8rem;
	}

	.niwork-fullrich h4::before {
		top: 0;
		width: 5px;
	}

	.ninews-fullrich p {
		margin-bottom: 1em;
		line-height: 2;
		letter-spacing: .05em;
	}
}

/* -------------------------------------------------------------
    niwork-relation-area
-------------------------------------------------------------- */
.niwork-relation-area {
	margin: 80px 0 0;
	padding: 100px 0 60px;
}

@media screen and (max-width: 768px) {
	.niwork-relation-area {
		margin: 60px 0 0;
	}
}

/* -------------------------------------------------------------
    ft_link2
-------------------------------------------------------------- */
#niworks-detail .ft_link2 {
	padding: 90px 0 0;
}

@media screen and (max-width: 768px) {
	#niworks-detail .ft_link2 {
		padding: 50px 0 0;
	}
}