﻿@charset "utf-8";

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

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

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

.niwork-detail > div{
	
}

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


@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;
	}
}

/* -----------------------------------------------------------
    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 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: 100px 0 0;
}

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

/* -----------------------------
	modelhouse-block
-------------------------------- */

.splide__track {
	margin: 0 auto;
}
.modelhouse-block .niwork-detail__title{
	margin: 0;
}
.modelhouse-block .tag-list{
	display: flex;
}
.modelhouse-block .tag{
	padding: 10px 0 0;
    color: #A8A8A8;
    font-size: 1.4rem;
}

#main-carousel .splide__list{
	text-align: center;
	background: #fff;
}
#main-carousel .splide__slide img{
	width: 800px;
}
#thumbnail-carousel-list .splide__slide img{
	width: 100%;	
}
.info-list{
	width: 50%;
	margin: 50px 0 0 auto;
}

.info-list > div{
	display: flex;
	align-items: center;
	padding: 10px 10px 10px;
	border-bottom: solid 1px var(--border1);
}
@media screen and (max-width: 768px){

}
