@charset "utf-8";


/*========= メニューボタン用 ===============*/

.openbtn { display: none; }

#header nav ul li a i { display: none; }

@media (max-width: 1024px) {
    #header .openbtn {
        position: fixed;
        z-index: 9999;
        top: 3px;
        right: 13px;
        cursor: pointer;
        width: 50px;
        height: 50px;
        display: block;
    }
    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background-color: #fff;
        width: 60%;
    }
    .openbtn span:nth-of-type(1) {
        top:13px; 
    }
    .openbtn span:nth-of-type(2) {
        top:23px;
    }
    .openbtn span:nth-of-type(3) {
        top:33px;
    }

    /* ×に変化 */ 
    .active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 60%;
        background-color: #fff;
    }
    .active span:nth-of-type(2) {
        opacity: 0;
    }
    .active span:nth-of-type(3){
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 60%;
        background-color: #fff;
    }
}

@media (max-width: 450px) {
    #container #header nav ul li a i {
        font-size: 19px;
    }
    body #container #header #header-nav li a,
    body #container #header nav ul #header-contact {
        padding: 20px 0;
        font-size: 15px;
    }
}

/*========= スマホメニュー用 ===============*/

#header #header-nav #sub-nav {
    display: none;
}

@media (max-width: 1024px) {
    #container #header,
    #container #header #header-innner {
        height: 55px;
    }
    #header-nav{
        /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
        position:fixed;
        z-index: 999;
        /*ナビのスタート位置と形状*/
        top:0;
        right: -120%;
        width:100%;
        height: 100vh;/*ナビの高さ*/
        background:#0071bc;
        /*動き*/
        transition: all 0.6s;
        opacity: 0.95;
    }

    /*アクティブクラスがついたら位置を0に*/
    #header-nav.panelactive{
        right: 0;
    }
     
    /*ナビゲーション*/
    #header #header-nav #main-nav {
        position: absolute;
        z-index: 999;
        top: 47%;
        left: 50%;
        transform: translate(-50%,-47%);
        display: block;
        margin-right: 0;
        width: 75%;
    }
    #header #header-nav #sub-nav {
        display: flex;
        position: absolute;
        bottom: 10%;
        left: 50%;
        transform: translate(-50%,-10%);
        margin-right: 0;
        width: 75%;
        justify-content: left;
    }
    #container #header #header-nav #sub-nav li a {
        font-size: 14px;
        color: #fff;
        padding: 0 30px 0 0;
        font-weight: 500;
    }
    
    /*リストのレイアウト設定*/
    #container #header #header-nav #main-nav li a {
        padding: 25px 0;
        font-size: 16px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #fff;
        position: relative;
        color: #fff;
    }
    #container #header #header-nav #main-nav li a i {
        display: block;
        color: #fff;
        position: absolute;
        right: 5px;
        font-size: 22px;
    }
}

@media (max-width: 450px) {
    #header #header-nav #main-nav {
        top: 40%;
        transform: translate(-50%,-40%);
    }
    #container #header #header-nav #main-nav li a {
        padding: 15px 0;
        font-size: 15px;
    }
    #header #header-nav #sub-nav {
        bottom: 17%;
        transform: translate(-50%,-17%);
        line-height: 2.2em;
        display: block;
    }

}



/*========= タイトルテキスト用  上下のアニメーション ===============*/

section h1 {
  overflow: hidden;
}
.slide-in {
  overflow: hidden;
    display: inline-block;
}
.slide-in_inner {
  display: inline-block;
}

.downAnime{
    opacity: 0;/* 事前に透過 0 にして消しておく*/
}
.slideAnimeDownUp {
    animation-name:slideTextY100;
    animation-duration:0.8s;
    animation-fill-mode:forwards;
    opacity: 0;
}

@keyframes slideTextY100 {
    from {
        transform: translateY(100%);/* 要素を上の枠外に移動*/
        opacity: 0;
    }
    to {
        transform: translateY(0);/* 要素を元の位置に移動*/
        opacity: 1;
    }
}
.slideAnimeUpDown {
    animation-name: slideTextY-100;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes slideTextY-100 {
    from {
        transform: translateY(-100%);/* 要素を下の枠外に移動*/
        opacity: 0;
    }
    to {
        transform: translateY(0);/* 要素を元の位置に移動*/
        opacity: 1;
    }
}


/*========= イラスト用  下から現れるアニメーション ===============*/

.fadeUp {
    animation-name: fadeUpAnime;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function:ease-in-out;  
    opacity: 0;
  }
    
@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*========= ふわっと現れるアニメーション ===============*/

.fadeIn {
    animation-name: fadeInAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    opacity: 0;
}
  
@keyframes fadeInAnime {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/*========= 時間差設定 ===============*/

.delay-time01 {
    animation-delay: .2s;
}
.delay-time02 {
    animation-delay: .3s;
}
.delay-time03 {
    animation-delay: .4s;
}
.delay-time04 {
    animation-delay: .5s;
}
.delay-time05 {
    animation-delay: .6s;
}
.delay-time06 {
    animation-delay: .7s;
}


