#zoom {
    width: 100%;
    height: 350px;
    background: url(../images/servicetop.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
}

h1 {
    width: 100%;
    text-align: center;
    position: absolute;
    top: 200px;
}

@media screen and (max-width: 967px) {
    h1 {
        top: 150px;
    }

    #zoom {
        height: 270px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        top: 120px;
    }

    #zoom {
        height: 220px;
    }

    #logo {
        width: 140px;
        height: 50px
    }
}

nav {
    width: 100%;
    padding-top: 20px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1)
}



#topul {
    display: flex;
    justify-content: flex-end;
}

.topli {
    color: black;
    display: flex;
    margin-right: 5%;
}

@media screen and (max-width: 967px) {

    .topli,
    #has-child {
        margin-bottom: 50px;
    }
}

.topli a {
    color: black;
}

.topli a:hover {
    color: #86b925;
}



/*レスポンシブハンバーガーメニュー*/
@media screen and (max-width: 967px) {
    #g-nav {
        position: fixed;
        opacity: 0;
        height: 100vh;
        margin-left: 55%;
        background: #86b925;
        transition: all 0.3s;
        z-index: -1;
    }

    #g-nav.panelactive {
        opacity: 1;
        z-index: 1;
    }

    #topul {
        width: 30%;
        display: block;
        left: 25%;
        position: absolute;
        top: 55%;
        transform: translate(-50%, -50%);
    }

    #g-nav li {
        list-style: none;
        font-size: 18px;
    }

    #g-nav li a:hover {
        color: white;
    }

    #g-nav li a {
        letter-spacing: 0.1em;
    }

    /*ナビゲーションボタン*/
    .openbtn {
        position: fixed;
        z-index: 9999;
        top: 20px;
        right: 10px;
        cursor: pointer;
        width: 60px;
        height: 60px;
    }

    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 1.5px;
        border-radius: 2px;
        background-color: black;
        width: 45%;
    }

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

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

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

    .openbtn.active span:nth-of-type(1) {
        top: 12px;
        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: 24px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }
}

@media screen and (max-width: 480px) {
    #g-nav {
        width: 40%;
        margin-left: 60%;
    }

    #topul {
        top: 50%;
        left: 35%;
    }

    .openbtn {
        top: 12px;
    }

    #g-nav li {
        font-size: 14px;
    }

    nav ul li li a {
        padding: 10px 35px;
        font-size: 14px;
    }
}




/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li {
    position: relative;
}


/*ナビゲーションのリンク設定*/
nav ul li a {
    display: block;
    transition: all .3s;
    color: black;
}


nav ul li li a {
    width: 160px;
    padding: 10px 35px;
    font-size: 14px;
}

@media screen and (max-width: 480px) {
    nav ul li li a {
        font-size: 12px;
    }
}

nav ul li a:hover {
    color: #86b925;
}

#has-child {
    margin-right: 7%;
    color: white;
}

/*2階層目を持つliの矢印の設定*/
nav ul li#has-child::before {
    content: '';
    position: absolute;
    left: 75px;
    top: 5px;
    width: 6px;
    height: 6px;
    border-top: 2px solid black;
    border-right: 2px solid black;
    transform: rotate(135deg);
}


#has-child:hover:before {
    border-top: solid 2px #86b925;
    border-right: solid 2px #86b925;
}



/* 2層目の設定 */
/*下の階層を持っているulの指定*/
nav li#has-child ul {
    position: absolute;
    left: -35px;
    top: 35px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0px 3px 8px -2px #777;
    visibility: hidden;
    opacity: 0;
    transition: all .3s;
    font-size: 12px;
}

/*hoverしたら表示*/
nav li#has-child:hover>ul,
nav li#has-child ul li:hover>ul,
nav li#has-child:active>ul,
nav li#has-child ul li:active>ul {
    visibility: visible;
    opacity: 1;
}

/*ナビゲーションaタグの形状*/
nav li#has-child ul li a {
    border-bottom: solid 1px rgba(147, 147, 147, 0.3);
}



nav li#has-child ul li:last-child>a {
    border-bottom: none;
}

nav li#has-child ul li a:hover,
nav li#has-child ul li a:active {
    color: #86b925;
}



/*==767px以下の形状*/

@media screen and (max-width:967px) {
    nav ul li li a {
        width: 100%;
        padding: 10px 0px;
    }

    nav ul li a:hover {
        color: white;
    }

    nav li#has-child ul {
        left: -15%;
        position: relative;
        top: 0;
        visibility: visible;
        /*JSで制御するため一旦表示*/
        opacity: 1;
        /*JSで制御するため一旦表示*/
        display: none;
        /*JSのslidetoggleで表示させるため非表示に*/
        transition: none;
        /*JSで制御するためCSSのアニメーションを切る*/
        background-color: transparent;
        box-shadow: none;
    }



    /*2階層目を持つliの矢印の設定*/
    #has-child:hover:before {
        border-top: solid 2px white;
        border-right: solid 2px white;
    }


    /*ナビゲーションaタグの形状*/
    nav li#has-child ul li a {
        border-bottom: solid 1px black;
    }

    nav li#has-child ul li a:hover,
    nav li#has-child ul li a:active {
        color: white;
    }

    /*矢印の位置と向き*/
    nav ul li#has-child::before {
        left: -20px;
    }

    nav ul li#has-child.active::before {
        transform: rotate(-45deg);
    }
}

@media screen and (max-width: 480px) {
    nav li#has-child ul a {
        width: 90px;
    }
}

/*ここまでレスポンシブハンバーガーメニュー*/







/*プライバシポリシー*/
#matome {
    width: 70%;
    max-width: 1160px;
    margin: 0px auto 0px auto;
}

#first {
    margin-bottom: 30px;
}

#first-sentence {
    margin-bottom: 100px;
}

.second-sentence {
    margin: 20px 0 60px 0;
}

@media screen and (max-width: 764px) {
    #matome {
        width: 80%;
    }
}

@media screen and (max-width: 480px) {
    #first-sentence {
        margin-bottom: 80px;
    }

    .second-sentence {
        margin: 10px 0 30px 0;
    }
}