﻿.cmHdr {
    margin-bottom: 0;
}

.headerWrapper {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
}

#MobileSwitchItem, #MobileSearchReturnBtn {
    font-size: 24px;
}

#MobileSearchReturnBtn {
    position: absolute;
    z-index: 1;
}

#MobileSwitchItem, #MobileSearchTitle {
    color: #fff;
}

#MobileSearchTitle {
    justify-content: center;
    flex-grow: 1;
}

#MobileSwitchItem {
    display: inline-block;
    margin-right: 15px;
    vertical-align: middle;
    text-align: center;
    padding: 3px 10px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, .1);
}

.headerWrapper .logoWrapper {
    width: 17%;
}

.logoWrapper .logoLink {
    width: 100%;
}

.headerWrapper .logoWrapper a {
    background-image: none;
}

.headerWrapper .logoWrapper img {
    vertical-align: bottom;
}

.headerWrapper .inputWrapper {
    width: 230px;
}

.headerWrapper .inputWrapper input,
.headerWrapper .inputWrapper button{
    height: 40px;
}

.headerWrapper .inputWrapper input {
    border-radius: 4px 0 0 4px;
}

.headerWrapper .inputWrapper button {
    border-radius: 0 4px 4px 0;
    background-position: -123px 8px;
}

.header__item {
    display: flex;
    align-items: center;
}

.header__item .header__option a {
    margin-left: 16px;
    display: block;
    height: 24px;
}

#PostArticlePop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: rgba(0, 0, 0, .26);
}

#PesronalWrapper {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 100vh;
    z-index: 9999;
}

#PesronalWrapper > div {
    margin: auto;
    max-width: 1200px;
}

.postArticlePop__wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 380px;
    background-color: #fff;
    border-radius: 8px;
    padding: 16px 24px;
    box-sizing: border-box;
    font-size: 16px;
}

.postArticlePop__item {
    display: flex;
    align-items: center;
    font-family: PingFang;
}

.postArticlePop__item--space {
    justify-content: space-between;
}

.postArticlePop__item--end {
    justify-content: flex-end;
}

.postArticlePop__title {
    font-weight: 600;
}

.postArticlePop__closeBtn, .postArticlePop__tool {
    cursor: pointer;
}

.postArticlePop__content, .postArticlePop__tool {
    font-size: 14px;
}

.postArticlePop__closeBtn {
    color: #595959;
}

.postArticlePop__closeBtn:hover {
    color: #262626;
}

.postArticlePop__content {
    margin: 16px 0;
}

.postArticlePop__tool {
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #d9d9d9;
}

.postArticlePop__tool a {
    display: block;
    padding: 8px 16px;
    color: #595959;
}

.postArticlePop__tool--info {
    background-color: #3b5998;
    border: 1px solid #3b5998;
}

.postArticlePop__tool:hover {
    background-color: rgba(38, 38, 38, .04);
}

.postArticlePop__tool--info:hover {
    background-color: #324c81;
    border: 1px solid #324c81;
}

.postArticlePop__tool--info a {
    color: #fff;
}


.postArticlePop__tool + .postArticlePop__tool {
    margin-left: 8px;
}

#MobileSearchTitle, .pesronalContent {
    font-size: 16px;
}

.pesronalContent {
    position: absolute;
    right: 0;
    top: -10px;
    width: 270px;
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
    box-shadow: 0 0 2px 0 rgba(38, 38, 38, .2);
}

.pesronalContent .logoTitle {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.pesronalContent__img {
    display: inline-block;
    margin-right: 16px;
}

.pesronalContent__noteTitle {
    padding-top: 16px;
    border-top: 1px solid #d9d9d9;
    font-size: 14px;
    color: #3b5998;
}

.pesronalContent__noteDesc {
    margin-top: 8px;
    line-height: 20px;
    font-size: 12px;
}

.pesronalContent .pesronalContent__noteDesc .pesronalContent__link {
    color: #1480d9;
}

#LoginWrapper {
    width: 100%;
    margin: 8px 0;
    padding: 8px 16px;
    border-radius: 4px;
    text-align: center;
    outline: none;
    background-color: #fff;
    color: #3b5998;
    border: 1px solid #3b5998;
}

.pesronalContent li:not(:first-child) {
    padding: 8px 0;
}

.pesronalContent li:not(:first-child) a {
    color: #262626;
}

.pesronalContent li a:hover {
    color: #2a3f6c;
}

.pesronalContent li i {
    margin-right: 16px;
}

.mobile__show {
    display: none !important;
}

.searchText_wrapper-m {
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    background-color: #3b5998;
}

#MobileTextSearch input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    box-sizing: border-box;
    border-radius: 4px;
    background-color: #fff;
    border: none;
}

#CategoryHeader,
.nav__wrapper,
.nav__content {
    background-color: #fff;
}

#CategoryHeader {
    margin: 0 calc((1215px - 100vw) / 2);
    width: calc(100vw - 15px);
    box-sizing: border-box;
}

.categoryHeader__wrapper {
    margin: auto;
    width: 1200px;
}

.nav__wrapper {
    position: relative;
    display: flex;
}

.mobilenav__wrapper {
    display: none;
}

.nav__content--target > a {
    color: #365998;
    border-bottom: 1px solid #365998;
}

.mobilenav__wrapper .nav__content--target > a {
    border-bottom: none;
}

.nav__wrapper--child .nav__content--target > a {
    border-bottom: none;
}

.nav__wrapper--child {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    z-index: 9998;
    flex-direction: column;
    min-width: 250px;
    border-radius: 8px;
}

.nav__wrapper--arrow {
    margin-top: 10px;
    width: max-content;
    max-height: 288px;
    overflow-y: hidden;
    flex-wrap: wrap;
    padding: 8px;
    box-shadow: 0 0 2px 0 rgba(38, 38, 38, .2);
}

.nav__wrapper--less {
    max-height: 306px;
}

.nav__wrapper--arrow + a::before {
    content: '';
    font-size: 16px;
    position: absolute;
    z-index: 9998;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    min-width: 250px;
    height: 12px;
}

.nav__wrapper--arrow + a::after {
    content: '';
    font-size: 16px;
    position: absolute;
    z-index: 9999;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    border-bottom: 10px solid #fff;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
}


.nav__link {
    display: block;
    padding: 12px 0;
    margin: 0 16px;
    color: #595959;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.5;
}

.nav__wrapper--arrow > li {
    min-width: 180px;
}

.nav__wrapper--arrow > .nav__content--dividers {
    border-right: 1px solid #d9d9d9;
}

.nav__wrapper--child > .nav__content:hover {
    background-color: #e4e4e4;
}

.nav__wrapper--child > .nav__content:hover > a {
    color: #3b5998;
}

@media (any-hover: hover) {
    .nav__content:hover > a {
        color: #3b5998;
    }

    .nav__content:hover > .nav__wrapper--child {
        display: flex;
    }
}


.nav__wrapper--arrow:hover {
    overflow-y: auto;
}

.nav__content:hover > .nav__wrapper--arrow + a::after,
.nav__content:hover > .nav__wrapper--arrow + a::before {
    display: block;
}


@media screen and (max-width: 1200px) {
    .cmHdr .headerWrapper {
        width: auto;
    }

    #CategoryHeader {
        width: 100vw;
        margin: -10px -10px 0;
        height: auto;
    }

    .mobilenav__wrapper {
        display: block;
    }

    .mobilewrapper--child {
        display: flex;
    }

    .categoryHeader__wrapper {
        max-width: 100vw;
    }

    .nav__content {
        position: static;
    }

    .nav__wrapper,
    .mobilewrapper--child {
        min-width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .nav__wrapper--child {
        display: none;
    }

    .nav__wrapper--child .nav__content:first-child,
    .nav__wrapper--child .nav__content:last-child,
    .nav__wrapper--child .nav__content {
        margin: 0;
    }
}

@media screen and (max-width: 1024px) {
    .headerWrapper .logoWrapper {
        width: 20%;
    }

    #HeaderOptionWrapper .inputWrapper {
        margin-left: 0;
    }

    .headerWrapper .inputWrapper .srhBar button {
        width: 15%;
    }
}

@media screen and (max-width: 768px) {
    .headerWrapper .logoWrapper {
        width: 21%;
    }
}

@media screen and (max-width: 560px) {
    .headerWrapper {
        padding: 10px;
    }

    #HeaderOptionWrapper .inputWrapper {
        display: none;
    }

    #PesronalWrapper {
        top: 0;
    }

    .pesronalContent {
        padding-top: 40px;
        height: 100vh;
        background-color: rgba(255, 255, 255, .85);
    }

    .mobile__hidden {
        display: none !important;
    }

    .mobile__show {
        display: block !important;
    }

    #PostArticlePop {
        width: 100vw;
    }

    .postArticlePop__wrapper {
        max-width: 100%;
        width: 100%;
        top: 100%;
        left: 0;
        transform: translateY(-100%);
        border-radius: 8px 8px 0 0;
    }

    .postArticlePop__item--end {
        flex-direction: column-reverse;
    }

    .postArticlePop__tool {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .postArticlePop__tool + .postArticlePop__tool {
        margin-bottom: 8px;
        margin-left: 0;
    }

    .personal__title-m {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        color: #3b5998;
        font-weight: 600;
    }

    .pesronalContent .personal__title-m i {
        margin-right: 0;
        color: #000;
    }

    .headerWrapper .logoWrapper {
        width: 40%;
    }

    .headerWrapper .logoWrapper img {
        width: 165px;
        height: 38px;
    }

    .ani-scroll-left-m {
        animation: slideleft .5s linear;
    }

    .nav__link {
        padding: 12px 0;
        margin: 0 12px;
        font-size: 14px;
        line-height: 20px;
    }
}

@media screen and (max-width: 375px) {
    .headerWrapper .logoWrapper {
        width: 43%;
    }
}

@keyframes slideleft {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

