@import url("base.css");
@import url("header.css");
@import url("footer.css");


/* ==============================
    Layout
============================== */
#sContainer {
    position: relative;
    /* margin-bottom: 200px; */
}


/* ==============================
   Right Fixed Menu
============================== */
#right {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: 795px;
    transform: translateY(-50%);
    z-index: 100;
}

.doctor_consult {
    position: relative;
    width: 97px;
    height: 141px;
    margin-bottom: 30px;
    overflow: hidden;
}

.doctor_consult li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.doctor_consult li.active {
    opacity: 1;
}

.doctor_consult li img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right_nav {
    margin-bottom: 10px;
    border-radius: 5px;
    background: #144891;
}


/* ==============================
   Main Visual
============================== */
.pain_visual {
    position: relative;
    height: 935px;
    overflow: hidden;
}

.pain_slider,
.pain_slider ul {
    width: 100%;
    height: 100%;
}

.pain_slider ul {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pain_slider li {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.pain_slider li.active {
    z-index: 2;
    opacity: 1;
}

.pain_slider li img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pain_pager {
    position: absolute;
    left: 50%;
    bottom: 50px;
    z-index: 20;
    display: flex;
    gap: 20px;
    transform: translateX(-50%);
}

.pain_pager button {
    width: 6px;
    height: 6px;
    padding: 0;
    /* border: 2px solid #fff; */
    border-radius: 50%;
    background: #fff;
    font-size: 0;
    cursor: pointer;
}

.pain_pager button.active {
    background: #144891;
}


#section1,
.pain-intro,
.pain-doctor-section,
.pain-equipment-section,
.pain-promise-section {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

#section1.on,
.pain-intro.on,
.pain-doctor-section.on,
.pain-equipment-section.on,
.pain-promise-section.on {
    opacity: 1;
    transform: translateY(0);
}


/* ==============================
   Medical Subject
============================== */
.pain_subject {
    height: 385px;
    background: url("../img/main/msj_bg.png") right bottom no-repeat #edf8ff;
    margin-bottom: 150px;
}

.psj_title {
    float: left;
    font-family: "Pretendard_SB";
    font-size: 36px;
    margin-right: 50px;
}

.psj_title > div {
    display: table-cell;
    height: 385px;
    vertical-align: middle;
}

.psj_title span {
    color: #144891;
    font-family: "Pretendard_M";
    font-size: 20px;
}

.psj_box {
    float: left;
}

.psj_box ul {
    padding-top: 112.5px;
}

.psj_box li {
    display: flex;
    align-items: center;
    justify-content: center;
    float: left;
    width: 160px;
    height: 160px;
    margin-right: 35px;
    overflow: hidden;
    border-radius: 50%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.5s ease;
}

.psj_box li:hover {
    background-color: rgba(255, 255, 255, 1);
}

.psj_box li:last-child {
    margin-right: 0;
}

.ps_tel {
    float: right;
    font-family: 'Pretendard_SB';
    font-size: 32px;
    color: #144891;
    padding-top: 112.5px;
}

.ps_tel p {
    display: block;
    font-family: 'Pretendard_M';
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.pst_box {
    margin-bottom: 10px;
}


.pain-clinic-page {
    width: 100%;
    overflow: hidden;
}

.pain-clinic-page .inner {
    max-width: 1520px;
    /* width: calc(100% - 40px);
    max-width: calc(100% - 40px); */
    margin: 0 auto;
}


/* intro */
.pain-intro {
    padding: 0 0 190px;
    text-align: center;
}

.pain-intro .sub-title {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 400;
    color: #444;
}

.pain-intro h2 {
    margin: 0 0 74px;
    font-size: 42px;
    line-height: 1.25;
    font-weight: 800;
    color: #111;
    letter-spacing: -1.5px;
}

.intro-card-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.intro-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.intro-card h3 {
    margin: 24px 0 13px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
    color: #111;
}

.intro-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #333;
    word-break: keep-all;
}


/* doctor */
.pain-doctor-section {
    padding: 0 0 195px;
}

.doctor-inner {
    display: grid;
    grid-template-columns: 420px 1fr;
    align-items: center;
    gap: 110px;
}

.doctor-text h2 {
    margin: 0 0 120px;
    font-size: 42px;
    line-height: 1.35;
    font-weight: 800;
    color: #111;
    letter-spacing: -1.4px;
}

.doctor-text h2 span {
    color: #0054a6;
}

.doctor-profile {
    position: relative;
}

.doctor-profile p {
    margin: 0 0 8px;
    font-size: 16px;
    color: #222;
}

.doctor-profile strong {
    display: block;
    margin-bottom: 25px;
    font-size: 31px;
    line-height: 1;
    font-weight: 800;
    color: #0054a6;
}

.doctor-profile .sign {
    position: absolute;
    top: 40px;
    left: 60px;
}


.doctor-profile ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doctor-profile li {
    font-size: 16px;
    line-height: 1.75;
    color: #555;
    word-break: keep-all;
}

.doctor-visual {
    position: relative;
    min-height: 610px;
    background: url("../img/sub/pain/doctor_bg.png") right top no-repeat;
}

.doctor-bg-text {
    position: absolute;
    right: 70px;
    top: 20px;
    z-index: 0;
    font-size: 230px;
    line-height: 1;
    font-weight: 900;
    color: rgba(0, 92, 184, 0.07);
    letter-spacing: -14px;
}

.doctor-main {
    position: absolute;
    left: 210px;
    bottom: 0;
    z-index: 2;
    width: 310px;
}

.doctor-photo {
    position: absolute;
    z-index: 3;
    overflow: hidden;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-photo.photo01 {
    right: 0;
    top: 115px;
    width: 340px;
    height: 205px;
}

.doctor-photo.photo02 {
    right: 120px;
    bottom: 35px;
    width: 340px;
    height: 215px;
}


/* equipment */
.pain-equipment-section {
    position: relative;
    padding: 80px 0 165px;
    background: url("../img/sub/pain/equip_bg.png") center top no-repeat;
    overflow: hidden;
}

.pain-equipment-section .inner {
    position: relative;
    z-index: 1;
    max-max-width: 1520px;
    width: calc(100% - 40px);
    margin: 0 auto;
}

.pain-equipment-section .section-title {
    text-align: center;
}

.pain-equipment-section .section-title h2 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 800;
    color: #111;
    letter-spacing: -1px;
}

.pain-equipment-section .section-title p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
    color: #0054a6;
}

.pain-equipment-section .equipment-wrap {
    position: relative;
    margin-top: 64px;
}

/* 슬라이더 보이는 영역 */
.pain-equipment-section .equipment-viewport {
    overflow: hidden;
    width: 100%;
}

/* 실제 움직이는 영역 */
.pain-equipment-section .equipment-list {
    display: flex;
    gap: 16px;
    will-change: transform;
}

/* 3개 노출 */
.pain-equipment-section .equipment-card {
    flex: 0 0 calc((100% - 32px) / 3);
    box-sizing: border-box;
}

.pain-equipment-section .equipment-card img {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.pain-equipment-section .equipment-card h3 {
    margin: 22px 0 12px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
    color: #111;
}

.pain-equipment-section .equipment-card h3 span {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.pain-equipment-section .equipment-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #333;
    word-break: keep-all;
}

.pain-equipment-section .slide-btn {
    position: absolute;
    width: 56px;
    height: 56px;
    top: 135px;
    z-index: 5;
    border: 0;
    cursor: pointer;
    text-indent: -9999px;
}

.pain-equipment-section .slide-btn.prev {
    left: -86px;
    background: url("../img/sub/pain/equip_prev.png") center / contain no-repeat;
}

.pain-equipment-section .slide-btn.next {
    right: -86px;
    background: url("../img/sub/pain/equip_next.png") center / contain no-repeat;
}



/* promise */
.pain-promise-section {
    padding: 78px 0 115px;
    text-align: center;
    background: #eef6ff;
}

.pain-promise-section .section-title p {
    margin-bottom: 13px;
    font-size: 17px;
    font-weight: 600;
    color: #0054a6;
}

.pain-promise-section .section-title h2 {
    margin: 0;
    font-size: 34px;
}

.promise-content {
    display: grid;
    grid-template-columns: 1fr 430px;
    align-items: end;
    gap: 95px;
    width: 1260px;
    max-width: 100%;
    margin: 70px auto 0;
}

.promise-list {
    padding-bottom: 15px;
}

.promise-list .promise-item:nth-child(even) {
    padding-left: 150px;
}

.promise-item {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 20px;
    margin-bottom: 55px;
    text-align: left;
}

.promise-item:last-child {
    margin-bottom: 0;
}

.promise-item strong {
    display: block;
    margin-top: -8px;
    font-family: 'Pretendard_Bl';
    font-size: 76px;
    line-height: 0.9;
    color: #0054a6;
    letter-spacing: -4px;
}

.promise-item h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.7px;
}

.promise-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    word-break: keep-all;
}

.promise-doctor img {
    width: 430px;
}


/* ==============================
   Responsive - Pain Clinic Main
============================== */

/* 1600px 이하 */
@media (max-width: 1600px) {
    .pain-clinic-page .inner,
    .inner_wrap {
        width: calc(100% - 60px);
        max-width: 1520px;
        margin: 0 auto;
    }

    #right {
        display: none;
    }

    .psj_title {
        margin-right: 35px;
        font-size: 32px;
    }

    .psj_box li {
        width: 145px;
        height: 145px;
        margin-right: 24px;
    }

    .psj_box li img {
        max-width: 100%;
    }

    .ps_tel {
        font-size: 28px;
    }

    .doctor-inner {
        grid-template-columns: 380px 1fr;
        gap: 70px;
    }

    .doctor-main {
        left: 170px;
    }

    .pain-equipment-section .slide-btn.prev {
        left: -66px;
    }

    .pain-equipment-section .slide-btn.next {
        right: -66px;
    }

    .promise-content {
        gap: 70px;
    }
}


/* 1280px 이하 */
@media (max-width: 1280px) {
    .pain_visual {
        height: 720px;
    }

    .pain_subject {
        height: auto;
        padding: 55px 0;
        margin-bottom: 120px;
    }

    .psj_title,
    .psj_box,
    .ps_tel {
        float: none;
    }

    .psj_title {
        margin: 0 0 35px;
        text-align: center;
        font-size: 30px;
    }

    .psj_title > div {
        display: block;
        height: auto;
    }

    .psj_box ul {
        display: flex;
        justify-content: center;
        gap: 22px;
        padding-top: 0;
    }

    .psj_box li {
        float: none;
        width: 140px;
        height: 140px;
        margin-right: 0;
    }

    .ps_tel {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 25px;
        padding-top: 35px;
        text-align: left;
        font-size: 28px;
    }

    .pst_box {
        margin-bottom: 0;
    }

    .pain-intro {
        padding-bottom: 140px;
    }

    .pain-doctor-section {
        padding-bottom: 145px;
    }

    .doctor-inner {
        grid-template-columns: 340px 1fr;
        gap: 50px;
    }

    .doctor-text h2 {
        margin-bottom: 80px;
        font-size: 38px;
    }

    .doctor-visual {
        min-height: 560px;
        background-size: contain;
    }

    .doctor-main {
        left: 130px;
        width: 280px;
    }

    .doctor-photo.photo01 {
        width: 300px;
        height: 185px;
    }

    .doctor-photo.photo02 {
        right: 70px;
        width: 300px;
        height: 190px;
    }

    .pain-equipment-section {
        padding: 70px 0 130px;
    }

    .pain-equipment-section .slide-btn {
        width: 46px;
        height: 46px;
        top: 135px;
    }

    .pain-equipment-section .slide-btn.prev {
        left: -50px;
    }

    .pain-equipment-section .slide-btn.next {
        right: -50px;
    }

    .promise-content {
        grid-template-columns: 1fr 360px;
        gap: 50px;
        margin-top: 55px;
    }

    .promise-doctor img {
        width: 360px;
    }

    .promise-list .promise-item:nth-child(even) {
        padding-left: 80px;
    }
}


/* 1024px 이하 - 태블릿 */
@media (max-width: 1024px) {
    .pain-clinic-page .inner,
    .inner_wrap {
        width: calc(100% - 40px);
    }

    .pain_visual {
        height: 560px;
    }

    .pain_subject {
        margin-bottom: 95px;
        padding: 50px 0;
        background-size: 360px auto;
    }

    .psj_box ul {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .psj_box li {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .psj_box li a,
    .psj_box li img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .psj_box li img {
        object-fit: contain;
    }

    .pain-intro {
        padding-bottom: 110px;
    }

    .intro-card-wrap {
        gap: 18px;
    }

    .intro-card img {
        height: 240px;
    }

    .doctor-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .doctor-text h2 {
        margin-bottom: 45px;
        text-align: center;
        font-size: 36px;
    }

    .doctor-profile {
        max-width: 540px;
        margin: 0 auto;
        text-align: center;
    }

    .doctor-profile .sign {
        position: static;
        margin: -10px 0 18px;
    }

    .doctor-visual {
        min-height: auto;
        height: 620px;
        background-position: center top;
    }

    .doctor-main {
        left: 50%;
        transform: translateX(-50%);
        width: 300px;
    }

    .doctor-photo.photo01 {
        right: 6%;
        top: 100px;
    }

    .doctor-photo.photo02 {
        right: 16%;
        bottom: 35px;
    }

    .pain-equipment-section .equipment-wrap {
        padding: 0 55px;
    }

    .pain-equipment-section .slide-btn.prev {
        left: 0;
    }

    .pain-equipment-section .slide-btn.next {
        right: 0;
    }

    .pain-equipment-section .equipment-card img {
        height: 230px;
    }

    .promise-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .promise-list {
        padding-bottom: 0;
    }

    .promise-list .promise-item:nth-child(even) {
        padding-left: 0;
    }

    .promise-item {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .promise-doctor {
        order: -1;
    }

    .promise-doctor img {
        width: 330px;
        max-width: 80%;
    }
}


/* 768px 이하 - 모바일 */
@media (max-width: 768px) {
    .pain-clinic-page .inner,
    .inner_wrap,
    .pain-equipment-section .inner {
        width: calc(100% - 30px);
    }

    #sContainer {
        overflow: hidden;
    }

    .pain_visual {
        height: 360px;
    }

    .pain_pager {
        bottom: 25px;
        gap: 12px;
    }

    .pain_subject {
        margin-bottom: 75px;
        padding: 42px 0;
        background-size: 280px auto;
    }

    .psj_title {
        margin-bottom: 28px;
        font-size: 25px;
        line-height: 1.35;
    }

    .psj_title span {
        font-size: 16px;
    }

    .psj_box ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .ps_tel {
        display: block;
        padding-top: 30px;
        text-align: center;
        font-size: 25px;
    }

    .ps_tel p {
        font-size: 15px;
    }

    .pst_box {
        margin-bottom: 18px;
    }

    .pst_rb img {
        max-width: 190px;
    }

    .pain-intro {
        padding-bottom: 80px;
    }

    .pain-intro .sub-title {
        font-size: 15px;
    }

    .pain-intro h2 {
        margin-bottom: 42px;
        font-size: 30px;
    }

    .intro-card-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .intro-card img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .intro-card h3 {
        margin: 18px 0 8px;
        font-size: 19px;
    }

    .intro-card p {
        font-size: 14.5px;
    }

    .intro-card p br {
        display: none;
    }

    .pain-doctor-section {
        padding-bottom: 85px;
    }

    .doctor-text h2 {
        margin-bottom: 32px;
        font-size: 28px;
        line-height: 1.45;
    }

    .doctor-profile strong {
        font-size: 28px;
    }

    .doctor-profile li {
        font-size: 14.5px;
        line-height: 1.65;
    }

    .doctor-visual {
        height: auto;
        min-height: 520px;
        background-size: 100% auto;
        background-position: center top;
    }

    .doctor-main {
        width: 250px;
        left: 50%;
        bottom: 0;
    }

    .doctor-photo.photo01 {
        top: 70px;
        right: 0;
        width: 210px;
        height: 128px;
    }

    .doctor-photo.photo02 {
        right: auto;
        left: 0;
        bottom: 70px;
        width: 210px;
        height: 132px;
    }

    .pain-equipment-section {
        padding: 55px 0 85px;
        background-size: cover;
    }

    .pain-equipment-section .section-title h2,
    .pain-promise-section .section-title h2 {
        font-size: 27px;
    }

    .pain-equipment-section .section-title p,
    .pain-promise-section .section-title p {
        font-size: 15px;
    }

    .pain-equipment-section .equipment-wrap {
        margin-top: 40px;
        padding: 0 42px;
    }

    .pain-equipment-section .equipment-card img {
        height: 210px;
    }

    .pain-equipment-section .equipment-card h3 {
        margin-top: 18px;
        font-size: 17px;
    }

    .pain-equipment-section .equipment-card h3 span {
        display: block;
        margin-top: 4px;
        font-size: 13px;
    }

    .pain-equipment-section .equipment-card p {
        font-size: 14px;
    }

    .pain-equipment-section .slide-btn {
        width: 36px;
        height: 36px;
        top: 95px;
    }

    .pain-promise-section {
        padding: 58px 0 80px;
    }

    .promise-content {
        margin-top: 38px;
        gap: 30px;
    }

    .promise-doctor img {
        width: 260px;
    }

    .promise-item {
        display: grid;
        grid-template-columns: 42px 1fr;
        gap: 14px;
        margin-bottom: 34px;
    }

    .promise-item strong {
        margin-top: -4px;
        font-size: 52px;
        letter-spacing: -2px;
    }

    .promise-item h3 {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .promise-item p {
        font-size: 14px;
        line-height: 1.65;
    }

    .promise-item p br {
        display: none;
    }
}


/* 480px 이하 - 작은 모바일 */
@media (max-width: 480px) {
    .pain-clinic-page .inner,
    .inner_wrap,
    .pain-equipment-section .inner {
        width: calc(100% - 24px);
    }

    .pain_visual {
        height: 300px;
    }

    .pain_subject {
        padding: 36px 0;
        margin-bottom: 65px;
    }

    .psj_title {
        font-size: 22px;
    }

    .psj_title span {
        font-size: 14px;
    }

    .ps_tel {
        font-size: 22px;
    }

    .pst_rb img {
        max-width: 170px;
    }

    .pain-intro h2 {
        font-size: 26px;
    }

    .doctor-text h2 {
        font-size: 24px;
    }

    .doctor-visual {
        min-height: 460px;
    }

    .doctor-main {
        width: 215px;
    }

    .doctor-photo.photo01 {
        width: 170px;
        height: 105px;
    }

    .doctor-photo.photo02 {
        width: 170px;
        height: 108px;
        bottom: 60px;
    }

    .pain-equipment-section .equipment-wrap {
        padding: 0 34px;
    }

    .pain-equipment-section .equipment-card img {
        height: 180px;
    }

    .pain-equipment-section .slide-btn {
        width: 30px;
        height: 30px;
        top: 82px;
    }

    .pain-equipment-section .section-title h2,
    .pain-promise-section .section-title h2 {
        font-size: 24px;
    }

    .pain-equipment-section .section-title p,
    .pain-promise-section .section-title p {
        font-size: 14px;
    }

    .promise-doctor img {
        width: 220px;
    }

    .promise-item {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 30px;
        text-align: center;
    }

    .promise-item strong {
        margin-top: 0;
        font-size: 42px;
    }

    .promise-item h3 {
        font-size: 17px;
    }

    .promise-item p {
        font-size: 13.5px;
    }
}
