.fv {
  position: relative;
  width: 100%;
  height: 100%;
  img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }
  .fv-catchphrase {
    position: absolute;
    z-index: 1;
    bottom: 13%;
    left: 5%;
    letter-spacing: 0.05em;
    font-size: 20px;
    color: white;
    span {
      display: block;
      margin-bottom: 20px;
      font-size: 28px;
    }
  }
  .fv-detail {
    opacity: 0.6;
    position: absolute;
    right: 10px;
    bottom: 10px;
    a {
      /* text-decoration: underline; */
      font-size: 10px;
      color: white;
    }
  }
  .fv-banner {
    position: absolute;
    top: 70px;
    left: 10px;
    width: fit-content;
    height: fit-content;
    background: rgba(10, 28, 43, 0.6);
    a {
      display: flex;
      align-items: center;
      column-gap: 10px;
      padding: 10px;
      border: 1px solid white;
    }
    .fv-banner-img {
      object-fit: cover;
      object-position: center;
      aspect-ratio: 1/1;
      width: 50px;
    }
    .fv-banner-text {
      line-height: 1.4;
      font-size: 14px;
      color: white;
      span {
        display: inline-block;
        margin-left: 5px;
        font-size: 15px;
        font-weight: bold;
      }
    }
    .fv-banner-text-button {
      display: none;
    }
  }
}
@media only screen and (min-width: 768px) {
  .fv {
    height: 100vh;
    .fv-catchphrase {
      bottom: 10%;
      font-size: 20px;
      span {
        font-size: 40px;
      }
    }
    .fv-detail {
      right: 15px;
      bottom: 15px;
    }
    .fv-banner {
      top: 90px;
      right: 16px;
      left: auto;
      a {
        column-gap: 20px;
        &:hover {
          .fv-banner-text-button {
            background: white;
            color: rgba(10, 28, 43);
          }
        }
      }
      .fv-banner-img {
        width: 100px;
      }
      .fv-banner-text {
        font-size: 16px;
        span {
          display: none;
        }
      }
      .fv-banner-text-button {
        display: block;
        margin-top: 10px;
        text-align: center;
        line-height: 1;
        font-size: 14px;
        color: white;
        border: 1px solid white;
        padding: 8px 10px;
        border-radius: 4px;
        transition: background 0.2s ease-out;
      }
    }
  }
}

/* 問い合わせ関連 */
@media only screen and (min-width: 1251px) {
  .p-global-nav > .menu-item:last-child {
    display: none;
  }
}
.contact-buttons {
  display: none;
}
@media only screen and (min-width: 1251px) {
  .floating_content_full_details {
    display: none;
  }
  .contact-buttons {
    position: fixed;
    right: 16px;
    display: flex;
    align-items: center;
    column-gap: 10px;
    height: 80px;
  }
  .contact-button {
    box-sizing: border-box;
    a {
      box-sizing: border-box;
      display: flex;
      align-items: center;
      column-gap: 5px;
      height: 40px;
      padding: 0 10px;
      background: rgba(10, 28, 43, 0.2);
      border: 1px solid #fff;
      transition: background 0.2s ease-out;
      .contact-button-icon-tel {
        width: 19px;
        height: 19px;
        .st0 {
          transition: fill 0.2s ease-out;
          fill: #fff;
        }
      }
      .contact-button-icon-mail {
        width: 17px;
        height: 17px;
        .st0 {
          transition: fill 0.2s ease-out;
          fill: #fff;
        }
      }
      span {
        display: block;
        font-size: 16px;
        line-height: 1;
        letter-spacing: 0.05em;
        color: #fff;
        transition: color 0.2s ease-out;
      }
      &:hover {
        background: #fff;
        svg {
          .st0 {
            fill: rgba(10, 28, 43);
          }
        }
        span {
          color: rgba(10, 28, 43);
        }
      }
    }
  }
}
@media only screen and (min-width: 1350px) {
  .contact-buttons {
    column-gap: 15px;
  }
  .contact-button {
    a {
      padding: 0 15px;
    }
  }
}

/* 創業、Googleレビュー、合格実績 */
.features {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 18px;
  background: rgba(10, 28, 43, 0.9);
  text-align: center;
  padding: 20px 0;
}
.features-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 25px;
  text-align: center;
}
@media only screen and (min-width: 1251px) {
  .features-inner {
    column-gap: 60px;
  }
}
.feature-item {
  a {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 5px;
    line-height: 1;
    letter-spacing: 0.05em;
  }
}
.feature-item-startup {
  a {
    align-items: flex-start;
  }
}
@media only screen and (min-width: 1251px) {
  .feature-item-startup {
    a {
      align-items: center;
    }
  }
}
.feature-block {
  display: flex;
  align-items: flex-end;
  column-gap: 5px;
}
.feature-small {
  font-size: 14px;
  color: #fff;
  line-height: 1;
  margin-top: 6px;
}
@media only screen and (min-width: 1251px) {
  .feature-small {
    font-size: 18px;
    margin-top: 1px;
  }
}
.feature-large {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}
.feature-google {
  .feature-small {
    display: flex;
    align-items: center;
    svg {
      width: 60px;
      height: auto;
      margin-top: 4px;
    }
  }
}
@media only screen and (min-width: 768px) {
  .feature-item {
    a {
      flex-direction: row;
      justify-content: center;
      align-items: center;
      text-align: center;
      column-gap: 5px;
      transition: opacity 0.2s ease-out;
      &:hover {
        opacity: 0.7;
      }
    }
  }
  .feature-block {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

/* 施工実績 */
@media only screen and (min-width: 768px) {
  .slide-jirei {
    margin: 60px 0px 0px 0px;
  }
  .jirei-h2 {
    margin-bottom: 30px !important;
  }
}
@media only screen and (max-width: 767px) {
  .slide-jirei {
    margin: 40px 0px -41px 0px;
  }
  .jirei-h2 {
    margin-bottom: 20px !important;
  }
}
.swiper {
  width: 100%;
  height: 100%;
}
.swiper-slide {
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 18px;
  background: #fff;
}
@media (min-width: 768px) {
  .swiper-slide {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    column-gap: 40px;
  }
}
.swiper-pagination {
  top: auto !important;
  bottom: 100px !important;
}
.swiper-pagination-bullet-active {
  background: rgba(10, 28, 43, 0.9);
}
.swiper-button-prev {
  left: 25% !important;
  right: auto !important;
  top: auto !important;
  bottom: 83px !important;
}
@media (min-width: 768px) {
  .swiper-button-prev {
    left: 38% !important;
  }
}
.swiper-button-next {
  right: 25% !important;
  left: auto !important;
  top: auto !important;
  bottom: 83px !important;
}
@media (min-width: 768px) {
  .swiper-button-next {
    right: 38% !important;
  }
}
.swiper-button-next,
.swiper-button-prev {
  color: rgba(10, 28, 43, 0.9);
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
}
.jireiSlider {
  position: relative;
  width: 100%;
  margin-bottom: 60px;
}
.jireiIsMobile {
  display: block;
}
.jireiIsPc {
  display: none;
}
@media (min-width: 768px) {
  .jireiIsMobile {
    display: none;
  }
  .jireiIsPc {
    display: block;
  }
}
.jireiImg {
  aspect-ratio: 344/250;
  display: block;
  width: 100%;
  min-height: 250px;
  max-height: 250px;
  height: 100%;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}
.jireiImg-vertical {
  width: auto;
}
.jireiLink {
  display: block;
  width: 100%;
}
.jireiLink:last-child {
  margin-top: 30px;
}
@media (min-width: 768px) {
  .jireiLink:last-child {
    margin-top: 0;
  }
}
.jireiTitle {
  line-height: 1.4;
  font-size: 14px;
  font-weight: bold;
  margin-top: 20px;
}
.jirei-link {
  margin-top: 120px;
  text-align: center;
}
.jirei-link a {
  background: #0a1c2b;
  color: #fff;
}

/* before afterのスライダー */
.before_after_slider {
  position: relative;
  overflow: hidden;
  width: 768px;
  max-width: 100%;
  margin: 0 auto;
}

.box_before {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  border-right: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 10px 0 15px -13px #000;
}

.box_before img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.box_before::before {
  content: "";
  z-index: 1;
  position: absolute;
  top: 0;
  right: -29px;
  bottom: 0;
  width: 50px;
  height: 50px;
  margin: auto;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 10px 0 15px -13px #000;
}

.box_before::after {
  content: "";
  z-index: 2;
  position: absolute;
  top: 50%;
  right: -27px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  pointer-events: none;
  background-image: url("https://japanroof.co.jp/wp-content/themes/oops_tcd048/img/icon_before_after.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 75%;
}

.box_before span {
  white-space: nowrap;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: auto;
  padding: 10px 20px;
  font-size: 14px;
  color: white;
  background: rgba(0, 0, 0, 0.3);
}

.box_after span {
  white-space: nowrap;
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: auto;
  padding: 10px 20px;
  font-size: 14px;
  color: white;
  background: rgba(0, 0, 0, 0.3);
}

.slider_range {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: col-resize;
}

.before_after_slider_text {
  text-align: center;
}
