/* 공통 스타일 (폰트/리셋/공통 컴포넌트) */
@import url("../../common.css?v=37");

/* ===== 브랜드 테마 변수 ===== */
:root {
    --white: #fcf8f3;
    --black : #1a1a1a;
    --ink1: #F8EFE9;
    --onInk: #fcf8f3;
    --inkText: #F8EFE9;
    --font1: #5B524C;
    --font2: #3B383C;
    --line :#2D7A4F;
    --hover: #f1eeea;
    --bg: #e5ddd2;
    --heroText: #fcf8f3;
    --title1: #3B383C;
    --title2: #3B383C;
    --padding: 20px
}

html {
    background-color: var(--bg);
}

img{
    width: 30%;
    margin: 0 auto;
}

/* ===== HERO (슬라이드 페이드형) ===== */
#hero_intro{
    position: relative;
    overflow: hidden;
    height: calc(100vh - 80px);
    padding: var(--padding);
    display: flex;
    align-items: end;
}

#hero_intro .hero_slider{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#hero_intro .hero_bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    /* 사라질 때: 지연 없이 바로 페이드아웃 */
    transition: opacity 0.9s ease-in-out;
}

/* 활성 슬라이드만 노출 — common.js가 3초마다 is-active를 옮긴다.
   나타날 때: 이전 장이 다 사라진 뒤(0.9s 지연) 페이드인 → 겹침 없음 */
#hero_intro .hero_bg.is-active{
    opacity: 1;
    transition: opacity 0.9s ease-in-out 0.9s;
}

#hero_intro::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 55%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0) 100%);
}

#hero_intro .element_wrap{
    position: relative;
    z-index: 1;
    width: 100%;
    color: var(--heroText);
}

/* ===== SIGNATURE 카드 (타이틀 하단형) ===== */
.sig_card{
    position: relative;
    flex: 0 0 min(60vw, 280px);
    max-width: 500px;
    scroll-snap-align: center;
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 6px 22px rgba(94, 82, 74, 0.10);
    font-family: 'SST', 'Noto Sans TC', sans-serif;
}

.sig_thumb{
    aspect-ratio: 4 / 3;
    border-radius: 18px;
}

.sig_title{
    padding: 14px 14px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--inkText, var(--ink1));
}

/* ===== PRICE MENU / 料金メニュー (kleamH 고유) ===== */
.menu_head{
    padding: 0 var(--padding);
    margin-bottom: 20px;
}

.menu_head .section_title{
    padding: 0;
    margin-bottom: 6px;
}

.menu_period{
    font-family: 'SST', 'Noto Sans TC', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--font1);
    letter-spacing: .02em;
}

.menu_hint{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-family: 'SST', 'Noto Sans TC', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--font1);
}

.menu_hint_tap{
    flex-shrink: 0;
    background-color: var(--line);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 9px;
    border-radius: 999px;
    animation: menuTapBlink 1.6s ease-in-out infinite;
}

@keyframes menuTapBlink{
    0%, 100%{ opacity: 1; transform: translateY(0); }
    50%{ opacity: .55; transform: translateY(1px); }
}

.menu_wrap{
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 var(--padding);
}

.menu_cat{
    background-color: var(--white);
    border: 1px solid #ece6dd;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(94, 82, 74, 0.06);
    font-family: 'SST', 'Noto Sans TC', sans-serif;
}

.menu_cat_title{
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--font2);
    color: var(--inkText, var(--ink1));
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    padding: 12px 16px;
    letter-spacing: .01em;
    cursor: pointer;
    user-select: none;
    transition: background-color .2s ease;
}

.menu_cat_title:hover{
    background-color: #4a474b;
}

.menu_arrow{
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(252, 248, 243, 0.14);
    transition: transform .35s ease, background-color .5s ease;
}

/* 저장본+page.js가 화살표를 두 번 붙여도 하나만 보이게 */
.menu_cat_title > .menu_arrow ~ .menu_arrow{
    display: none !important;
}

.menu_arrow::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--inkText, var(--ink1));
    border-bottom: 2px solid var(--inkText, var(--ink1));
    transform: translate(-50%, -70%) rotate(45deg);
}

/* 펼침 시 화살표 180도 회전 */
.menu_cat.open .menu_arrow{
    transform: rotate(180deg);
}

.menu_body{
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease;
}

.menu_cat.open .menu_body{
    max-height: 20000px !important;
}

.menu_sub{
    color: var(--line);
    font-size: 11px;
    font-weight: 700;
    padding: 14px 16px 0;
    letter-spacing: .02em;
}

.menu_list{
    padding: 6px 16px 4px;
}

.event_item{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f0ebe3;
}

.event_item:last-child{
    border-bottom: none;
}

.event_name{
    flex: 1;
    min-width: 0;
    color: var(--font1);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.event_price{
    flex-shrink: 0;
    color: var(--inkText, var(--ink1));
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    text-align: right;
}

.event_price small{
    font-size: 10px;
    font-weight: 500;
    color: var(--font1);
    margin-left: 2px;
}

/* ===== 패키지형 프로그램(줄기세포 등｜명동점과 동일 구조) ===== */
.prog_pkg{
    padding: 16px;
}

.prog_pkg + .prog_pkg{
    border-top: 1px solid #f0ebe3;
}

.pkg_name{
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--font1);
}

.pkg_desc{
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--font2);
}

.pkg_steps{
    list-style: none;
    counter-reset: step;
    margin: 12px 0 4px;
    padding: 0;
}

.pkg_steps li{
    counter-increment: step;
    position: relative;
    padding: 4px 0 4px 26px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--font1);
}

.pkg_steps li::before{
    content: counter(step);
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--font2);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prog_items{
    padding: 6px 16px 4px;
}

.prog_pkg .prog_items{
    padding: 8px 0 0;
}

.menu_note{
    text-align: center;
    margin-top: 22px;
    font-family: 'SST', 'Noto Sans TC', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--font1);
}

/* ===== DOCTORS / 醫療團隊 (kleamH 고유) ===== */
#doctors{
    margin-top: 0;
    padding: 80px 0 10px;
}

.doctors_lead{
    padding: 0 var(--padding);
    margin-bottom: 24px;
    font-family: 'SST', 'Noto Sans TC', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--font1);
}

.doctors_wrap{
    display: flex;
    gap: 16px;
    padding: 4px var(--padding) var(--padding);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.doctors_wrap::-webkit-scrollbar{
    display: none;
}

.doctors_wrap{
    cursor: grab;
}

.doctors_wrap.dragging{
    cursor: grabbing;
    scroll-behavior: auto;
}

.doctors_wrap.dragging img{
    pointer-events: none;
}

.doctor_card{
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: center;
    align-self: stretch;
    background-color: var(--white);
    border: 1px solid #ece6dd;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(94, 82, 74, 0.06);
    font-family: 'SST', 'Noto Sans TC', sans-serif;
}

.doctor_thumb{
    aspect-ratio: 320 / 440;
    background-color: #fff;
}

.doctor_thumb img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.doctor_body{
    padding: 18px 18px 20px;
}

.doctor_role{
    display: inline-block;
    background-color: transparent;
    color: var(--inkText, var(--ink1));
    border: 1px solid currentColor;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.doctor_name{
    font-size: 19px;
    font-weight: 900;
    color: var(--inkText, var(--ink1));
    line-height: 1.3;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0ebe3;
}

.doctor_career{
    list-style: none;
    padding: 0;
    margin: 0;
}

.doctor_career li{
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--font1);
}

.doctor_career li:last-child{
    margin-bottom: 0;
}

.doctor_career li::before{
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--docName, var(--inkText, var(--ink1)));
}

/* ===== 브랜드 개별 오버라이드 ===== */
.info_row dd span{
    color: var(--font1);
}

.info_block > .info_note{
    margin-top: 12px;
    font-size: 10px;
    color: var(--font1);
}

.footer_name{
    font-size: 15px;
    font-weight: 700;
    color: var(--font2);
    margin-bottom: 12px;
}

.footer_line{
    font-size: 12px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--font1);
}

.footer_sep{
    margin: 0 8px;
    color: var(--font2);
}
