@charset "utf-8";

/* ==========================================================================
   헤더
   ========================================================================== */

.header {
    position: relative;
    width: 100%;
    background: #fff;
}

.header__inner {
    width: calc(100% - 120px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.header__gnb {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
    height: 100px;
}

.header__main-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.header__main-menu > a {
    position: relative;
    display: block;
    padding: 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    transition: color 0.3s;
}

.header__main-menu > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: #2f73b7;
    transition: width 0.3s ease;
}

.header__main-menu:hover > a::after {
    width: 100%;
}

.header__sub-menu {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100vw;
    background: #f5f7fb;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.header__main-menu:hover .header__sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__sub-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.header__menu-list {
    display: flex;
    gap: 40px;
}

.header__menu-list li a {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
}

.header__menu-list li a:hover {
    color: #2f73b7;
}

.header__login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    background: transparent;
    border: 2px solid #2f73b7;
    border-radius: 20px;
    color: #2f73b7;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.header__lock {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url(../images/icon-login.png) no-repeat center / contain;
}

.header__login-btn:hover {
    color: #fff;
    background: #2f73b7;
}

.header__login-btn:hover .header__lock {
    background: url(../images/icon-login-hover.png) no-repeat center / contain;
}

.header__login-btn::after {
    content: "";
    display: none;
    background: url(../images/icon-login-hover.png);
}

.m-nav-top {
    display: none;
}

.m-login-area {
    display: none;
}

.m-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.m-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* ==========================================================================
   푸터
   ========================================================================== */

.footer {
    padding: 60px 0;
    background: #1f3d52;
    color: #fff;
}

.footer .inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.footer__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__text p {
    line-height: 1.2;
}

.footer__text .name {
    margin-bottom: 10px;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer__text .site-footer-address,
.footer__text .tel {
    font-size: 1.125rem;
}

.footer__text .site-footer-tel,
.footer__text .site-footer-business-number {
    font-size: 1.125rem;
}

.footer__text .copy {
    margin-top: 16px;
    font-size: 0.875rem;
    line-height: 1.35;
}

.footer__logo {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.footer__logo img {
    width: 100%;
}

/* ==========================================================================
   미디어쿼리
   ========================================================================== */

@media (max-width: 1440px) {
    .header__inner {
        height: 100px;
    }
}

@media (max-width: 1280px) {
    .header__inner {
        width: calc(100% - 80px);
        height: 100px;
    }
}

@media (max-width: 1024px) {
    body.scroll-lock{
        overflow:hidden;
        height:100vh;
    }

    .header__pc-login {
        display: none;
    }

    .m-menu-btn {
        display: flex;
        margin-left: auto;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 100;
        transition: right 0.4s ease;
    }

    .m-nav-top{
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding:20px 24px;
        border-bottom:1px solid #eee;
        background:#fff;
    }

    .m-nav-logo img{
        display:block;
        width: 80%;
    }

    .m-nav-close{
        border:none;
        background:none;
        font-size:40px;
        line-height:1;
        color:#333;
        cursor:pointer;
    }

    .header.m-menu-open .header__nav {
        right: 0;
    }

    .header.m-menu-open .m-menu-btn {
        opacity: 0;
        pointer-events: none;
    }

    .header.m-menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99;
    }

    .m-login-area {
        display: block;
        padding: 20px;
        text-align: center;
        background: #f5f7fb;
        border-bottom: 1px solid #f2f6ff;
    }

    .m-login-area .header__login-btn {
        width: 100%;
        height: 45px;
        justify-content: center;
        border: none;
        border-radius: 8px;
        background: #2f73b7;
        color: #fff;
        font-size: 0.95rem;
    }

    .m-login-area .header__lock {
        filter: brightness(0) invert(1);
    }

    .header__gnb {
        flex-direction: column;
        gap: 0;
        height: auto;
    }

    .header__main-menu {
        display: block;
        width: 100%;
        height:auto;
        border-bottom: 1px solid #f0f0f0;
    }

    .header__main-menu > a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 20px 30px;
        font-size: 1.125rem;
        color: #222;
        background: #fff;
    }

    .header__main-menu > a::after {
        position: static;
        left: auto;
        bottom: auto;
        width: 8px;
        height: 8px;
        background: none;
        border-right: 2px solid #999;
        border-bottom: 2px solid #999;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

    .header__main-menu.active > a::after {
        transform: rotate(-135deg);
        margin-top: 6px;
    }

    .header__main-menu:hover > a::after{
        width: 8px;
    }

    .header__sub-menu {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f9f9f9;
        border: none;
        transition: max-height 0.35s ease;
    }

    .header__main-menu.active .header__sub-menu {
        max-height: 500px;
    }

    .header__sub-inner {
        padding: 0;
        justify-content: flex-start;
    }

    .header__menu-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .header__menu-list li a {
        display: block;
        padding: 15px 45px;
        font-size: 0.95rem;
        color: #666;
        background: #f5f7fb;
    }

    .header__menu-list li a:hover {
        color: #2f73b7;
        background-color: #d9e4f2;
    }

    .header.m-menu-open .m-menu-btn span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .header.m-menu-open .m-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .header.m-menu-open .m-menu-btn span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .header__inner {
        width: calc(100% - 60px);
    }
}

@media (max-width: 480px) {
    .header__inner {
        width: calc(100% - 40px);
    } 

    .header__logo img {
        width: 80%;
    }

    .footer .inner {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }  

    .footer__text .name {
        font-size: 1rem;
    }

    .footer__text .site-footer-address,
    .footer__text .site-footer-tel,
    .footer__text .site-footer-business-number {
        font-size: 1rem;
    }
    
    .footer__logo img {
        height: 30px;
    }
}
