header {
    background-color: #E0DDD5;
}

.header-wrapper {
    display: flex;
    padding-top: 41px;
    padding-bottom: 41px;
    gap: 20px;
}

header .left {
    margin-right: auto;
    display: flex;
    align-items: center;
}

.header-link {
    text-decoration: none;
    color: #2F2F2F;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
}

.pipe {
    position: relative;
    padding-left: 25px;
    padding-right: 25px;
    height: 100%;
}

.pipe::before {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(50% + 1px);
    transform: translate(-50%, -50%);
    border-left: 2px solid #2F2F2F;
    height: calc(100% - 8px);
}

header .right {
    display: flex;
    gap: 20px;
    position: relative;
}

header .right:has(.user-button .name) {
    gap: 50px;
}

header .user-button {
    text-decoration: none;
    font-weight: 400;
    font-size: 18px;
    color: #535250;

    display: flex;
    align-items: center;
    gap: 10px;
}

header .user-button::before {
    content: '';
    background-image: url(../icon/user_icon.svg);
    background-size: cover;
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 20px;
}

.menu-button {
    background-color: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
}


.menu-button[aria-expanded="true"]::before {
    background-image: url(../icon/cross_icon.svg);
    background-size: 24px 24px;
}

.menu-button::before {
    content: '';
    background-image: url(../icon/menu_icon.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 24px;
}

.user-wapper {
    display: flex;
    position: relative;
}

.user-menu {
    display: none;
    position: absolute;
    width: max-content;
    background-color: #FFFFFF;
    margin: 0;
    padding: 20px;
    top: calc(100% + 21px);
    right: -20px;

    z-index: 10;
}


.user-menu .name {
    display: none;
}

.menu {

    display: flex;
    flex-direction: column;
    /* display: none; */
    min-width: 188px;

    position: absolute;
    background-color: #FFFFFF;
    margin: 0;
    padding: 40px;
    top: calc(100% + 41px);
    right: -40px;

    z-index: 15;
}

.menu>li.last-item {
    order: 10;
    border-top: 1px solid #B3CED8;
    border-bottom: none;
    margin-bottom: 0px;
    padding-top: 20px;
}

.user-menu>li,
.menu>li {
    /* display: flex;
    flex-direction: row;
    flex-wrap: wrap; */
    align-items: center;
    list-style: none;
    margin-bottom: 20px;
    border-bottom: 1px solid #B3CED8;
    text-wrap-mode: nowrap;
}

.user-menu>li:last-child,
.menu>li:last-child {
    border-bottom: none;
    margin-bottom: 0px;
}

.menu>li a:has(+ .submenu-button) {
    /* level 1 */
    width: calc(90% - 20px);
}

.menu>li a {
    display: inline-block;
    font-family: 'Roboto';
    text-decoration: none;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    color: #222222;
    padding: 10px;
}

.menu>li .submenu-button[aria-expanded="true"] {
    background-image: url(../icon/arrow_down.svg);
}

.menu>li .submenu-button {
    max-width: calc(10% - 10px);
    vertical-align: baseline;
    cursor: pointer;
    display: inline-block;
    transform: translateY(2px) rotate(180deg);
    width: 12.5px;
    height: 6.2px;
    padding: 5px;
    margin-left: auto;
    background-image: url(../icon/arrow_up.svg);
    background-size: 17.5px 9.2px;
    background-position: center;
    background-repeat: no-repeat;
}

.submenu {
    padding-left: 30px;
    display: none;
}

.submenu>li {
    list-style: disc;
}

.user-menu>li a,
.submenu>li a {
    padding: 10px 10px 10px 0;
    font-family: 'Roboto';
    text-decoration: none;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2;
}


.user-menu>li a {
    padding: 0;
    color: #222222;
}

@media only screen and (max-width:1440px) {
    .header-link {
        font-size: 16px;
    }

    .pipe {
        padding-left: 20px;
        padding-right: 20px;
    }

    header .right,
    header .right:has(.user-button .name) {
        gap: 20px;
    }

    header .user-button {
        font-size: 15px;
    }

    .user-button .name {
        max-width: 120px;
    }

}

@media only screen and (max-width:1024px) {
    .header-wrapper {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .header-link {
        font-size: 18px;
    }

    .pipe::before {
        height: calc(100% - 12px);
    }

    header .right,
    header .right:has(.user-button .name) {
        gap: 16px;
    }

    .user-button .name {
        display: none;
    }

    .user-menu .name {
        display: block;
        font-size: 18px;
        border-bottom: 1px solid #B3CED8;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .menu {
        padding: 20px;
        top: calc(100% + 30px);
        right: -20px;
    }

    .user-menu>li,
    .menu>li {
        margin-bottom: 10px;
    }


    .menu>li.last-item {
        padding-top: 10px;
    }


    .menu>li a {
        font-size: 18px;
    }

    .user-menu>li a,
    .submenu>li a {
        font-size: 16px;
    }
}

@media only screen and (max-width:950px) {
    .header-link {
        font-size: 15px;
    }

    .pipe {
        padding-left: 13px;
        padding-right: 13px;
    }

    header .right,
    header .right:has(.user-button .name) {
        gap: 13px;
    }

    header .user-button::before {
        width: 15px;
        height: 16px;
    }

    .menu-button::before {
        width: 25px;
        height: 20px;
    }

    .menu-button[aria-expanded="true"]::before {
        background-size: 20px 20px;
    }
}

@media only screen and (max-width:815px) {
    .header-link {
        font-size: 14px;
        text-wrap-style: pretty;
    }

    .pipe {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media only screen and (max-width:768px) {
    .header-wrapper {
        padding-top: 15px;
        padding-bottom: 15px;
        gap: 100px;
    }

    header .left {
        align-items: flex-start;
        flex-direction: column;
    }

    .pipe {
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 0px;
        padding-right: 0px;
        width: 100%;
    }

    .pipe::before {
        height: 0;
        top: calc(50% - 1px);
        left: 0;
        transform: translate(0%, -50%);
        border-left: none;
        border-bottom: 0.45px solid #B6B6B6;
        width: calc(100% + 70px);
    }

    .user-menu,
    .menu {
        top: calc(100% + 15px);
    }
}

@media only screen and (max-width:500px) {

    header .right,
    header .right:has(.user-button .name) {
        gap: 8px;
    }

    .header-wrapper {
        gap: 35px;
    }

    .pipe::before {
        width: calc(100% + 5px);
    }

    header .user-button::before {
        width: 14px;
        height: 15px;
    }

    .menu-button::before {
        width: 24px;
        height: 20px;
    }

    .menu-button[aria-expanded="true"]::before {
        background-size: 18px 18px;
    }
}