@charset "utf-8";
/* CSS Document */

/*================================
	works
=================================*/

.header-text{margin: 0 10%;}
h1{
	margin: 0;
	padding-top: 5%;
}

@media screen and (min-width: 768px){
	body{
		background:url("../images/bg_top.webp") left top no-repeat,
				   url("../images/bg_bottom.webp") right bottom no-repeat;
		background-attachment: fixed;
		background-size: 60%;
	}
	h1{
		padding-top: 10%;
	}
}
/*================================
	works ギャラリー
=================================*/
#works_container{
	background: none;
}

#website{
	padding: 5% 10%;
	opacity: 0;
	transition: 2s;
}
#design{
padding: 0 10% 5%;
opacity: 0;
transition: 2s;
}

.items ul{
	width:100%;
}
.items ul li{
	margin-bottom: 5%;
	color:#FFF;
	line-height:2rem;
	list-style: none;
}

.title{
	text-align: right;
	margin-top: 5px;
}
.title a{
	text-decoration: none;
	border-style: none;
	font-size: 2rem;
}
.title i{
	font-size: 1.5rem;
}
.items ul li{
color: #000;
}

.items ul li .images{
	width: 100%;
	position: relative;
	box-shadow:0 0 8px #fff, 0 0 8px #ccc, 0 0 2px #888;
	cursor: pointer;
	overflow: hidden;
}
.items ul li .images img{
	vertical-align:bottom;
	width: 100%;
	height: auto;
	overflow: hidden;
	opacity: .8;
}

.items ul li .images img:hover{
	opacity: 1;
	transition: .5s
}

#works_container .cap{
	position: absolute;
	display:none;
	width:100%;
	height:100%;
	padding:20px;
	background: rgba(255,255,255,.9);
	top:0;
	left:0;
	box-sizing:border-box;
	overflow: hidden;
	z-index: 9;
}

table,th,td{
	border:1px solid #444;
	padding: 0.2rem;
}
table{
	width: 90%;
	margin: 0 auto;
}
table caption{
	font-size: 1.5rem;
	padding: 0.1rem;
}
th{
	text-align: center;
	width: 30%;
}

td{
	width: 70%;
}

@media screen and (min-width: 768px){
	table,th,td{
		border:1px solid #444;
		padding: 0.2rem;
	}
	table{
		width: 80%;
		margin: 0 auto;
	}
	table caption{
		font-size: 2rem;
		padding: 0.5rem;
	}
	th{text-align: center;}
}


#works_container .active{
	display: block;
	z-index: 1;
}

/* むしめがねアイコン */
#works_container .button{
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 99;
}
.fa-magnifying-glass-plus{
	display: block;
	font-size: 3rem;
	line-height: 4rem;
	color: #222;
}
.fa-magnifying-glass-minus{
	display: none;
	font-size: 3rem;
	line-height: 4rem;
	color: #666;
}


@media screen and (min-width: 1080px){
	#works_container .button{
		bottom: 20px;
		right: 20px;
	}
	.items ul{
		display: flex;
		flex-wrap: wrap;
	}
	.items li{
		width: 46%;
		margin: 2%;
	}
}

/*================================
	gnav
=================================*/
/*アイコン設定*/
.menu-icon{
	position: fixed;
	width: 90px;
	height: 90px;
	right: 5px;
	top: 5px;
	margin-top: 15px;
	margin-left: auto;
	margin-right: 5px;
	z-index: 99999;
	background: rgba(0,0,0,0);
}
.menu-icon:hover{
	cursor: pointer;
}

.menu-icon span{
	display: block;
	width: 60px;
	height: 8px;
	background: #666;
	position: absolute;
	left: 5px;
	transition: all 0.5s ease;
	border-radius: 8px;
	opacity: .7;
}

/* 三本線の調整(クリック前) */
.bar1 {top: 20px;}
.bar2 {top: 40px;}
.bar3 {bottom: 20px;}

/* 三本線の調整(クリック後) */
.bar1.open {
	top: 35px;
	transform: rotate(45deg);
}
.bar2.open { opacity: 0; }
.bar3.open {
	top: 35px;
	transform: rotate(-45deg);
}

@media screen and (min-width: 768px){
	.menu-icon{
		right: 20px;
		top: 20px;
	}
}

/*================================
	gnav 本体
=================================*/
#gnav{
	position: fixed;
	top: 0;
	right: 0;
	z-index: 9999;
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(137deg, rgba(255,255,255,1) 0%, rgba(255,204,204,1) 35%, rgba(255,255,204,1) 100%);
}
#gnav li{
	list-style: none;
	width: 100%;
	height: auto;
	padding: .5rem 1rem;
	margin-bottom: 3rem;
	text-align: center;
	box-sizing: border-box;
}
#gnav li a{
	position: relative;
	display: flex;
	text-decoration: none;
	color: #fff;
}

/* hoverアニメーション*/
#gnav li a::after{
	position:absolute;
	bottom:-10px;
	left:50%; 			/* ←この値『 0 』を『 50% 』にする。左右半分の位置から右へ出す */
	content:'';
	width:0;
	height:2px;
	background: linear-gradient(to right, transparent, #222 20%, #222 80%, transparent);
	transition:.3s;
/*	-webkit-transform: translateX(-50%);*/
	transform: translateX(-50%); 		/* これを入れる！ */
}

#gnav li a:hover::after{
	width:100%;
}



#gnav li a p{
	font-size: 2.5rem;
	margin-left: 1.5rem;
	transition: .2s;
}
#gnav li a p:hover{
	color: #222;
	
}
#gnav li a i{
	font-size: 3.5rem;
	transition: .2s;
}

/*================================
	gnav アニメーション
=================================*/
/* アニメーション前のメニューの状態 */
#gnav{
	transform: translateX(100vw);
	transition: all .3s linear;
}
/* アニメーション後のメニューの状態 */
#gnav.is-active{
	transform: translateX(0);
}