/** VARIABLES
===================================*/
/** RESET AND LAYOUT
===================================*/
.bx-wrapper {
  position: relative;
  padding: 0;
  *zoom: 1;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  max-width: inherit !important;
}
.bx-wrapper img {
  max-width: 100%;
  display: block;
}
.bxslider {
  margin: 0;
  padding: 0;
}
ul.bxslider {
  list-style: none;
}
.bx-viewport {
  /*fix other elements on the page moving (on Chrome)*/
  -webkit-transform: translatez(0);
}

@media screen and (min-width: 961px) {
  .mainvisual-area-slider {
      position: relative;
      left: 50%;
      width: 2880px;
      margin-left: -1440px;
  }
}

@media screen and (max-width: 961px) and (min-width: 768px) {
  .mainvisual-area-slider {
    position: relative;
    left: 50%;
    margin-left: -1152px;
  }

  .mainvisual-area-slider li {
    width: 768px !important;
  }
}

.mainvisual-area-slider li {
  opacity: 0;
}

.mainvisual-area-slider .bx-viewport li {
  opacity: 1 !important;
}

/** THEME
===================================*/
.bx-wrapper {
  background: #fff;
}
.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto {
  position: absolute;
  bottom: -30px;
  width: 100%;
}
/* LOADER */
/* .bx-wrapper .bx-loading {
  min-height: 50px;
  background: url('images/bx_loader.gif') center center no-repeat #ffffff;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2000;
} */
/* PAGER */
.bx-wrapper .bx-pager {
  text-align: center;
  font-size: .85em;
  font-family: Arial;
  font-weight: bold;
  color: #666;
  padding-top: 20px;
}
.bx-wrapper .bx-pager.bx-default-pager a {
  background: #666;
  text-indent: -9999px;
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  outline: 0;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}
.bx-wrapper .bx-pager.bx-default-pager a:hover,
.bx-wrapper .bx-pager.bx-default-pager a.active,
.bx-wrapper .bx-pager.bx-default-pager a:focus {
  background: #000;
}
.bx-wrapper .bx-pager-item,
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
  display: inline-block;
  vertical-align: bottom;
  *zoom: 1;
  *display: inline;
}
.bx-wrapper .bx-pager-item {
  font-size: 0;
  line-height: 0;
}
/* DIRECTION CONTROLS (NEXT / PREV) */
.bx-wrapper .bx-prev {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: block;
  position: absolute;
  top: 32px;
  background-color: #F08300;
  left: -50px;
}

.bx-wrapper .bx-prev::after {
    content: "";
    width: 8px;
    height: 8px;
    display: block;
    position: absolute;
    top: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    z-index: 10;
    transform: rotate(-135deg);
    left: 18px;
}

.bx-wrapper .bx-next {
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: block;
  position: absolute;
  top: 32px;
  background-color: #F08300;
  right: -50px;
}

.bx-wrapper .bx-next::after {
    content: "";
    width: 8px;
    height: 8px;
    display: block;
    position: absolute;
    top: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    z-index: 10;
    transform: rotate(45deg);
    right: 18px;
}

@media screen and (max-width: 320px) {
  .bx-wrapper .bx-prev::after {
    left: 20px;
  }

  .bx-wrapper .bx-next::after {
    right: 20px;
  }
}

@media screen and (min-width: 460px) {
  .bx-wrapper .bx-prev::after {
    left: 14px;
  }

  .bx-wrapper .bx-next::after {
    right: 14px;
  }
}

.bx-wrapper .bx-controls-direction a {
  outline: 0;
  text-indent: -9999px;
  z-index: 999;
}
.bx-wrapper .bx-controls-direction a.disabled {
  display: none;
}
/* AUTO CONTROLS (START / STOP) */
.bx-wrapper .bx-controls-auto {
  text-align: center;
}
.bx-wrapper .bx-controls-auto .bx-start {
  display: block;
  text-indent: -9999px;
  width: 10px;
  height: 11px;
  outline: 0;
  /* background: url('images/controls.png') -86px -11px no-repeat; */
  margin: 0 3px;
}
.bx-wrapper .bx-controls-auto .bx-start:hover,
.bx-wrapper .bx-controls-auto .bx-start.active,
.bx-wrapper .bx-controls-auto .bx-start:focus {
  background-position: -86px 0;
}
.bx-wrapper .bx-controls-auto .bx-stop {
  display: block;
  text-indent: -9999px;
  width: 9px;
  height: 11px;
  outline: 0;
  background: url('images/controls.png') -86px -44px no-repeat;
  margin: 0 3px;
}
.bx-wrapper .bx-controls-auto .bx-stop:hover,
.bx-wrapper .bx-controls-auto .bx-stop.active,
.bx-wrapper .bx-controls-auto .bx-stop:focus {
  background-position: -86px -33px;
}
/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
  text-align: left;
  width: 80%;
}
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
  right: 0;
  width: 35px;
}
/* IMAGE CAPTIONS */
.bx-wrapper .bx-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #666;
  background: rgba(80, 80, 80, 0.75);
  width: 100%;
}
.bx-wrapper .bx-caption span {
  color: #fff;
  font-family: Arial;
  display: block;
  font-size: .85em;
  padding: 10px;
}

/* 追加 */
.custom-thumb {
    text-align: center;
    padding: 62px 0 16px;
    background-color: #F4F4F4;
    position: relative;
}

.custom-thumb-content {
  display: inline-block;
  margin-right: 6px;
  width: 54px;
}

@media screen and (max-width: 320px) {
  .custom-thumb-content {
    width: 42px;
  }
}

.custom-thumb a {
  display: inline-block;
  width: 100%;
  position: relative;
}

.costom-thumb a:last-of-type {
  margin-right: 0;
}

.custom-thumb a.custom-thumb-img::after {
  opacity: 0;
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background-color: #000;
  transform: rotate(45deg);
  position: absolute;
  top: -22px;
  left: calc(50% - 4px);
  transition-duration: 0.1s;
}

.custom-thumb a.active.custom-thumb-img::after {
  opacity: 1 !important;
}

.custom-thumb a.active img {
  border: 4px solid #000;
}

.custom-thumb a.custom-thumb-text {
  opacity: 0;
  width: calc(100vw - 16px);
  height: 56px;
  border-radius: 28px;
  max-width: 920px;
  background-color: #000;
  color: #fff;
  font-size: 0.8125rem;
  position: absolute;
  display: block;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  transition-duration: 0.1s;
  cursor: none;
}

/* .custom-thumb a.custom-thumb-text::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  position: absolute;
  top: 23px;
  right: 16px;
} */

.custom-thumb a.active + a.custom-thumb-text {
  opacity: 1;
  z-index: 999;
}

a.custom-thumb-text span {
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: left;
}

@media screen and (min-width: 768px) {
  .custom-thumb {
      padding: 40px 0 16px;
  }

  .custom-thumb-content {
    width: 120px;
    margin-right: 16px;
  }
  .custom-thumb a.custom-thumb-text {
    border-radius: 24px;
    font-size: 0.875rem;
    height: 40px;
    line-height: 40px;
    top: -16px;
  }
  /* .custom-thumb a.custom-thumb-text::before {
    top: 16px;
    right: 36px;
  } */
  a.custom-thumb-text span {
    display: block;
    width: 88%;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    -webkit-box-orient: inherit;
    -webkit-line-clamp: inherit;
  }
}

/* service */

.service-area-right .bx-wrapper {
  width: 90%;
  margin: 0 auto 40px;
}

/* .service-area-right .bx-wrapper::before,
.service-area-right .bx-wrapper::after {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: block;
  position: absolute;
  top: 32px;
  background-color: #F08300;
} */

/* .service-area-right .bx-wrapper::before {
  left: -50px;
}

.service-area-right .bx-wrapper::after {
  right: -50px;
} */

.service-area-right {
  position: relative;
  max-width: 392px;
  margin: 0 auto;
}

/* .service-area-right::before,
.service-area-right::after {
  content: "";
  width: 8px;
  height: 8px;
  display: block;
  position: absolute;
  top: 44px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  z-index: 10;
}

.service-area-right::before {
  transform: rotate(-135deg);
  left: -15px;
}

.service-area-right::after {
  transform: rotate(45deg);
  right: -15px;
} */



@media screen and (min-width: 768px) {
  .service-area-right::before,
  .service-area-right::after {
    content: none;
  }

  .service-area-right {
    max-width: inherit;
  }
}

/* スライドが1つの場合 */

.mainvisual-area.one-slide .mainvisual-area-slider {
  max-width: 960px;
}

@media screen and (min-width: 961px) {
  .mainvisual-area.one-slide .mainvisual-area-slider {
    left: inherit;
    margin: 0 auto;
  }
}

/* Service スライドが3つ以下の場合 */

.service-one-slide {
  display: flex;
  justify-content: space-around;
}

.service-one-slide li {
  display: block;
}
