:root {
    --max-width: 2200px;
}

/* 공통 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { font-size: 16px; }

div, span, ul, li, a, table, tr, td, th, img, p, h1, h2, h3, h4, h5, h6 {
    color: #333;
}

a {
    text-decoration: none;
}

ul, ul li { list-style: none; margin: 0; padding: 0; }

/* 레이아웃 */
body { background-color: #EFEFEF; }

div#wrapper {
    width: 100%; 
    max-width: var(--max-width);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    background-color: #FFF;
}

div#wrapper .wrapper-hm {
    /* display: flex;
    flex-direction: row; */
}

div#wrapper .wrapper-hm > header {
    width: 220px;
    position: fixed;
    background-color: #FFF;
    min-height: 100vh;
    z-index: 9 !important; 
    border-right: 3px solid #333;
}

header .logo {
    text-align: center;
}

header .b-nav {
    position: absolute;
    bottom: 0;
    width: 300px;
    z-index: 10;
    background-color: #FFF;
    padding: 20px 0 20px 20px;
}

header .nav-pc {
    padding-left: 140px;
    font-size: 1.1rem;
    letter-spacing: -0.05em;
}

header .nav-pc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header .nav-pc ul li {
    margin-top: 10px;
}

.nav-pc ul.menu-1depth {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.nav-pc .menu-item {
    position: relative;
}

.nav-pc .menu-2depth {
    display: none;
    position: absolute;
    top: -18px;
    left: 140px; /* 오른쪽에 뜨게 */
    background: #eae9e9;
    border-top: 2px solid #333;
    padding: 10px;
    z-index: 1000;
    white-space: nowrap;
    min-width: 160px;
    /* box-shadow: 2px 2px 8px rgba(0,0,0,0.1); */
}

.nav-pc .menu-item:hover .menu-2depth {
    display: block;
}

.nav-pc .menu-2depth li {
    margin: 5px 0;
}

.nav-pc .menu-2depth li a {
    color: #333;
    text-decoration: none;
    font-size: 0.81rem;
}

.nav-pc .menu-2depth li a:hover {
    text-decoration: underline;
}

.lang {

}

.lang.pc-lang {
    margin-top: 80px;
    text-align: center;
}

.lang.mobile-lang {
    margin-top: 2rem;
}

.lang ul li {
    display: inline-block;
}

.lang img {
    width: 40px;
    height: 26px;
}

main {
    /* height: 2500px; */
    padding: 0 0 0 220px;
    /* padding: 20px 20px 20px 300px; */
    /* background-color: #FCF2F2; */
    background-color: #FFF;
    min-height: calc(100vh - 90px);
}

main #page-container {
    width: 100%;
    min-height: 100vh;
    /* padding: 20px; */
}

/* main > article img {
    max-width: 100%;
} */

main > aside {
    position: fixed;
    right: 20px;
    bottom: 20px;
}

main > aside > a {
    display: inline-block;
    padding: 6px 20px;
    background-color: #589b76;
    color: #FFF;
    font-size: 0.8rem;
    border-radius: 20px;
}

footer {
    padding: 20px 20px 20px 320px;
    /* height: 80px; */
    font-size: 0.8rem;
}

/* 개별 스타일 */
#btn-hamburger {
    position: fixed;
    top: 0;
    right: 0;
    padding: 25px;
    width: 28px;
    height: 18px;
    background: rgba(255,255,255,0);
    border: 0;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    font-size: 0;
    z-index: 9999 !important; 
    cursor: pointer;
}
#btn-hamburger span {
    position: absolute;
    top: calc(50% - 2px);
    left: 25px;
    width: 28px;
    height: 1px;
    background-color: #000;
    -webkit-transition: background-color 500ms ease;
    transition: background-color 500ms ease;
}
#btn-hamburger span:nth-of-type(1) {
    margin-top: -10%;
    -webkit-transition: margin 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 230ms, -webkit-transform 280ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms;
    transition: margin 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 230ms, -webkit-transform 280ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms;
    transition: margin 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 230ms, transform 280ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms;
    transition: margin 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 230ms, transform 280ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, -webkit-transform 280ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms;
}
#btn-hamburger span:nth-of-type(2) {
    opacity: 1;
    -webkit-transition: opacity 0ms ease 250ms;
    transition: opacity 0ms ease 250ms;
}
#btn-hamburger span:nth-of-type(3) {
    margin-top: 10%;
    -webkit-transition: margin 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 230ms, -webkit-transform 280ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms;
    transition: margin 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 230ms, -webkit-transform 280ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms;
    transition: margin 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 230ms, transform 280ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms;
    transition: margin 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 230ms, transform 280ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, -webkit-transform 280ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms;
}
/* 메뉴 열렸을 때 햄버거는 숨겨 충돌 제거 */
body.nav-open #btn-hamburger{
    opacity: 0;
    pointer-events: none;
  }
/* #btn-hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#btn-hamburger.is-active span:nth-child(2) { opacity: 0; }
#btn-hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } */

/* === Off-canvas Nav (Right 80%) === */
#mobileNav {
    position: fixed;
    top: 0; right: 0;
    width: 80vw; max-width: 480px;
    height: 100dvh; /* 모바일 키보드 대응 */
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 900;
    overflow-y: auto;
    padding: 24px 20px 40px;
    box-shadow: -8px 0 24px rgba(0,0,0,.08);
}
#mobileNav #btn-close-mobileNav{
    position: absolute;
    top: 8px; right: 8px;
    width: 44px; height: 44px;
    border: 0; background: transparent;
    cursor: pointer;
    z-index: 1;                              /* 패널 내용 위 */
}

/* X 그리기 */
#mobileNav #btn-close-mobileNav::before,
#mobileNav #btn-close-mobileNav::after{
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 2px;
  background: #111;
  transform-origin: center;
}
#mobileNav #btn-close-mobileNav::before{ transform: translate(-50%, -50%) rotate(45deg); }
#mobileNav #btn-close-mobileNav::after{  transform: translate(-50%, -50%) rotate(-45deg); }

/* 접근성: 포커스 표시 */
#mobileNav #btn-close-mobileNav:focus-visible{
  /* outline: 2px solid #555;
  outline-offset: 2px; */
  outline: none;
}

#mobileNav .mobile-section + .mobile-section { margin-top: 18px; }
/* #mobileNav .sec-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 4px;
    border-bottom: 1px solid #eee;
} */

#mobileNav .mobile-menu { 
    margin-top: 2rem;
}

#mobileNav .mobile-menu li { margin-bottom: 30px; }
#mobileNav .mobile-menu li span.num {
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.56rem;
    font-weight: bold;
}
#mobileNav .mobile-menu li span.name { 
    font-family: 'S-CoreDream-6Bold';
    font-size: 1.25rem;
    /* font-weight: bold; */
}
#mobileNav .mobile-menu li ul.sec-list { padding: 15px 4px 0 52px; }
#mobileNav .mobile-menu li ul.sec-list li {
    display: block;
    padding: 0;
    margin-bottom: 15px;
}
#mobileNav .mobile-menu li ul.sec-list li a {
    font-size: 0.8rem;
    font-family: 'S-CoreDream-3Light';
}

#mobileNav .mobile-menu-top {
    font-size: 0.8rem;
}
#mobileNav .mobile-menu-top ul li {
    font-family: 'S-CoreDream-5Medium';
    font-size: 0.8rem;
    display: inline-block;
    margin-right: 16px;
}
#mobileNav .mobile-menu-top ul li a { 
    color: #A6A6A6;
}

#mobileNav .mobile-menu-info {
    margin-top: 2rem;
    font-size: 0.8rem;
}
#mobileNav .mobile-menu-info p {
    font-family: 'S-CoreDream-3Light';
    font-size: 0.8rem;
}
#mobileNav .mobile-menu-info p.tel {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    font-weight: bold;
    font-style: italic;
    letter-spacing: -2px;
}
#mobileNav .mobile-menu-sns {
    margin-top: 2rem;
    font-size: 0.8rem;
}
#mobileNav .mobile-menu-sns .title,
#mobileNav .mobile-lang .title  {
    font-family: 'S-CoreDream-5Medium';
    font-size: 0.9rem;
    margin-bottom: 15px;
}
#mobileNav .mobile-menu-sns ul li {
    display: inline-block;
}
#mobileNav .mobile-menu-qr {
    width: 150px;
    margin-top: 2rem;
    font-size: 0.8rem;
}
#mobileNav .mobile-menu-qr #change-qr {
    font-size: 0.8rem;
    border: none;
    margin-bottom: 15px;
}
#mobileNav .mobile-menu-qr .qr-box > p {
    font-size: 0.6rem;
    font-weight: bold;
    color: #FF4B56;
    font-family: 'S-CoreDream-3Light';
    text-align: center;
}
#mobileNav .mobile-menu-qr .qr-box > img {
    width: 100%;
}


/* === Left 20% Dim Overlay === */
#mobileOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; /* 요구사항: 왼쪽 20%만 반투명 */
    height: 100dvh;
    background: rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 800;
}

/* === Open states === */
body.nav-open { overflow: hidden; }
body.nav-open #mobileNav { transform: translateX(0); }
body.nav-open #mobileOverlay { opacity: 1; pointer-events: auto; }

/* S: 개별페이지 */
main > article .main-rolling img {
    display: block;
}

main > article .main-rolling-text01 {
    position: absolute;
    bottom: calc(100vh / 2);
    right: 5%;
    width: 230px; 
    height: 230px;
    background-color: #000;
    border-radius: 50%;
    display: block;
    text-align: center;
}

main > article .main-rolling-text01 p {
    transform: translate(0, 40%);
    color: #FFF;
    font-size: 1.3rem;
}

main > article .main-rolling-text01 p span {
    color: #fdd198;
    font-size: 2rem;
}


#page-container .content > .title {
    display: block;
    margin: 0 auto 0.625rem auto;
    text-align: center;
    padding-top: 5rem;
}
#page-container .content .title h1 {
    display: inline-block;
    font-family: 'S-CoreDream-6Bold';
    font-size: 2.25rem;
    font-weight: 500;
    padding: 0.3rem 1.25em;
    border-bottom: 1px solid #000;
    margin-bottom: 0.3rem;
}
#page-container .content .title h2 {
    display: block;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.25rem;
}

.diagonal_line {
    width: 56px;
    height: 56px;
    background-image: url('/img/choiceline/diagonal_line.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* E: 개별페이지 */


/* S: 게시판 */

/* S: 수술후기 */
.p-review {
    background-color: #F5F5F5;
}

.p-review .content {
    width: 100%; 
    max-width: 1100px;
    margin: 0 auto;
}
/* E: 수술후기 */

/* E: 게시판 */


/* 브라우저 너비에 따른 분기 */
/* 768 이하 */
@media (max-width: 768px) {
}

/* 1200 이하 */
@media (max-width: 1200px) {
    header {
        width: 100%;
        position: relative;
        min-height: auto;
    }

    header .logo img {
        height: 100px;
    }

    header .b-nav {
        display: none;
    }
    main {
        /* padding: 20px; */
        padding: 0;
    }
    footer {
        padding-left: 20px;
    }
}

/* 
가로 너비 바뀌면 min-width 조건 수정해야 함 2201px -> (가로너비+1)
가로 너비 2200 이상
 */
@media (min-width: 2201px) {
    header {
        border-right: 2px solid #333;
    }

    #btn-hamburger {
        right: calc((100vw - var(--max-width)) / 2); /* 뷰포트 중앙정렬된 래퍼의 오른쪽 여백 */
        left: auto;
        transform: none;
        z-index: 9999 !important; 
    }

    main > aside {
        left: 50%;
        transform: translateX(460px);
    }

    main > article .main-rolling-text01 {
        left: 50%;
        transform: translateX(460px);
    }
}