@charset "utf-8";

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0 auto;
    /* font-family: 'Noto Sans JP', sans-serif; */
    font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;;
    letter-spacing: 0.15em;
}

header {
    position: relative;
}

header h1 {
    margin: 0 5%
}

/* ここからハンバーガーメニュー */

.openbtn {
    display: none;
}

.nav_link {
    list-style: none;
    display: flex;
    position: absolute;
    top: 5%;
    right: 5%;
    z-index: 100;
}

.nav_link li {
    width: 170px;
    text-align: center;
}

.nav_link li a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    padding-bottom: 5px;
}

.nav_link li a:hover {
    color: #479a84;
    border-bottom: 1px solid #479a84;
}


/* ここまでハンバーガーメニュー */


.header_img {
    width: 100vw;
    height: calc(100vh - 105px);
    background-image: url(../img/top_header_img01.jpg);
    /* いらなければ消す */
    /* background-attachment: fixed; */
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

header h2 {
    font-size: 40px;
    color: #fff;
    position: absolute;
    left: 5%;
    top: 30%;

}

.title{
    animation-name:fadeLeftAnime;
    animation-duration:2s;
    animation-fill-mode:forwards;
    opacity:0;
    }
    
    @keyframes fadeLeftAnime{
      from {
        opacity: 0;
      transform: translateX(-100px);
      }
    
      to {
        opacity: 1;
      transform: translateX(0);
      }
    }

.logo {
    width: 100px;
    margin-left: 2%;
}

.phone_logo {
    width: 20px;
    margin-left: 20px;
}

/* ↓は余白をあけるためのデザイン上のもの。作成時は別々で指定。 */


/* ここまで */

.footer_head {
    width: 100%;
    height: 100vh;
    position: relative;
}

.footer_head h2 {
    font-size: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    color: #fff;
    text-shadow: 0 0 15px #666;
    text-align: center;
}

.footer_head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;
    background: url(../img/footer_night.png) no-repeat center;
    background-attachment: fixed;
    background-size: cover;
}

.footer_contents {
    position: relative;
    z-index: 10;
    margin: 10px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer_contents ul {
    display: flex;
    list-style-type: none;
    align-items: center;
}

.footer_contents ul li {
    width: 150px;
    padding-right: 5px;
    border-right: 1px solid #000;
}

.footer_contents ul li a {
    display: block;
    color: #000;
    text-decoration: none;
    font-size: 20px;
    text-align: center;
}

.footer_contents ul li a:hover {
    color: #479a84;
}

footer .copyright {
    text-align: center;
    margin: 20px 0;
}

.footer_contents {
    position: relative;
    z-index: 10;
}

/* .footer_contents,.copyright {
    background-color: #f5f5f5;
} */


@media screen and (max-width: 959px) {

    header {
        position: relative;
    }

    .openbtn {
        display: block;
        position: absolute;
        top: 30px;
        right: 40px;
        z-index: 100;
        cursor: pointer;
        width: 50px;
        height: 50px;
    }
    
    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background-color: #666;
        width: 45%;
    }
    
    .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: 30%;
    }
    
    .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: 30%;
    }
    
    #g-nav.panelactive #g-nav-list {
        position: fixed;
        z-index: 50;
        width: 100%;
        height: 60%;
        overflow: auto;
    }
    
    #g-nav ul {
        position: absolute;
        z-index: 50;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }
    
    nav ul {
        display: flex;
        flex-flow: column;
        align-items: center;
        list-style: none;
        text-align: center;
    }

    .nav_link li {
        display: block;
        width: 200px;
    }
    
    nav ul li a {
        display: block;
        text-decoration: none;
        color: #000;
        margin-top: 30px;
        padding: 10px;
        font-size: 18px;
        border-bottom: 1px solid #fff;
    }
    
    #g-nav {
        position: fixed;
        z-index: 50;
        top: -120%;
        left: 0;
        width: 100vw;
        height: 60%;
        background: rgba(143, 196, 226,.8);
        transition: all 0 .6s;
    }
    
    #g-nav.panelactive {
        top: 0;
    }

    /* ここまでハンバーガーメニュー */
    
    .nav_link {
        position: absolute;
        top: 8%;
    }

    .header_img {
        width: 100vw;
        height: 500px;
        background-image: url(../img/top_header_img01.jpg);
        /* いらなければ消す */
        /* background-attachment: fixed; */
        background-repeat: no-repeat;
        background-size: cover;
        position: relative;
    }

    header h2 {
        font-size: 20px;
        color: #fff;
        position: absolute;
        left: 5%;
        top: 25%;
    }

    .footer_head {
        position: relative;
        height: 50vh;
    }


    .footer_head::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 50vh;
        background: url(../img/footer_night.png) no-repeat center;
        background-attachment: fixed;
        background-size: cover;
    }

    .footer_head h2 {
        margin: 0 auto;
    }

    .footer_contents {
        width: 80%;
        height: 200px;
        margin: 0 auto;
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        align-items: center;
    }

    .footer_contents ul {
        /* width: 80%; */
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .footer_contents ul li {
        border-right: none;
    }

    .footer_contents ul li a {
        font-size: 16px;
        padding: 10px;
    }

    .copyright small {
        display: block;
        margin-top: 30px;
    }

}

@media screen and (max-width: 480px) {

    header h1 {
        margin: 0;
    }

    .openbtn {
        border: 2px solid #666;
    }

    .openbtn span {
        background-color: #000;
    }

    header h1 {
        background-color: rgba(256, 256, 256, 0.6);
    }

    header #g-nav  {
        opacity: 0.8;
    }

    header #g-nav ul {
        margin-top: 30px;
    }

    header #g-nav li a {
        color: #000;
        font-weight: bold;
    }

    #g-nav.panelactive {
        background-color: rgba(143, 196, 226,.8);
    }

    header {
        background-image: url(../img/phone_header01-1.jpg);
        background-repeat: no-repeat;
        background-position: right;
        background-size: cover;
        
    }

    .header_img {
        background-image: none;
    }


    .title {
        font-size: 16px;
        margin-top: 50px;
    }


}

