/* ------------------------------------
// clinic
----------------------------------- */
main #pagetitle .vi {
  background-image: url(img/clinic/vi.jpg);
}
main #gallery {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: flex-end;
  margin-bottom: 80px;
  position: relative;
}
main #gallery h2 {
  position: absolute;
  top: 0;
  left: 0;
}
main #gallery .thumbs {
  width: 38%;
}
main #gallery .thumbs ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: -20px;
}
main #gallery .thumbs ul::after {
  content: "";
  display: block;
  width: 140px;
  height: 0;
}
main #gallery .thumbs ul li {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 20px;
  position: relative;
}
main #gallery .thumbs ul li img {
  max-width: none;
  height: 100%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
main #gallery .thumbs ul li:hover, main #gallery .thumbs ul li.current {
  border: solid 3px #e35a67;
}
main #gallery .image {
  width: 58%;
  position: relative;
}
main #gallery .image::after {
  content: "";
  width: 111px;
  height: 172px;
  background: url(img/clinic/img_tree.png) no-repeat;
  background-size: 100% auto;
  position: absolute;
  right: -30px;
  bottom: 0;
}
main #gallery .image .slidebox {
  border-radius: 10px;
  overflow: hidden;
  background: #f9f0f1;
}
main #gallery .image .slidebox .detail {
  padding: 10px 25px 20px;
}
main #gallery .image .slidebox .detail p {
  color: #4b3614;
  margin-bottom: 0;
}
main #gallery .image .slidebox .detail p.title {
  font-size: 3rem;
  color: #e35a67;
}
main #gallery .image .slidebox .slick-arrow {
  position: absolute;
  border: none;
  width: 63px;
  height: 63px;
  top: 40%;
  transform: translateY(-50%);
  background: url(img/cmn/icon_arrow_01.png) no-repeat;
  background-size: 100% auto;
  z-index: 1;
  font-size: 0;
}
main #gallery .image .slidebox .slick-arrow.slick-prev {
  left: 20px;
  transform: translateY(-50%) scale(-1, 1);
}
main #gallery .image .slidebox .slick-arrow.slick-next {
  right: 20px;
}
main #facility ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
main #facility ul::after {
  content: "";
  display: block;
  width: 30%;
  height: 0;
}
main #facility ul li {
  width: 30%;
  margin-bottom: 45px;
}
main #facility ul li img {
  border-radius: 10px;
}
main #facility ul li .detail {
  margin: 10px 10px 0 10px;
}
main #facility ul li .detail p {
  margin: 0;
}
main #facility ul li .detail p.title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #4b3614;
  margin: 0;
}
@media screen and (max-width: 1280px) {
  main #gallery .image::after {
    right: -20px;
  }
}
@media screen and (max-width: 1240px) {
  main h2.htype01 {
    font-size: 3rem;
    padding-left: 60px;
  }
  main #gallery .thumbs ul::after {
    width: calc((38vw - 20px) * 0.3);
  }
  main #gallery .thumbs ul li {
    width: calc((38vw - 20px) * 0.3);
    height: calc((38vw - 20px) * 0.3);
  }
}
@media screen and (max-width: 1023px) {
  main #gallery .image::after {
    width: 10vw;
    height: 15.5vw;
  }
  main #gallery .image .slidebox .detail {
    padding-right: 50px;
  }
}
@media screen and (max-width: 767px) {
  main #pagetitle .vi {
    background-position: right -54vw top;
  }
  main #gallery {
    display: block;
    margin-bottom: 2rem;
  }
  main #gallery h2 {
    position: static;
    font-size: 2rem;
    padding-left: 4rem;
  }
  main #gallery .thumbs {
    width: auto;
  }
  main #gallery .thumbs ul {
    margin-bottom: 0;
  }
  main #gallery .thumbs ul::after, main #gallery .thumbs ul::before {
    width: calc((100vw - 2rem) * 0.2);
  }
  main #gallery .thumbs ul::before {
    content: "";
    display: block;
    height: 0;
    order: 1;
  }
  main #gallery .thumbs ul li {
    width: calc((100vw - 2rem) * 0.2);
    height: calc((100vw - 2rem) * 0.2);
    border-radius: 1rem;
    margin-bottom: 1.2rem;
  }
  main #gallery .thumbs ul li:hover, main #gallery .thumbs ul li.current {
    border-width: 0.3rem;
  }
  main #gallery .image {
    width: auto;
    margin-bottom: 3rem;
  }
  main #gallery .image::after {
    content: "";
    width: 5rem;
    height: 8rem;
  }
  main #gallery .image .slidebox {
    border-radius: 1rem;
  }
  main #gallery .image .slidebox .detail {
    padding: 0.5rem 3rem 1rem 1.5rem;
  }
  main #gallery .image .slidebox .detail p.title {
    font-size: 1.8rem;
  }
  main #gallery .image .slidebox .slick-arrow {
    width: 2.5rem;
    height: 2.5rem;
    top: 35%;
  }
  main #gallery .image .slidebox .slick-arrow.slick-prev {
    left: 0.5rem;
  }
  main #gallery .image .slidebox .slick-arrow.slick-next {
    right: 0.5rem;
  }
  main #facility ul {
    display: block;
  }
  main #facility ul::after {
    display: none;
  }
  main #facility ul li {
    width: auto;
    margin-bottom: 3rem;
  }
  main #facility ul li img {
    border-radius: 1rem;
  }
  main #facility ul li .detail {
    margin: 1rem 1rem 0 1rem;
  }
  main #facility ul li .detail p.title {
    font-size: 1.8rem;
  }
}