p,
.generalul li,
h4 {
    line-height: 30px;
}

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

    .generalp,
    .generalul li,
    h4 {
        line-height: 22px;
    }
}


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

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

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

    #zoom {
        height: 300px;
    }
}

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

    #zoom {
        height: 230px;
    }

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

nav {
    width: 100%;
    padding-top: 20px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.4);
}

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

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

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

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

.topli a {
    color: black;
}

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



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

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

    #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;
        z-index: 9999;
        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: 200px;
    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: 7px;
    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;
}



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

@media screen and (max-width:864px) {
    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;
    }
}

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










#scroll-indicator {
    position: absolute;
    margin-left: 140px;
    top: 155px;
    bottom: 0px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.arrow {
    color: #333;
    width: 1em;
    height: 1em;
    border: 0.1em solid currentColor;
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: translateY(-25%) rotate(135deg);
    margin: 0 auto 0;
    animation: fadeInBounce 2s infinite;
}

#scroll-indicator-second {
    position: absolute;
    margin-left: 430px;
    top: 155px;
    bottom: 0px;
    text-align: center;
    font-size: 14px;
}



@keyframes fadeInBounce {
    0% {
        opacity: 0.5;
        transform: translateY(-25%) rotate(135deg);
    }

    50% {
        opacity: 1;
        transform: translateY(5px) rotate(135deg);
    }

    100% {
        opacity: 0.5;
        transform: translateY(-25%) rotate(135deg);
    }
}

@media screen and (max-width: 864px) {
    #scroll-indicator {
        top: 120px;
        margin-left: 95px;
    }

    #scroll-indicator-second {
        top: 120px;
        margin-left: 315px;
    }
}

@media screen and (max-width: 480px) {
    #scroll-indicator {
        top: 115px;
        margin-left: 39px;
        font-size: 12px;
    }

    #scroll-indicator-second {
        top: 115px;
        margin-left: 169px;
        font-size: 12px;
    }
}



#servicesub {
    display: flex;
    top: 240px;
    position: absolute;
}

.serviceh3 {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    /*display:flexで中央配置*/
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #86b925;
    line-height: 35px;
    color: white;
    margin-left: 70px;
}

@media screen and (max-width: 864px) {
    #servicesub {
        top: 220px;
    }

    .serviceh3 {
        margin-left: 50px;
        width: 170px;
        height: 170px;
        font-size: 18px;
    }
}


@media screen and (max-width: 480px) {
    #servicesub {
        top: 180px;
    }

    .serviceh3 {
        width: 50px;
        height: 50px;
        line-height: 20px;
        padding: 30px;
        font-size: 12px;
        margin-left: 20px;
    }
}







#main {
    width: 70%;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 765px) {
    #main {
        width: clamp(680px, 70vw, 1160px);
    }
}

#bordergeneral,
#borderpublic {
    margin: 100px auto 30px auto;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    padding: 15px;
    font-weight: bold;
    font-size: 24px;
}

#bordergeneral {
    margin-top: 250px;
}

@media screen and (max-width: 864px) {
    #bordergeneral {
        margin-top: 180px;
    }
}

@media screen and (max-width: 764px) {
    #main {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

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

    #bordergeneral {
        font-size: 18px;
        margin-top: 150px;
    }

    #borderpublic,
    #borderwill {
        margin: 100px auto 20px auto;
        padding: 10px;
        font-size: 18px;
        line-height: 1.2;
    }
}


.generaldisplay {
    padding-left: 10%;
}

@media screen and (max-width: 764px) {
    .generaldisplay {
        padding-left: 0%;
    }
}

.generalp {
    margin-bottom: 30px;
    font-weight: bold;
}

#generalkyoka,
#generalhouzin,
#generalkeiyaku,
#generalbusiness,
#generalkozin {
    padding: 15px;
    color: white;
    background-color: #86b925;
    text-align: center;
}

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

    #generalkyoka,
    #generalhouzin,
    #generalkeiyaku,
    #generalbusiness,
    #generalkozin {
        text-align: left;
    }
}

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

    #generalkyoka,
    #generalhouzin,
    #generalkeiyaku,
    #generalbusiness,
    #generalkozin {
        padding: 10px;
        font-size: 14px;
    }
}

#generalkyoka {
    max-width: 380px;
}

#generalhouzin {
    max-width: 450px;
}

#generalkeiyaku {
    max-width: 520px;
}

#generalbusiness {
    max-width: 330px;
}

#generalkozin {
    max-width: 320px;
}

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

    #generalkyoka {
        max-width: 200px;
    }

    #generalhouzin {
        max-width: 240px;
    }

    #generalkeiyaku {
        max-width: 275px;
    }

    #generalbusiness {
        max-width: 165px;
    }

    #generalkozin {
        max-width: 165px;
    }
}

.generalul {
    margin-top: 20px;
    margin-bottom: 50px;
    margin-left: 100px;
}


@media screen and (max-width: 764px) {
    .generalul {
        margin-left: 0px;
    }
}

.generalul li {
    margin-top: 20px;
}

@media screen and (max-width: 480px) {
    .generalul li {
        margin-top: 10px;
    }
}