@import url("https://vendor-cdn.imweb.me/css/score_dream.css");
@import url("https://vendor-cdn.imweb.me/css/pretendard.css");
@import url("https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap");
/* Welstory Gothic 폰트 */
@font-face {
    font-family: 'Welstorygothic';
    src: url('../fonts/Welstorygothic-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Welstorygothic';
    src: url('../fonts/Welstorygothic-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Welstorygothic';
    src: url('../fonts/Welstorygothic-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Common styles */
/* Font Family */
body {
    font-family: 'S-CoreDream-4Regular', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Nanum Gothic', 'Noto Sans', 'pretendard' sans-serif;
    /* padding-top: 80px; */
    overflow-x: hidden;
    max-width: 100%;
}


@media (max-width: 1199px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
}

/* Overflow 방지 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.blind {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

/* Header Styles - Mobile First */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 88px;
    background-color: #ffffff;
}

.header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    padding: 24px 15px;
}

/* Logo */
.logo {
    width: 189px;
    height: 40px;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tablet: 768px~1199px */
@media (min-width: 768px) and (max-width: 1199px) {
    .header{
        height: 72px;
    }
    .logo {
        width: 139px;
        height: 29px;
    }
}

/* Mobile: ~767px */
@media (max-width: 767px) {
    .header{
        height: 56px;
    }
    .header .header-inner {
        padding: 6px clamp(15px, 4.2vw, 24px);
    }
    .logo {
        width: 125px;
        height: 27px;
    }
}

/* Mobile Navigation - Hidden by default */
.nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav.active {
    display: block;
}

.nav-list {
    flex-direction: column;
    padding: 20px 0;
}

.nav-item {
    position: relative;
    width: 100%;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    font-size: 18px;
    color: #003c5a;
    transition: color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.nav-link:hover {
    color: #000;
    background-color: #f5f5f5;
}

.nav-item.active .nav-link {
    color: #ea550a;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    cursor: pointer;
    justify-content: space-between;
    margin-right: 20px;
}

.hamburger span {
    display: block;
    height: 2px;
    background-color: #003c5a;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Submenu */
.sub-menu {
    display: none;
    background: #f8f9fa;
    padding: 0;
}

.nav-item.active .sub-menu {
    display: block;
}

.sub-menu-link {
    display: block;
    padding: 12px 40px;
    font-size: 14px;
    color: #666;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.sub-menu-link:hover {
    background-color: #e9ecef;
}

/* Desktop: 1200px~ */
@media (min-width: 1200px) {
    .hamburger {
        display: none;
    }

    .header .container {
        justify-content: space-between;
    }

    .nav {
        display: flex;
        position: static;
        background-color: transparent;
        box-shadow: none;
        align-items: center;
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
    }

    .nav-item {
        width: auto;
        position: relative;
    }

    .nav-link {
        padding: 0 20px;
        height: 40px;
        line-height: 40px;
        font-size: 20px;
        border-bottom: none;
    }

    .nav-link:hover {
        background-color: transparent;
    }

    .sub-menu {
        position: absolute;
        top: 100%;
        left: 20px;
        background: #fff;
        border-radius: 3px;
        box-shadow: 0 6px 12px rgba(0,0,0,0.175);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 0;
        display: block;
        width: auto;
    }

    .nav-item:hover .sub-menu {
        opacity: 1;
        visibility: visible;
    }

    .nav-item.active .sub-menu {
        display: block;
    }

    .sub-menu-link {
        padding: 12px 20px;
        font-size: 13px;
        color: #333;
        border-bottom: none;
        white-space: nowrap;
        display: block;
        text-align: left;
    }

    .sub-menu-link:first-child {
        border-radius: 3px 3px 0 0;
    }

    .sub-menu-link:last-child {
        border-radius: 0 0 3px 3px;
    }

    .sub-menu-link:hover {
        background-color: #4a80f3;
        color:#fff
    }
}


/* footer */
.footer{
    width: 100%;
    background: #ffffff;
    padding: 60px 32px 100px;
}
.footer .container{
    /* width: 960px; */
    max-width: 100%;
    margin: 0 auto;
}
.footer__inner{
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
}
.footer__left{
    min-width: 0;
}
.footer__brand{
    margin-bottom: 20px;
}
.footer__info{
    margin: 0;
    font-style: normal;
    font-family: 'Pretendard';
    font-size: 14px;
    font-weight: 400;
    color: #5E5E5E;
    line-height: 1.7;
    letter-spacing: -0.02em;
}
.footer__info p{
    margin: 0;
}
.footer__copy{
    margin: 10px 0 0;
    font-family: 'Pretendard';
    font-size: 12px;
    font-weight: 400;
    color: #5E5E5E;
    letter-spacing: -0.02em;
}

.footer__right{
    display: flex;
    gap: 22px;
    align-items: center;
    flex: 0 0 auto;
}
.footer-link{
    font-family: 'Pretendard';
    font-size: 14px;
    color: #5E5E5E;
    letter-spacing: -0.02em;
    text-decoration: none;
    font-weight: 400;
}
.footer__right .privacy{
    font-weight: 400;
}
/* .footer-link:hover{
    text-decoration: underline;
} */

/* footer - tablet (768~1023) */
@media (min-width: 768px) and (max-width: 1023px){
    .footer{
      padding: 48px 0 48px;
    }
    .footer .container{
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
      padding: 0 24px; /* 태블릿 좌우 여백 */
    }
    .footer__inner{
      display: flex;
      justify-content: space-between;
      gap: 28px;          /* 시안처럼 간격 과하지 않게 */
      align-items: flex-end; /* 우측 링크를 카피라인 기준으로 맞춤 */
    }
    .footer__brand{
      margin-bottom: 28px;
    }
    .footer__brand img{
      height: 24px;
      width: auto;
      display: block;
    }
    .footer__right{
      gap: 23px;
      white-space: nowrap; /* 링크 2개 줄바꿈 방지 */
      padding-bottom: 2px; /* 베이스라인 미세 맞춤(필요시 0~4px 조절) */
    }
}
/* footer - mobile */
@media (max-width: 767px){
    .footer{
        padding: clamp(42px, 6.7vw, 48px) 0 clamp(40px, 6.8vw, 48px);
    }

    .footer .container{
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
      padding: 0 clamp(15px, 4vw, 20px); /* 360~767에서 자연스럽게 */
    }

    .footer__inner{
      flex-direction: column;
      align-items: flex-start;
      gap: 0; /* 덩어리 간격은 아래 margin으로 제어 */
    }

    .footer__brand{
        margin-bottom: clamp(28px, 9.07vw, 34px);
    }

    .footer__brand img{
      display: block;
      height: clamp(20px, 3.6vw, 22px);
      width: auto;
    }

    .footer__copy{
      margin-top: clamp(10px, 3.2vw, 14px);
    }

    /* 링크는 시안처럼 아래로 내려가서 좌측 정렬 */
    .footer__right{
        margin-top: clamp(16px, 5.33vw, 20px);
        padding-top: 0;
        justify-content: flex-start;
        gap: clamp(16px, 6.13vw, 23px);
        flex-wrap: wrap; /* 360에서 줄바꿈 필요할 수 있어 자연스럽게 */
    }
}



/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-container {
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #123b59;
    color: #fff;
}

.popup-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
}

.popup-close:hover {
    opacity: 0.8;
}

.popup-content {
    padding: 30px;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
    line-height: 1.8;
    font-size: 14px;
    color: #333;
}

.popup-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #123b59;
    margin: 25px 0 10px;
}

.popup-content h4:first-child {
    margin-top: 0;
}

.popup-content p {
    margin-bottom: 10px;
}

/* Mobile: ~767px */
@media (max-width: 767px) {
    .popup-container {
        width: 100%;
        max-width: 95%;
        max-height: 90vh;
    }

    .popup-header {
        padding: 15px;
    }

    .popup-title {
        font-size: 16px;
    }

    .popup-content {
        padding: 20px;
        max-height: calc(90vh - 60px);
    }
}


/* 이용약관 팝업 termsPopup */
#termsPopup .popup-content{
    padding-top: 0;
}
#termsPopup .popup-content h4{
    font-family: "Welstorygothic", sans-serif;
    font-size: clamp(16px, 2.5vw, 24px);
    font-style: normal;
    font-weight: 700;
    line-height: 160%;
    letter-spacing: 0;
    font-family: "Welstorygothic", sans-serif;
    color: #424342;
    padding: clamp(32px, 5.5vw, 56px) 0 clamp(18px, 3vw, 32px);
}
#termsPopup .popup-content p{
    font-family: "Pretendard", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 145%;
    letter-spacing: -0.048rem;
    color: #767575;
}
#termsPopup .last-padding{
    padding-bottom: clamp(60px, 10vw, 100px);
}



/* 개인정보처리방침 팝업 privacyPopup */
#termsPopup .popup-container,
#privacyPopup .popup-container{
    width: 800px;
}

#termsPopup .popup-header,
#privacyPopup .popup-header{
    background-color: #ffffff;
    color: #424243;
    align-items: flex-start;
}
#termsPopup .popup-close,
#privacyPopup .popup-close {
    color: #424243;
}
#termsPopup .sub-header img,
#privacyPopup .sub-header img{
    width: 36px;
}
#termsPopup .popup-title,
#privacyPopup .popup-title{
    font-family: "Welstorygothic", sans-serif;
    color: #424342;
    font-weight: 400;
    line-height: 145%;
    white-space: pre-line;
    margin-top: 6px;
    font-size: clamp(20px, 3.25vw, 32px);
    letter-spacing: -0.072rem;
}

#privacyPopup .policy__conts--intro {
    /* margin-top: 4.4rem; */
    background-color: #F5F5F5;
    padding: clamp(18px, 3vw, 32px)
}
#privacyPopup p {
    font-family: "Pretendard", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: -0.048rem;
    color: #5E5F5F;
}
#privacyPopup .policy__conts--details li, #privacyPopup .policy__conts--details p {
    font-family: "Pretendard", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 145%;
    letter-spacing: -0.048rem;
    color: #767575;
}
#privacyPopup .policy__conts--details h3 {
    font-family: "Welstorygothic", sans-serif;
    font-size: clamp(16px, 2.5vw, 24px);
    font-style: normal;
    font-weight: 700;
    line-height: 160%;
    letter-spacing: 0;
    font-family: "Welstorygothic", sans-serif;
    color: #424342;
    padding: clamp(32px, 5.5vw, 56px) 0 clamp(18px, 3vw, 32px);
}
#privacyPopup .policy__conts--details ul > li:last-child {
    padding-bottom: 0;
}
#privacyPopup .policy__conts--details li {
    padding-bottom: clamp(18px, 3vw, 32px);
}
#privacyPopup .policy__conts--details ul.com-tb li {
    padding-bottom: 0;
}
#privacyPopup .policy__conts--details ul.com-tb{
    width:100%;
    border-top:1px solid #222;
}
#privacyPopup .policy__conts--details ul .com-tb li{
    width:100%;
    display:flex;
    border-bottom:1px solid #C0BDB9;
    padding-left:0; text-indent:0;
}
#privacyPopup .policy__conts--details ul .com-tb li .th{
    width:100%;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    background:rgba(192,185,182,0.1);
}
#privacyPopup .policy__conts--details ul .com-tb li .td{
    width:100%;
    min-height:60px;
    display:flex;
    align-items:center;
    padding:2.25rem;
    font-weight:300;
}
#privacyPopup .policy__conts--details ul .com-tb li > *{
    border-left:1px solid #C0BDB9;
}
#privacyPopup .policy__conts--details ul .com-tb li > *:first-child {
    border-left:none;
}
#privacyPopup .policy__conts--details ul .com-tb[data-col="2"] li > * {
    width:50%;
}
#privacyPopup .policy__conts--details ul .com-tb[data-col="4"] li > * {
    width:25%;
}
#privacyPopup .policy__conts--details table {
    font-family: "Pretendard", sans-serif;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 500;
    line-height: 145%;
    letter-spacing: -0.054rem;
    width: 100%;
    text-align: center;
    border-block: 1px solid #222222;
}
#privacyPopup .policy__conts--details table th, #privacyPopup .policy__conts--details table td {
    color: #222;
}
#privacyPopup .policy__conts--details table th {
    padding: 2rem 1.6rem;
    font-weight: 600;
}
#privacyPopup .policy__conts--details table td {
    padding: 2.4rem 1.2rem;
    border-top: 1px solid #9E9C9B;
}
#privacyPopup .policy__conts--details .tbl-left {
    border-collapse: collapse;
}
#privacyPopup .policy__conts--details .tbl-left td {
    text-align: left;
}
#privacyPopup .policy__conts--details .tbl-left td:first-child {
    padding-left: 10rem;
}
#privacyPopup .policy__conts--details .tbl-left td:last-child {
    padding-right: 10rem;
}
#privacyPopup .policy__conts--details .sub-list {
    padding-top: 0.8rem;
}
#privacyPopup .policy__conts--details .sub-list dl {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
#privacyPopup .policy__conts--details .sub-list li {
    padding-bottom: 0;
}
#privacyPopup .policy__conts--details .sub-list-detail {
    padding-top: 0.8rem;
}
#privacyPopup .policy__conts--details .sub-list-detail li {
    padding-bottom: 0;
}
#privacyPopup .policy__conts--details .policy-1 table th {
    width: 25%;
}
#privacyPopup .policy__conts--details .policy-4 table th, #privacyPopup .policy__conts--details .policy-10 table th {
    width: 50%;
}
#privacyPopup .tab__conts__panel .policy-1 .com-tb li .td-1{
    border-bottom: 1px solid #c0bdb9;
    display: flex;
    height: 50%;
    word-break: break-all;
    align-items: center;
    padding: 2.25rem;
}
#privacyPopup .tab__conts__panel .policy-1 .com-tb li .td-2{
    flex: 1;
    word-break: break-all;
    display: flex;
    align-items: center;
    padding: 2.25rem;
}
#privacyPopup .tab__conts__panel .policy-1 .com-tb li .td-3{
    border-bottom: 1px solid #c0bdb9;
    /* display: flex;
    height: 50%; */
    word-break: break-all;
    align-items: center;
    padding: 2.25rem;
}

#privacyPopup .tab__conts__panel .policy-3 .sub-list-detail li{
    padding-bottom: 0.8rem;
   }
   #privacyPopup .tab__conts__panel .policy-9 .com-tb li .td{
    word-break: break-all;
  }
   #privacyPopup .tab__conts__panel .policy-5 .sub-list-detail li{
    padding-bottom: 0.8rem;
    margin-left: 0.8rem;
   }
   #privacyPopup .tab__conts__panel .policy-10 .sub-list li{
     padding-bottom: 0.8rem;
   }
  #privacyPopup .tab__conts__panel .policy_img{
    margin-left: auto;
    width: 50px;
    height: 50px;
    vertical-align: middle;
  }
  #privacyPopup .tab__conts__panel .policy_img:first-of-type{
    margin-left: 1.25rem;
  }
  #privacyPopup .tab__conts__panel .policy__caption--wrap .policy-caption-icon{
    display: flex;
    gap: 8px;
    position: absolute;
    right: 0;
}
#privacyPopup .policy__caption--wrap{
    width:100%;
    border-radius:0.625rem;
    background:rgba(192,189,185,0.1);
    padding: clamp(18px, 3vw, 32px);
}
#privacyPopup .policy__caption--wrap h3{
    text-align: center;
}
#privacyPopup .policy__caption--wrap li {
    display: flex;
    gap:1rem;
    margin-top:clamp(16px, 2.5vw, 28px);
    border-bottom: 1px solid #cccccc;
    align-items: center;
    padding-bottom: clamp(16px, 2.5vw, 28px);
    word-break: keep-all;
    white-space: normal;
}
#privacyPopup .policy__caption--wrap .policy-caption {
    position: relative;
}
#privacyPopup .policy__caption--wrap li em{
    font-style: normal;
}
#privacyPopup .policy__caption--wrap li:last-child{
    border-bottom:none;
}
#privacyPopup .policy__conts__ethics table {
    margin-top: 4.4rem;
}
#privacyPopup .policy__conts__ethics table td {
    width: 50%;
}
#privacyPopup .policy__conts .desc--pad-t {
    padding-top: 2.4rem;
}
#privacyPopup .policy__conts .desc--pad-b {
    padding-bottom: 2.4rem;
}
#privacyPopup .policy__inquiry {
    padding-bottom: 9.6rem;
}
#privacyPopup .policy__inquiry .form-area-select {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: end;
    gap: 0;
}
#privacyPopup .policy__inquiry .form-area-select .select1 {
    width: 32rem;
    margin-right: 0.8rem;
}

#privacyPopup .policy-11{
    padding-bottom: clamp(60px, 10vw, 100px);
}

.policy01-com-tb-pc{
    display: block;
}
.policy01-com-tb-mo{
    display: none;
}


/* privacyPopup - Mobile */
@media (max-width: 767px){

    /* 팝업 본문: 가로 오버플로우 차단(흰 여백 방지) */
    #privacyPopup .popup-content{
      overflow-x: hidden;
      padding: 18px 14px; /* 360에서 타이트하게 */
    }
    /* 목차: 글 밑으로 아이콘 내려오기 */
    #privacyPopup .policy__caption--wrap li{
        display: block;
        position: relative;
    }
    /* 아이콘 박스: absolute 해제 → 아래 줄로 떨어지게 */
    #privacyPopup .tab__conts__panel .policy__caption--wrap .policy-caption-icon{
        position: static;
        width: 100%;
        margin-top: 10px;
        padding-left: 10px;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    /* 목차 영역에서만 아이콘 margin-left:auto 무력화(기존은 우측으로 밀림) */
    #privacyPopup .policy__caption--wrap .policy_img{
      margin-left: 0 !important;
      width: 36px;
      height: 36px;
    }



    .policy01-com-tb-pc{
        display: none;
    }
    .policy01-com-tb-mo{
        display: block;
    }
    #privacyPopup .policy__conts--details ul.com-tb.com-tb-mo li{
        display: block !important;
    }

    #privacyPopup .policy__conts--details ul.com-tb.com-tb-mo li > *{
        width: 100% !important;
        border-left: none !important;
    }
    #privacyPopup .policy__conts--details ul .com-tb li .th{
        height: auto;
    }
    #privacyPopup .policy__conts--details ul.com-tb.com-tb-mo li .th{
        height: auto;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 14px;
    }

    #privacyPopup .policy__conts--details ul.com-tb.com-tb-mo li .td,
    #privacyPopup .policy__conts--details ul.com-tb.com-tb-mo li .td-3{
        display: block;
        min-height: 0;
        padding: 12px 14px;
        line-height: 1.5;
    }

    #privacyPopup .policy__conts--details ul.com-tb.com-tb-mo[data-col="4"] li > *{
        width: auto !important;
    }
    #privacyPopup .policy__conts--details ul.com-tb.com-tb-mo li{
        display: flex !important;
        align-items: stretch;
    }
    #privacyPopup .policy__conts--details ul.com-tb.com-tb-mo li .th{
        flex: 0 0 9em;
        width: 9em;
        white-space: nowrap;
        height: auto;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 14px;
    }
    #privacyPopup .policy__conts--details ul.com-tb.com-tb-mo li .td,
    #privacyPopup .policy__conts--details ul.com-tb.com-tb-mo li .td-3{
        flex: 1 1 auto;
        min-width: 0;
        padding: 12px 14px;
        line-height: 1.5;

        word-break: keep-all;
        overflow-wrap: anywhere;
    }


    #privacyPopup .policy__conts--details ul .com-tb li .td{
        padding: 1rem;
    }
}