﻿@charset "utf-8";

/* -----------------------------------------------------------
    その他
-------------------------------------------------------------- */
.contents {
	padding-bottom: unset;
}

.niwork-relation-area {
	margin-top: 120px;
}

.niwork-relation-area .jp {
	padding: unset;
	font-size: 3.6rem;
	font-weight: 600;
}

.niwork-relation-area .jp::before {
	content: unset;
}

.niwork-relation-area .works-img img {
	margin: unset;
}

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

	.niwork-relation-area {
		margin-top: 40px;
	}

	.niwork-relation-area .jp {
		padding: unset;
		font-size: 2.4rem;
		font-weight: 600;
	}

}

/* -----------------------------------------------------------
    施工事例 詳細
-------------------------------------------------------------- */
@media screen and (min-width: 769px) {

	/*▽下部追従のCV導線ない場合は削除してください*/
	/*header {
		position: absolute !important;
	}*/
}

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

.niwork-detail__title {
	font-size: 3rem;
	font-weight: bold;
	margin-top: 30px;
	line-height: 1.5;
	letter-spacing: .05em;
}

.txt-box {
	margin: 24px 0 0;
}

.txt-detail-block {
	padding: 0 0 40px;
	border-bottom: solid 1px #e8e8e8;
}

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

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

	.txt-box {
		margin: 12px 0 0;
	}

	.txt-detail-block {
		padding: 0 0 20px;
	}

}

/* カテゴリリスト */
.cat-list {
	margin: 24px 0 0;
	display: flex;
	flex-direction: unset;
	gap: 10px;
	font-size: 1.3rem;
}

.cat-list__child-list {
	display: flex;
	gap: 10px;
}

/* タグリスト */
.tag-list {
	margin: 16px 0 0;
	font-size: 1.3rem;
}

@media screen and (max-width: 768px) {
	.cat-list {
		flex-wrap: wrap;
		font-size: 1.1rem;
	}

	.tag-list {
		margin: 12px 0 0;
		font-size: 1.1rem;
	}
}

/* -----------------------------------------------------------
    サムネイル画像
-------------------------------------------------------------- */
/* メイン画像 */
.niwork-detail .works-img {
	margin: 40px 0 0;
	height: 650px;
	background: #eee;
}

.works-img img {
	/* margin: 40px 0 0; */
	object-fit: contain;
	height: 100%;
	border-radius: 20px;
}

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

	.niwork-detail .works-img {
		margin: 32px 0 0;
		/* height: 220px; */
		height: 400px;
		aspect-ratio: unset;
	}

	.works-img img {
		/* margin: 32px 0 0;
		height: 220px; */
		border-radius: 10px;
	}

}

/* サブ画像 */
.works-sub-img-block {
	margin: 40px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.works-sub-img-block .works-sub-img {
	width: calc((100% / 5) - 16px);
	height: 140px;
	background: #eee;
	border-radius: 10px;
}
.works-sub-img img {
	object-fit: contain;
	height: 100%;
	border-radius: 10px;
}

@media screen and (max-width: 768px) {
	.works-sub-img-block {
		margin: 20px 0 0;
	}
	.works-sub-img-block .works-sub-img {
		width: calc((100% / 2) - 10px);
		height: 120px;
	}
	.works-sub-img img {
		height: 120px;
	}
}

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

/* -----------------------------------------------------------
    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 120px;
}

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

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

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

.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(--lightgray);
	/* color: #fff; */
	font-size: 2.6rem;
	margin: 50px 0 30px;
	padding: 10px 20px 12px;
	position: relative;
	letter-spacing: 0.1em;
}

.niwork-fullrich h3 {
	border-bottom: solid 1px var(--green);
	/* 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(--green);
	position: absolute;
	top: 2px;
	left: 0;
	display: block;
	content: '';
	width: 2px;
	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;
	}
}


/*    .photo-list
-------------------------------------------------------------- */
.photo-list {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 20px;
	margin: 40px auto 0;
}
.photo-list li {
	width: calc((100% - 80px) / 5);
	position: relative;
}
.photo-list li::after{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	content: "\f00e";
	font-family: var(--awesome);
	font-weight: 900;
	font-size: 1.6rem;
	position: absolute;
	right: 8px;	
	bottom: 8px;
	color: #fff;
	transition: all 0.3s ease-in-out;
}

.photo-list li .img {
    display: flex;
	width: 100%;
    align-items: center;
    overflow: hidden;
	position: relative;
	background: #eee;
	border-radius: 10px;
}
.photo-list li .img img {
    width: 100%;
	height: 140px;
	object-fit: contain;
	transition-duration: 0.3s;
}
/*.photo-list li a:hover .img img{
	transform: scale(1.05);
	transition-duration: 0.3s;
}*/

.photo-list li a {
	display: block;
}
.photo-list li a:hover {
	opacity: .7;
}

.photo-list .fancybox-caption {
	font-size: 1.2rem!important;
}


@media screen and (max-width: 768px){
	
	.photo-list {
		justify-content: space-between;
		margin: 20px auto 0;
		max-width: inherit;
		gap: 15px;
	}
	.photo-list li{
		width: calc((100% - 15px) / 2);
	}
	.photo-list li::after{
		font-size: 1.4rem;
		right: 4px;	
		bottom: 4px;
	}
	.photo-list li .img img {
		height: 120px;
	}
	/*.photo-list li a:hover .img img{
		transform: scale(1);
	}*/

	
}