/*==================================================



スタッフ紹介ページ、施工事例ページ用のスタイル



================================================== */





/*==================================================
 レイアウト
================================================== */
.change-images-wrap {
	margin: 0 0 40px;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: space-between;
	position: relative;
}

/* ビュー */
.change-images-view {
	width: 540px;
	position: relative;
	z-index: 100;
}

/* サムネリスト */
.change-images-thumb {
	width: 520px;
	height: 450px;
	padding: 21px 24px;
	background: #f8f8f8;
	overflow-y: scroll;
	position: relative;
	z-index: 100;
	box-sizing: border-box;
}

/* キャプション */
.change-images-caption {
	width: calc(100% - 2rem);
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 200;
}

@media screen and (max-width: 768px) {
	.change-images-wrap {
		margin: 0 0 1.6rem;
	}

	.change-images-view,
	.change-images-thumb {
		width: 100%;
		margin: 0 0 1rem;
		padding: 0;
		height: auto;
	}
}

/*==================================================
 ビュー
================================================== */
.change-images-view ul {
	position: relative;
}

.change-images-view li {
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	opacity: 0;
	transition: All 0.4s ease;
}

.change-images-view li.active {
	opacity: 1;
	z-index: 200;
	position: relative;
}

.change-images-view li a {
	padding: 83.33% 0 0;
	display: block;
	position: relative;
}

.change-images-view li img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	object-fit: cover;
}


/*==================================================
 サムネリスト
================================================== */
.change-images-thumb ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.change-images-thumb li {
	width: calc(50% - 10px);
	margin: 0 20px 20px 0;
	position: relative;
}

.change-images-thumb li:nth-child(2n) {
	margin-right: 0;
}

.change-images-thumb li:hover {
	cursor: pointer;
}

.change-images-thumb li a {
	padding: 90.47% 0 0;
	display: block;
	position: relative;
}

.change-images-thumb li img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	object-fit: cover;
}

@media screen and (max-width: 768px) {
	.change-images-thumb li {
		width: calc((100% - .4rem) / 2);
		margin: 0 .4rem .4rem 0;
	}
}

/* ボーダー（ホバー）
-------------------------------------------------- */
.change-images-thumb li:after {
	content: '';
	width: 100%;
	height: 100%;
	border: 1px solid rgba(255,255,255,.5);
	box-sizing: border-box;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	transition: All 0.4s ease;
	pointer-events: none;
}

.change-images-thumb li:hover:after {
	border-width: 5px;
}

/* ボーダー（アクティブ）
-------------------------------------------------- */
.change-images-thumb li.active:after {
	border-width: 5px;
	border-color: rgba(251,158,68,.7);
}


/*==================================================
 キャプション
================================================== */
.change-images-caption li {
	padding: 10px;
	color: #fff;
	background: rgba(0,0,0,.5);
	box-shadow: 2px 2px 2px rgba(0,0,0,.1);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 30;
	opacity: 0;
}

.change-images-caption li.active {
	opacity: 1;
}
