/*
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: rgba(248, 248, 248, .9);
}
header.header .gnb-floor > .inner,
header.header .sub-floor > .inner {
    width: 100%;
/*    max-width: 1700px;*/
    max-width: var(--inner);
    display: grid;
    grid-template-columns: 210px 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: 1.5em 1.5em;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25em;
    color: var(--secondary);
    font-weight: 500;
}
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);
}


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 {
}

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: 500;
    word-break: keep-all;
    white-space: nowrap;
    letter-spacing: -0.035em;
    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: var(--secondary);
    font-size: 14px;
}
footer.footer * { color:rgba(255, 255, 255, .9); text-align:center; }
footer.footer > .inner {
    padding: 60px 120px 40px;
}

/* copyright */
footer.footer .copyright {
    font-size: 0.9em;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-top: 0.75em;
}





/* quickmenu */
#quickmenu {
    position: fixed;
    right: 60px;
    bottom: 100px;
    z-index: 99;
    opacity: 1;
    transition: all ease .6s;
}
#quickmenu a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
    padding: 0.8em 2.5em 0.8em 2em;
    border-radius: 5em;
    gap: 20px;
    box-shadow: 7px 5px 10px rgba(0,0,0,.2);
}
#quickmenu a p {
    font-size: 15px;
    text-align: center;
    line-height: 1.4;
}
#quickmenu a p span {
    display: block;
    font-size: 1.6em;
    font-weight: 600;
}






/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    MAINPAGE : 메인페이지
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - 01. 메인비주얼  */
section.main-visual {
    max-width: 100vw;
    overflow: hidden;
    position: relative;
}
section.main-visual .swiper-slide {
    width: 100vw;
    height: 100vh;
    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: center;
    padding-top: 10vh;
    padding-left: 3vw;
    position: relative;
}
section.main-visual .swiper-slide p.mv-desc.line {
    color: #fff;
    font-size: 1.0em;
    text-align: center;
    padding: 0.25em 2em;
    margin-bottom: 1em;
    border: 1px solid #fff;
    border-left: 0;
    border-right: 0;
    text-shadow: 0 0 1em rgba(0, 0, 0, 0.6);
    animation-delay: 0.4s;
}
section.main-visual .swiper-slide h3.mv-title {
    color: #fff;
    font-size: 4em;
    line-height: 1.2;
    text-align:center;
    position: relative;
    margin: 0.2em auto 0.8em;
    text-shadow: 0 0 1em rgba(0, 0, 0, 0.6);
    animation-delay: 0.65s;
}
section.main-visual .swiper-slide.mv2 h3.mv-title { font-size:3.6em }

section.main-visual .swiper-slide h3.mv-title i { font-weight:300; font-size: 0.8em}
section.main-visual .swiper-slide.mv1 h3.mv-title i { font-weight:500; }

section.main-visual .swiper-slide .inner .mv-circle {
    gap: 1em;
    animation-delay: 0.8s;
}
section.main-visual .swiper-slide .inner .mv-circle div {
    background-color: #012A5EE8;
    width: 9em;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
section.main-visual .swiper-slide .inner .mv-circle div p { text-align:center; color:#fff }

section.main-visual .swiper-slide p.mv-desc.line,
section.main-visual .swiper-slide h3.mv-title,
section.main-visual .swiper-slide .inner .mv-circle {
    opacity: 0;
    transform: translateY(40px);
}

/* 애니메이션 */
section.main-visual .swiper-slide.swiper-slide-active .inner > * {
    opacity: 0;
    transform: translateY(40px);
    animation-name: on;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}
@keyframes on {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}




/* 메인비주얼 외 공통 */
section > .inner {
    --inner : 1500px;
    max-width: 80vw;
    padding: 200px 0;
}
section > .inner.pl {
    padding: 100px 0;
}
section.bg-attached {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
/* 섹션 제목영역 */
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 .title-zone p.eng {
    margin-bottom: 1em;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: 0.9em;
    font-weight: 500;
}

/* 섹션 제목  */
section .title-zone .section-title {
    font-size: 1.75em;
    color: var(--secondary);
    line-height: 1.35;
    font-weight: 600;
}
section .title-zone .section-title + p {
    color: #555;
    font-weight: 300;
    margin-top: 0.6em;
}

section.dark .title-zone .section-title { color:#fff }
section.dark .title-zone p { color:#C9D6E6 }
section.dark .title-zone p.eng { color: #7495bb; }



/* 유닛 */
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%;
}

.root_daum_roughmap,
.root_daum_roughmap_landing,
.root_daum_roughmap .wrap_map { width:100% !important; height:100% !important }

.root_daum_roughmap .cont { display:none }



/* - - - - - - - - - - - - */
section.main-card {}
section.main-card .unit.color-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}
section.main-card .unit.color-card > div {
    width: 330px;
    aspect-ratio: 4 / 5;
    border-radius: 2em;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
section.main-card .unit.color-card > div img {
    position: absolute;
    z-index: 0;
    height: 100%;
    transition: transform 0.3s ease;
}
section.main-card .unit.color-card > div:hover img { transform:scale(1.1);  }
section.main-card .unit.color-card > div .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
section.main-card .unit.color-card > div:hover .overlay { opacity: 0.7; }
section.main-card .unit.color-card > div a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 2;
}
section.main-card .unit.color-card > div a * { color: #fff }
section.main-card .unit.color-card > div a h5,
section.main-card .unit.color-card > div a p { transition: transform 0.3s ease }
section.main-card .unit.color-card > div a:hover h5 {
    transform: translateY(-1.5em);
}
section.main-card .unit.color-card > div a:hover p {
    transform: translateY(2em);
}
section.main-card .unit.color-card > div a .shape {
    height: 1em;
    margin-top: 1em;
}
section.main-card .unit.color-card > div a .shape span {
    display: block;
    width: 4.5em;
    height: 1px;
    background-color: #fff;
    transition: transform linear 0.3s;
    transform: translate3d(0%,-50%,0);
}
section.main-card .unit.color-card > div a:hover .shape span:nth-child(1) {
    transform: translate3d(0%,-50%,0) rotate(45deg);
}
section.main-card .unit.color-card > div a:hover .shape span:nth-child(2) {
    transform: translate3d(0%,-50%,0) rotate(-45deg);
}

/* - - - - - - - - - - - - */
section.main-better {}
section.main-better .inner.flex {
    gap: 100px;
}
section.main-better .title-zone {
    max-width: 750px;
}
section.main-better .title-zone .section-title + p { margin-top:2em }




/* - - - - - - - - - - - - */
section.main-clinic {}

section.main-clinic .clinic-swiper {
    overflow: hidden;
    margin-top: 3em;
    position: relative;
}
section.main-clinic .swiper-slide {
    aspect-ratio: 4 / 5;
    background-color: #f1f1f1;
    transform: scale(0.8);
    transition: all ease 0.5s;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 5px;
}
section.main-clinic .swiper-slide > div {
    opacity: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(255, 211, 70,.7) 0%, rgba(255, 0, 0, 0) 80%);
    transition: opacity 0.3s ease;
}
section.main-clinic .swiper-slide > div > a {
    width: 100%;
    height: 100%;
    display: flex;
    padding: 3em;
    justify-content: flex-start;
    align-items: flex-end;
    color: #fff;
}
section.main-clinic .swiper-slide h5 {
    line-height: 1.3;
    font-size: 2em;
    text-shadow: 0 0 1em rgba(175, 145, 48, 1.0);
}
section.main-clinic .swiper-slide h5::before {
    content: '클리닉';
    font-size: 0.6em;
    display: block;
    font-weight: 400;
}

section.main-clinic .swiper-slide.swiper-slide-active { transform: scale(1); }
section.main-clinic .swiper-slide.swiper-slide-active > div { opacity:1.0 }

section.main-clinic .swiper-button-prev,
section.main-clinic .swiper-button-next {
    display: block;
    width: 40px;
    height: 40px;
    font-size: 0;
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}
section.main-clinic .swiper-button-prev svg,
section.main-clinic .swiper-button-next svg { visibility: hidden; }
section.main-clinic .swiper-button-prev { background-image:url(./img/swiper-prev.svg) }
section.main-clinic .swiper-button-next { background-image:url(./img/swiper-next.svg) }

/* - - - - - - - - - - - - */
section.main-board {}
section.main-board .unit.latest {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
section.main-board .unit.latest > div {
}
section.main-board .unit.latest > div h5 {
    font-size: 1em;
    font-weight: 400;
    padding: 0.5em 1em;
    border: 1px solid #ddd;
    border-left: 0;
    border-right: 0;
    width: 100%;
    background-image: url(./img/board-plus.svg);
    background-repeat: no-repeat;
    background-position: center right 1em;
    background-size: auto 30%;
    color: var(--secondary);
}


/* - - - - - - - - - - - - */
section.main-locate {
    margin-top: 100px;
}
section.main-locate .inner {
    position: relative;
}
section.main-locate .inner > div {
    width: 70%;
}

section.main-locate .box {
    position: absolute;
    top: -7%;
    right: 0;
    background-color: #fff;
    border: 3px solid #849BB5;
/*    aspect-ratio: 2.5 / 1;*/
    padding: 1em 3em;

    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}
section.main-locate .box > div * {
    color: var(--secondary);
}
section.main-locate .box > div {
    padding: 2em;
    width: 100%;
}
section.main-locate .box > div + div {
    border-top: 1px solid #849bb5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2em;
}
section.main-locate .box > div ul.time {}
section.main-locate .box > div ul.time li {
    display: grid;
    grid-template-columns: 5em auto;
}
section.main-locate .box > div ul.time li b { font-size:1.0em }
section.main-locate .box > div ul.time li p { color:#869EB9 }


section.main-locate .map {
    background-color: rgba(0, 0, 0, .1);
    aspect-ratio: 2 / 1;
    border: 1px solid rgba(0, 0, 0, .2);
}









/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    SUBPAGE : 레이아웃 / 공통요소
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* 서브 헤더 */
section.sub-header {
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    background-color: #3F63A1;
    background-attachment: fixed;
}
section.sub-header > .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 500px;
}
section.sub-header * { color:#fff }
section.sub-header h1 {
    font-size: 2.75em;
    position: relative;
    text-align: center;
}
section.sub-header h1::after {
    content: '';
    display: block;
    width: 5em;
    height: 1px;
    background-color: #fff;
    margin: 0.35em auto;
}
section.sub-header h2 {
    font-size: 1.8em;
    font-weight: 400;
}


/* 탭 메뉴 전체 컨테이너 */
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;
    color: #0C4F94;
    font-size: 1.05em;
    font-weight: 600;
    padding: 0.9em;
    line-height: 1.2;
    text-align: center;
    transition: all ease 0.3s;
}
/* 마우스 올렸을 때 현재 활성화된 페이지 탭 */
.sibling-tabs li a:hover {
    background-color: #508CC9;
    color: #fff;
}
.sibling-tabs li.active a {
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
section.sub .unit.img {
    width: 72%;
    line-height: 0;
    margin: 0 auto;
}
/*section.sub .unit.img img { border: 1px solid red }*/




/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
section.qna .qna-container {
    width: 70%;
    margin: 0 auto;
}

section.qna .accordion {}
section.qna .accordion .accordion-item {}

section.qna .accordion .accordion-item button[aria-expanded=true] {
  border-bottom: 1px solid #fff;
}
section.qna .accordion button {
    position: relative;
    display: block;
    text-align: left;
    width: 100%;
    padding: 1em;
    font-size: 1.2em;
    font-weight: 600;
    border: none;
    background: #fff;
    outline: none;

    background-repeat: no-repeat;
    background-position: right 1em center;
    background-size: 12px;
    background-image: url(./img/qna-arrow.svg);

}
section.qna .accordion button:hover,
section.qna .accordion button:focus {
  cursor: pointer;
}
section.qna .accordion button:hover::after,
section.qna .accordion button:focus::after {
  cursor: pointer;
}
section.qna .accordion button .accordion-title {
    padding: 0.5em ;
    display: grid;
    gap: 0.5em;
    line-height: 1.4;
    color: var(--secondary);
    font-size: 1.0rem;
}
section.qna .accordion button .icon {
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 1.5em;
    width: 0.8em;
    height: 0.8em;
}

section.qna .accordion button[aria-expanded=true] {
    background-image: url(./img/qna-arrow-active.svg);
}

section.qna .accordion button[aria-expanded=true] + .accordion-content {
    opacity: 1;
    max-height: 12em;
    transition: all 200ms linear;
    will-change: opacity, max-height;
}
section.qna .accordion .accordion-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 200ms linear, max-height 200ms linear;
    will-change: opacity, max-height;
    background-color: #F4F4F4;
}
section.qna .accordion .accordion-content p {
    margin: 1em 0;
    padding: 0 1em 0 2em;
    font-size: 1.0rem;
    color: #757373
}
/**/
section.qna.main .qna-container {
    width: 100%;
}
section.qna.main .accordion .accordion-item:nth-child(n+4) { display:none; }
section.qna.main .accordion button { padding:0.5em }




/* - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
section.qna.main-board .unit.latest > div.qna {}
section.qna.main-board .unit.latest > div.qna .qna-container {
    width: 100%;
}
section.qna.main-board .unit.latest > div.qna .qna-container .accordion > .accordion-item:nth-child(4),
section.qna.main-board .unit.latest > div.qna .qna-container .accordion > .accordion-item:nth-child(5),
section.qna.main-board .unit.latest > div.qna .qna-container .accordion > .accordion-item:nth-child(6) { display:none; }

section.qna.main-board .unit.latest > div.qna .qna-container button {
    padding: 0.5em;
}
section.qna.main-board .accordion .accordion-content p {
    margin: 1em 0;
    padding: 0 1.5em;
    font-size: 0.85em;
    color: #757373;
}




/* - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
/*Before After*/
section.sub .unit.beforeafter {
    width: 70%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.ba-slider {
    position: relative;
    width: 100%;
    max-width: 800px; /* 원하시는 너비로 조절 */
    margin: 0 auto;
    overflow: hidden;
    user-select: none;
}
.ba-img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    background: #666;
}
.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* initial position: 50% */
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
/* 드래그 바 스타일 */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #2e7bff;
/*    cursor: ew-resize;*/
    cursor: pointer;
    transform: translateX(-50%);
}

.ba-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #2e7bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}
section.sub .unit.beforeafter .txt {
    padding: 1.5em 0;
}

section.sub .unit.beforeafter .txt h5 {
    color: #253D88;
    font-size: 1.2em;
    font-weight: 600;
}
section.sub .unit.beforeafter .txt p {
    font-size: 1rem;
    color: #687290;
    margin-top: 0.5em;

}