/*!
 * Start Bootstrap - Createive v4.0.0-beta (http://startbootstrap.com/template-overviews/creative)
 * Copyright 2013-2017 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-creative/blob/master/LICENSE)
 */

@import url(https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/nanumsquare.css);
@import url('http://cdn.rawgit.com/young-ha/webfont-archive/master/css/NanumGothic.css');

body,
html {
    width: 100%;
    height: 100%;
}

* {
    font-family: 'NanumSquare', 'NanumGothic', Arial, sans-serif;
}

body {}

hr {
    max-width: 50px;
    border-width: 3px;
    border-color: #663399;
}

hr.light {
    border-color: white;
}

a {
    color: #663399;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
}

a:focus,
a:hover {
    color: #663399;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'NanumSquare', 'NanumGothic', Arial, sans-serif;
}

h2 {
    font-size: 1.3rem;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.bg-primary {
    background-color: #663399 !important;
}

.bg-dark {
    color: white;
    background-color: rgba(34, 34, 34, 0.19) !important;
}

.section-heading {
    font-weight: 600;
}

h2.section-heading.text-white > span {
    font-size: 1.5em;
    font-weight: 800;
    line-height: 1.3
}

.text-faded {
    color: rgba(255, 255, 255, 0.7);
}

a.btn.btn-default.btn-xl.js-scroll-trigger {
    background-color: #66ccff;
    color: #663399;
}

a.btn.btn-default.btn-xl.js-scroll-trigger:hover {
    background-color: #fff;
    color: #333;
}

section {
    padding: 130px 0;
    scroll-margin-top: 120px;

}


.section-heading {
    margin-top: 0;
}

::-moz-selection {
    color: white;
    background: #222222;
    text-shadow: none;
}

::selection {
    color: white;
    background: #222222;
    text-shadow: none;
}

img::selection {
    color: white;
    background: transparent;
}

img::-moz-selection {
    color: white;
    background: transparent;
}

body {
    -webkit-tap-highlight-color: #222222;
}

#mainNav {
    border-color: rgba(34, 34, 34, 0.05);
    background-color: white;
    font-family: 'NanumSquare', 'NanumGothic', Arial, sans-serif;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
}

#mainNav .navbar-brand {
    font-weight: 700;
    text-transform: uppercase;
    color: #663399;
    font-family: 'NanumSquare', 'NanumGothic', Arial, sans-serif;
}

#mainNav .navbar-brand:focus,
#mainNav .navbar-brand:hover {
    color: #663399;
}

#mainNav .navbar-toggle {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222222;
}

#mainNav .navbar-nav > li.nav-item > a.nav-link:focus,
#mainNav .navbar-nav > li.nav-item > a.nav-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222222;
}

#mainNav .navbar-nav > li.nav-item > a.nav-link:focus:hover,
#mainNav .navbar-nav > li.nav-item > a.nav-link:hover {
    color: #663399;
}

#mainNav .navbar-nav > li.nav-item > a.nav-link:focus.active,
#mainNav .navbar-nav > li.nav-item > a.nav-link.active {
    color: #663399 !important;
    background-color: transparent;
    font-weight: 800;
}

#mainNav .navbar-nav > li.nav-item > a.nav-link:focus.active:hover,
#mainNav .navbar-nav > li.nav-item > a.nav-link.active:hover {
    background-color: transparent;
}
.navbar .language-switch{position: absolute;top:30px;right:10px;}


/*원장사진부분*/
#about img {
    width: 100%;
    max-width: 250px;
}

#about .text-smaller {
    font-size: 13px
}

#about .about_conts {
    overflow: hidden;

}

#about .about_conts p {
    float: left;
    margin: 0;
    box-sizing: border-box;
}

/* 기본 순서 (PC) */


#about .doc_info {
    margin-left: 12%;
    margin-bottom: 40px;
}


#about .about_conts .about_left {
    color: #fff;
    font-size: 18px;
    width: 33%;
    color: #fff;
}

#about .about_conts .about_left span {
    color: #fff;
    display: block;

}


#about .about_conts .about_left a {
    color: #fff;
    display: block;
}

#about .about_conts .about_mid {
    width: 25%;
    text-align: center;
}

#about .about_conts .about_mid img {
    margin: 0 auto;
    display: block;
}



#about .about_conts .about_right.img_bundle {
    width: 42%;
    overflow: hidden;
    padding-left: 3%
}

#about .about_conts .about_right img {
    width: 30%;
    display: block;
    margin: 5px;
    float: left;
    border-radius: 5px;
}

#about .text-faded {
    text-align: center;
    margin: auto;
}

#about .img_bundle_txt {
    color: #fff;
    display: block;
    margin: auto;
    font-size: 14px;
    clear: both;
    color: #fff;
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
}

.about_pc_only {
    display: block;
}

.about_mobile_only {
    display: none;
}


/* 태블릿 대응 */
@media (max-width: 980px) {

    #about .doc_info {
        margin-left: -4%
    }



    #about .about_conts .about_mid {
        padding: 0 10px;
    }

}

/* 모바일 대응 */
@media (max-width: 768px) {
    /* 네비바 */
    .navbar .language-switch {
        top: 35px;
        right: 100px;
    }

    
    
    .about_mobile_only {
        display: block;
    }

    .about_pc_only {
        display: none;
    }



    .about_left,
    .about_mid,
    .about_right {
        float: none;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .about_right img {
        width: 30%;
        margin: 4px;
    }

    #about .about_conts p {
        width: 100% !important;
    }

    #about .about_conts .about_left {
        text-align: left;
        margin: 5%
    }

    #about .doc_info {
        margin-left: 0%
    }


}

@media (max-width: 500px) {

    #about .about_conts .about_right.img_bundle {
        padding-left: 3%
    }

}


/*포폴 진료과목*/
/* 포트폴리오 전체 영역 레이아웃 */
#portfolio_subject {
    padding: 100px 0;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    font-family: 'NanumSquare', 'NanumGothic', Arial, sans-serif;
}

/* 제목 공통 스타일 */
#portfolio_subject h3 {
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 10px;
    color: #333;
    line-height: 2;
}

/* 진료과목 + 이미지 두 영역 배치 (PC용 float 기반) */
.portfolio_container {
    overflow: hidden;
    zoom: 1;
}

.right-box {
    width: 40%;
    float: left;
    padding-left: 10px;
    box-sizing: border-box;
}

.left-box {
    width: 60%;
    float: left;
    box-sizing: border-box;
    padding-left: 60px;
}

/* 진료과목 리스트 */
.subject_text_list h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #222;
    font-weight: bold;
}


.subject_text_list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.subject_text_list ul li {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.8em;
    text-indent: 0;
    line-height: 1.6em;
    word-break: keep-all;

}

.subject_text_list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    line-height: 1.2;
    color: #000;
}

/* 이미지 그리드 */
.portfolio_image_grid {
    font-size: 0;
    /* inline-block 간격 제거 */
}

#portfolio_subject .left-box h3 {
    font-size: 20px;
    font-weight: 400;
}

.portfolio_image_grid div {
    display: inline-block;
    width: 31.33%;
    margin: 5px 1%;
    vertical-align: top;
    position: relative;
    background-color: #f9f9f9;
    overflow: hidden;
    border-radius: 6px;
}

/* 정사각 비율 유지 */
.portfolio_image_grid div::before {
    content: "";
    display: block;
    padding-top: 100%;
    /* 정사각형 유지 */
}

.portfolio_image_grid img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* 반응형 모바일 (768px 이하) */
@media (max-width: 768px) {
    .portfolio_container {
        display: block;
        padding: 0 5%;
    }

    .right-box,
    .left-box {
        float: none;
        width: 100%;
        padding: 0;
    }

    .right-box {
        margin-bottom: 40px;
    }

    .portfolio_image_grid div {
        width: 48%;
        margin: 1%;
    }

    #portfolio_subject {
        margin-left: 3%;
    }

    #portfolio_subject h3 {
        font-size: 20px;
    }

    #portfolio_subject h3.subject_h3 {
        font-size: 28px
    }

    .subject_text_list ul {
        font-size: 15px;
    }
}

/*위치안내*/
#place {
    padding: 100px 0;
}

#place .map {
    margin: 40px auto;
}

#place .map img {
    width: 100%;
    max-width: 800px;
    margin: auto;
}





.dpn {
    display: none;
}

.top_p_after {
    display: none;
}

.b_txt_after {
    display: none;
    font-weight: 600;
}

.mobile-only-message {
    display: none;
}

@media (min-width: 992px) {
    #mainNav {
        border-color: rgba(255, 255, 255, 0.3);
        /*        background-color: transparent;*/
    }

    #mainNav .navbar-brand {
        color: rgb(102, 51, 153);
    }

    /*
    #mainNav .navbar-brand:focus,
    #mainNav .navbar-brand:hover {
        color: white;
    }

*/
    #mainNav .navbar-nav > li.nav-item > a.nav-link,
    #mainNav .navbar-nav > li.nav-item > a.nav-link:focus {
        font-size: 1.2em;
    }

    /*
    #mainNav .navbar-nav > li.nav-item > a.nav-link:hover,
    #mainNav .navbar-nav > li.nav-item > a.nav-link:focus:hover {
        color: white;
    }

    #mainNav.navbar-shrink {
        border-color: rgba(34, 34, 34, 0.05);
        background-color: white;
    }
*/

    #mainNav.navbar-shrink .navbar-brand {
        font-size: 16px;
        color: #663399;
    }

    #mainNav.navbar-shrink .navbar-brand:focus,
    #mainNav.navbar-shrink .navbar-brand:hover {
        color: #663399;
    }

    #mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link,
    #mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link:focus {
        color: #222222;
    }

    #mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link:hover,
    #mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link:focus:hover {
        color: #663399;
    }


}



header.masthead {
    position: relative;
    width: 100%;
    min-height: auto;
    text-align: center;
    color: #663399;
    background-image: url("../img/header.jpg");
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

header.masthead .header-content {
    position: relative;
    width: 100%;
    padding: 150px 15px 100px;
    text-align: center;
}

header.masthead .header-content .header-content-inner h1 {
    font-size: 1.8em;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 0;
    text-transform: none;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.86);
}

header.masthead .header-content .header-content-inner hr {
    margin: 30px auto;
}

header.masthead .header-content .header-content-inner p {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 50px;
    color: white;
    text-shadow: 1px 1px 10px #8d8d8d;
    font-weight: bold;
}

@media (min-width: 768px) {
    header.masthead {
        height: 100%;
        min-height: 600px;
    }

    header.masthead .header-content {
        position: absolute;
        top: 50%;
        padding: 0 50px;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }

    header.masthead .header-content .header-content-inner {
        max-width: 1000px;
        margin-right: auto;
        margin-left: auto;
    }

    header.masthead .header-content .header-content-inner h1 {
        font-size: 50px;
    }

    header.masthead .header-content .header-content-inner p {
        font-size: 18px;
        max-width: 80%;
        margin-right: auto;
        margin-left: auto;
    }



}

.service-box {
    max-width: 400px;
    margin: 50px auto 0;
}

.service-box h2 {
    height: 120px;
    line-height: 120px;
    margin-bottom: 15px;
}

.col-lg-8.mx-auto.text-center > p > span {
    color: #888;
}

@media (min-width: 992px) {
    .service-box {
        margin: 20px auto 0;
    }
}

.service-box p {
    margin-bottom: 0;
}

.portfolio-box {
    position: relative;
    display: block;
    margin: 0 auto;
}

.portfolio-box .portfolio-box-caption {
    position: absolute;
    bottom: 0;
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    color: white;
    background: rgba(102, 51, 153, 0.77);
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category,
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
    padding: 0 15px;
    font-family: 'NanumSquare', 'NanumGothic', Arial, sans-serif;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
    font-size: 18px;
}

.portfolio-box:hover .portfolio-box-caption {
    opacity: 1;
}

.portfolio-box:focus {
    outline: none;
}



@media (min-width: 768px) {
    .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
        font-size: 16px;
    }

    .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
        font-size: 22px;
    }
}

.call-to-action {
    padding: 50px 0;
}

.call-to-action h2 {
    margin: 0 auto 20px;
}

.text-primary {
    color: #663399 !important;
}

.no-gutter > [class*='col-'] {
    padding-right: 0;
    padding-left: 0;
}

.btn-default {
    color: #222222;
    border-color: white;
    background-color: rgb(102, 51, 153);
}

.btn-default.focus,
.btn-default:focus {
    color: #222222;
    border-color: #bfbfbf;
    background-color: #e6e6e6;
}

.btn-default:hover {
    color: #222222;
    border-color: #e0e0e0;
    background-color: #66ccff;
}

.btn-default.active,
.btn-default:active,
.open > .btn-default.dropdown-toggle {
    color: #222222;
    border-color: #e0e0e0;
    background-color: #e6e6e6;
}

.btn-default.active.focus,
.btn-default.active:focus,
.btn-default.active:hover,
.btn-default:active.focus,
.btn-default:active:focus,
.btn-default:active:hover,
.open > .btn-default.dropdown-toggle.focus,
.open > .btn-default.dropdown-toggle:focus,
.open > .btn-default.dropdown-toggle:hover {
    color: #222222;
    border-color: #bfbfbf;
    background-color: #d4d4d4;
}

.btn-default.active,
.btn-default:active,
.open > .btn-default.dropdown-toggle {
    background-image: none;
}

.btn-default.disabled.focus,
.btn-default.disabled:focus,
.btn-default.disabled:hover,
.btn-default[disabled].focus,
.btn-default[disabled]:focus,
.btn-default[disabled]:hover,
fieldset[disabled] .btn-default.focus,
fieldset[disabled] .btn-default:focus,
fieldset[disabled] .btn-default:hover {
    border-color: white;
    background-color: white;
}

.btn-default .badge {
    color: white;
    background-color: #222222;
}

.btn-primary {
    color: white;
    border-color: #663399;
    background-color: #663399;
}

.btn-primary.focus,
.btn-primary:focus {
    color: white;
    border-color: #66ccff;
    background-color: #fff;
    color: #663399;
}

.btn-primary:hover {
    color: white;
    border-color: #66ccff;
    background-color: #fff;
    color: #663399;
}

.btn-primary.active,
.btn-primary:active,
.open > .btn-primary.dropdown-toggle {
    color: white;
    border-color: #66ccff;
    background-color: #66ccff;
}

.btn-primary.active.focus,
.btn-primary.active:focus,
.btn-primary.active:hover,
.btn-primary:active.focus,
.btn-primary:active:focus,
.btn-primary:active:hover,
.open > .btn-primary.dropdown-toggle.focus,
.open > .btn-primary.dropdown-toggle:focus,
.open > .btn-primary.dropdown-toggle:hover {
    color: white;
    border-color: #66ccff;
    background-color: #66ccff;
}

.btn-primary.active,
.btn-primary:active,
.open > .btn-primary.dropdown-toggle {
    background-image: none;
}

.btn-primary.disabled.focus,
.btn-primary.disabled:focus,
.btn-primary.disabled:hover,
.btn-primary[disabled].focus,
.btn-primary[disabled]:focus,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary.focus,
fieldset[disabled] .btn-primary:focus,
fieldset[disabled] .btn-primary:hover {
    border-color: #663399;
    background-color: #663399;
}

.btn-primary .badge {
    color: #663399;
    background-color: white;
}

.btn {
    font-weight: 700;
    border: none;
    border-radius: 300px;
    font-family: 'NanumSquare', 'NanumGothic', Arial, sans-serif;
}

.btn-xl {
    padding: 15px 30px;
}

a.btn.btn-default.btn-xl.sr-button {
    color: #fff;
}

.bg-dark h2 {
    line-height: 38px;
}

#adr {
    font-size: 1.2em;
    color: #663399;
    font-weight: bold;line-height: 1.7;
}
#adr span{font-weight:400;}

#call {
    margin: 0 auto;
}

#call > p {
    font-size: 1.6em;
}

.bottom_img {
    margin: auto;
}

.bottom_img img {
    max-width: 100%;
}

.warning {
    font-size: 0.7em;
    margin: 50px 10px;
    text-align: center
}

#portfolio_subject,
#place,
#contact {
    scroll-margin-top: 150px;
}

@media (max-width: 500px) {
    header a p {
        color: #fff;
    }

    header a p:hover {
        text-decoration: underline;
    }

    .portfolio-box .portfolio-box-caption {
        opacity: 1;
        text-shadow: 1px 1px 1px #000;
        background: rgba(102, 51, 153, 0);

    }

    .b_txt {
        display: none;
    }

    .b_txt_after {
        font-size: 1.5em;
        line-height: 1.5em !important;
        display: block !important;
    }

    .dpn {
        display: block !important;
        background-color: rgba(255, 255, 255, 0.8);
        width: 70px;
        border-radius: 5px;
        text-shadow: none;
        color: #333;
        font-weight: bold;
        text-align: center;
        margin: 0 auto;
    }

    .top_p {
        display: none;
    }

    .top_p_after {
        display: block !important;
        text-shadow: 1px 1px 10px #000;
         !important;
    }

    .mobile-only-message {
        display: block;
        font-size: 0.75em;
        color: #999;
        text-align: center;
        margin-bottom: 10px;
    }

    section {
        padding: 100px 0;
    }

}




/* fontawesome아이콘에만 적용할 스타일 */
.icon-img {
    width: 25px !important;
    height: 25px !important;
    display: inline-block !important;
    object-fit: contain !important;
}

.phone-icon {
    transition: filter 0.3s ease;
}

/* hover 시 보라색 필터 적용 */
.call_hover:hover .phone-icon {
    filter: invert(17%) sepia(38%) saturate(663%) hue-rotate(233deg) brightness(98%) contrast(95%);
}
