@charset "UTF-8";

/* ---------- variables ---------- */
body#archive-work {
	--col_num: 4;
}
@media screen and (max-width: 650px) {
	body#archive-work {
		--col_num: 3;
	}
}
@media screen and (max-width: 460px) {
	body#archive-work {
		--col_num: 2;
	}
}


/* -------------------------------
 * archive-work.php
** ------------------------------- */
#archive-work {
}
#archive-work .wrapper {
	width: 70%;
	margin: 0 auto;
	padding: 50px 10px;
}
@media screen and (max-width: 650px) {
	#archive-work .wrapper {
		width: 100%;
		padding-top: 100px;
	}
}


#archive-work .filter-list {
	display: flex;
}
#archive-work .filter-list li {
	padding: 10px 15px;
	border: 1px solid #333;
	cursor: pointer;
	transition: all ease 0.3s;
}
#archive-work .filter-list li.is-active {
	background-color: #555;
	color: #fff;
}
#archive-work .filter-list li:not(:last-child) {
	margin-right: 10px;
}
@media screen and (max-width: 650px) {
	#archive-work .filter-list {
	}
}


#archive-work .archive_list {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	padding-bottom: calc(var(--content_h) + 60px);
/*	margin-right: -2%;*/
	margin-right: -20px;
	transition: all ease 0.3s;
}
#archive-work .archive_list [data-item] {
/*	width: 23%;*/
	width: calc(calc(100% / var(--col_num)) - 20px);
/*	margin-top: 2%;*/
	margin-top: 20px;
/*	margin-right: calc(calc(10000% / 102) * 0.02);*/
	margin-right: 20px;
	cursor: pointer;
	transform: translateY(0);
	transition: top ease 0.3s, transform ease 0.3s;
}
#archive-work .archive_list [data-item]:hover {
}
#archive-work .archive_list [data-item].spacer_content {
/*	transform: translateY(calc(var(--content_h) + 2%));*/
	transform: translateY(var(--content_h));
}
#archive-work .archive_list [data-item] .itme_inner {
	position: relative;
	overflow: hidden;
	transition: all ease 0.3s;
}
#archive-work .archive_list [data-item].open .itme_inner {
	opacity: 0.8;
}
#archive-work .archive_list [data-item] img {
	transform-origin: center;
	transition: all ease 0.3s;
}
#archive-work .archive_list [data-item]:hover img {
	object-fit: cover;
	object-position: center;
	transform: scale(1.2);
}
#archive-work .archive_list [data-item] p {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	padding: 10px;
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
	opacity: 0;
	transition: all ease 0.3s;
}
#archive-work .archive_list [data-item]:hover p {
	opacity: 1;
}
@media screen and (max-width: 650px) {
	#archive-work .archive_list {
/*		padding-bottom: calc(var(--content_h) + 60px);*/
		margin-right: -10px;
	}
	#archive-work .archive_list [data-item] {
		width: calc(calc(100% / var(--col_num)) - 10px);
		margin-right: 10px;
	}
}


#archive-work .archive_list .ajax_work_contents {
	position: absolute;
	left: 0;
	top: 0;
/*	width: calc(10000% / 102);*/
	width: calc(100% - 20px);
	height: 0px;
	transition: height ease 0.3s;
	overflow: hidden;
}
#archive-work .archive_list .ajax_work_contents.open {
	top: calc(var(--abs_t) + 10px);
	height: var(--content_h);
}
#archive-work .archive_list .ajax_work_contents .loading {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	background-color: #fff;
	font-size: 3rem;
	opacity: 1;
	transition: all ease 0.3s;
}
#archive-work .archive_list .ajax_work_contents .loading.fadeOut {
	opacity: 0;
}
#archive-work .archive_list .ajax_work_contents .inner {
	/* marginはダメ */
	padding: 20px;
	background-color: rgba(0, 0, 0, 0.1);
	opacity: 0;
	transition: all ease 0.3s;
}
#archive-work .archive_list .ajax_work_contents .inner.show {
	opacity: 1;
}
#archive-work .archive_list .ajax_work_contents .work_header {
}
#archive-work .archive_list .ajax_work_contents .work_header .ttl {
	margin-bottom: 10px;
}
#archive-work .archive_list .ajax_work_contents .work_header .terms {
	margin-bottom: 10px;
}
#archive-work .archive_list .ajax_work_contents .slider {
}
#archive-work .archive_list .ajax_work_contents .content_wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
}
#archive-work .archive_list .ajax_work_contents .content_wrapper a {
	display: block;
}
#archive-work .archive_list .ajax_work_contents .content_wrapper a.has_video {
	position: relative;
	overflow: hidden;
}
#archive-work .archive_list .ajax_work_contents .content_wrapper a.has_video::before,
#archive-work .archive_list .ajax_work_contents .content_wrapper a.has_video::after {
	content: "";
	position: absolute;
	z-index: 10;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}
#archive-work .archive_list .ajax_work_contents .content_wrapper a.has_video::before {
	width: 100px;
	height: 100px;
	border: 15px solid #fff;
	border-radius: 100px;
}
#archive-work .archive_list .ajax_work_contents .content_wrapper a.has_video::after {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 20px 0 20px 40px;
	border-color: transparent transparent transparent #fff;
	transform: translateX(5px);
}
#archive-work .archive_list .ajax_work_contents .content_wrapper img {
/*	width: 100%;*/
	width: auto;
/*	height: 300px;*/
	height: auto;
/*	object-position: center;*/
/*	object-fit: cover;*/
	transition: all ease 0.3s;
	transform-origin: center;
}
#archive-work .archive_list .ajax_work_contents .content_wrapper a.has_video:hover img {
	transform: scale(1.2);
}
#archive-work .archive_list .ajax_work_contents .lists {
	display: flex;
	flex-wrap: wrap;
	margin-right: -10px;
}
#archive-work .archive_list .ajax_work_contents .lists > div {
	margin-top: 10px;
	margin-right: 10px;
}
#archive-work .archive_list .ajax_work_contents .lists .has_video {
	position: relative;
}
#archive-work .archive_list .ajax_work_contents .lists .has_video::before,
#archive-work .archive_list .ajax_work_contents .lists .has_video::after {
	content: "";
	position: absolute;
	z-index: 10;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}
#archive-work .archive_list .ajax_work_contents .lists .has_video::before {
	width: 40px;
	height: 40px;
	border: 5px solid #fff;
	border-radius: 100px;
}
#archive-work .archive_list .ajax_work_contents .lists .has_video::after {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 15px;
	border-color: transparent transparent transparent #fff;
	transform: translateX(2px);
}
#archive-work .archive_list .ajax_work_contents .lists img {
/*	width: 150px;*/
	width: auto;
/*	height: 150px;*/
	height: auto;
/*	object-position: center;*/
/*	object-fit: cover;*/
	cursor: pointer;
}
@media screen and (max-width: 650px) {
	#archive-work .archive_list .ajax_work_contents .inner {
		/* marginはダメ */
		padding: 10px;
	}
	#archive-work .archive_list .ajax_work_contents .lists > div {
		width: calc(25% - 10px);
	}
}


/* colorbox */
#cboxLoadedContent {
	position: relative;
}

@media screen and (max-width: 650px) {
	#archive-work .archive_list .ajax_work_contents {
		width: calc(100% - 10px);
	}
}