
/* side-nav */
.side-nav {
    position: fixed;
    left: 20px;
    bottom: 60px;
    z-index: 1000;
    display: flex;
    gap: 20px;
    color: var(--primary-400);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}
.side-nav.show {
    opacity: 1;
    pointer-events: visible;
}

.side-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.side-nav li {
    cursor: pointer;
    transition: color .3s ease;
    padding: 4px 0;
}

.side-nav li.active {
    color: var(--primary-600);
    font-weight: 500;
}

/* 세로 라인 */
.side-line {
    width: 1px;
    background: var(--primary-300);
    position: relative;
}

.side-line-active {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: calc(100% / 3);
    background: var(--primary-600);
}

/* hero */
.hero {
    width: 100%;
    height: 100vh;
}
.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: var(--primary-300);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: drop ease-in-out 40s infinite;
    animation-delay: calc(var(--i) * -1.5s + var(--r) * -3s);
}

@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(--d2);
    color: var(--ft-sub);
}


/* introduction */
.pin_wrap {
    position: absolute;
    top: 0;
}
.pin {
    height: 80vh;
    display: block;
}
.logo_animation {
    height: calc(80vh * 6);
}

.logo_animation .inner {
    width: 100%;
    position: sticky;
    top: 0;
    height: 100vh;
    position: fixed;
    top: 0;
}
.logo_animation .sec-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity .6s ease;
    transition-delay: 0s;
    opacity: 1;
}


.about_logo {
    --logo-line: 4px;
    width: calc(var(--logo-line) * 5 * 8);
    height: calc(var(--logo-line) * 5 * 8);
    display: grid;
    grid-template-rows: repeat(40, 1fr);   
    /* overflow: hidden; */
}

.about_logo > div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.about_logo .al_1 {
    height: calc(var(--logo-line) * 5);
    grid-row: 36 / span 5;
}
.about_logo .al_2 {
    height: calc(var(--logo-line) * 2);
    grid-row: 28 / span 2;
}
.about_logo .al_3 {
    height: var(--logo-line);
    grid-row: 20 / span 1;
}
.about_logo .al_4 {
    height: var(--logo-line);
}
.about_logo .line {
    background: var(--primary-600);
    opacity: 0;
    transform: translateY(-10px);
    display: block;
    width: 100%;
    height: calc(var(--logo-line) / 2);
    /* transition: opacity .5s ease, transform .7s ease, background .5s ease ; */
}
.about_logo.is-complete .line,
.about_logo.is-complete > div {
    background: var(--primary-600);

}
/* .about_logo > div > span.active {
    opacity: 1;
    transform: translateY(0);
} */
.about_text {
    position: relative;
    margin-top: var(--con-gap);
    width: 100%;
}
.about_text p {
    font-size: var(--d1);
    color: var(--ft-sub);
    opacity: 0;
    /* filter: blur(10px); */
    position: absolute;
    top: 0;
    text-align: center;
    width: 100%;
}
/* .about_text p:first-child {
    position: relative;
} */
/* .about_text p.active {
    opacity: 1;
    filter: blur(0);
} */


/* line_animation */
.line_animation {
    height: 200vh;
}
.line_animation .inner {
    width: 100%;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.line_animation .sec-content {
    width: 100%;
}
.line_animation .line {
    width: 100%;
    opacity: 0;
    height: 1px;
    background: var(--primary-600);
    /* transform: scaleX(0); */
}
.line_animation p {
    font-size: var(--d1);
    color: var(--ft-sub);
    text-align: left;
    opacity: 0;
}
.line_animation p.text_1 {
    margin-bottom: 40px;
}
.line_animation p.text_2 {
    text-align: right;
    margin-top: 40px;
}

/* principle */
.about-next {
    padding: var(--sec-gap) 0;
    background: var(--primary-300);
}

.about-next .sec-header {
    margin-bottom: var(--con-gap);
    border-bottom: 1px solid var(--primary-400);
    padding-bottom: calc(var(--con-gap) / 1.2);
}

.about-next .sec-title {
    margin-bottom: 40px;
}

.about-next .sec-sub_title {
    color: var(--ft-sub);
    max-width: 720px;
}


.principle-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--con-gap) / 2);
    margin-top: var(--con-gap);
}

.principle-list li {
    border: 1px solid var(--primary-400);
    padding: calc(var(--con-gap) / 1.1);
    border-radius: 2px;
    transition: transform .35s ease, border-color .35s ease, background .35s ease;
}

.principle-list li:hover {
    transform: translateY(-4px);
    border-color: var(--primary-500);
    /* background: var(--primary-100); */
}

.principle-list h3 {
    font-size: var(--d2);
    font-weight: var(--semi-bold);
    color: var(--ft-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.principle-list h3::before {
    content: "";
    width: 2px;
    height: 18px;
    background: var(--primary-600);
    display: inline-block;
}

.principle-list p {
    font-size: var(--d2);
    color: var(--ft-sub);
    line-height: 1.7;
}



@media screen and (max-width:1400px) {
    .principle-list li {
        padding: 40px;
    }
}
@media screen and (max-width:1200px) {
    
}
@media screen and (max-width:960px) {
    .side-nav {
        bottom: 0;
    }
    .principle-list {
        grid-template-columns: 1fr 1fr;
    }
    .info_add li {
        transform: translateY(0);
        opacity: 1;
    }
    .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:600px) {
    .logo_animation {
        height: calc(80vh * 7);
    }
    .pin {
        height: 80vh;
        display: block;
    }
    .principle-list {
        grid-template-columns: 1fr;
    }
    .btn-row {
        gap: 12px;
    }
    .btn-row .btn {
        width: 100%;
    }
}
@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;
    }  
    
}