.header_lead_in {
    width: 1200px;

    margin-left: auto;
    margin-right: auto;
    position: relative;
    line-height: 20px;
}

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header_container {
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    font-size: 16px;
}

#gnav_logo {
    display: flex;
    width: 100%;
    margin-bottom: 20px;

}

#gnav {
    display: flex;
    gap: 20px;
    align-items: center;

}

#gnav li {
    list-style: none;
    display: block;
}


#gnav a {
    color: #333;
    text-decoration: none;
    /*font-size: 15px;*/
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

#gnav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066cc;
    transition: width 0.3s;
}

#gnav a:hover {
    color: #0066cc;
}

#gnav a:hover::after {
    width: 100%;

}

.gnav_container_left {
    display: flex;
    justify-content: flex-start;
    width: 55%;
}

.gnav_container_right {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    width: 45%;
}

.gnav_dropdown_wrapper {
    /*コンテンツ量でwidthの大きさを調整すること*/
    width: 80%;
    display: flex;
    justify-content: space-between;

}

.gnav_dropdown_wrapper>li {
    display: flex;
    justify-content: space-between;
    margin-right: 20px;
}

.gnav_dropdown {
    position: relative;
}

.gnav_dropdown_content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 270px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 10px;
    padding: 10px 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.gnav_dropdown:hover .gnav_dropdown_content {
    display: block;
    animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.gnav_dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 20px;
}

.gnav_dropdown_content a {
    display: block;
    padding: 12px 20px;
    color: #333;
    /*font-size: 14px;*/
    text-align: left;
}

.gnav_dropdown_content a::after {
    display: none;
}

.gnav_dropdown_content a:hover {
    background: #f5f5f5;
}

.gnav_cta_button {
    background: #0066cc;
    color: #fff !important;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.3s;
    text-align: center;

}

.gnav_cta_button span{
    width: 100px;
    display: flex;
}

.gnav_cta_button::after {
    display: none;
}

.gnav_cta_button:hover {
    background: #0052a3;
    color: #fff !important;
}

.gnav_search_container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0px;
}

.gnav_search_input {
    width: 200px;
    padding: 12px 12px;
    border: 1px solid #ddd;
    font-size: 1.0em;
    transition: border-color 0.3s;
    box-sizing: border-box;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    height: 100%;
    width: 100%;

}

.gnav_search_input:focus {
    outline: none;
    border-color: #0066cc;
}

.gnav_search_icon {
    cursor: pointer;
    padding: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background-color 0.3s;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #0066cc;
    pointer-events: all;
    box-sizing: border-box;
    height: 100%;
}

.gnav_search_icon img{

    /*width: 24px;
    height: 24px;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(201deg) brightness(101%) contrast(102%);*/

}


.gnav_search_icon:hover {
    background: #0052a3;
}

.gnav_search_icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    box-sizing: border-box;
}

.gnav_hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.gnav_hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/*@media (max-width: 768px) {*/
@media (max-width: 1024px) {
    .header_container {
        padding: 20px;
        display: flex;
        border-top: #ff9900 2px solid;
    }

    #gnav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 20px 40px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    #gnav_logo {
        margin: auto;
    }

    .gnav_container_left,
    .gnav_container_right {
        width: 100%;
        margin-bottom: 20px;
        display: block;
    }
    .gnav_container_left a,
    .gnav_container_right a {
        padding: 15px 0;
    }
    .gnav_dropdown_wrapper {
        width: 100%;
        display: block;
    }
    #gnav.active {
        display: flex;
    }

    #gnav a {
        border-bottom: 1px solid #eee;
    }

    .gnav_dropdown {
        width: 100%;
    }

    .gnav_dropdown>a {
        text-align: left;
        width: 100%;
        display: block;
    }

    .gnav_search_container {
        width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;

    }

    .gnav_dropdown_content {
        position: static;
        box-shadow: none;
        margin-top: 0;
        padding-left: 20px;
        display: block;
        opacity: 1;
    }


    .gnav_hamburger {
        display: flex;
    }

    a.gnav_cta_button {
        width: 100%;
        text-align: center;
        padding: 0;
        display: block;
        padding: 20px;
        box-sizing: border-box;
    }

    .gnav_cta_button span{
        display: inline;
    }

}