@charset "utf-8";

/* ローディング */
#splash {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: #E0DBD0;
	z-index: 9999999;
	text-align:center;
}

#splash-logo{
    position: absolute;
    top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
    font-weight: 500;
}

#splash-logo img{
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
}

.produce{
    margin-top: 10px;
}

/*-- 文字が左から右へ --*/
.slide-in {
	overflow: hidden;
    display: inline-block;
}

.slide-in_inner {
	display: inline-block;
}

/*左右のアニメーション*/
.leftAnime{
    opacity: 0;
}

.slideAnimeLeftRight {
	animation-name: slideTextX100;
	animation-duration: 1.5s;
	animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes slideTextX100 {
  from {
	transform: translateX(-100%);
        opacity: 0;
  }

  to {
	transform: translateX(0);
    opacity: 1;
  }
}

.slideAnimeRightLeft {
	animation-name: slideTextX-100;
	animation-duration: 1.5s;
	animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes slideTextX-100 {
  from {
	transform: translateX(100%);
    opacity: 0;
  }

  to {
	transform: translateX(0);
    opacity: 1;
  }
}

/* 画面遷移アニメーション */
.splashbg1,
.splashbg2{
	display: none;
}

body.appear .splashbg1,
body.appear .splashbg2{
	display: block;
}

body.appear .splashbg1{
	animation-name:PageAnime;
	animation-duration: 1s;
	animation-timing-function:ease-in-out;
	animation-fill-mode:forwards;
    content: "";
    position:fixed;
	z-index: 999;
    width: 100%;
    height: 100vh;
    top: 0;
	left:50%;
    transform: scaleX(1);
    background-color: #EFDCE7;
}

@keyframes PageAnime{
	0% {
		transform-origin:left;
		transform:scaleX(1);
	}
	50% {
		transform-origin:right;
	}
	100% {
		transform-origin:right;
		transform:scaleX(0);
	}
}

/* 左に消えるエリア */
body.appear .splashbg2{
	animation-name:PageAnime2;
	animation-duration: 1s;
	animation-timing-function:ease-in-out;
	animation-fill-mode:forwards;
    content: "";
    position:fixed;
	z-index: 999;
    width: 100%;
    height: 100vh;
    top: 0;
	right:50%;
    transform: scaleX(1);
    background-color: #EFDCE7;
}

@keyframes PageAnime2{
	0% {
		transform-origin:right;
		transform:scaleX(1);
	}

	50% {
		transform-origin:left;
	}
	100% {
		transform-origin:left;
		transform:scaleX(0);
	}
}

/* 画面遷移の後現れるコンテンツ設定 */
#container{
	opacity: 0;
}

/* bodyにappearクラスがついたら出現 */
body.appear #container{
	animation-name:PageAnimeAppear;
	animation-duration: 0.8s;
	animation-delay: 0.2s;
	animation-fill-mode:forwards;
	opacity: 0;
}

@keyframes PageAnimeAppear{
	0% {
	opacity: 0;
	}
	100% {
	opacity: 1;
}
}
/* 画面遷移後 */
#wrapper{
	opacity: 0;
}

body.appear #wrapper{
	animation-name:PageAnimeAppear;
	animation-duration: 0.8s;
	animation-delay: 0.6s;
	animation-fill-mode:forwards;
	opacity: 0;
}

@keyframes PageAnimeAppear{
	0% {
	opacity: 0;
	}
	100% {
	opacity: 1;
	}
}

/* スマホ・グローバルナビ */
#g-nav{
    position:fixed;
    z-index: 999;
	top: 0;
    right: -120%;
	width: 100%;
    height: 100%;
	transition: all 0.6s;
    background-color: #E0DBD0;
    overflow: auto;
}

#g-nav.panelactive{
    right: 0;
}

/*ナビゲーション*/
#g-nav.panelactive ul li{
	animation-name: gnaviAnime;
	animation-duration: 1s;
	animation-delay: 0.2s;
	animation-fill-mode: forwards;
	opacity: 0;
}

@keyframes gnaviAnime{
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

/*リストのレイアウト*/
.g-nav_wrap{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate( -50%, -50%);
}

#g-nav ul{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    width: 200px;
    margin: 0 auto 80px;
}

#g-nav li a{
    display: block;
    margin: 0 auto;
    color: #161616;
}

#g-nav li a:hover{
    opacity: 0.7;
}

.g-nav_contact{
    text-align: center;
    width: 100%;
    min-width: 320px;
    margin: 40px auto 0;
}

.g-nav_contact .contact-box{ 
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
}

.g-nav_contact .btn a{
    margin: 0 auto;
}

@media screen and (max-width: 550px) {
    #g-nav li a {
        max-width: 150px;
    }
    
    .g-nav_contact .contact-title{
        margin-top: -45px;
    }
}

/* ボタンの変化*/
.openbtn{
    display: none;
}

@media screen and (max-width: 820px) {
    .openbtn{
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        cursor: pointer;
        width: 50px;
        height: 50px;
        background-color: #161616;
        border: 1px solid #fff;
        border-radius: 50%;
        z-index: 9999;
    }

    /*ボタン内側*/
    .openbtn span{
        display: inline-block;
        transition: all .4s;
        position: absolute;
        right: 0;
        width: 60%;
        height: 1px;
        border-radius: 1px;
        background-color: #fff;
        left: 50%;
        transform: translateX(-50%);
      }

    .openbtn span:nth-of-type(1) {
        top: 15px;
    }

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

    .openbtn span:nth-of-type(3) {
        top: 31px;
    }

    /*activeクラスが付与されると線が回転して×になる*/
    .openbtn.active{
        background-color: #161616;
        border: 1px solid #fff;
    }

    .openbtn.active span:nth-of-type(1) {
        top: 18px;
        left: 10px;
        transform: translateY(6px) rotate(-135deg);
    }

    .openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }

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

/*---スクロールアニメーション---*/
.fadeInUpTrigger,
.fadeInDownTrigger,
.rotateInTrigger,
.rotateInUpLeftTrigger{
	opacity: 0;
}

/* br */
.br-sp,
.br-sp450{
    display: none;
}

@media screen and (max-width: 550px) {
    .br-sp{
        display: block;
    }
}

@media screen and (max-width: 450px) {
    .br-sp450{
        display: block;
    }
}
