@charset "utf-8";

.header {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    transition: background .4s ease;
}

.header.active {
    background-color: #FFF;
}

.header .inner {
    width: min(90%, 1728px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.header .h_logo {
    max-width: 70px;
    width: 4%;
    position: relative;
    z-index: 10;
}

.header .child-menu {
    opacity: 0;
    border-radius: 10px;
    visibility: hidden;
    width: max-content;
    background-color: #FFF;
    padding: 65px 117px 73px 70px;
    position: absolute;
    left: -100%;
    top: calc(100% + 36px);
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.header .child-menu .menu-item {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: clamp(0.875rem, 0.784rem + 0.39vw, 1.25rem);
    color: #000;
    padding-bottom: 13px;
    border-bottom: 0.5px solid #939393;
}

.header .has-child.is-open .menu-trigger {
    opacity: 50%;
}

.header .has-child.is-open .child-menu {
    opacity: 1;
    visibility: visible;
}

.header .has-child.is-open .child-menu a {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 154px;
}

.header .has-child.is-open .child-menu a .arrow {
    transition: var(--default);
}

.header .has-child.is-open .child-menu a:hover .arrow {
    transform: translateX(6px);
}

.h_menu {
    display: flex;
    align-items: center;
    gap: 90px;

}

.h_menu .menu-item {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: clamp(1rem, 0.939rem + 0.26vw, 1.25rem);
    color: #000;
}


.h_menu .has-child {
    position: relative;
}

.h_menu .menu-item.has-child:hover {
    cursor: pointer;
    opacity: 1;
}

.h_menu .menu-trigger {
    display: flex;
    align-items: center;
    gap: 1%;
    transition: var(--default);
}

.h_menu .menu-trigger:hover {
    opacity: 50%;
}

.h_contact a {
    border-radius: 3px;
    background: linear-gradient(to right, #438a9c 0%, #53b1c2 26.66%, #66cce3 100%);
    display: block;
    padding: 18px 39px;
    max-width: 198px;
    width: 100%;

}

.h_contact a p {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: clamp(0.875rem, 0.784rem + 0.39vw, 1.25rem);
    text-align: center;
    color: #fff;
}


.hamburger-menu,
.hamburger,
.h_menu-sp {
    display: none;
}


@media (max-width: 1200px) {
    .h_menu {
        gap: 50px;
    }
}

@media (max-width: 1023px) {
    .h_menu {
        gap: 20px;
    }

    .header .inner {
        width: 95%;
    }

    .header .h_logo {
        width: 6%;
    }


}

@media (max-width: 767px) {
    .header .inner {
        gap: 20px;
    }

    .hamburger {
        display: block;
        position: relative;
        width: 35px;
        height: 35px;
        z-index: 10;
    }

    .hamburger p {
        font-family: var(--font-main);
        font-weight: 500;
        font-size: 12px;
        text-align: center;
        color: #05a6bc;
        top: -10px;
        position: relative;
    }

    .hamburger .line {
        position: absolute;
        left: 50%;
        top: 47%;
        width: 7.69vw;
        height: 2px;
        background-color: #0CA5BC;
        transform: translate(-50%, -50%);
        transition: 0.3s ease;
    }

    /* 上 */
    .hamburger .line:nth-child(2) {
        transform: translate(-50%, -1px);
    }

    /* 中 */
    .hamburger .line:nth-child(3) {
        transform: translate(-50%, 8px);
    }

    /* 下 */
    .hamburger .line:nth-child(4) {
        transform: translate(-50%, 17px);
    }

    .h_menu .menu-item {
        display: none;
    }

    .h_menu {
        margin-left: auto;
    }

    .h_menu-sp {
        display: block;
    }








    /* active状態 */
    .hamburger.active .line:nth-child(2) {
        transform: translate(-50%, 0) rotate(45deg);
    }

    .hamburger.active .line:nth-child(3) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(4) {
        transform: translate(-50%, 0) rotate(-45deg);
    }

    .hamburger-menu {
        display: block;
        transform: translateX(100%);
        position: absolute;
        right: 0;
        top: 0;
        width: 45%;
        height: 100svh;
        transition: transform .4s ease;
        background-color: #FFF;
        overflow-y: auto;
    }

    .hamburger-menu.open {
        transform: translateX(0);
    }

    .hamburger-menu .menu-inner {
        width: 90%;
        margin: 0 auto;
        padding: calc(var(--header-height) + 30px) 0 80px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .hamburger-menu .menu-inner .menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        font-family: var(--font-main);
        font-weight: 500;
        font-size: 16px;
        color: #000;
        padding-bottom: 30px;
        border-bottom: 1px solid #e6e6e6;
    }

    .hamburger-menu .menu-inner .menu-item .arrow {
        width: 11px;
        height: auto;
    }

    .header .h_menu-sp .has-child {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 30px;
        border-bottom: 1px solid #e6e6e6;
    }

    .header .h_menu-sp .has-child .menu-item {
        padding-bottom: 0;
        border: none;
    }

    .header .h_menu-sp .child-menu {
        opacity: 1;
        border-radius: 0;
        visibility: visible;
        background-color: #FFF;
        padding: 0;
        position: relative;
        inset: 0;
        gap: 15px;
        width: 100%;
    }

    .header .child-menu .menu-item {
        padding-bottom: 0;
        border: none;
        font-weight: 400;
        font-size: 14px;
    }


}

@media (max-width: 767px) {
    .header .h_logo {
        width: 9%;
    }

    .header .inner {
        padding: 9px 20px;
        width: 100%;
    }

    .hamburger-menu {
        width: 100%;
    }

    .h_contact a {
        padding: 8px 18px;
    }
}

.gjs-dashed .header .has-child .child-menu {
    opacity: 1;
    visibility: visible;
}

.gjs-dashed .hamburger-menu {
    top: 100px;
    height: 70vh;
    transform: translateX(0);
}

.gjs-dashed .hamburger-menu {
    overflow-y: auto;
}