header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;

    width: 100%;
    height: 80px;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    transition: all .2s;
}

header .logo img {
    position: relative;
    padding-top: 20px;
    height: 50px;
    width: auto;
}

header .logo img:last-child {
    display: none;
}

header.down .logo img:first-child {
    display: none;
}
header.down .logo img:last-child {
    display: block;
}

header.down {
    color: #434343;
}

nav {
    font-size: 15px;
    padding-right: 100px;
}

nav ul {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

nav li {
    position: relative;
    height: 100%;
}

nav li > a {
    width: max-content;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0.75;

    font-weight: 400;
    font-family: 'Open Sans';
}

nav li > a span {
    position: relative;
}

header nav li:hover > a {
    opacity: 1;
}

header.down nav li:hover > a{
    color: black;
}

main {
    position: relative;
}

footer {
    width: 100%;
    height: 115px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #1c1c1c;
    color: #777;
    font-size: 12px;
}



.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;

    width: 240px;
    padding: 10px;

    display: flex;
    flex-direction: column;
    visibility: hidden;

    background-color: #fff;
    color: #999;
    box-shadow: 1px 1px 10px rgba(0,0,0,.2);
}

.lan:hover .dropdown-content {
    visibility: visible;
}

.dropdown-content a {
    padding: 6px;
}

.dropdown-content a.on,
.dropdown-content a:hover {
    background-color: #a8a8a8;
    color: #fff;
}





header .menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    color: white;
    background-color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    margin-right: 10vh;
}

/* 막대 스타일 */
header .menu-line {
    display: none;
    width: 20px;
    height: 2px;
    background-color: #828282;
    border-radius: 2px;
    margin: 3px 0;
}



.x-button {
    margin: 10px 10px;
    position: relative;
    width: 40px;
    height: 40px;
    background: #e6e6e6;
    color: #555555;
    border: none;
    cursor: pointer;
    outline: none;
    border-radius: 5px; /* 버튼을 살짝 둥글게 */
}

/* X 모양의 선 스타일 */
.x-button::before,
.x-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #616161;
    border-radius: 2px;
}

/* 첫 번째 대각선 */
.x-button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* 두 번째 대각선 */
.x-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}



.menu {
    font-family: 'Open Sans';
    transition: all .2s;
    display: none;
    position: fixed;
    top:0;
    right: -100%;
    z-index: 99999;

    max-width: 300px;
    width: 80%;
    height: 100vh;
    display: none;

    overflow: hidden;
    background: #e6e6e6;
    color: #555555;

    font-size: 24px;
    font-weight: 700;
    transition: all .2s;
}

.menu-cont {
    display: flex;
    transition: all .2s;
}

.menu.on {
    font-family: 'Open Sans';
    list-style: none; 
    transition: all .2s;
    display: block;
    right:0;
    color: #555555;

}

.menu.on li {
    color: #555555;
}

.menu.on .dropdown-content {
    position: relative;
    left: 0;
    width: 80%;

    flex-direction: column;

    background-color: #fff;
    color: #999;
}

.menu.detail .menu-cont {
    transform: translateX(-100%);
}

.menu-cont > div {
    
    color: #555555;

    transition: all .2s;
    font-family: 'Open Sans';
    position: relative;

    width: 100%;
    height: 100%;
    padding: 40px 33px;

    display: flex;
    flex-direction: column;
    flex: none;
}






@media (max-width: 1000px) {
    header {
        height: 60px;
        padding: 0 5%;

        background: #fff;
    }

    header .logo img:first-child {
        display: none;
    }

    header .logo img:last-child {
        display: block;
    }

    nav {
        display: none;
    }

    header .menu-button {
        display: block;
    }

    
    header .menu-line {
        display: block;
    }
}