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

@media screen and (max-width: 764px) {
    #zoom {
        height: 85vh;
    }
}

@media screen and (max-width: 480px) {
    #zoom {
        height: 70vh;
    }

    #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;

    }
}



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


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

    #topul {
        width: 55%;
        white-space: nowrap;
        position: absolute;
        top: 50%;
        left: 35%;
        transform: translate(-50%, -50%);
        display: block;
    }

    #g-nav li {
        list-style: none;
        margin-left: 25px;
        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;
}

@media screen and (max-width:864px) {
    nav ul li#has-child::before {
        left: 15px;
        top: 25px;
    }
}

nav ul li li a {
    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;
    width: 155px;
    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;
}



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

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

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


    nav li#has-child ul a {
        width: 100px;
        margin-left: 45px;
    }

    /*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;
        margin-left: 35px;
    }
}

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




#container {
    width: 100%;
    text-align: right;
    position: absolute;
    top: 70%;
}

#container-wrapper {
    width: 700px;
    margin-left: auto;
    margin-right: 30px;
    padding: 20px 20px 20px 20px;
    color: white;
    background-color: rgba(188,
            188,
            188,
            0.7);
    text-align: center;
    clip-path: polygon(30px 0%,
            /* 左上 */
            100% 0%,
            /* 右上 */
            100% calc(100% - 30px),
            /* 右下（上寄り） */
            calc(100% - 30px) 100%,
            /* 右下 */
            0% 100%,
            /* 左下 */
            0% 30px
            /* 左上寄り */
        );
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#titlesub {
    font-size: 20px;
    margin-top: 20px;
    font-weight: bold;
}

.fv-fade {
    opacity: 0;
    transform: translateY(0px);
    transition: opacity 1s ease, transform 1s ease;
}

.fv-fade.show {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 904px) {
    #container {
        top: 66%;
    }

    #container-wrapper {
        width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    #walk,
    #tommorow {
        display: block;
    }

    #walk {
        text-align: center;
        margin-right: 0px;
        margin-bottom: 20px;
    }

    #tommorow {
        text-align: center;
    }

    h2 {
        font-size: 28px;
        margin-right: 0px;
    }

    #titlesub {
        text-align: center;
        margin-right: 0%;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    #container {
        top: 65%;
    }

    #container-wrapper {
        width: 270px;
    }

    h2 {
        font-size: 20px;
    }

    #titlesub {
        margin-top: 20px;
        font-size: 12px;
    }
}














/*取扱業務*/
#service {
    color: #fff;
    position: relative;
    background-color: #86b925;
    width: 270px;
    margin: 150px auto 130px auto;
    padding: 20px 0;
    text-align: center;
    font-size: 32px;

}

/* 外側の背景（擬似要素） */
#service::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    background-color: #5d7d1c;
    opacity: 0.9;
}


.serviceh4 {
    border-bottom: 1px solid #86b925;
    padding-bottom: 5px;
    border-width: 2px;
}

#toriastukaimatome {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
}


.toriastukai {
    width: 40%;
}


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

@media screen and (max-width:764px) {
    #service {
        width: 230px;
        margin: 130px auto 100px auto;
        padding: 17px 0;
        font-size: 28px;
    }

    #toriastukaimatome {
        display: block;
        width: 80%;
    }

    .toriastukai {
        width: 100%;
    }

    .button {
        padding: 15px 5px 15px 20px;
    }
}

.toriastukaip {
    line-height: 33px;
    margin-top: 30px;
}


.buttonwidth {
    margin-top: 40px;
    margin-bottom: 70px;
}

.button {
    padding: 15px 0px 15px 35px;
    color: white;
    background-color: #86b925;
    font-weight: bold;
    display: inline-block;
    position: relative;
    padding-right: 40px;
    width: 100px;
}

.button:hover {
    opacity: 0.6;
    cursor: pointer;
}

.button:after {
    position: absolute;
    content: "";
    top: calc(50% - 2px);
    right: 30px;
    width: 20px;
    height: 5px;
    border-right: 2px solid white;
    border-bottom: 1px solid white;
    transform: skew(45deg);
    transition: .3s;
}

.button:hover::after {
    right: 25px;
    width: 25px;
}

#pricetitle {
    margin-top: 100px;
}

@media screen and (max-width: 480px) {
    #service {
        font-size: 20px;
        width: 170px;
        margin: 100px auto 80px auto;
        padding: 18px 0;
    }

    #service::before {
        top: 7px;
        left: 7px;
        width: 100%;
        height: 100%;
    }

    .toriastukaip {
        line-height: 26px;
        margin-top: 30px;
    }

    .button {
        padding: 13px 0px 13px 27px;
        color: white;
        background-color: #86b925;
        font-weight: bold;
        display: inline-block;
        position: relative;
        padding-right: 40px;
        width: 90px;
        font-size: 14px;
    }

    .button:after {
        right: 20px;
    }

    .button:hover::after {
        right: 15px;
    }
}

/*取扱業務終了*/










#asumimatome {
    background-color: #86b925;
    color: white;
}


#asumititle {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    padding-top: 100px;
    font-size: 34px;
}

#asumisentence {
    width: 70%;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 80px;
    padding-bottom: 100px;
    line-height: 40px;
}

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

@media screen and (max-width:764px) {
    #asumisentence {
        width: 80%;
        margin-top: 40px;
        padding-bottom: 70px;
        line-height: 34px;
    }
}

@media screen and (max-width: 480px) {
    #asumititle {
        font-size: 22px;
        padding-top: 70px;
    }

    #asumisentence {
        line-height: 28px;
    }
}








/*経歴*/
#careermatome {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

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

#career {
    margin-top: 150px;
    color: #fff;
    position: relative;
    background-color: #86b925;
    width: 270px;
    padding: 20px 0;
    text-align: center;
    font-size: 32px;
}

/* 外側の背景（擬似要素） */
#career::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    background-color: #5d7d1c;
    opacity: 0.9;
    z-index: -1;
}

#careerdisplay {
    display: flex;
    justify-content: space-between;
}

#name {
    margin-top: 100px;
}

#careersentence {
    margin-right: 20%;
    margin-top: 30px;
}

.careersentence_li {
    list-style: none;
    margin-top: 20px;
}

#facephoto {
    max-width: 50%;
    height: auto;
}


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

    #career {
        margin-top: 100px;
        margin-left: auto;
        margin-right: auto;
        width: 230px;
        padding: 17px 0;
        font-size: 28px;
    }

    #careerdisplay {
        display: block;
    }

    #name {
        margin-top: 70px;
        margin-bottom: 50px;
        text-align: center;
    }

    #facephoto {
        max-width: 60%;
        margin-top: 50px;
        margin-left: auto;
        margin-right: auto;
    }

    #careersentence {
        margin-top: 30px;
        margin-right: 0%;
    }
}


@media screen and (max-width: 480px) {
    #career {
        font-size: 22px;
        width: 170px;
        padding: 18px 0;
    }

    #career::before {
        top: 7px;
        left: 7px;
    }

    #facephoto {
        max-width: 70%;
    }
}






/*お問い合わせ*/
#contact-wrapper {
    margin-top: 250px;
    position: relative;
}

#contacttitle {
    text-align: center;
    margin-bottom: 70px;
    font-size: 28px;
}

#contact-title-wrapper {
    display: flex;
    width: 70%;
    min-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

#contact-asumi-wrapper {
    width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 120px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px 30px 30px 30px;
    text-align: center;
}

#contact-asumi {
    color: #86b925;
    font-weight: bold;
    font-size: 28px;
    line-height: 1.2;
}

#contact-asumi span {
    display: block;
}

#buildingphoto {
    position: absolute;
    z-index: -1;
    width: 40%;
    max-width: 450px;
    height: auto;
}





#company_info {
    width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 70px 70px 70px 70px;
}

.list {
    display: flex;
    line-height: 26px;
}


dt {
    width: 30%;
    font-weight: bold;
    margin-bottom: 10px;
    white-space: nowrap;
}

dd {
    width: 70%;
    margin-bottom: 20px;
    color: black;
}

#Tel {
    color: black;
}


#contactsentence {
    line-height: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
}

@media screen and (max-width:764px) {
    #company_info {
        width: 65%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 50px;
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        padding: 60px;
    }

    #buildingphoto {
        right: 0;
        width: 60%;
        height: auto;
    }

    #contact-asumi-wrapper {
        width: 75%;
    }


    #contact-title-wrapper {
        width: 100%;
        min-width: 0px;
    }

    #contactsentence {
        text-align: left;
    }

    .list {
        display: block;
    }

    dt {
        padding-bottom: 0px;
        margin-bottom: 1px;
    }

    dd {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 480px) {
    #contact-wrapper {
        margin-top: 150px;
    }

    #contacttitle {
        font-size: 22px;
        margin-bottom: 55px;
    }

    #contact-asumi {
        font-size: 22px;
    }

    #contact-asumi-wrapper {
        margin-top: 70px;
    }

    #contact-asumi-txt {
        font-size: 12px;
        margin-top: 10px;
    }

    #company_info {
        width: 75%;
        padding: 70px 30px 70px 30px;
    }

    .list {
        line-height: 20px;
    }

    #contactsentence {
        line-height: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

/*問い合わせボタン*/
#contact-btn-width {
    margin-bottom: 20px;
    text-align: center;
}

#contact-button {
    width: 170px;
    display: inline-block;
    text-align: center;
    padding: 17px 20px 17px 20px;
    color: white;
    background-color: #86b925;
    font-weight: bold;
    font-size: 18px;
}

#contact-button:hover {
    opacity: 0.6;
    cursor: pointer;
}

@media screen and (max-width: 764px) {
    dd {
        margin-bottom: 20px;
    }

    #contact-btn-width {
        text-align: center;
    }

    #contact-button {
        width: 170px;
        display: inline-block;
        text-align: center;
        padding: 17px 20px 17px 20px;
        color: white;
        background-color: #86b925;
        font-weight: bold;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    #contact-button {
        width: 140px;
        font-size: 16px;
    }
}


/*問い合わせボタン終了*/









iframe {
    width: 100%;
    height: 500px;
    margin-top: 200px;
}

#contact-privacy {
    text-align: center;
    margin-top: 50px;
}

#contact-privacy a {
    color: black;
}

#contact-copy {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

#privacy-asumi {
    text-align: center;
    background-color: #86b925;
    font-size: 14px;
}

#privacy-asumi {
    padding-top: 10px;
    padding-bottom: 10px;
    color: #fff;
    line-height: 1.2;
}

#privacy-asumi span {
    display: block;
}


@media screen and (max-width: 480px) {
    iframe {
        height: 300px;
        margin-top: 100px;
    }
}



/* 共通フェードアニメーション（初期状態） */
.fade-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 表示時に付くクラス */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}