/*
Theme Name: yfc
Version: 1.0
Description: Y.FCのテーマです
*/

@charset "UTF-8";
img, object, embed, video {
	max-width: 100%;
}
/* IE 6 では最大幅がサポートされていないため、デフォルトで幅 100% に設定される */
.ie6 img {
	width:100%;
}


body{
    margin: 0;
}
p, .link, th, td{
	font-family: "ヒラギノ角ゴ ProN W3","HiraKakuProN-W3","ヒラギノ角ゴ Pro W3","HiraKakuPro-W3","メイリオ",Meiryo,"ＭＳ Ｐゴシック","MS Pgothic","Osaka",sans-serif,Helvetica, Helvetica Neue, Arial, Verdana;
	line-height: 1.8;
}

.font{
	font-family: "priori-sans", sans-serif;
	font-weight: 400;
	font-style: normal;
}

.inner{
	width: 1000px;
	margin: 0 auto;
}

.only__sp{
	display: none;
}
.only__pc{
	display: block;
}

@media only screen and (max-width: 768px) {
	.inner{
		width: 90%;
	}
	.only__sp{
		display: block;
	}
	.only__pc{
		display: none;
	}
}


/*  header  */

header{
	height: 60px;
	position: fixed;
	width: 100%;
	z-index: 8;
	transition: .5s;
}
header.active{
	background: #fff;
}
header .inner{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 8px;
	position: relative;
}
.head__logo{
	width: 200px;
}
nav{

}
li{
    list-style: none;
}
nav ul{
	display: flex;
	font-size: 18px;
}
nav ul li{
	margin-left: 20px;
}
nav ul li a{
	color: #000;
}
nav ul li a:link, nav ul li a:visited{
	color: #000;
}
nav ul li a:hover{
	opacity: 0.8;
}

.hamburger{
	position: absolute;
	top: 4px;
	right: 10px;
	width: 40px;
	height: 40px;
	z-index: 10;
}
.openbtn{
	position: relative;
	cursor: pointer;
    width: 40px;
    height:40px;
}
.openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background: #000;
	width: 100%;
}
.openbtn span:nth-of-type(1) {
	top:15px;	
}

.openbtn span:nth-of-type(2) {
	top:23px;
}

.openbtn span:nth-of-type(3) {
	top:31px;
}
.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 40px;
}

.openbtn.active span:nth-of-type(2) {
	opacity: 0;/*真ん中の線は透過*/
}

.openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 40px;
}

@media only screen and (max-width: 768px){
	header nav{
		width: calc(100% + 20%);
		background: #fff;
		position: absolute;
		left: -10%;
		top: 0;
		z-index: 8;
		opacity: 0;
		visibility: hidden;
		transition: .5s;
	}
	header nav.active{
		opacity: 1;
		visibility: visible;
	}
	header nav ul{
		padding-top: 50px;
		padding-bottom: 30px;
		display: block;
		width: 90%;
		margin: 0 auto;
	}
	header nav ul li{
		font-size: 24px;
		width: 100%;
		text-align: center;
		padding: 16px 0;
		margin: 0;
		border-bottom: 1px dashed #D6D6D6;
	}
}



/*  mv  */

.mv{
	position: relative;
	overflow: hidden;
	width: 100vw;
	height: 100vh;
}
.mv video{
	position: fixed;
	top: 0;
	left: 50%;
	width: 100%;
	height: 100%;
	transform: translate(-50%, 0);
	z-index: -2;
	object-fit: cover;
	opacity: 0.7;
}
.mv__logo{
	width: 500px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: -2;
}
.mv__logo img{
	width: 300px;
	margin: 0 auto 20px auto;
	display: block;
}
.mv__logo p{
	text-align: center;
	font-weight: bold;
	font-size: 18px;
}

@media only screen and (max-width: 768px){
	.mv__logo{
		width: 200px;
	}
}

/*  about  */

.top__about{
	background: rgba(256, 256, 256, 0.85);
	padding: 80px 0;
}
h2{
	font-size: 40px;
	text-align: center;
	margin-bottom: 60px;
	position: relative;
}
h2::after{
	content: "";
	position: absolute;
	width: 100px;
	height: 6px;
	background: #FBC82D;
	left: 50%;
	bottom: -6px;
	transform: translateX(-50%);
}
.top__about p{
	text-align: center;
}

@media only screen and (max-width: 768px){
	.top__about{
		padding: 40px 0;
	}
}

/*  works  */

.top__works{
	background: rgba(250, 250, 250, 0.85);
	padding: 80px 0;
}
.top__works__list{
	width: 100%;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 0 auto;
}
.top__works__list__con{
	width: 31%;
	margin-bottom: 60px;
}
.top__works__list__con img{
	display: block;
	margin: 0 auto 20px auto;
    width: 60%;
}
.top__works__list__con p{
	text-align: center;
}
.link{
	display: block;
	text-align: center;
	width: 220px;
	border: 1px solid #000;
	font-size: 18px;
	padding: 8px 0;
	position: relative;
	margin: 0 auto;
    text-decoration: none;
    color: #000;
}
.link:link, .link:active, .link:visited{
    color: #000;
}
.link::after{
	content: "";
	position: absolute;
	width: 6px;
	height: 12px;
	top: 0;
	bottom: 0;
	right: 10px;
	margin: auto 0;
	background: url(img/arrow.svg);
	background-size: 6px 12px;
}

@media only screen and (max-width: 768px){
	.top__works{
		padding: 40px 0;
	}
	.top__works__list__con{
		width: 100%;
	}
    .top__works__list__con img{
        width: 50%;
    }
}


/*  company  */

.top__company{
	padding: 60px 0;
	background: rgba(256, 256, 256, 0.85);
}
.top__company p{
	text-align: center;
	margin-bottom: 60px;
}
.map{
	width: 100%;
	height: 600px;
	margin-top: 60px;
}
.map iframe{
	width: 100%;
	height: 600px;
}


@media only screen and (max-width: 768px){
	.top__company{
		padding: 40px 0;
	}
	.map, .map iframe{
		height: 300px;
	}
}


/*  recruit  */

.top__recruit{
	padding: 60px 0;
	background: rgba(256, 256, 256, 0.85);
}
.top__recruit p{
	text-align: center;
	margin-bottom: 60px;
}

@media only screen and (max-width: 768px){
	.top__recruit{
		padding: 40px 0;
	}
}


/*  footer  */

footer{
	background: #000;
	padding: 50px 0 20px 0;
}
footer .inner{
	display: flex;
	align-items: center;
	width: 500px;
	margin-bottom: 60px;
}
footer img{
	width: 80px;
}
footer nav ul{
	display: flex;
	margin-left: 40px;
}
footer nav ul li{
	margin-left: 30px;
}
footer nav ul li a{
	color: #fff;
}
footer nav ul li a:link, footer nav ul li a:visited{
	color: #fff;
}
.copy{
	text-align: center;
	color: #A2A2A2;
	font-size: 14px;
}

@media only screen and (max-width: 768px){
	footer .inner{
		display: block;
		width: 90%;
	}
	footer nav ul{
		display: block;
		margin: 0;
        padding: 0;
	}
	footer img{
		width: 120px;
		display: block;
		margin: 0 auto 30px;
	}
	footer nav ul li{
		text-align: center;
		margin: 0 0 20px 0;
		font-size: 24px;
	}
}


/*  works  */

.works{
	padding-top: 150px;
}
.works__box{
	width: 80%;
	margin: 0 auto;
}
.works__con{
	display: flex;
	align-items: center;
	margin-bottom: 60px;
	padding-bottom: 60px;
	justify-content: space-between;
	border-bottom: 1px solid #D8D8D8;
    flex-wrap: wrap;
}
.works__con:last-of-type{
	border-bottom: none;
}
.works__con img{
	width: 26%;
}
.works__con:nth-of-type(2n) .works__text{
	order: 1;
}
.works__con:nth-of-type(2n) img{
	order: 2;
}
.works__con:nth-of-type(2n) .works__accordion{
	order: 3;
}
.works__text{
	width: 70%;
}
.works__title{
	color: #D58313;
	font-weight: bold;
	border-bottom: 1px solid #D58313;
	margin-bottom: 10px;
	font-size: 20px;
}
.works__text{

}


.works__accordion{
    width: 100%;
}
.works__link{
	display: block;
	text-align: center;
	width: 220px;
	border: 1px solid #000;
	font-size: 18px;
	padding: 8px 0;
	position: relative;
	margin: 30px auto 0;
    cursor: pointer;
}
.works__link::after{
	content: "";
	position: absolute;
	width: 12px;
	height: 6px;
	top: 0;
	bottom: 0;
	right: 6px;
	margin: auto 0;
	background: url(img/arrow_bottom.svg) no-repeat;
	background-size: 12px 6px;
    transition: .5s;
}
.works__link.active::after{
	background: url(img/arrow_top.svg) no-repeat;
}

.works__con .works__accordion img{
    display: block;
    opacity: 0;
    visibility: hidden;
    width: 80%;
    margin: 20px auto 0 auto;
    height: 0;
    transition: .5s;
}
.works__con .works__accordion img.show{
    opacity: 1;
    visibility: visible;
    height: auto;
}

@media only screen and (max-width: 768px){
	.works{
		padding-top: 100px;
	}
	.works__box{
		width: 100%;
	}
	.works__con{
		display: block;
	}
	.works__con:last-of-type{
		margin-bottom: 0;
	}
	.works__con img{
		display: block;
		width: 150px;
		margin: 0 auto 30px auto;
	}
	.works__text{
		width: 100%;
	}
	.works__title{
		text-align: center;
		margin-bottom: 20px;
	}
	.works__text{
		text-align: center;
	}
}


/*  company  */

.company{
	padding-top: 150px;
}
.company table{
	width: 550px;
	margin: 0 auto 100px auto;
}
.company table th{
	width: 150px;
	padding: 16px 0;
	border-bottom: 1px solid #E0E0E0;
}
.company table td{
	width: auto;
	padding: 16px 0;
	border-bottom: 1px solid #E0E0E0;
}

@media only screen and (max-width: 768px){
	.company{
		padding-top: 100px;
		margin-bottom: 60px;
	}
	.company table{
		width: 100%;
		margin-bottom: 60px;
	}
	.company table th{
		display: block;
		text-align: center;
		width: 100%;
		padding-bottom: 10px;
	}
	.company table td{
		display: block;
		text-align: center;
		width: 100%;
		margin-bottom: 40px;
		border-bottom: none;
	}
}

/*  recruit  */

.recruit{
	padding-top: 150px;
}
.recruit__text{
    text-align: center;
    margin-bottom: 40px;
}

input[type="radio"]{
    appearance: auto;
    width: auto;
    margin-bottom: 2px;
}
select{
    width: 80px;
    text-align: center;
    border: 1px solid #ccc;
    appearance: auto;
    border-radius: 20px;
    padding: 4px 0;
    margin-right: 4px;
    margin-bottom: 12px;
    margin-top: 6px;
    font-size: 14px;
}
.wpcf7-list-item{
    margin: 0 10px 0 0 !important;
}
input#age{
    width: 50px;
}
.wpcf7-list-item label{
    margin-bottom: 0;
}

@media only screen and (max-width: 768px){
	.recruit{
		padding-top: 100px;
	}
}

/*  contact  */

.contact{
	padding-top: 150px;
}
.contact__text{
	text-align: center;
}
.form{
	width: 400px;
	margin: 50px auto;
}
input{
	border: 1px solid #E0E0E0;
	border-radius: 4px;
	width: 100%;
    padding: 6px 10px;
    box-sizing: border-box;
}
textarea{
	border: 1px solid #E0E0E0;
	border-radius: 4px;
	width: 100%;
    box-sizing: border-box;
}
label{
	display: block;
	margin-bottom: 20px;
}
input[type="submit"]{
	display: block;
	width: 100px;
	margin: 0 auto;
	text-align: center;
	background: #FBC82D;
	border: none;
	color: #fff;
}

@media only screen and (max-width: 768px){
	.contact{
		padding-top: 100px;
	}
	.form{
		width: 100%;
	}
}