@charset "utf-8";

/* -----------------------------------------------------------
    施工事例 一覧
-------------------------------------------------------------- */
/* -----------------------------------------------------------
    intro-area
-------------------------------------------------------------- */
/* .intro-area {
	margin-top: 80px;
} */

.intro-area .intro-ttl {
	font-size: 2.8rem;
	font-weight: bold;
	text-align: center;
	line-height: 1.5;
	letter-spacing: .03em;
}

.intro-area .intro-note {
	margin: 15px 0 0;
	text-align: center;
	letter-spacing: .07em;
}

@media screen and (max-width: 768px) {
	/* .intro-area {
		margin-top: 40px;
	} */

	.intro-area .intro-ttl {
		font-size: 2.1rem;
		text-align: left;
	}

	.intro-area .intro-note {
		text-align: left;
	}
}

/* -----------------------------------------------------------
    niwork-result  検索結果
-------------------------------------------------------------- */
.niwork-result p {
	text-align: center;
	margin: 20px 0 0;
}

@media screen and (max-width: 768px) {
	.niwork-result p {
		text-align: left;
	}
}

/* -----------------------------------------------------------
    niwork-filter  niwork-refine
-------------------------------------------------------------- */
.niwork-filter,.niwork-refine {
	margin-top: 40px;
	border: 1px solid #333;
}

[class^="niwork-filter__header"] {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 25px;
	text-align: center;
	font-size: 2rem;
	font-weight: bold;
	justify-content: center;
	padding: 22px 30px 25px;
	z-index: 2;
	position: relative;
	/*pointer-events: none;  ←アコーディオン無の場合*/
}

[class^="niwork-filter__header"] .note {
	align-items: center;
	color: var(--gray);
	display: flex;
	gap: 15px;
	font-size: 2rem;
	font-weight: 500;
	padding: 0 40px 0 0;
	position: relative;
	justify-content: center;
}

[class^="niwork-filter__header"] .note::after {
	content: "";
	width: 30px;
	height: 30px;
	background: url(../../control-default/default-img/accordion_plus.jpg)center/contain no-repeat;
}

[class^="niwork-filter__header"].filter-active .note::after {
	background-image: url(../../control-default/default-img/accordion_minus.jpg);
}

.niwork-filter__inner {
	display: none;
	/*display: block!important;*/ /*←アコーディオン無の場合*/
	padding: 0 30px 25px;
}

.niwork-filter__body {
	flex-direction: column;
	display: flex;
}

.niwork-filter__box {
	display: flex;
	gap: 20px;
	padding: 20px 0;
}

.niwork-filter__body .niwork-filter__box:nth-of-type(n+2) {
	border-top: 1px solid var(--border1);
}

.niwork-filter__subttl {
	color: var(--gray);
	font-weight: bold;
	font-size: 1.7rem;
	flex-shrink: 0;
	min-width: 80px;
	padding: 10px 0 0;
}

.niwork-filter__elements {
	display: flex;
	flex-wrap: wrap;
	gap: 15px 13px;
}

.niwork-filter__item {
	position: relative;
}

.niwork-filter__item input {
	opacity: 0;
	padding: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	cursor: pointer;
	margin: 0;
}

.niwork-filter__item label, .niwork-filter__item#all-models-link a, .niwork-filter__item .niwork-refine-btn {
	background: #f0f0f0;
	border: #f0f0f0 1px solid;
	color: var(--cmnblack) !important;
	cursor: pointer;
	display: inline-block;
	pointer-events: auto;
	padding: 11px 15px 12px;
	white-space: nowrap;
	min-width: 70px;
	text-align: center;
	transition: .3s;
}

.niwork-filter__item input:checked + label {
	color: var(--link) !important;
	border-color: var(--link);
	background: var(--linkbg);
	font-weight: bold;
}

.niwork-filter__action {
	position: relative;
	margin: 30px auto 0;
}

.niwork-filter__reset {
	align-items: center;
	display: flex;
	font-size: 1.4rem;
	cursor: pointer;
	color: var(--gray);
	gap: 3px;
	line-height: 1;
	position: absolute;
	left: 140px;
	top: 25px;
	text-decoration: underline;
}

.niwork-filter__reset .icon {
	position: relative;
	padding: 0 0 0 18px;
}

.niwork-filter__reset .icon::before {
	content: '\f01e';
	font: 900 1.4rem/1 var(--webicon);
	left: 0;
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

.niwork-filter__submit {
	position: relative;
	width: fit-content;
	margin: 0 auto;
}

.niwork-filter__submit input {
	-webkit-appearance: none; /*safari対策*/
	border-radius: 0; /*iOS対策*/
	background: var(--link);
	border: none;
	color: #fff !important;
	cursor: pointer;
	display: block;
	height: 100%;
	font-weight: bold;
	font-family: var(--sans);
	font-size: 1.9rem;
	letter-spacing: .1em;
	text-align: center;
	transition: .3s;
	width: 300px;
	padding: 17px 20px;
	position: relative;
	z-index: 3;
}

.niwork-filter__submit:hover input {
	background: #F2BC53;
}

[class^="niwork-filter__close"] {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 1.6rem;
	width: 150px;
	margin: 25px auto 0;
	justify-content: center;
	text-decoration: underline;
	position: relative;
}

[class^="niwork-filter__close"] .icon {
	display: inline-block;
	position: relative;
	width: 20px;
	height: 20px;
	margin: 0 10px 0 0;
}

[class^="niwork-filter__close"] .icon::before, [class^="niwork-filter__close"] .icon::after {
	background-color: var(--cmnblack);
	content: "";
	height: 1px;
	position: absolute;
	width: 100%;
	transition: .3s;
	top: 50%;
}

[class^="niwork-filter__close"] .icon::before {
	transform: rotate(-45deg);
}

[class^="niwork-filter__close"] .icon::after {
	transform: rotate(45deg);
}

.niwork-refine [data-workrefine="child"] .niwork-filter__item {
	display: none;
}

.niwork-refine #all-models-link.active-all-models {
	display: block!important;
}

@media screen and (max-width: 768px) {
	.niwork-filter {
		width: 100%;
		margin-top: 30px;
		border-width: 1px 0;
	}

	[class^="niwork-filter__header"] {
		font-size: 1.9rem;
		gap: 15px;
		justify-content: flex-start;
		padding: 20px;
	}

	[class^="niwork-filter__header"] .note {
		gap: 10px;
		font-size: 1.6rem;
		margin: 0;
	}

	[class^="niwork-filter__header"] .note::after {
		width: 30px;
		height: 30px;
	}

	.niwork-filter__inner {
		padding: 0 0 20px;
	}

	.niwork-filter__body {
		gap: 15px;
	}

	.niwork-filter__box {
		flex-direction: column;
		gap: 15px;
		padding: 0;
	}

	.niwork-filter__body .niwork-filter__box:nth-of-type(n+2) {
		padding-top: 15px;
	}

	.niwork-filter__subttl {
		display: block;
		min-width: 100%;
		padding: 0 20px 0 40px;
		position: relative;
	}

	.niwork-filter__subttl::before {
		content: '\f160';
		font: 900 1.5rem/1 var(--webicon);
		left: 20px;
		position: absolute;
		top: 50%;
		-webkit-transform: translateY(-50%);
		transform: translateY(-50%);
	}

	.niwork-filter__list {
		overflow-x: scroll;
		padding: 0 20px 10px;
	}

	.niwork-filter__elements {
		width: 800px;
	}

	.niwork-filter__action {
		margin: 20px auto 0;
	}

	.niwork-filter__submit input {
		padding: 15px 20px;
	}

	.niwork-filter__reset {
		justify-content: center;
		position: static;
		margin: 30px auto 0;
	}

	[class^="niwork-filter__close"] {
		font-size: 1.5rem;
		margin: 30px auto 0;
	}

	[class^="niwork-filter__close"] .icon {
		width: 17px;
		height: 17px;
		margin: 0 5px 0 0;
	}
}

/* -----------------------------------------------------------
    list-area
-------------------------------------------------------------- */
.list-area {
	/* background: var(--cmnbg); */
	margin: 60px auto 0;
	padding: 120px 0;
}

.niwork-list {
	display: flex;
	flex-wrap: wrap;
	/* gap: 40px; */
	gap: 64px 4%;
	/* flex-direction: column; */
}

/* 詳細ページ投稿記事サイズ */
#works .niwork-list__link {
	width: calc((100% / 3) - 32px);
}

/* TOPページ投稿記事サイズ */
.niwork-list__link:nth-child(1) {
	width: 66%;
}
.niwork-list__link:nth-child(2) {
	width: 30%;
}
.niwork-list__link:nth-child(3),
.niwork-list__link:nth-child(4),
.niwork-list__link:nth-child(5) {
	width: calc((100% / 3) - 32px);
}
.niwork-list__link:nth-child(6) {
	width: 30%;
}
.niwork-list__link:nth-child(7) {
	width: 66%;
}
@media screen and (max-width: 768px) {
	.niwork-list__link:nth-child(1),
	.niwork-list__link:nth-child(4),
	.niwork-list__link:nth-child(7) {
		width: 100%;
	}
	.niwork-list__link:nth-child(2),
	.niwork-list__link:nth-child(3),
	.niwork-list__link:nth-child(5),
	.niwork-list__link:nth-child(6) {
		width: calc((100% / 2) - 10px);
	}

}

/* .niwork-list__link::before {
	bottom: 0;
	content: "\f178";
	font: 900 1.7rem/1 var(--webicon);
	transition: .5s;
	position: absolute;
	right: 50px;
} */

@media screen and (min-width: 769px) {
	.niwork-list__link:hover {
		border-color: var(--link);
	}

	.niwork-list__link:hover::before {
		right: 40px;
	}
}

.niwork-list__ttl {
	margin: 16px 0 0;
	color: var(--cmnblack);
	font-weight: bold;
	font-size: 2rem;
	line-height: 1.5;
	letter-spacing: .05em;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

@media screen and (max-width: 768px) {
	.list-area {
		margin: 30px auto 0;
		padding: 30px 0;
	}

	.niwork-list {
		gap: 30px 20px;
		padding: 0 0 10px;
	}

	#works .niwork-list__link {
		margin: unset;
		/* width: calc((100% / 2) - 10px); */
		width: 100%;
		/* padding: 20px 20px 40px; */
	}

	/* .niwork-list__link::before {
		font-size: 1.6rem;
		bottom: 15px;
		right: 15px;
	} */

	.niwork-list__ttl {
		margin: 12px 0 0;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		font-size: 1.6rem;
		line-height: 1.5;
		-webkit-line-clamp: 2;
		max-height: 65px;
		white-space: unset;
	}
}

/* カテゴリリスト */
.cat-list {
	margin: 24px 0 0;
	display: flex;
	flex-direction: column;
	gap: 16px 10px;
	font-size: 1.3rem;
}

.cat-list__child-list {
	display: flex;
	gap: 10px;
	line-height: 1.5;
}

/* タグリスト */
.tag-list {
	display: flex;
	gap: 10px;
	margin: 16px 0 0;
	font-size: 1.3rem;
	color: #888;
}

@media screen and (max-width: 768px) {
	.cat-list {
		flex-wrap: wrap;
		margin: 16px 0 0;
		font-size: 1.1rem;
	}

	/* .cat-list__child-list {
		flex-direction: column;
	} */

	.tag-list {
		flex-wrap: wrap;
		margin: 12px 0 0;
		font-size: 1.1rem;
	}
}

/* -----------------------------------------------------------
    サムネイル画像
-------------------------------------------------------------- */
.works-img img {
	object-fit: cover;
	height: 450px;
	border-radius: 20px;
}

@media screen and (max-width: 768px) {
	.works-img img {
		height: 220px;
		border-radius: 10px;
	}
}

/* -----------------------------------------------------------
    BeforeAfter画像
-------------------------------------------------------------- */
.niwork-list__bawrap {
	align-items: center;
	display: flex;
	gap: 5%;
}

.niwork-list__ba {
	flex-shrink: 0;
}

[data-listba="before"] {
	width: 40%;
	position: relative;
}

.niwork-list__link.single-image [data-listba="before"] {
	display: none;
}

[data-listba="after"] {
	width: 55%;
}

[data-listba="before"]::before {
	border-style: solid;
	border-width: 30px 0 30px 15px;
	border-color: transparent transparent transparent #ddd;
	content: "";
	right: -8%;
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	width: 0;
	height: 0;
}

.niwork-list__ba .imgwrap {
	position: relative;
}

.niwork-list__ba .img {
	aspect-ratio: 3/2;
}

.niwork-list__ba img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.niwork-list__ba .caption {
	color: #fff;
	font-family: var(--en);
	left: 0;
	top: 0;
	position: absolute;
	padding: 6px 10px 7px;
}

[data-listba="before"] .caption {
	background: var(--gray);
	font-size: 1.3rem;
}

[data-listba="after"] .caption {
	background: var(--main);
	font-size: 1.7rem;
}

.niwork-list__link.single-image [data-listba="after"] .caption {
	display: none;
}

@media screen and (max-width: 768px) {
	[data-listthumb="ba"] .niwork-list__thumb {
		width: 100%;
	}

	.niwork-list__bawrap {
		gap: 30px;
		flex-direction: column;
	}

	[data-listba="before"] {
		width: 50%;
	}

	[data-listba="after"] {
		width: 100%;
	}

	[data-listba="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-list__ba .caption {
		padding: 4px 8px 5px;
	}

	[data-listba="before"] .caption {
		font-size: 1.2rem;
	}

	[data-listba="after"] .caption {
		font-size: 1.5rem;
	}
}