@charset "utf-8";

/* ===========================
   #wrap 중앙 고정
=========================== */
body {
    background-color: #fff;
}

#wrap {
    position: relative;
    max-width: 484px;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08), 4px 0 20px rgba(0, 0, 0, 0.08);
}

/* ===========================
   헤더 공통
=========================== */
#pc_header,
#m_header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 484px;
    z-index: 100;
    background-color: #fff;
    border-bottom: 1px solid #efefef;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

#pc_header.scrolled,
#m_header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* ===========================
   PC 헤더
=========================== */
#pc_header {
    display: none;
}

#pc_header .header_inner {
    width: 90%;
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#pc_header .header_img {
    height: 28px;
    width: auto;
}

#pc_header .menuarea .menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

#pc_header .menuarea .menu li a {
    color: #444;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

#pc_header .menuarea .menu li a:hover,
#pc_header .menuarea .menu li a.active {
    color: #00b8a0;
}

/* ===========================
   모바일 헤더
=========================== */
#m_header {
    display: block;
}

.m_header_inner {
    width: 90%;
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m_header_logo {
    height: 28px;
    width: auto;
}

/* 햄버거 아이콘 */
.m_menu_icon {
    width: 26px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.m_menu_icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #222;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 햄버거 → X 변환 */
.m_menu_icon.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.m_menu_icon.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.m_menu_icon.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===========================
   슬라이드 메뉴 박스
   기본 display:none → .open 시 flex
=========================== */
.m_menu_box {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateX(100%);
    width: 100%;
    max-width: 484px;
    height: 100%;
    background-color: #fff;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-sizing: border-box;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.m_menu_box.open {
    transform: translateX(-50%) translateX(0);
    visibility: visible;
}

/* 메뉴 상단 로고 + 닫기 */
.m_menu_top {
    width: 90%;
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #efefef;
    flex-shrink: 0;
}

.m_menu_close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 메뉴 목록 */
.m_main_menu {
    width: 90%;
    margin: 0 auto;
    flex: 1;
    padding: 8px 0;
}

a {
    text-decoration: none;
}

.m_main_menu li {
    border-bottom: 1px solid #f2f2f2;
    list-style: none;

}


.m_main_menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    color: #222;
    letter-spacing: -0.03em;
}

.m_main_menu li a span {
    color: #bbb;
}

.m_main_menu li a:hover {
    color: #00b8a0;
}

/* 전화번호 */
.m_menu_tel {
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid #efefef;
    flex-shrink: 0;
}

.m_menu_tel .prt-bold {
    color: #222;
    letter-spacing: -0.03em;
}

.m_menu_tel .prt-regular {
    color: #888;
    margin-top: 4px;
}

/* SNS */
.m_menu_sns {
    width: 90%;
    margin: 0 auto;
    padding: 16px 0 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.m_menu_sns a {
    border-radius: 50%;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.m_menu_sns a img {
    object-fit: contain;
}

/* 오버레이 배경 */
.m_menu_bg {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 484px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 199;
}

.m_menu_bg.open {
    display: block;
}

#pc_header .menu li a.active,
.m_main_menu li a.active {
    color: #34BAB1;
}

.m_header_nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* 스크롤바 숨김 */
    scrollbar-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m_header_nav ul li {
    text-decoration: none;
}

.m_gnb {
    display: flex;
    width: max-content;
    gap: 24px;
    list-style: none;
    margin: 10px 0;
    padding: 0;
}

.m_gnb li a {
    display: block;
    padding: 10px 0;
    color: #555;
    white-space: nowrap;
    letter-spacing: -0.03em;
    transition: color 0.2s;
}

.m_gnb li a.active {
    color: #00b8a0;
}

@media screen and (max-width: 768px) {
    #wrap {
        box-shadow: none;
    }
    body{
        margin: 0;
    }
}