/* 어드민바 아래로 */
html { margin-top: 0 !important; }
#wpadminbar { top:unset; bottom:0 }


/* - - - - - - -  - - - - - - - - - -
    table
 - - - - - - - - - - - - - - - - - */
table.timetable th,
table.timetable td {
    text-align:justify;
    line-height: 0;
}
table.timetable th::before,
table.timetable td::before,
table.timetable th::after,
table.timetable td::after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 0;
    line-height: 0;
    font-size: 0;
}
table.table {
    border-collapse: collapse;
    border: 1px solid rgba(10, 10, 10, 0.1);
    width: fit-content;
    margin: 2em auto;
    overflow: hidden;
}
table.table tr > * {
    border: transparent;
    padding: 0.75em 1.5em;
}
table.table th {
    color: #fff;
    text-align: center;
    background-color: var(--primary);
}
table.table tbody td {
    background-color: #fefefe;
    font-weight: 400;
    font-size: 0.9em;
    border: 1px solid rgba(10, 10, 10, 0.1);
}

table.table tbody td small { opacity:0.6 }

/* - - - - - - -  - - - - - - - - - -
    비급여 페이지
 - - - - - - - - - - - - - - - - - */
section.nonpay .table-wrapper { width: 100%; margin: 0.5em auto 1em; overflow-x: auto;}
section.nonpay h5.caption { font-size: 1em; margin-top:0 }
section.nonpay table.npay tr * { min-width: 6em; padding: 8px 12px; font-size: 1em }

/*section.nonpay table.npay tr td:nth-child(2),*/
/*section.nonpay table.npay tr td:nth-child(4) { min-width: 10em; }*/

section.nonpay p.txt-right { font-size: 0.9rem; }

/* - - - - - - -  - - - - - - - - - -
    비급여 페이지
 - - - - - - - - - - - - - - - - - */
section.nonpay h1.caption { font-size: 1.5em; text-align: center; color: var(--primary); margin-top:50px; font-weight:400; padding:0.6em;}

section.nonpay .tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    grid-gap: 0.6em;
    width: 90%;
    margin: 0 auto;
}
section.nonpay .tabs .tab-button {
    padding: 1em;
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    background: #fff;
    border-radius: 5px;
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: background 0.3s;
}
section.nonpay .tabs .tab-button.active {
    background: var(--primary);
    color: #FFF;
}

section.nonpay .swiper-container {
    width: 100%;
    overflow: hidden;
    padding-bottom: 10px;
}


section.nonpay table.npay {
    border-top: 2px solid var(--primary);
    border-collapse: collapse;
    width: 100%;
    background-color:rgba(255, 255, 255, 0.8);
}
section.nonpay p.txt-right {
    margin-top: 1.5em;
    font-weight: 600;
    color: #aaa;
    font-size: 1rem;
}
section.nonpay table.npay tr * { border: 1px solid rgba(10,10,10,.1); padding: 15px 10px; font-weight: 400; text-align: center; }
section.nonpay table.npay thead th { background-color:#f6f7f7; font-weight: 500; }
section.nonpay table.npay tr:hover td { background-color:#f6f7f7; color:var(--primary); }


/* 404 error */
section.page404 {
    height: 80vh;
    background-image: url('./img/main-endoscope-gridbg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
section.page404 .inner {
    width: 100vw;
    background-color:rgba(255, 255, 255, .4);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
section.page404 strong {
    display: block;
    color: var(--primary);
    font-size: 4.5em;
    line-height: 1.0;
    letter-spacing: 0;
    font-weight: 700;
}
section.page404 strong small {
    display: block;
    font-family: inherit;
    text-transform: capitalize;
    color: inherit;
    text-align: inherit;
    font-size: 0.25em;
    font-weight: 400;
}
section.page404 h4.txt-center {
    font-size: 1.3em;
    margin: 1.5em auto 0.25em;
    letter-spacing: 0;
}
section.page404 h4.txt-center + p {
    opacity: 0.6;
}

section a.btn.btn404 {
    color: #fff;
    background-color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 3px;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    padding: 0.6em 2em;
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
    margin: 2.5em auto 0;
    transition:all ease 0.2s;
}

section a.btn.btn404:hover {
    color: var(--primary);
    background-color: transparent;
    transform: translateY(5px);
    box-shadow: 0 0 0 rgba(0,0,0,.1);
}













/* - - - - - - -  - - - - - - - - - -
     footer subpage template
 - - - - - - - - - - - - - - - - - */
/* footer subpage template */
section.sub.footer-trio > div.inner {
    padding: 60px 100px 100px;
    width: 1200px;
    font-size: 16px;
/*    box-shadow: 0 0 40px var(--beige);*/
}
section.sub.footer-trio.nonpay > div.inner {
    border-left: 0;
    border-right: 0;
    padding: 60px 0 100px;
    box-shadow: none;
    font-size: 16px;
}
section.sub.footer-trio > div.inner p {
    margin-bottom: 1em;
    padding: 0;
    line-height: 1.8;
    text-align: justify;
    word-break: break-all;
    text-indent: 1em;
}
section.sub.footer-trio > div.inner p strong {
    font-size: 1.1em;
    margin-top: 2em;
    display: inline-block;
    font-weight: 500;
    color: var(--black);
    letter-spacing: -0.05em;
}
section.sub.footer-trio > div.inner h5 {
    text-align-last: center;
    font-size: 1.3em;
    letter-spacing: -0.04em;
    font-weight: 400;
}

section.sub.footer-trio > div.inner p + h5 {
    padding: 3em 1.0em 0.5em;
}
section.sub.footer-trio > div.inner  p.op60 {
    display: inline-block;
    width: 100%;
    margin: 3em auto 0;
    font-size:0.9em;
    text-align: center;
 }
section.sub.footer-trio > div.inner blockquote {
    border: 1px solid rgba(20, 20, 20, .05);
    background-color: #f5f5f5;
    margin: 2em auto;
    padding: 1.5em 2em 1.5em 1.5em;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
}
section.sub.footer-trio > div.inner blockquote p {
    line-height: 1.8;
    letter-spacing:0.01em;
    font-size: 0.9em;
    opacity:0.8;

    text-indent: -1.5em;
    padding-left: 2em;
    margin-bottom: 0;
}
section.sub.footer-trio > div.inner blockquote p + p {
    margin-top: 0.4em;
}

#popup .popup-control .close-area *,
#popup .popup-control .close-area { color:#fff !important; font-size:14px }

/* mobile */
@media screen and (max-width: 1025px) {

    /* footer subpage template */
    section.sub.footer-trio > div.inner {
        padding: 30px;
        width: 100vw;
        overflow: hidden;
        box-shadow: none;
        font-size: 12px;
    }
    section.sub.footer-trio.nonpay > div.inner {
        border-left: 0;
        border-right: 0;
        padding: 30px 0 100px;
        font-size: 12px;
    }
    .table-wrapper { width: 100%; margin: 0.5em auto 1em; overflow-x: auto;}


    section.nonpay .tabs {grid-template-columns: repeat(2, 1fr); grid-gap: 5px; width: 90%;}
    section.nonpay .tabs .tab-button { padding: 0.5em; border-width: 1px; border-radius:3px; }


    section.nonpay .table-wrapper { width: 90vw; margin: 0.5em auto 1em; overflow-x: auto;}
    section.nonpay table.npay tr * { min-width: 5em; padding: 8px 12px; font-size: 1em;}
    section.nonpay table.npay tr td:nth-child(2) {
        min-width: unset;
        text-align: left;
        padding: 8px 12px;
    }


    /* 404 error */
    section.page404 { background-position:right 30% center; background-attachment:unset; }
    section.page404 strong { font-size: 15vw; margin-bottom:2vw }
    section.page404 h4.txt-center { font-size: 5vw; padding: 0 5vw 3vw}
    section.page404 h4.txt-center + p { font-size: 3.5vw; padding: 0 5vw}
    section a.btn.btn404 { font-size: 4vw; }



    #wpadminbar { display:none }
}
