@charset "UTF-8";
/* CSS Document */





/********************************
タグ選択部分
********************************/
.works_tagbox{
	width: 98%;
	margin: 0 auto 40px;
	padding: 20px;
	background-color: #d1daeb;
	box-sizing: border-box;
	position: relative;
}

.works_tagbox dl{
	width: 100%;
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
}

.works_tagbox dl dt{
	width: 3em;
	font-size: 16px;
	font-weight: bold;
}

.works_tagbox dl dd{
	width: calc(100% - 3em);
}


.filter-controls{
	margin: 0;
	padding: 0;
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
	flex-wrap: wrap;
}

.filter-controls input[type=checkbox] {
	display: none; 	/* チェックボックスを非表示にする */
}

.filter-controls input[type="checkbox"]:checked + label {
	background: #a4b4d6;/* マウス選択時の背景色を指定する */
	color: #FFF; 	/* マウス選択時のフォント色を指定する */
	background-image: url(./img_works/works_btn_chk.png);
	background-repeat: no-repeat;
	background-size: 17px;
	background-position: left 8px top 50%;
}

.filter-controls label {
	margin: 0 7px 7px 0;		/* ラベル外側の余白を指定する */
	padding: 8px 8px 8px 30px;
	width: 210px;		/* ラベルの横幅を指定する */
	font-size: 13px;
	line-height: 1.4;	/* 行の高さを指定する */
	cursor: pointer;		/* マウスカーソルの形（リンクカーソル）を指定する */
	color: #666;			/* フォントの色を指定 */
	background-color: #FFF;
	background-image: url(./img_works/works_btn_nochk.png);
	background-repeat: no-repeat;
	background-size: 17px;
	background-position: left 8px top 50%;
	transition-property: background-color,color;
	transition-duration: 0.1s;
	transition-timing-function: ease-out;
	box-sizing: border-box;
}

.filter-controls label:hover{
	background-color: #e8e5e5;
}

.tag-reset{
	width: 200px;
	margin: auto;
	background-color: #6481B9;
	border: none;
	cursor: pointer;
	outline: none;
	padding: 10px 0;
	appearance: none;
	line-height: 1;
	font-size: 14px;
	color: #fff;
	display: block;
}

.tag-reset:hover{
	background-color: #a4b4d6;
}

@media screen and ( min-width: 980px) {

	.works_tagbox p{
		width: 50%;
		text-align: right;
		position: absolute;
		top: 28px;
		right: 20px;
	}
}

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

	.filter-controls label {
		width: 200px;		/* ラベルの横幅を指定する */
		font-size: 12px;
	}
}


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

	.filter-controls{
		justify-content: space-between;
	}

	.filter-controls label {
		width: 49%;		/* ラベルの横幅を指定する */
		margin: 0 0 2% 0;
	}

	.works_tagbox{
		margin-bottom: 40px;
		padding: 15px;
		position: relative;
	}

	.works_tagbox p{
		width:100%;
		text-align: left;
		position: relative;
		top:0;
		right: 0;
		margin-top: 15px;
	}

	.works_tagbox dl{
		width: 100%;
		display: block;
	}

	.works_tagbox dl dt{
		width: 100%;
		font-size: 14px;
		font-weight: bold;
	}

	.works_tagbox dl dd{
		width: 100%;
	}

}




/********************************
アイテム部分
********************************/

/* グリッドレイアウトのコンテナ */

.grid {
    position: relative;
    margin: 0 auto;
	box-sizing: border-box;
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
	flex-wrap: wrap;
}

.grid .open{
	background-color: #6481B9;
}

/* アイテム */

.work {
	display: block;			/* 必須 */
	z-index: 1;
	cursor: pointer;
	transition-duration: 0.2s;
	transition-property: transform;
}

.work img:hover{
	opacity: 0.75;
	transition-duration: 0.2s;
}

.work img{
	width: 100%;
}

.else{
	transform: scale(0.1);
}

@media print,all and (min-width: 768px){

	.work {
		width: 24.95%;
		margin: 0;
		padding: 1%;
		box-sizing: border-box;
	}

}


@media screen and ( min-width: 600px) and ( max-width: 767px) {

	.work {
		width: 33.29%;
		padding: 1%;
		box-sizing: border-box;
	}
}


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

	.work {
		width: 49.99%;
		padding: 1%;
		box-sizing: border-box;
	}

}




/********************************
詳細
********************************/

.contLoad{
	width: 100%;
}

.works_cont{
	width: 98%;
	margin: auto;
}

.workDetailWrap{
	width: 98%;
	margin: auto;
	display: none;
}

.workDetail{
	background-color: #333;
	position: relative;
}

.workDetail .photo img{
	width: 100%;
	height: auto;
}

.workDetail .cont{
	min-width: 300px;
	color: #fff;
	font-size: 13px;
}

.workDetail .cont dl dd p{
	margin: 1.5em 0 0.5em;
	font-size: 16px;
	font-weight: bold;
}

.workDetail .cont dl dd ul{
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: #fff solid 1px;
}

.workDetail .cont dl dd ul li{
	padding: 10px 0;
	border-bottom: #fff solid 1px;
}

.workDetail .cont p.reference{
	font-size: 11px;
	margin-top: 10px;
}

.workDetail img.close{
	width: 24px;
	height: auto;
	position: absolute;
	cursor: pointer;
}

@media print,all and (min-width: 600px){

	.workDetail{
		padding: 25px;
		display: -webkit-flex;
		display: -ms-flex;
		display: flex;
		align-items: center;
	}

	.workDetail .photo{
		width: 50%;
		padding: 0 20px;
		text-align: right;
		box-sizing: border-box;
	}

	.workDetail .cont{
		width: 50%;
		display: -webkit-flex;
		display: -ms-flex;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.workDetail .cont dl{
		width: 80%;
	}

	.workDetail .cont dl dt{
		font-size: 24px;
		margin-bottom: 10px;
	}

	.workDetail img.close{
		top: 20px;
		right: 20px;
	}

}

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


	.workDetail{
		padding: 25px 15px 15px 15px;
	}

	.workDetail .cont dl dt{
		font-size: 18px;
		margin-bottom: 10px;
	}

	.workDetail .photo{
		padding: 0 30px;
		margin-bottom: 30px;
		text-align: center;
		box-sizing: border-box;
	}

	.workDetail img.close{
		top: 10px;
		right: 10px;
		cursor: pointer;
	}

}
