﻿@charset "utf-8";

/* -----------------------------------------------------------
    施工事例 詳細
-------------------------------------------------------------- */
@media screen and (min-width: 769px) {
	/*▽下部追従のCV導線ない場合は削除してください*/
	/*header {
		position: absolute !important;
	}*/
}

.niwork-detail {
	margin: 70px 0 0;
}

.niwork-detail__title {
	font-size: 3.2rem;
	font-weight: bold;
	line-height: 1.6;
	letter-spacing: .04em;
}

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

	.niwork-detail__title {
		font-size: 2.2rem;
		line-height: 1.7;
	}
}

/* -----------------------------------------------------------
    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(--en);
	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;
	}
}

/* -----------------------------------------------------------
    intro-area
-------------------------------------------------------------- */
.intro-area {
	align-items: center;
	display: flex;
	gap: 30px;
}

.intro-area .intro-thumb {
	aspect-ratio: 3/2;
	flex-shrink: 0;
	width: 48%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.intro-area .intro-thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
	
}

@media screen and (max-width: 768px) {
	.intro-area {
		align-items: flex-start;
		flex-direction: column;
		gap: 20px;
	}

	.intro-area .intro-thumb {
		width: 100%;
	}
}

/* -----------------------------------------------------------
    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: 25px 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;
	color: #fff;
	content: "\f00e";
	display: flex;
	font: 900 1.2rem/1 var(--webicon);
	position: absolute;
	right: 0;
	width: 26px;
	height: 26px;
	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: 15px;
		width: 100%;
		margin: 30px 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;
	}
}

/* -------------------------------------------------------------
    niwork-detail__table2
-------------------------------------------------------------- */
[data-workstable="table2"] {
	background: #fff;
	margin: 55px 0 0;
}

.niwork-detail__table2 {
	align-items: stretch;
	border: 1px solid var(--cmnborder);
	display: flex;
}

.niwork-detail__table2.list-order {
	margin-top: -1px;
}

.niwork-detail__table2 .table2-ttl {
	align-items: center;
	background: var(--cmnbg);
	border-right: 1px solid var(--cmnborder);
	display: flex;
	flex-shrink: 0;
	font-size: 1.7rem;
	font-weight: 600;
	justify-content: center;
	text-align: center;
	padding: 30px 10px;
	width: 130px;
	letter-spacing: .07em;
	line-height: 1.3;
}

.niwork-detail__table2 .table2-data {
	flex-wrap: wrap;
	gap: 20px;
	padding: 20px;
	line-height: 1.6;
	letter-spacing: .03em;
}

.niwork-detail__table2.list-customer .table2-data {
	align-items: center;
	display: flex;
}

.niwork-detail__table2 .detail-cate-user {
	display: flex;
	flex-wrap: wrap;
}

.niwork-detail__table2 .detail-cate-user li::after {
	content: "、";
}

.niwork-detail__table2 .detail-cate-user li:last-child::after {
	content: "";
}

.niwork-detail__table2 .detail-area {
	align-items: center;
	display: flex;
	gap: 3px;
	letter-spacing: .03em;
}

.niwork-detail__table2 .detail-area::before {
	content: "\f3c5";
	color: var(--main);
	font: 900 1.5rem/1 var(--webicon);
}

.niwork-detail__table2 .detail-cate-service {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.niwork-detail__table2 .detail-cate-service li {
	border: 1px solid var(--sub);
	color: #75828b;
	padding: 5px 8px 6px;
}

@media screen and (max-width: 768px) {
	[data-workstable="table2"] {
		margin: 30px 0 0;
	}

	.niwork-detail__table2 {
		width: 100%;
	}

	.niwork-detail__table2 .table2-ttl {
		font-size: 1.5rem;
		padding: 20px 10px;
		width: 70px;
		justify-content: flex-start;
		text-align: left;
	}

	.niwork-detail__table2 .table2-data {
		font-size: 1.5rem;
		padding: 20px 15px;
		gap: 15px;
	}

	.niwork-detail__table2 .detail-cate-service {
		gap: 8px;
	}
}

/* -------------------------------------------------------------
    detail-box
-------------------------------------------------------------- */
.niwork-detail .detail-box {
	align-items: center;
	background: var(--cmnbg2);
	display: flex;
	gap: 20px;
	padding: 30px;
	margin: 35px 0 0;
}

.niwork-detail .detail-box dt {
	color: var(--main);
	flex-shrink: 0;
	font-size: 1.7rem;
	font-weight: bold;
	line-height: 1.5;
	width: 130px;
}

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

@media screen and (max-width: 768px) {
	.niwork-detail .detail-box {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		padding: 20px;
		margin: 30px 0 0;
	}

	.niwork-detail .detail-box dt {
		width: 100%;
	}
	
	.niwork-detail .detail-box dd {
		font-size: 1.5rem;
	}
}

/* -------------------------------------------------------------
    detail-comment
-------------------------------------------------------------- */
.niwork-detail .detail-comment {
	align-items: center;
	border: 1px solid var(--sub);
	display: flex;
	gap: 20px;
	padding: 30px;
	margin: 35px 0 0;
}

.niwork-detail .detail-comment dt {
	color: var(--sub);
	flex-shrink: 0;
	font-size: 1.7rem;
	font-weight: bold;
	line-height: 1.5;
	width: 80px;
}

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

@media screen and (max-width: 768px) {
	
	.niwork-detail .detail-comment {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
		padding: 20px;
	}
	
	.niwork-detail .detail-comment dt {
		width: 100%;
	}
	
}

/* -------------------------------------------------------------
    detail-pdf
-------------------------------------------------------------- */
.niwork-detail .detail-pdf {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	margin: 35px 0 0;
}

.niwork-detail .detail-pdf a {
	align-items: center;
	display: flex;
	font-size: 1.8rem;
	color: #75828b;
	justify-content: center;
	width: 180px;
	border: 1px solid var(--sub);
	padding: 25px 0;
}

.niwork-detail .detail-pdf a:hover {
	color: var(--main);
	background: var(--cmnbg);
	border-color: var(--main);
}

.niwork-detail .detail-pdf span {
	font-weight: 500;
	position: relative;
	padding: 0 0 0 45px;
}

.niwork-detail .detail-pdf span::before {
	aspect-ratio: 300/386;
	content: "";
	background: url("../img/works-pdf.svg")center/contain no-repeat;
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	left: 0;
	width: 33px;
}

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

	.niwork-detail .detail-pdf a {
		font-size: 1.7rem;
		justify-content: center;
		width: calc( ( 100% - 10px ) / 2 );
		max-width: 200px;
		padding: 20px 0;
	}

	.niwork-detail .detail-pdf span {
		padding: 0 0 0 40px;
	}

	.niwork-detail .detail-pdf span::before {
		width: 30px;
	}
}

/* -------------------------------------------------------------
    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 {
	background: var(--main);
	color: #fff;
	font-size: 2.3rem;
	margin: 50px 0 30px;
	padding: 10px 20px 13px;
	position: relative;
	letter-spacing: .05em;
}

.niwork-fullrich h2 {
	background: var(--main);
	font-size: 2.2rem;
	font-weight: bold;
	padding: 12px 18px 15px;
	margin: 50px 0 30px;
	color: #fff;
}

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

.niwork-fullrich h4 {
	margin: 30px 0 20px;
	padding: 4px 0 0 16px;
	font-size: 2rem;
	position: relative;
	color: var(--main);
}

.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 h1, .niwork-fullrich h2, .niwork-fullrich h3, .niwork-fullrich h4 {
		line-height: 1.5;
	}

	.niwork-fullrich h1 {
		font-size: 2.1rem;
		line-height: 1.5;
		margin: 30px 0 20px;
		padding: 10px 15px 11px;
	}

	.niwork-fullrich h2 {
		margin: 30px 0 20px;
		padding: 8px 15px 11px;
		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 14px;
		font-size: 1.8rem;
	}

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

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

/* -------------------------------------------------------------
    niwork-relation-area
-------------------------------------------------------------- */
.niwork-relation-area {
	margin: 40px 0 0;
}

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