
/* hero */
.hero {
    width: 100%;
    height: 100vh;
    background: url('/images/location_bg_2.png') no-repeat center / cover;
    background-attachment: fixed;
}
.hero-header {
    position: fixed;
}
.hero-bg {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    opacity: 1;
}


.hero-bg .line {
    width: 100%;
    height: 1px;
    background: #E9E1D5;
    position: absolute;
    top: 0;
    left: 0;
    animation: drop ease-in-out 15s infinite;
    animation-delay: calc(var(--i) * -0.5s + var(--r) * -1s);
}

@keyframes drop {
    0% {
        transform: translateY(-1px);
    }

    100% {
        transform: translateY(100vh);
    }
}

.hero .inner {
    inset: 0;
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-title {
    margin-bottom: 16px;
    font-size: var(--t2);
}
.hero-sub_title {
    font-size: var(--ft15);
}


/* clinic */
.clinic {
    background: var(--primary-200);
    padding: var(--sec-gap) 0;
}
.clinic .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.clinic .sec-title {
    margin-bottom: 40px;
}
.clinic .sec-header {
    border-bottom: 1px solid var(--primary-300);
    padding-bottom: var(--con-gap);
}
.clinic .sec-header .sticky {
    position: sticky;
    top: 40%;
}

.clinic-list,
.clinic-list > li:nth-child(1) .clinic-text_box,
.clinic-list > li:nth-child(5) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--con-gap) 30px;
}
.clinic-list > li:nth-child(1),
.clinic-list > li:nth-child(5) {
    grid-column: span 3;
}
.clinic-img {
    height: auto;
    aspect-ratio: 1 / 1.28;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .8s ease;
}
.clinic-list > li:nth-child(1) .clinic-img {
    aspect-ratio: 2 / 1;
    height: auto;
}
.clinic-list > li:nth-child(5) .clinic-img {
    aspect-ratio: 1.64 / 1;
    height: auto;
}
.clinic-text_box {
    margin-top: calc(var(--con-gap) / 2);
}
.clinic-title {
    margin-bottom: 10px;
    font-size: var(--d1);
    color: var(--ft-main);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform .6s .3s ease, opacity .6s .3s ease;
}
.clinic-desc {
    color: var(--ft-sub);
    font-size: var(--d3);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform .6s .4s ease, opacity .6s .4s ease;
}
.clinic-list > li:nth-child(1) .clinic-text_box .clinic-desc {
    grid-column: span 2;
}
.clinic-list > li:nth-child(5) .clinic-img {
    grid-column: span 2;
}
.clinic-list > li:nth-child(5) .clinic-text_box {
    margin-top: auto;
}

.clinic-list li.active .clinic-img {
    clip-path: inset(0 0 0 0);
}
.clinic-list li.active .clinic-title,
.clinic-list li.active .clinic-desc {
    transform: translateY(0);
    opacity: 1;
}


/* contact */
.contact {
    padding: var(--sec-gap) 0;
    background: var(--primary-100);
}
.contact .sec-header {
    margin-bottom: var(--con-gap);
}

.contact_box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--con-gap) / 2);
}
.contact_box address {
    display: flex;
    flex-wrap: wrap;
    gap:10px 40px;
    color: var(--ft-sub);
    margin-bottom: var(--con-gap);
    grid-column: span 3;
}
.contact_box address a{
    width: fit-content;
}
.contact_box address p {
    font-size: var(--d2);
}
.contact_box address b {
    font-weight: var(--medium);
    color: var(--ft-main);
    margin-right: 10px;
}
.contact-map {
    grid-column: span 2;
}
.info_t li,
.info_add p{
    font-size: var(--d2);    
}
.info_add p:not(.title) {
    color: var(--ft-sub);
}

.info-title {
    font-size: var(--d1);
    color: var(--ft-main);
    margin-bottom: 30px;
    font-weight: var(--medium);
}
.info_t {
    margin-bottom: var(--con-gap);
}
.info_t li.all {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.info_t li.all span {
    width: 100px;
    height: 1px;
    background: var(--ft-sub);
    margin: 0 10px;
    display: inline-block;
}
.contact_info b {
    color: var(--ft-main);
    font-weight: var(--medium);
    margin-right: 10px;
    display: inline-block;
}
.contact_info .info_t b {
    width: 90px;
    font-weight: var(--semi-bold);
    text-transform: uppercase;
}
.contact_info .info_t .closed {
    margin-top: 20px;
}
.info_add li {
    transform: translateY(-20px);
    opacity: 0;
    display: grid;
    grid-template-columns: 90px 1fr;
}
.info_add li:not(:last-child) {
    margin-bottom: 10px;
}
.info_add li p.title{
    color: var(--ft-main);
    font-weight: var(--medium);
    margin-right: 10px;
}
.info_btn_wrap {
    display: flex;
    align-items: cneter;
    gap: 40px;
    margin-top: var(--con-gap);
}
@media screen and (max-width:1300px) {
    .clinic-list {
        grid-template-columns: 1fr 1fr;
    }
    .clinic-list > li:nth-child(1),
    .clinic-list > li:nth-child(5) {
        grid-column: span 2;
    }
    .clinic-list,
    .clinic-list > li:nth-child(1) .clinic-text_box,
    .clinic-list > li:nth-child(5) {
        grid-template-columns: 1fr 1fr;
    }   
    .clinic-list > li:nth-child(5) {
        gap: 0;
    }
    .clinic-list > li:nth-child(1) .clinic-text_box .clinic-desc {
        grid-column: auto;
    }

    .clinic-list > li:nth-child(5) .clinic-text_box {
        margin-top: calc(var(--con-gap) / 2);
        grid-column: span 2;
    }
}
@media screen and (max-width:1200px) {
    .contact_box {
        display: flex;
        flex-direction: column;
    }
}
@media screen and (max-width:960px) {
    .side-nav {
        bottom: 0;
    }
    .info_add li {
        transform: translateY(0);
        opacity: 1;
    }
    /* clinic */
    .clinic .inner {
        grid-template-columns: 1fr;
    }
    .clinic .sec-header {
        margin-bottom: var(--con-gap);
    }
    
}
@media screen and (max-width:600px) {
    .logo_animation {
        height: calc(80vh * 6);
    }
    .pin {
        height: 80vh;
        display: block;
    }
}
@media screen and (max-width:500px) {
    .clinic-list,
    .clinic-list > li:nth-child(1) .clinic-text_box {
        column-gap: 10px;
    }
}
@media screen and (max-width:400px) {
   .info_add li {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .info_add li:not(:last-child) {
        margin-bottom: 20px;
    }
    .clinic-list,
    .clinic-list > li:nth-child(1) .clinic-text_box,
    .clinic-list > li:nth-child(5) {
        grid-template-columns: 1fr;
        
    }
    .clinic-list > li:nth-child(1) .clinic-text_box{
        row-gap: 0;
    }
    
    .clinic-list > li:nth-child(1),
    .clinic-list > li:nth-child(5) {
        grid-column: auto;
    }  
    
}