/*
$xs-max:767px;
$sm-min:768px;
*/
/* ---------------------------------------- */
header {
  display: none;
}

/* ---------------------------------------- */
.more,
.close {
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

/* ---------------------------------------- */
#image {
  position: relative;
  height: 660px;
}

@media screen and (min-width: 560px) {
  #image {
    height: 560px;
  }
}

@media screen and (min-width: 960px) {
  #image {
    height: 620px;
  }
}

#image .text {
  position: relative;
  z-index: 2;
}

@media screen and (max-width: 559px) {
  #image .text h1 {
    width: 254.8px;
    margin-top: 280px;
  }
}

@media screen and (min-width: 560px) {
  #image .text h1 {
    width: 327.6px;
    margin-top: 210px;
  }
}

@media screen and (min-width: 960px) {
  #image .text h1 {
    width: 364px;
    margin-top: 131px;
  }
}

@media screen and (max-width: 559px) {
  #image .text h2 {
    width: 278.4px;
    margin-top: 40px;
  }
}

@media screen and (min-width: 560px) {
  #image .text h2 {
    width: 313.2px;
    margin-top: 50px;
  }
}

@media screen and (min-width: 960px) {
  #image .text h2 {
    width: 348px;
    margin-top: 60px;
  }
}

@media screen and (max-width: 559px) {
  #image .text ul {
    margin-top: 40px;
  }
}

@media screen and (min-width: 560px) {
  #image .text ul {
    margin-top: 50px;
  }
}

@media screen and (min-width: 960px) {
  #image .text ul {
    margin-top: 60px;
  }
}

#image .image {
  position: absolute;
  z-index: 1;
  top: 0;
}

@media screen and (max-width: 559px) {
  #image .image {
    width: 95%;
    right: -20px;
  }
}

@media screen and (min-width: 560px) {
  #image .image {
    width: 85%;
    right: -60px;
  }
}

@media screen and (min-width: 960px) {
  #image .image {
    right: -90px;
  }
}

#image a {
  color: #000;
  text-decoration: none;
}

#image a:hover {
  opacity: 0.7;
}

#hnav ul li {
  border-left: solid 1px #d9d9d9;
  text-align: center;
  display: block;
  float: left;
}

@media screen and (max-width: 559px) {
  #hnav ul li {
    width: 50%;
  }
}

@media screen and (min-width: 560px) {
  #hnav ul li {
    width: 25%;
  }
}

#hnav ul li .ic {
  background-repeat: no-repeat;
  background-position: center center;
  height: 60px;
  background-size: 60px 60px;
  margin-bottom: 10px;
}

#hnav ul li a {
  display: block;
  color: #000;
  text-decoration: none;
}

#hnav ul li.about .ic {
  background-image: url(/~hqmed1/asset/img/ic_nav_1_1.svg);
}

#hnav ul li.patient .ic {
  background-image: url(/~hqmed1/asset/img/ic_nav_2_2.svg);
}

#hnav ul li.education .ic {
  background-image: url(/~hqmed1/asset/img/ic_nav_3_1.svg);
}

#hnav ul li.research .ic {
  background-image: url(/~hqmed1/asset/img/ic_nav_4_2.svg);
}

#hnav ul li:last-child {
  border-right: solid 1px #d9d9d9;
}

@media screen and (max-width: 559px) {
  #hnav ul li:nth-child(2) {
    border-right: solid 1px #d9d9d9;
    margin-bottom: 20px;
  }
}

/* ---------------------------------------- */
#fnav {
  position: relative;
}

#fnav .bg {
  position: absolute;
  z-index: 1;
  top: 10%;
  left: 0;
  width: 100%;
  background-color: #52b0b1;
  height: 50px;
}

@media screen and (min-width: 560px) {
  #fnav .bg {
    top: 15%;
  }
}

#fnav .bnr {
  position: relative;
  display: inline-block;
}

#fnav .bnr img {
  position: relative;
  z-index: 3;
}

#fnav .bnr:after {
  position: absolute;
  z-index: 2;
  top: 1%;
  left: 1%;
  content: "";
  width: 98%;
  height: 98%;
  background-color: #fff;
  border-radius: 100% 100%;
}

#fnav a {
  color: #000;
  text-decoration: none;
}

#fnav .text a:hover {
  opacity: 0.7;
}

/* ---------------------------------------- */
#message {
  position: relative;
  color: #fff;
}

@media screen and (max-width: 559px) {
  #message {
    background-image: url(/~hqmed1/asset/img/bg_2.jpg);
  }
}

@media screen and (min-width: 560px) {
  #message {
    background-image: url(/~hqmed1/img/bg_message.jpg);
    background-repeat: repeat-y;
    background-size: contain;
  }
}

#message .xs-image {
  text-align: center;
}

@media screen and (min-width: 560px) {
  #message .xs-image {
    display: none;
  }
}

#message .xs-image img {
  width: 260px;
  margin-bottom: 20px;
}

@media screen and (max-width: 559px) {
  #message .sm-image {
    display: none;
  }
}

@media screen and (min-width: 560px) {
  #message .sm-image {
    position: absolute;
    width: 45%;
    top: 100px;
    right: -70px;
  }
}

@media screen and (min-width: 960px) {
  #message .sm-image {
    position: absolute;
    top: 100px;
    right: -70px;
  }
}

/* ---------------------------------------- */
@media screen and (max-width: 559px) {
  #history .image img {
    width: 100%;
  }
  #history .text {
    position: relative;
    z-index: 2;
    padding: 30px;
    margin: 20px;
    margin-top: -30px;
    background-color: #fff;
  }
}

@media screen and (min-width: 560px) and (max-width: 959px) {
  #history .image img {
    width: 100%;
  }
  #history .text {
    position: relative;
    z-index: 2;
    padding: 40px;
    margin: 80px;
    margin-top: -30px;
    background-color: #fff;
  }
}

@media screen and (min-width: 960px) {
  #history .bg {
    padding-top: 170px;
    background-image: url(/~hqmed1/img/img_8.jpg);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 60%;
  }
  #history .image {
    display: none;
  }
  #history .text {
    margin-left: 40%;
    background-color: #fff;
    padding: 50px;
  }
}

/* ---------------------------------------- */
#staff .bg {
  position: relative;
  z-index: 1;
  background-color: #ff884e;
}

#staff .bg a {
  color: #000;
}

#staff .bg:before,
#staff .bg:after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  width: 100%;
  background-color: #fff;
}

#staff .bg:before {
  top: 0;
  height: 50px;
}

#staff .bg:after {
  bottom: 0;
  height: 180px;
}

#staff .container {
  position: relative;
  z-index: 3;
}

#staff .clickable {
  cursor: pointer;
}

/* ---------------------------------------- */
#access .map iframe {
  width: 100%;
  height: 200px;
}

@media screen and (min-width: 560px) {
  #access .map iframe {
    height: 400px;
  }
}

/* ---------------------------------------- */
#staff-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/~hqmed1/img/staff/bg_staff.jpg);
  background-size: cover;
}

#staff-popup #staff-popup-container {
  background-color: #fff;
  position: absolute;
  width: 80%;
  height: 440px;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -45%);
          transform: translate(-50%, -45%);
}

@media screen and (min-width: 560px) {
  #staff-popup #staff-popup-container {
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    width: 660px;
    height: 400px;
  }
}

#staff-popup #staff-popup-container #staff-popup-close {
  position: absolute;
  width: 40px;
  height: 40px;
  top: -40px;
  right: 0;
  cursor: pointer;
}

@media screen and (min-width: 560px) {
  #staff-popup #staff-popup-container #staff-popup-close {
    width: 50px;
    height: 50px;
    top: -50px;
    right: -50px;
  }
}

#staff-popup .staff-detail .no-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border: solid 1px #52b0b1;
}

#staff-popup .staff-detail .no-photo span {
  color: #52b0b1;
  width: 100%;
  text-align: center;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  display: inline;
}

@media screen and (max-width: 559px) {
  #staff-popup .staff-detail {
    padding: 20px;
    padding-right: 0;
  }
  #staff-popup .staff-detail .xs-scroll {
    height: 400px;
  }
  #staff-popup .staff-detail .image {
    text-align: center;
    margin-right: -20px;
  }
  #staff-popup .staff-detail .image img {
    width: 180px;
    margin-bottom: 20px;
  }
}

@media screen and (min-width: 560px) {
  #staff-popup .staff-detail .image {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 288px;
    height: 360px;
  }
  #staff-popup .staff-detail .image img {
    height: 100%;
    width: auto;
  }
  #staff-popup .staff-detail .text {
    position: absolute;
    top: 20px;
    left: 340px;
    width: 300px;
    height: 360px;
  }
  #staff-popup .staff-detail .text-only {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
  }
}

/* ---------------------------------------- */
.mCSB_scrollTools .mCSB_draggerRail {
  width: 4px;
  border-radius: 0;
}

.mCSB_scrollTools .mCSB_draggerRail {
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.2);
  filter: "alpha(opacity=20)";
  -ms-filter: "alpha(opacity=20)";
}

.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  background-color: #52b0b1;
  background-color: #52b0b1;
  filter: "alpha(opacity=100)";
  -ms-filter: "alpha(opacity=100)";
  border-radius: 0;
}

.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
  background-color: #52b0b1;
  background-color: #52b0b1;
  filter: "alpha(opacity=100)";
  -ms-filter: "alpha(opacity=100)";
}

.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar,
.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar {
  background-color: #52b0b1;
  background-color: #52b0b1;
  filter: "alpha(opacity=100)";
  -ms-filter: "alpha(opacity=100)";
}
