﻿header {
    position: fixed;
    width: 100%;
    height: 80px;
    z-index: 300;
    background-color: white;
}

.main_logo {
    display: block;
    width: 110px;
    height: 27px;
    z-index: 80;
    background-image: url("../image/logo_main.png");
    background-repeat: no-repeat;
    background-size: contain;
}

header .container {
    position: sticky;
    z-index: 80;
    max-width: inherit;
    height: 100%;
    padding: 0 calc((100vw  - 1500px)/2);

    justify-content: space-between;
    align-items: center;
}

header .container nav:nth-child(3){
    z-index: 500;
    height: 100%;
}

@media screen and (max-width: 1500px) {
    header .container {
        padding: 0 0 0 30px;
    }
}

@media screen and (max-width: 860px) {
    header {
        height: 60px;
    }
    
}

@media screen and (max-width: 640px) {
    header .container {
        padding: 0 0 0 10px;
    }

    .main_logo {
        scale: calc(0.8);
    }
}

#main_menu {
    z-index: 100;
    overflow: hidden;
    width: 80%;
    height: 100%;
    margin: auto 50px;
}

#main_menu ul {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

#main_menu ul li{
    display: inline-flex;
    width: calc(100%/6);
    height: 100%;
    justify-content: center;
    align-items: center;
}

#main_menu ul li a{
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

#main_menu ul li a span{
    display: inline-block;
    height: 18px;
    cursor: pointer;

    color: black;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

#main_menu ul li a:hover {
    cursor: pointer;
    opacity: 0.6;
    text-decoration: none;
}

#main_menu ul li a:hover span::after {
    display: block;
    position: fixed;
    width: 60px;
    text-align: center;
    content: "•";
    color: #008CD6;
    font-size: 24px;
    line-height: 20px;
}

#main_top_sns {
    height: 100%;
    align-items: center;
    gap: 20px;
}

#main_top_sns img{
    height: 16px;
    margin-top: 3px;
}

#main_top_sns li a{
    color: black;
    text-decoration: none;
}

#main_top_sns li:first-child a{
    font-size: 16px;
    display: inline-flex;
    gap:10px;
}

#lang {
    position: relative;
    display: inline-flex;
    flex-direction: column;
}

#lang > ul {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top:10px;

    position: absolute;
    top: 20px;
    
    background-color: rgba(255, 255, 255, 0.4);

    opacity: 0;
}

#lang.active > ul {
    opacity: 1;
    transition: 0.5s;
}

#lang.active > ul > li {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 7px 10px;
}

#lang.active > ul > li:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 1200px) {
}

@media screen and (max-width: 1086px) {
    #main_menu {
        display: none;
    }
}

@media screen and (max-width: 640px) {
    header a.main_logo {
        width: 120px;
        height: 36px;
        margin-left: 10px;
    }

    #main_top_sns {
        gap: 5px;
    }
}
/*
.hamburger {
    background-color: transparent;
    border-radius: 10px;
    outline: none;
}

.hamburger:hover {
    background-color: rgba(0,0,0,0.4);
} 

.hamburger:focus {
    background-color: rgba(0,0,0,0.2);
} 

.hamburger2 {
    padding: 0;
    color: white;
    background-color: transparent;
    outline: none;
}

.hamburger2:hover {
    --background-color: rgba(0,0,0,0.4);
} 

.hamburger2:focus {
    --background-color: rgba(0,0,0,0.2);
} 
*/

/* hamburger */
.hamWrapper{
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 20px;
    gap: 10px;

    cursor: pointer;

    word-break: keep-all;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;

    background-color: var(--sub-blue);
}

.ham {
    width: 30px;
    height: 30px;
}

header.act {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.1);

    transition: 0.3s;
}

header.act a.main_logo {
    background-image: url("../image/logo_main.png");
}

header.act .container,
header.act #main_menu ul li a span,
header.act #main_top_sns li a {
    color: black;
}
header.act .ham .line {
    stroke: white;
}

@media screen and (max-width:640px) {
    .hamWrapper span {
        display: none;
    }
}

@media screen and (max-width: 1500px) {
    header.act {
    }
}

/* Dropdown Header - Mouse Over Action */
#dropdown-header {
    position: fixed;
    z-index: 50;
    width: 100%;
    height: 300px;
    top: 80;
    left: 0;

    border-top: 1px solid #D6D6D6;
    background-color: white;
    box-shadow: 0 3px 20px rgba(0,0,0,0.1);

    animation: fadeIn 0.3s;
}

#dropdown-header .container {
    padding: 50px 110px;
    align-items: flex-start;
    justify-content: flex-start;
}

#dropdown-header ul {
    display: inline-flex;
    flex-direction: column;
    flex-wrap: wrap;

    width: 50%;
    height: 100%;
    padding-left: 50px;
    gap: 30px 70px;

    line-height: 18px;

    animation: fadeIn 0.3s;
}

#dropdown-header ul li a {
    font-size: 20px;
    color: #00123E;
}

/* Dropdown Menu - initially hidden */
.dropdown-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    z-index: 99;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: #00123e;
    justify-content: space-between;
}

.dropdown-menu.active {
    display: inline-flex;
    -webkit-animation: fadeIn 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: fadeIn 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.dropdown-menu.hidden {
    display: none;
    -webkit-animation: fadeOut 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: fadeOut 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.dropdown-menu > ul {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1500px;
    width: 100%;

    margin: auto;
}

.dropdown-menu > ul > li {
    width: 25%;
    padding: 10px 25px;
    margin-top: 50px;

    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    font-weight: 600;
    font-size: 33px;
    color:white;

    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-menu > ul > li:nth-child(2),
.dropdown-menu > ul > li:nth-child(6) {
    width: 28%;
}

.dropdown-menu > ul > li:first-child,
.dropdown-menu > ul > li:nth-child(5) {
    width: 16%;
}

.dropdown-menu > ul > li:first-child img {
    width: 100%;
}

.dropdown-menu > ul > li > a {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    color:white;
}

.dropdown-menu > ul > li > a:hover,
.dropdown-menu > ul > li > a:focus,
.dropdown-menu > ul > li > a:active {
    text-decoration: none;
}

.dropdown-menu > ul > li > ul {
    display: inline-flex;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: left;
    height: 100%;

    margin-top: 20px;
    column-gap: 50px;
}

.dropdown-menu > ul > li > ul > li > a {
    display: inline-flex;
    flex-direction: row;
    width: 100%;

    font-size: 18px;
    font-weight: 300;
    line-height: 32px;
    color: #aaafc3;
}

.dropdown-menu > ul > li > ul > li > a:hover,
.dropdown-menu > ul > li > ul > li > a:active {
    text-decoration: underline;
}

.dropdown-menu .dropdown_full_close {
    position: fixed;
    opacity: 0.7;
    top: 30px;
    right: calc((100% - 1500px)/2 + 10px);
    cursor: pointer;
}

.dropdown-menu .dropdown_full_close:hover {
    opacity: 0.4;
}

@media screen and (max-width: 1500px) {

    .dropdown-menu.active {
        overflow-y: scroll;
    }

    .dropdown-menu > ul {
        padding: 50px;
    }

    .dropdown-menu > ul > li {
    }

    .dropdown-menu > ul > li > ul {
        max-height: max-content !important;
        flex-wrap: nowrap;
    }

    .dropdown-menu > ul > li > a:first-child {
        width: max-content;
        margin-right: 50px;
    }

    .dropdown-menu > ul > li > a ,
    .dropdown-menu > ul > li > ul > li > a {
        word-break: keep-all;
    }

    .dropdown-menu .dropdown_full_close {
        right: 50px;
    }

}

@media screen and (max-width: 860px) {

    .dropdown-menu > ul {
        flex-direction: column;
        width: 100%;
        margin-top: 50px;
        padding: 30px;
    }

    .dropdown-menu > ul > li {
        width: 100% !important;
        padding: 30px 0;
        gap: 20px;
        flex-direction: column;
        margin-top: 0;

        font-size: 20px;

        border: transparent;
    }

    .dropdown-menu > ul > li:first-child {
        display: none;
    }

    .dropdown-menu > ul > li:nth-child(5) {
        display: none;
    }

    .dropdown-menu > ul > li > a {
        align-items: flex-start;
        font-size: 2rem;
    }

    .dropdown-menu > ul > li > ul {
        width: 100%;
    }

    .dropdown-menu > ul > li > ul > li {
        padding: 10px 0;
    }

    .dropdown-menu > ul > li > ul > li > a {
        font-size: 20px;
        width: max-content;
    }

    .dropdown-menu .dropdown_full_close {
        right: 40px;
    }
    




    #bg_dropdown {
        width: 80%;
    }

    .dropdown-menu > ul > li > ul {
        margin-top: 0;
        display: none;
    }
    
    .dropdown-menu li a::after {
        content: "▼";
        font-size: 12px;
        margin-left: 5px;

        position: absolute;
        right: 10px;
    }
    
    .dropdown-menu li.active > a::after {
        content: "▲";
    }
    
    .dropdown-menu li ul li a::after {
        content: "";
    }
    
    .dropdown-menu li {
        position: relative;
    }
    
    .dropdown-menu li.active ul {
        display: block;
    }
    
    .dropdown-menu ul ul {
        padding-left: 20px;
    }

}

@media screen and (max-width: 640px) {
    .dropdown-menu > ul {
        width: 100%;
        margin-top: 50px;
        padding: 30px;
    }

    .dropdown-menu > ul > li {
        margin-top: 0;
        padding: 20px 0;

        font-size: 20px;

        border: transparent;
    }

    .dropdown-menu > ul > li > ul > li > a {
        font-size: 16px;
        width: max-content;
    }

    .dropdown-menu .dropdown_full_close {
        right: 30px;
    }
}

#top_menu_header {
    display: inline-flex;
    max-width: 1500px;
    width: 100%;
    height: 90px;
    justify-content: space-between;

    margin: 0 auto;
}

#top_menu_header a{
    display: flex;
    align-items: center;
}

#top_menu_header a img{
    width: 160px;
    margin: 0 auto;
}

#top_menu_header a:hover,
#top_menu_header a:focus,
#top_menu_header a:active{
    --background-color: #13348A;
}

#bg_dropdown {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: -1;
}