/* =====================================================
   cd-header.css —  헤더 스타일
   ===================================================== */

:root {
    --cd-gold:        #59ad41;
    --cd-gold-light:  #6aba53;
    --cd-gold-pale:   #F5EDD8;
    --cd-dark:        #1C1C1C;
    --cd-mid:         #555;
    --cd-light:       #499733;
    --cd-border:      #499733;
    --cd-bg:          #FEFCF8;
    --cd-sub-bg:      #FAFAF6;
    --header-h:       80px;
    --max-w:          1400px;
    --serif:          'Noto Serif KR', serif;
    --sans:           'Pretendard', 'Malgun Gothic', sans-serif;
}

/* =====================================================
   HEADER
   ===================================================== */


   /* 서브페이지 — 헤더 absolute 보정 */
.sub_body {
    padding-top: 0px;   /* --header-h + 상단패딩 합산값, 실제 높이 맞게 조정 */
}
   
#cd-header {
    padding: 40px 20px 0;
    background-color: transparent;   /* ← 녹색 배경 제거 */
    position: absolute;              /* ← sticky → absolute */
    top: 0;
    left: 0;
    right: 0;
    z-index: 99900;
}
@media (max-width: 768px) {
    #cd-header {
        padding: 30px 20px 0;
    }
}
  
.cd-header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 28px;
    display: flex;
    align-items: center;
    background: #fff;                         
    border-radius: 60px;                          
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);  
}

.cd-header-line {
    display: none;
}

/* 하단 구분선 */
.cd-header-line {
    height: 1px;
    background: #e0e0e0;
}

/* ── 로고 ── */
.cd-logo {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}
.cd-logo a { display: block; line-height: 0; }
.cd-logo img {
    max-height: 54px;
    width: auto;
}

/* ── GNB ── */
.cd-gnb {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 100%;
}
.cd-gnb-list {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0; padding: 0;
    height: 100%;
}

/* 대메뉴 아이템 */
.cd-gnb-item {
    position: relative;
    display: flex;
    align-items: stretch;
}
/* ★수정: 간격 28px→22px */
.cd-gnb-link {
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--cd-dark);
    letter-spacing: 0.04em;
    white-space: nowrap;
    position: relative;
    transition: color 0.22s;
    text-decoration: none;
}

/* 호버 언더라인 */
.cd-gnb-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--cd-gold);
    transition: width 0.26s ease;
}
.cd-gnb-item:hover > .cd-gnb-link,
.cd-gnb-item.on > .cd-gnb-link {
    color: var(--cd-gold);
}
.cd-gnb-item:hover > .cd-gnb-link::after,
.cd-gnb-item.on > .cd-gnb-link::after {
    width: calc(100% - 16px);
}

/* ── 서브메뉴 ★수정: 골드배경 흰글자 하단라운드14px ── */
.cd-sub-wrap {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 50%;
    transform: translateX(-50%);
    min-width: 170px;
    background: var(--cd-gold);
    border: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 800;
    overflow: hidden;
}
.cd-gnb-item:hover .cd-sub-wrap { display: block; }

.cd-sub-list {
    list-style: none;
    margin: 0; padding: 0;
}
.cd-sub-list li a {
    display: block;
    padding: 13px 22px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: background 0.15s, padding-left 0.15s;
}
.cd-sub-list li:last-child a { border-bottom: none; }
.cd-sub-list li a:hover {
    background: #479b2f;
    color: #fff;
    padding-left: 28px;
}
.cp-sub-title {
   font-size: 24px !important;
  font-weight: 700;
  color: #000;
  text-align: left;
  margin-bottom: 36px;
  letter-spacing: -0.03em;
}

@media (max-width: 768px) {
  .cp-sub-title {
    font-size: 20px;
    text-align: center;
  }
}


/* 타이틀및 현재위치 */
.cp-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  margin-bottom: 36px;
  line-height: 1;
}
.cp-sub-title {
  font-size: 30px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.03em;
  margin: 0;
  padding: 0;
  line-height: 1;
}
@media (max-width: 768px) {
    .cp-page-header {
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .cp-breadcrumb {
        display: none;
    }
}


.cp-breadcrumb {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: #aaa;
  line-height: 1;
  flex-shrink: 0;
}
.cp-breadcrumb a {
  color: #aaa;
  display: flex;
  align-items: center;
}
.cp-breadcrumb a:hover { color: #b07c29; }
.cp-bc-sep { color: #ccc; }
@media (max-width: 768px) {
    .cp-breadcrumb {
        display: none;
    }
}


/* ── 우측 유틸 ★수정: 16px #444 구분선 사이에만 ── */
.cd-util {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 20px;
}
.cd-util-link {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    color: #444;
    letter-spacing: 0.02em;
    padding: 0 14px;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    border-left: 1px solid var(--cd-border);
}
.cd-util-link:last-of-type { border-right: 1px solid var(--cd-border); }
.cd-util-link:hover { color: var(--cd-gold); }
.cd-admin { color: #cc3333 !important; border-left: none !important; border-right: none !important; margin-left: 10px; }
.cd-admin:hover { color: #aa0000 !important; }
.cd-util-link:first-of-type {
    border-left: none;
}

/* ── 햄버거 버튼 ★수정: gap 4px ── */
.cd-hamburger {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cd-gold);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: 16px;
    transition: background 0.2s, transform 0.18s;
}
.cd-hamburger:hover {
    background: var(--cd-dark);
    transform: scale(1.06);
}
.cd-hamburger span {
    display: block;
    width: 17px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    flex-shrink: 0;
}

/* =====================================================
   슬라이드 사이드 내비
   ===================================================== */
#cd-sidenav {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    height: 100vh;
    background: #58ad40;
    z-index: 9999000;
    overflow-y: auto;
    transition: right 0.32s cubic-bezier(.4,0,.2,1);
    /* box-shadow: -4px 0 32px rgba(0,0,0,0.2); */
    display: flex;
    flex-direction: column;
}
#cd-sidenav.active { right: 0; }

.cd-sidenav-head {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 로고 좌 / X버튼 우 */
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.cd-sidenav-head img {
    display: block;          /* ← display:none 삭제 */
    height: 36px;
    width: auto;
    object-fit: contain;
}
.cd-sidenav-util {
    display: none;
}
@media (max-width: 640px) {
    /* 기존 코드 */
    :root { --header-h: 60px; }
    .cd-header-inner { padding: 0 16px; }
    .cd-logo img { max-height: 40px; }
    .cd-logo { flex: 1; text-align: center; }
    .cd-util-link { display: none; }
    .cd-util { margin-left: 0; }
    .cd-hamburger { margin-left: 0; }
    #cd-sidenav { width: 80%; right: auto; left: -80%; transition: left 0.32s cubic-bezier(.4,0,.2,1); }
    #cd-sidenav.active { left: 0; right: auto; }

    /* ▼ 추가 */
    .cd-sidenav-util {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 20px 20px 28px;
        border-top: 1px solid rgba(255,255,255,0.2);
        margin-top: auto;
    }
    .cd-sidenav-util-link {
        flex: 1 1 calc(33.33% - 6px); 
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 11px 8px;
        border: 1px solid rgba(255,255,255,0.5);
        border-radius: 6px;
        font-family: var(--sans);
        font-size: 15px;
        font-weight: 500;
        color: #fff;
        text-decoration: none;
        transition: background 0.18s;
        text-align: center;
    }
    .cd-sidenav-util-link:hover { background: rgba(255,255,255,0.2); }
    .cd-sidenav-admin {
         flex: 1 1 calc(33.33% - 6px);  /* 100% → 1/3 */
        background: rgba(0,0,0,0.2);
        border-color: rgba(255,255,255,0.3);
    }
}

.cd-sidenav-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s;
    flex-shrink: 0;
}
.cd-sidenav-close:hover {
    background: none;
    border-color: transparent;
    transform: rotate(90deg);
}

.cd-sidenav-menu {
    list-style: none;
    margin: 0; padding: 0;
    flex: 1;
}
.cd-sidenav-menu > li { border-bottom: 1px solid rgba(255,255,255,0.15); }
.cd-sidenav-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: background 0.18s;
}
.cd-sidenav-menu > li.has-sub > a.cd-parent::after {
    content: '+';
    font-size: 18px;
    color: rgba(255,255,255,0.7);
}
.cd-sidenav-menu > li.has-sub.open > a.cd-parent::after { content: '−'; }
.cd-sidenav-menu > li > a:hover,
.cd-sidenav-menu > li.open > a { background: rgba(255,255,255,0.15); color: #fff; }

/* 소메뉴 */
.cd-sidenav-sub {
    display: none;
    list-style: none;
    margin: 0; padding: 0;
    background: rgba(0,0,0,0.12);
}
.cd-sidenav-menu > li.open .cd-sidenav-sub { display: block; }
.cd-sidenav-sub li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.cd-sidenav-sub li:last-child { border-bottom: none; }
.cd-sidenav-sub li a {
    display: block;
    padding: 11px 24px 11px 36px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.cd-sidenav-sub li a:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* 오버레이 배경 */
.cd-sidenav-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.cd-sidenav-bg.active { display: block; }

/* =====================================================
   반응형
   ===================================================== */
@media (max-width: 1400px) {
    .cd-gnb-link { padding: 0 26px; font-size: 18px; }
    .cd-sub-list li a { font-size: 14px; }
}
@media (max-width: 1200px) {
    .cd-gnb-link { padding: 0 18px; font-size: 17px; }
    .cd-sub-list li a { font-size: 14px; }
    .cd-header-inner { padding: 0 24px; }
    .cd-util-link { font-size: 15px; padding: 0 11px; }
}
@media (max-width: 1024px) {
    .cd-gnb { display: none; }
    .cd-util-link { font-size: 14px; padding: 0 10px; }
}
@media (max-width: 640px) {
    :root { --header-h: 60px; }
    .cd-header-inner { padding: 0 16px; }
    .cd-logo img { max-height: 40px; }
    .cd-logo { flex: 1; text-align: center; }
    .cd-util-link { display: none; }
    .cd-util { margin-left: 0; }
    .cd-hamburger { margin-left: 0; }

    #cd-sidenav {
        width: 80%;
        right: auto;
        left: -80%;
        transition: left 0.32s cubic-bezier(.4,0,.2,1);
    }
    #cd-sidenav.active {
        left: 0;
        right: auto;
    }
}



/* =====================================================
   로그인 모달
   ===================================================== */
   
.cd-modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 20000000 !important;
}
.cd-modal-bg.active { display: block; }

#cd-login-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    width: 420px;
    max-width: calc(100vw - 32px);
    background: #58ad40;
    border-radius: 16px;
    z-index: 20000000001 !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 48px 40px 40px;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
}
#cd-login-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%);
}


#cd-modal-bg {
    z-index: 20000000 !important;
}


.cd-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, transform 0.18s;
}
.cd-modal-close:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }

/* 로고 숨김 */
.cd-modal-logo { display: none; }

.cd-modal-title {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 0.06em;
}
.cd-modal-field { margin-bottom: 12px; }
.cd-modal-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: var(--sans);
    font-size: 15px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: background 0.18s, border 0.18s;
    box-sizing: border-box;
}
.cd-modal-input::placeholder { color: rgba(255,255,255,0.6); }
.cd-modal-input:focus { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.7); }
.cd-modal-opts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 20px;
}
.cd-modal-check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--sans);
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
}
.cd-modal-check input { display: none; }
.cd-chk-box {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 3px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.cd-modal-check input:checked + .cd-chk-box { background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.7); }
.cd-modal-check input:checked + .cd-chk-box::after { content: '✓'; font-size: 11px; color: #fff; line-height: 1; }
.cd-modal-find {
    font-family: var(--sans);
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.18s;
}
.cd-modal-find:hover { color: #fff; }
.cd-modal-submit {
    display: block;
    width: 100%;
    height: 50px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
    margin-bottom: 12px;
}
.cd-modal-submit:hover { background: rgba(255,255,255,0.3); transform: translateY(-1px); }
.cd-modal-submit:active { transform: translateY(0); }
.cd-modal-join {
    display: block;
    text-align: center;
    font-family: var(--sans);
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.18s;
}
.cd-modal-join:hover { color: #fff; }

@media (max-width: 640px) {
    #cd-login-modal { width: calc(100vw - 32px); padding: 40px 24px 32px; border-radius: 12px; z-index: 1200000000000 !important;}
}



 /* layout */

 #wrap {
     position: relative;
     background: #FFF;
 }

 #body {
     width: 100%;
 }

 .main_bg {
     background: #fff;
 }

 .sub_bg {
     background: #FFF;
 }

.at-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

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


/* 회원확인 모달 */
#cd-confirm-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 199990000;
    background: #58ad40;
    border-radius: 10px;
    padding: 50px 40px 40px;
    width: 360px;
    max-width: 90vw;
    text-align: center;box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
#cd-confirm-modal.active { display: block; }

.cd-confirm-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}
.cd-confirm-bg.active { display: block; }

.cd-confirm-desc {
    color: rgba(255,255,255,0.85);
    font-size: 0.9em;
    line-height: 1.7;
    margin: -10px 0 20px;
}

.cd-confirm-id-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 12px !important;
    color: rgba(255,255,255,0.85);
    font-size: 0.9em;
}
.cd-confirm-id-row strong {
    color: #fff;
    font-size: 1em;
}


/* ==============================
   FOOTER
============================== */
#ft {
    background: #333131;
    color: #999;
    font-size: 15px;
    margin-top: 80px;
}

@media (max-width: 1024px) {
    #ft {
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    #ft {
        margin-top: 40px;
    }
}

.ft-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 상단 메뉴 바 */
.ft-top {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ft-top .ft-inner {
    display: flex;
    align-items: center;
}
.ft-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}
.ft-menu li + li::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #555;
    margin: 0 16px;
    vertical-align: middle;
}
.ft-menu a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    line-height: 52px;
    transition: color 0.2s;
}
.ft-menu a:hover { color: #fff; }
.ft-menu .ft-privacy {
    color: #c9b98a;
    font-weight: 700;
}

/* 본문 */
.ft-body {
    padding: 40px 0;
}
.ft-body .ft-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* 로고 */
.ft-logo img {
    max-height: 80px;
    width: auto;  
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.ft-logo img:hover { opacity: 0.9; }

/* 정보 */
.ft-info { flex: 1; }
.ft-info address {
    font-style: normal;
    color: #999;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.ft-info address span {
    position: relative;
    padding-right: 16px;
    margin-right: 16px;
}
.ft-info address span::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 11px;
    background: #555;
}
.ft-info address span:last-child { padding-right: 0; margin-right: 0; }
.ft-info address span:last-child::after { display: none; }
.ft-info address a { color: #999; text-decoration: none; }
.ft-info address a:hover { color: #ddd; }
.ft-copy {
    margin-top: 1px;
    color: #666;
    font-size: 13px;
}

/* ==============================
   TOP 버튼
============================== */
#top_btn {
    position: fixed;
    right: 30px;
    bottom: 40px;
    width: 44px;
    height: 44px;
    background: #58ad40;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(88,173,64,0.45);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
    pointer-events: none;
}
#top_btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#top_btn:hover {
    background: #4a9a35;
    box-shadow: 0 6px 24px rgba(88,173,64,0.6);
}
#top_btn svg { width: 14px; height: 14px; display: block; }
#top_btn .top-label { font-size: 8px; font-weight: 700; letter-spacing: 0.08em; line-height: 1; }
#top_btn .sound_only { display: none; }

@media (max-width: 768px) {
    #top_btn { right: 16px; bottom: 24px; width: 40px; height: 40px; }
}

/* 모바일 */
@media (max-width: 768px) {
    .ft-inner { padding: 0 20px; }
    .ft-menu a { font-size: 13px; line-height: 46px; }
    .ft-menu li + li::before { margin: 0 12px; }
    .ft-body { padding: 30px 0; }
    .ft-body .ft-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ft-logo img { max-height: 60px; }
    .ft-info address { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
    .ft-info address span { padding-right: 0; margin-right: 0; }
    .ft-info address span::after { display: none; }
    .ft-copy { font-size: 12px; margin-top: 8px; }
    #top_btn { right: 16px; bottom: 24px; width: 42px; height: 50px; }
}