.service_header {
  margin: 20px auto;
  justify-items: center;
  position: relative;

  img {
    width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;

    @media screen and (max-width: 1024px) {
      width: 50%;
      min-width: 300px;
    }
  }

  h2 {
    color: #fff;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 10;
    width: 100%;
  }
}

.service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 900px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(../images/service-bg.webp);
  &.service-bg01 {
    background-image: url(../images/service_header1.webp);
    background-position: bottom;
    background-size: cover;
  }
  &.service-bg02 {
    background-image: url(../images/service_header2.webp);
    background-position: center;
    background-size: cover;
    @media screen and (max-width: 1024px) {
      background-position: right;
    }
  }
  &.service-bg03 {
    background-image: url(../images/service_header3.webp);
    background-position: top;
    background-size: cover;
  }
  &.service-bg04 {
    background-image: url(../images/service_header4.webp);
    background-position: bottom;
  }
  &.service-bg05 {
    background-image: url(../images/service_header5.webp);
    background-position: center calc(100% + 100px);
    @media screen and (max-width: 1024px) {
      background-position: bottom;
    }
  }
  &.service-bg06 {
    background-image: url(../images/service_header6.webp);
    background-position: center calc(100% + 30px);
    background-size: auto;
  }
  &.service-bg07 {
    background-image: url(../images/service_header7.webp);
    background-position: center;
    background-size: cover;
    @media screen and (max-width: 1024px) {
      background-position: center;
      background-size: auto;
    }
  }
}
.service-title {
  z-index: 2;
  position: absolute;
  color: #ffffff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  width: 100%;
  text-align: center;
  @media screen and (max-width: 1024px) {
    top: 60%;
    font-size: 32px;
  }
}

.service_pc {
  a {
    img {
      &:hover {
        opacity: 0.8;
        transform: scale(1.1, 1.1);
        transition-duration: 0.5s;
      }
    }
  }
}

.service-maintitle {
  z-index: 2;
  position: absolute;
  color: #ffffff;
  bottom: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 50px;
  width: 100%;
  text-align: center;
  @media screen and (max-width: 1024px) {
    bottom: 8%;
  }
}
@media screen and (max-width: 1024px) {
  .service-maintitle h2 {
    font-size: 26px !important;
  }
}

.service_text {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin: 80px auto;
  p {
    text-align: left;
    line-height: 1.8;
    @media screen and (max-width: 1024px) {
      width: 90%;
      margin: 0 auto;
    }
  }
  h2 {
    @media screen and (max-width: 1024px) {
      font-size: 23px;
    }
  }

  @media screen and (max-width: 1024px) {
    gap: 40px;
    margin: 40px auto;
  }
}

.archive_publicworks,
.archive_architecture {
  display: flex;
  gap: 45px;
  width: 100%;
  flex-wrap: wrap;
}

.works_archive_detail {
  opacity: 1;
  width: calc((100% - 45px) / 2);
  @media screen and (max-width: 1024px) {
    width: 100%;
  }
  &:hover {
    opacity: 0.8;
  }

  .image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
    }
  }

  p {
    font-size: 16px;
    text-align: left;
  }
}

.construction_list {
  gap: 20px;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  @media screen and (max-width: 1024px) {
    display: block;
  }
  p {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: calc((85% - 20px) / 2);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    color: #fff;
    min-height: 80px;
    font-weight: 500;
    @media screen and (max-width: 1024px) {
      width: 100%;
      margin-bottom: 20px;
      padding: 10px 10px;
    }
    &.bg_dark_blue {
      background-image: url(../images/service_dark_blue.webp);
    }

    &.bg_light_blue {
      background-image: url(../images/service_light_blue.webp);
    }

    &.filler {
      visibility: hidden;
      pointer-events: none;
    }
  }
}

#player {
  &.service-subpage {
    height: 420px;
    @media screen and (max-width: 1024px) {
      height: 200px;
    }
    .service_pc {
      bottom: 0;
    }
  }
  &.service-top-img{
    height: 900px;
      @media screen and (max-width: 1024px) {
        height: 50vh;
      }
  }
}

  .image_large{
    .uptl-img{
    width: 50%;
      @media screen and (max-width: 768px) {
          width: 100%;
      }
  }
}
