@charset "utf-8";

/* main */
main {
  background-image: url(../image/service/servicebackground.png);
}

/* サービス */
/* 動画 */
.move {
  padding-bottom: 16px;
  position: relative;
  background-image: url(../image/common/foam.png);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 8%;
}

@media screen and (max-width: 1329px) {
  .move {
    background-image: none;
  }
}

@media screen and (max-width: 768px) {
  .move {
    padding-bottom: 8px;
  }
}

.movephoto {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.move_service {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.move_title {
  font-size: 32px;
  margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
  .move_title {
    font-size: 24px;
  }
}

@media screen and (max-width: 480px) {
  .move_title {
    font-size: 20px;
  }
}
/* 動画サービス詳細 */

.move_detail {
  word-break: keep-all;
}

@media screen and (max-width: 768px) {
  .move_detail {
    font-size: 12px;
    word-break: keep-all;
  }
}

@media screen and (max-width: 480px) {
  .move_detail {
    display: none;
  }
}

/* 動画以外 */
.otherservice {
  font-size: 18px;
  padding: 50px 0;
}

@media screen and (max-width: 768px) {
  .otherservice {
    padding: 25px 0;
    font-size: 14px !important;
  }
}

@media screen and (max-width: 480px) {
  .otherservice {
    padding: 20px 0;
    font-size: 12px !important;
  }
}

.sub_service {
  display: flex;
  justify-content: center;
  gap: 16px;
}

@media screen and (max-width: 768px) {
  .sub_service {
    gap: 8px;
  }
}

.service_photo {
  max-width: 442px;
  width: 100%;
  height: auto;
  display: flex;
}

.service_box {
  position: relative;
}

.sub_service p {
  font-size: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  word-break: keep-all;
  line-height: 1;
}

@media screen and (max-width: 768px) {
  .sub_service p {
    font-size: 20px;
  }
}

@media screen and (max-width: 480px) {
  .sub_service p {
    font-size: 14px;
    word-break: keep-all;
  }
}

.underwaterphoto .drawnphoto {
  width: 30%;
}

.sub_1 {
  padding-bottom: 16px;
}

@media screen and (max-width: 768px) {
  .sub_1 {
    padding-bottom: 8px;
  }
}

.bgi_box {
  background-image: url(../image/common/foam_2.png);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 9%;
}

@media screen and (max-width: 1329px) {
  .bgi_box {
    background-image: none;
  }
}
/* ホバー黒 */
.hover_block {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hover_block:hover .overlay {
  opacity: 1;
}
