:root {
    --main-padding : 20px;
    --container-padding: 20px;
    --inactive-color: #9e9e9e;
    --primary-color: #2e7d32; /* 초록색 테마 */
    --bg-color: #f5f5f5;

}





/* 전역 공통 토스트 스타일 */
#global_toast {
    visibility: hidden;
    min-width: 280px;
    background-color: rgba(51, 51, 51, 0.95); /* 살짝 투명한 다크 그레이 */
    color: #fff;
    text-align: center;
    border-radius: 30px; /* 둥근 캡슐형 디자인 */
    padding: 14px 25px;
    position: fixed;
    z-index: 9999; /* 최상단 배치 */
    left: 50%;
    top: 50%; /* 하단에서 적당히 띄움 */
    transform: translateX(-50%) translateY(-50%);
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s, visibility 0.4s;
}

#global_toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}






#registration_root { display: flex; justify-content: center;  background:#f5f5f5; }
#main_intro { position: relative; width: 360px;  text-align: center; margin:20px; }
#main_intro img { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); max-width: 100%; height: auto; border-radius: 16px; }
#main_content { width: 660px; position:relative; isolation: isolate; 
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 
              15px 0 15px -10px rgba(0, 0, 0, 0.05), /* 오른쪽 */
             -15px 0 15px -10px rgba(0, 0, 0, 0.05); /* 왼쪽 */

} 
.main_content_wrap { padding-left:var(--container-padding); padding-right:var(--container-padding); box-sizing:border-box; min-height: calc(100vh - 260px); background:#ffffff; padding-bottom:30px; }


/* staff_intro */
#main_intro.is_staff_area {
    /* background: linear-gradient(135deg, #1b1b1b, #121212); */
    background-color:#464646;
    color: #f5f5f5;
    padding: 26px 22px 30px;
    margin: 0;
    text-align: left;    
    font-size: 14px;
}

#main_intro.is_staff_area .staff-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

#main_intro.is_staff_area .staff-title h2 {
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
}

#main_intro.is_staff_area .staff-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

#main_intro.is_staff_area .staff-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

#main_intro.is_staff_area .staff-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.05);
    transition: background 0.18s ease, transform 0.18s ease;
}

#main_intro.is_staff_area .staff-nav a:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

#main_intro.is_staff_area .staff-nav a.active {
    background: rgba(255,255,255,0.18);
}

#main_intro.is_staff_area .staff-nav a i {
    width: 18px;
    text-align: center;
    font-size: 16px;
}


/* subtle 2px side shadow 
#main_content::before, #main_content::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px; 
    pointer-events: none;
}
#main_content::before { left: -2px; background: linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0)); }
#main_content::after { right: -2px; background: linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0)); }
*/

.rank-sub-swiper {
    padding-bottom: 20px !important; /* 숫자 키울수록 아래로 내려감 */

}

/* 2. 도트 위치 고정 해제 및 하단 배치 */
.rank-sub-swiper .swiper-pagination {
    bottom: 0 !important;           /* 박스 맨 아래쪽으로 붙임 */
    position: absolute;
    left: 0;
    width: 100%;
}

/* 3. (선택) 도트가 너무 작다면 크기 조절 */
.rank-sub-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 5px !important;
}

/* 4. 활성화된 도트 강조 */
.rank-sub-swiper .swiper-pagination-bullet-active {
    background: #007bff !important; /* 사장님 사이트 포인트 컬러로 변경 가능 */
}


.top-btn {
    position: -webkit-sticky; 
    position: absolute;
    /* top:0; */
    /* bottom: 20px; */
    right:20px;
    margin-left: auto; /* 오른쪽 정렬을 위한 설정 */
    margin-right: 20px;    
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: #003366; /* 마이페이지와 톤 맞춤 */
    color: #000;
    text-align: center;
    border-radius: 50%;
    font-size: 14px;
    z-index: 999;
    transition: all 0.3s;
    text-decoration: none !important;
    display:block;
    background-color: #fff;
    /* mix-blend-mode: difference;  배경색과 대비되는 색으로 자동 변환  */
    border:1px solid #dfdfdf;
}

/* 토스 메세지 전용 */
.custom-toast {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff !important;
    
    /* [수정] 위아래 20px, 좌우 40px로 여백을 대폭 늘려 박스를 키움 */
    padding: 20px 40px !important; 
    border-radius: 60px;
    
    font-size: 18px;    /* 글씨도 조금 더 키워 가독성 확보 */
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    
    z-index: 999999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    /* [핵심] 쪼그라들지 않게 만드는 설정 */
    width: max-content;  /* 1. PC: 글자 길이에 맞춰 박스가 넉넉하게 늘어남 */
    max-width: 90%;      /* 2. 모바일: 화면의 90%를 넘지 않게 자동 조절 */
    min-width: 300px;    /* 3. 최소 이 정도 크기는 유지해서 쪼그라듦 방지 */
    
    white-space: normal; /* 글자가 많으면 자연스럽게 줄바꿈 */
    word-break: keep-all; 
    box-sizing: border-box;
}


/* 강조 텍스트 컬러 (선택사항) */
.custom-toast b {
    color: #ffeb3b; 
}

/* 토스트끝 */


.top-btn:hover {
    background-color: #001f3f;
    transform: translateY(-5px); /* 살짝 위로 뜨는 효과 */
}

textarea { width:100%; }

.no-padding-page { --main-padding : 0px; }

#logo_wrap { display: flex; justify-content: space-between; align-items: center; padding:10px 0px; font-size:0.875rem; }
#logo_wrap .logo { width:70px; }
#logo_wrap h1 { display:flex; align-items: center; gap:5px; }
.login_wrap { display:flex; align-items: center; gap:10px; ;}
.login_wrap .login_btn { border-radius: 10px; border:1px solid #e5e7eb; padding:6px; text-decoration:none;}
.login_wrap .search_icon { color:#a9aaab; font-size:1.2rem; cursor:pointer; }
.login_btn_wrap { display: flex; font-weight: 500; gap:8px; align-items: center;  }
.login_btn_wrap a { color:#4b5563;}
.header-btn {
text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    padding: 6px 10px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}
.designer-btn {
    background: linear-gradient(135deg, #ff6b95, #a361ff);
    color: #fff !important;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 107, 149, 0.2);

}
.homepage-btn {
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    color: #fff !important;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.22);
}

.main_cate { display: flex; flex-wrap: wrap;}
.main_cate li { width: calc(100% / 4); box-sizing: border-box; text-align: center; padding:10px 0; }



/* footer */
/* 푸터 전체 영역 */
.footer-info {
    padding: 20px 20px 30px; /* 위쪽 여백을 넓혀 여유를 줌 */
    background-color: #2c2c2c;
    color: #bbb;             /* 텍스트 색상을 밝은 회색으로 변경하여 대비 */
    font-size: 13px;
    line-height: 1.8;
    text-align: left;
    border-top: 1px solid #444; /* 미세한 상단 구분선 */
}

/* 개인정보/이용약관 링크 영역 */
.privacy {
    margin-bottom: 25px; /* 정보 리스트와의 간격 확보 */
    font-weight: bold;
    color: #eee;          /* 링크 텍스트를 더 밝게 */
    display: flex;       /* 가로 배치 */
    align-items: center; /* 세로 중앙 정렬 */
    gap: 15px;            /* 세로 구분선 대신 간격 활용 */
}

/* 링크 스타일 */
.privacy a {
    color: #eee;
    text-decoration: none;
    transition: all 0.2s ease; /* 부드러운 호버 효과 */
}

/* 마우스를 올렸을 때(호버 시) 밑줄 효과 */
.privacy a:hover {
    text-decoration: underline; /* 요청하신 밑줄 효과 */
    color: #fff;               /* 호버 시 텍스트를 흰색으로 */
}

/* 사업자 정보 리스트 */
.company-details {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;       /* 가로 배치 (PC) */
    flex-wrap: wrap;    /* 자동 줄바꿈 (반응형) */
    gap: 0px 20px;       /* 항목 간 간격 확보 */
    color: #999;          /* 링크보다 조금 더 흐리게 처리 */
    font-size:14px;

}

.company-details li {
    position: relative;
    color: #aaa;
    white-space: nowrap; /* 텍스트가 줄바꿈되지 않도록 */
}




.disclaimer {
    font-size: 12px;
    color: #777;
    margin-top: 15px;
    border-top: 1px solid #3d3d3d; /* 미세한 구분선 */
    padding-top: 15px;
    letter-spacing: 0.5px; /* 글자 간격을 약간 넓히면 더 세련돼 보임 */
}


/* 카피라이트 끝 */

/* 상단카테고리 */
#main_nav { margin:40px 0; font-size:20px; }
#main_nav h2 { font-weight: 600;text-align:center;}
#bo_cate {margin:25px 0}
#bo_cate h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_cate ul {zoom:1}
#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
#bo_cate li {display:inline-block;padding:2px}
#bo_cate a {display:block;line-height:28px;padding:5px 15px;border-radius:10px;border:1px solid #f1f5f9;color:#475569;}
#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active {text-decoration:none;background:#000;color:#fff}
#bo_cate #bo_cate_on {
z-index:2;background:#000000;color:#ffffff;font-weight:bold;border:1px solid #f1f5f9;
/* -webkit-box-shadow:inset 0 2px 5px rgb(33, 135, 202);
-moz-box-shadow:inset 0 2px 5px rgb(33, 135, 202);
box-shadow:inset 0 2px 5px rgb(33, 135, 202) */
}
#bo_cate1 { display: flex; flex-wrap: wrap; margin-top:30px; gap:5px 20px; justify-content: center; }
#bo_cate1 li { width: calc(100% / 6 - 20px); text-align: center; }
#bo_cate1 span { display: inline-flex; flex-direction: column; align-items: center; font-size:12px; color:#a1a1a1; font-weight:600;gap:5px; }
#bo_cate1 span img { width:40px; }


#bottom_nav {  bottom:0; background:#fff; position:sticky; width:100%;  left:0; right:0; box-sizing: border-box; border-top:1px solid #d5d5d5; font-weight: 500; color:#444; z-index:999; bottom:-1px; 
box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);            
            overflow: hidden;
}
.main_gnb1 { display:flex; gap:20px; justify-content: space-around; align-items: center; padding:15px 0 5px; }

       /* LI 항목 스타일 */
        .main_gnb1 li {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            color: var(--inactive-color);
            font-size: 11px;
            font-weight: 500;
            -webkit-tap-highlight-color: transparent;
        }

.main_gnb1 li a {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            text-decoration: none;
            color: var(--inactive-color);
            transition: all 0.2s ease-in-out;
            -webkit-tap-highlight-color: transparent;
        }


        /* SVG 아이콘 스타일 */
        .nav-icon {
            width: 24px;
            height: 24px;
            margin-bottom: 4px;
            stroke: var(--inactive-color);
            stroke-width: 2;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
            transition: all 0.2s ease-in-out;
        }

        /* 활성화 및 호버 상태 */
        .main_gnb1 li:hover, .main_gnb1 li.active {
            color: var(--primary-color);
        }

        .main_gnb1 li:hover .nav-icon, .main_gnb1 li.active .nav-icon {
            stroke: var(--primary-color);
            transform: translateY(-3px); /* 위로 살짝 뜨는 효과 */
        }


/* hambuger */
/* 사이드 메뉴 기본 스타일 */

/* 메뉴가 열렸을 때 */
.side-menu.open {
    right: 0;
}

/* 헤더 부분 */
#side_menu_close {  font-size:24px; }
.side-menu-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 메뉴 리스트 */
.side-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.side-menu-list li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none;
    color: #333;
    font-size:14px;

}
.side-menu-list li a i { margin-right: 10px; width: 20px; text-align: center; }


.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* 메뉴보다 낮은 숫자 */
    display: none;
}

/* 2. 사이드 메뉴 (Side Menu) */
.side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1000; /* 오버레이(999)보다 높은 숫자 부여 */
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.side-menu.open + .side-menu-overlay {
    display: block;
}

.hambuger { font-size:24px;}

/* hambuger 끝 */

/* staff-top-nav는 기본 숨김 (PC에서는 사이드 메뉴가 대신 표시) */
.staff-top-nav {
    display: none;
}

@media (max-width: 800px) {
    #main_intro {display: none;}
    #main_content { width:100%;}

    /* 스태프 페이지일 때 상단에 간단한 메뉴 표시 */
    .staff-top-nav {
        display: flex;
        gap: 10px;
        padding: 12px 16px 10px;
        background: #fff;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: sticky;
        top: 0;
        z-index: 15;
    }

    .staff-top-nav a {
        flex: 1 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 12px;
        border-radius: 10px;
        border: 1px solid rgba(0,0,0,0.08);
        background: rgba(255,255,255,0.9);
        color: #2a2a2a;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
        transition: background 0.18s ease, transform 0.18s ease;
    }

    .staff-top-nav a:hover {
        background: rgba(0, 123, 255, 0.12);
        transform: translateY(-1px);
    }

    .staff-top-nav a.active {
        background: rgba(0, 123, 255, 0.16);
        border-color: rgba(0, 123, 255, 0.3);
        color: #004085;
    }

    .staff-top-nav a i {
        font-size: 14px;
        width: 18px;
        text-align: center;
    }
}


@media (max-width: 500px) {
    #bo_cate1 li { width: calc(100% / 3 - 20px);}
    /* .header-btn span { display: none;   } */
    /* .login_wrap { flex-direction: column-reverse; } */
    .designer-btn span { display:none; }
    .homepage-btn span { display:none; }
    .ham { display:none;}

}
