/*
Theme Name: 명지웰마취통증의학과
Author: Jeymedi
Author URI: https://jmedidesign.com
Description: 명지웰마취통증의학과 웹사이트 테마
Version: 1.0.0
*/

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    LAYOUT
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
body { overflow-x:hidden; }

.inner {
    width: var(--inner);
    margin: 0 auto;
    position: relative;
/*    border-left: 1px dashed magenta;*/
/*    border-right: 1px dashed magenta;*/
}


/* header */
header.header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    height: 0;
    transition: all ease 0.5s;
    z-index: 99;
}
header.header .gnb-floor {
    position: relative;
    z-index: 3;
    background-color: #fff;
    border-bottom:1px solid #ddd
}
header.header .gnb-floor > .inner,
header.header .sub-floor > .inner {
    width: 100%;
/*    max-width: 1700px;*/
    max-width: var(--inner);
    display: grid;
    grid-template-columns: 310px auto;
    align-items: center;
    justify-content: space-between;
/*    justify-content: flex-start;*/
    border-bottom:1px solid rgba(255, 255, 255, 0);
    transition: all ease 0.3s;
    grid-gap: 0 50px;
}
header.header .gnb-floor > .inner a.logo {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    background-image: url('./img/logo-header.svg');
}


header.header .sub-floor ul.menu,
header.header .gnb-floor nav.gnb ul.menu {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
}

header.header .gnb-floor nav.gnb ul.menu > li {
/*    border: 1px dashed lime;*/
    position: relative;
}
header.header .gnb-floor nav.gnb ul.menu > li a {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.1em;
    position: relative;
}
header.header .gnb-floor nav.gnb ul.menu > li > a {
    padding: 2em 1.5em;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25em;
/*    background-color: yellow;*/
}
header.header .gnb-floor nav.gnb ul.menu > li > a::after {
    content: '';
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background-repeat: no-repeat;
    background-size: 90%;
    background-position: top -0.15em center;
    background-image: url(./img/menu-arrow-down.svg);
    filter: grayscale(1);
}


header.header .gnb-floor nav.gnb ul.menu > li:hover > a,
/*header.header .gnb-floor nav.gnb ul.menu li.menu-item-has-children:nth-child(2) a {*/
header.header .gnb-floor nav.gnb ul.menu li.menu-item-has-children.current-menu-parent > a {
    /* 현재 페이지 부모 */
    color: var(--primary);
    font-weight: 600;
}

header.header .gnb-floor nav.gnb ul.menu > li:hover > a::after,
header.header .gnb-floor nav.gnb ul.menu li.menu-item-has-children.current-menu-parent > a::after {
    filter: grayscale(0);
}

header.header .gnb-floor nav.gnb ul.sub-menu {
    visibility: hidden;
    opacity: 0;
    z-index: 0;
    background-color: #fff;
    position: absolute;
    width: fit-content;
    min-width: 10em;
    left: 50%;
    top: 90%;
    transform: translate(-50%, -20px);
    border-radius: 0;
    padding: 0;
    transition: all ease 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}
header.header .gnb-floor nav.gnb ul.sub-menu.on {
    visibility: visible;
    opacity: 1;
    z-index: 2;
    transform: translate(-50%, 0);
}
header.header .gnb-floor nav.gnb ul.sub-menu li {
    display: block;
    font-size: 15px;
    padding: 0;
    transition: all ease 0.3s;
}
header.header .gnb-floor nav.gnb ul.sub-menu li a {
    width: 100%;
    padding: 0.8em 1.5em;
    position: relative;
    font-weight: 400;
    word-break: keep-all;
    white-space: nowrap;
    letter-spacing: -0.05em;
    text-align: left;
}
header.header .gnb-floor nav.gnb ul.sub-menu li.current-menu-item,
header.header .gnb-floor nav.gnb ul.sub-menu li:hover { background-color:var(--primary); color:#fff }







/* footer */
footer.footer {
    max-width: 100vw;
    overflow: hidden;
    background-color: #111;
    font-size: 14px;
}
footer.footer * { color:rgba(255, 255, 255, .9); }
footer.footer > .inner {
    padding: 60px 0 40px;
}

/* 푸터인포 */
footer.footer ul.info {
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-gap: 0 1.5em;
    flex-wrap: wrap;
    margin: 0 auto 2em;
}
footer.footer ul.info li {
    font-weight: 300;
    display: flex;
    flex-direction: row;
    grid-gap: 0.5em;
}

/* copyright */
footer.footer .copyright {
    font-size: 0.8em;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    opacity: 0.6;
}





/* quickmenu */
#quickmenu {
    display: flex;
    flex-direction: row;
    position: fixed;
    right: 50px;
    bottom: 50px;
    gap: 15px 15px;
    width: 120px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 99;
    opacity: 1;
    transition: all ease .6s;
}
#quickmenu a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 500;
    gap: 0.5em;
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
#quickmenu a img{
    border-radius: 50%;
    max-width: 50px;
}
#quickmenu a.kakao {
    width:fit-content;
    padding-right: 1em;
    font-weight: 600;
}




/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    MAINPAGE : 메인페이지
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - 01. 메인비주얼  */
section.main-visual {
    max-width: 100vw;
    overflow: hidden;
    position: relative;
}
section.main-visual .swiper-slide {
    width: 100vw;
    height: 100vh;
/*    aspect-ratio: 1920 / 1080;*/
    overflow: hidden;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
section.main-visual .swiper-slide .inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    padding-left: 3vw;
    position: relative;
}
section.main-visual .swiper-slide .inner.center {
    align-items: center;
}


section.main-visual .swiper-slide p.eng {
    letter-spacing: 0.3em;
    font-weight: 300;
    font-size: 13px;
    animation-delay: 0.3s;
    filter: opacity(0.6);
    text-transform: uppercase;
    display: none;
}
section.main-visual .swiper-slide h3.mv-title {
    font-size: 3.6em;
    margin: 0.2em 0 0.8em;
    animation-delay: 0.5s;
    line-height: 1.2;
    position: relative;
}
section.main-visual .swiper-slide h3.mv-title::after{
    content: '';
    display: block;
    width: 4.5em;
    height: 0.6em;
    border-bottom: 2px solid;

}
section.main-visual .swiper-slide .center h3.mv-title { text-align:center; margin: 0.2em auto 0.8em;}
section.main-visual .swiper-slide .center h3.mv-title::after { margin:0 auto; }

section.main-visual .swiper-slide h3.mv-title i { font-weight:300 }

section.main-visual .swiper-slide p.mv-desc {
    font-size: 1.3em;
    line-height: 1.6;
    letter-spacing: 0;
    font-weight: 300;
    animation-delay: 0.8s;
}


/* 애니메이션 */
section.main-visual .swiper-slide.swiper-slide-active .inner > * {
    opacity: 0;
    transform: translateX(-40px);
    animation-name: on;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}
@keyframes on {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateY(0); }
}


/* 메인비주얼 외 공통 */
section > .inner {
    --inner : 1500px;
    max-width: 80vw;
    padding: 200px 0;
}
/* 섹션 제목영역 */
section .title-zone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
section .title-zone.center { align-items:center; }
section .title-zone.center * { text-align:center; }
section.dark .title-zone * { color:#fff }
section.dark.checkup.intro p.intro-desc { color:#fff }
section.dark.checkup.intro p.intro-desc span { color:#FFDEC4 }

/* 섹션 부제목  */
section .title-zone p.sub {
    color: var(--secondary);
    margin-bottom: 1em;
    font-weight: 500;
    filter: opacity(0.9);
}
section.dark .title-zone p.sub { color: #FFDEC4; }

/* 섹션 제목  */
section .title-zone .section-title {
    line-height: 1.3;
    position: relative;
}
section .title-zone .section-title::after {
    content: '';
    width: 3.5em;
    height: 0.25em;
    display: block;
    margin: 0 auto;
    border-bottom: 0.15em solid var(--primary);
}

section .title-zone .p-wrap {
    margin-top: 2em;
}
section .title-zone .p-wrap p {
    font-size: 1.1em;
}

/* 유닛 */
section .unit { margin: 80px auto 0; }
section .unit.ml { margin: 40px auto; }
section .unit.nomargin { margin: 0 auto; }
section .unit.img { margin: 60px auto; }
section .unit.unit90 { width: 90%; }
section .unit.unit80 { width: 80%; }
section .unit.unit70 { width: 70%; }
section .unit.unit60 { width: 60%; }
section .unit.unit50 { width: 50%; }

/* 유닛 이미지 정렬 */
section .unit.img { text-align: center; }
section .unit.img.duo { display:flex; flex-direction: row; align-items:center; justify-content:center; gap:30px }
section .unit.img img { max-width:100% }

section > .inner.wide {
    max-width: 100vw;
    --inner : 100%;
}


/* - - - - - 메인 치료프로그램   */
section.main-program {}
section.main-program div.unit.unit-program {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
section.main-program div.unit.unit-program > a {
    display: flex;
    position: relative;
    width: 340px;
    aspect-ratio: 3 / 4;
    border-radius: 1em;
    overflow: hidden;
    z-index: 1;
}
section.main-program div.unit.unit-program.clinic > a {
    width: 430px;
    aspect-ratio: 3.5 / 4;
}
section.main-program div.unit.unit-program > a img {
    object-fit: cover;
    z-index: 0;
    transition: all ease 0.5s;
    transform-origin: left center;
}
section.main-program div.unit.unit-program > a .overlay h5 {
    font-size: 2em;
    color: #fff;
    transition: all ease 0.3s;
}
section.main-program div.unit.unit-program > a .overlay {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background-color: rgba(0, 0, 0, 0);
    padding: 1.5em 2em;
    transition: all ease 0.3s;
}

section.main-program div.unit.unit-program > a:hover .overlay {
    background-color: rgba(0, 0, 0, .5);
}
section.main-program div.unit.unit-program > a:hover img {
    transform: scale(1.1);
}
section.main-program div.unit.unit-program > a:hover .overlay h5 {
    transform: translateY(-1em);
}

/* 이용안내 */
section.main-board {}
section.main-board .unit.board-latest {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    justify-content: center;
}
section.main-board .unit.board-latest h4 {
    font-size: 1.2em;
    font-weight: 500;
}
/* 서브 게시판 */
section.sub .unit.board {
    padding: 0 5vw;
}



/* 지도 인포*/
section.main-locate {}
section.main-locate .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #ddd;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 150px;
    overflow: hidden;
}
section.main-locate .inner > .map { aspect-ratio: 5 / 4.8; margin-bottom:-12px  }
section.main-locate .inner > .txt {
    padding: 5em;
}
section.main-locate .inner > .txt .f_title {
    color: #777;
    font-size: 1.25em;
    letter-spacing: 0;
    font-weight: 700;
    border-bottom: 1px solid;
    padding-bottom: 0.2em;
    line-height: 1.4;
}
section.main-locate .inner > .txt .f_content {
    margin-top: 0.5em;
    margin-bottom: 2em;
    padding: 0.5em;
    letter-spacing: 0;
}
section.main-locate .inner > .txt ul.f_content {}
section.main-locate .inner > .txt ul.f_content li {
    display: grid;
    grid-template-columns: 1em 4.5em auto;
}
section.main-locate .inner > .txt ul.f_content li::before {
    content: '\00b7';
    font-weight: bold;
}

section.main-locate .inner > .txt ul.f_content li b { font-weight:500; }





/* - - - - - 10. 시설안내
section.main-interior {
    overflow: hidden;
}
section.main-interior .interior-swiper {
    margin: 50px 0 0;
    transform: translateX(-8vw);
}
section.main-interior .interior-swiper .swiper-wrapper {
}

section.main-interior .swiper-slide {
    width: 300px;
    height: 400px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 20px;
    transition: all ease 0.5s;
}
section.main-interior .swiper-slide.swiper-slide-active {
    width: 600px;
} */











/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    SUBPAGE : 레이아웃 / 공통요소
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* 서브 헤더 */
section.sub-header {
    margin-top: 100px;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    background-color: #222;
    background-attachment: fixed;
}
section.sub-header > .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 500px;
}
section.sub-header h1 {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: -1em;
    text-shadow: 0 0 1em rgba(0, 0, 0, .1);
}

/* 탭 메뉴 전체 컨테이너 */
section.sub.sub-tab {}
.sibling-tabs {
    --line :  #ededed;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(16%, 1fr ));
    border-bottom: 1px solid var(--line);
}
/* 기본 탭 스타일 */
.sibling-tabs li a {
    display: flex;
    width: 100%;
    justify-content: center;
    background-color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    padding: 0.8em;
    line-height: 1.2;
    text-align: center;
    transition: all ease 0.3s;
}
.sibling-tabs li + li {
    border-left: 1px solid var(--line);
}
/* 마우스 올렸을 때 현재 활성화된 페이지 탭 */
.sibling-tabs li a:hover,
.sibling-tabs li.active a {
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
}





/* - - - - - main08. main-interior - - - - - */
section.main-interior .inner {
    max-width: 100vw;
    width: 100%;
    overflow: hidden;
}

section.main-interior .title-zone { margin-bottom:2em }
section.main-interior .slide-box {
    margin-top: 100px;
    width: 100vw;
    margin: 30px auto 0;
    overflow: hidden;
}
section.main-interior .swiper-slide {
    border-radius: 5px;
    aspect-ratio: 3 / 2;
    background-color: #dcdcdc;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform-origin: center;
    opacity: 0.2;
    transition: all ease 0.8s;
}

section.main-interior .swiper-slide.swiper-slide-active {
    transform: scale(1.0);
    opacity: 1;
}
section.main-interior .control {
    display: flex;
    height: 70px;
    margin: 10px auto 0;
    width: 60%;
/*    border: 1px solid red;*/
    flex-direction: row;
    align-items: center;
    justify-content: center;
/*    position: relative;*/
    z-index: 1;
    grid-gap: 40px;
}
section.main-interior .control * {
}
section.main-interior .control .button-prev,
section.main-interior .control .button-next {
    display: block;
    aspect-ratio: 3 / 1;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
}
section.main-interior .control .button-prev { background-image:url('./img/swiper-control-prev.svg') }
section.main-interior .control .button-next { background-image:url('./img/swiper-control-next.svg') }

section.main-interior .control .swiper-pagination {
    position: static;
    width: fit-content;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9em;
    grid-gap: 1em;
    margin: 0 auto;
    color: #555;
}
section.main-interior a.btn {
    font-size: 1.1rem;
    width: 14em;
    max-width: 80%;
    margin: 0 auto;
    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 5em;
    font-family: var(--font);
    letter-spacing: 0;
    padding: 0.5em;
    gap: 0.25em;
    transition: all ease 0.3s;
}
section.main-interior a.btn::before {
    content: '+';
    line-height: 0;
    font-size: 1.6em;
}
section.main-interior a.btn:hover {
    color: #998C7A;
    border-color: #998C7A;
    background-color: transparent;
}