/*----------------------------------
SERVICE
----------------------------------*/
#service .lower-page__section-text {
  position: relative;
  margin-bottom: min(15vw, 45px);
}

#service .section-service__name {
  position: relative;
  /* position: absolute;
  top: max(-5vw, -20px); */
  color: #333;
  font-size: min(7vw, 30px);
  font-weight: bold;
  line-height: 1.3;
  /* padding: 0 10px; */
  z-index: 10;
}
#service .section-service__name:not(.reverse .section-service__name) {
  /* right: 0; */
  text-align: right;
}
#service .reverse .section-service__name {
  /* left: 0; */
  text-align: left;
}
#service .section-service__name.is_pc {
  display: none;
}
#service .section-service__name.is_sp {
  display: block;
}
#service .en-text {
  position: absolute;
  /* top: min(10vw, 35px); */
  top: min(5vw, 10px);
  display: block;
  writing-mode: vertical-lr;
  color: #ddd;
  /* font-size: min(20vw, 85px); */
  font-size: min(20vw, 65px);
  line-height: 1.2;
  font-weight: bold;
  overflow: hidden;
}
#service .en-text:not(.reverse .en-text) {
  left: 0;
}
#service .reverse .en-text {
  right: 0;
  transform: rotate(180deg);
}
#service .section-service__image-box {
  position: relative;
  width: calc(100% - min(15vw, 75px));
  max-width: 400px;
  aspect-ratio: 1;
  margin: min(5vw, 20px) 0 min(5vw, 20px) auto;
  z-index: 5;
}
@media (min-width: 601px) {
  #service .section-service__image-box {
    aspect-ratio: 3/2;
    max-width: 600px;
  }
}
#service .reverse .section-service__image-box {
  margin: min(10vw, 30px) auto min(5vw, 20px) 0;
}
#service .section-service__image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: min(5vw, 10px);
  vertical-align: bottom;
}
/* #service .section-service__image-box img.engineer {
  object-fit: contain;
  background-color: #fff;
} */
#service .section-service__text {
  position: relative;
  font-size: min(4vw, 15px);
  text-align: left;
  margin-bottom: min(10vw, 30px);
  z-index: 5;
}
@media (min-width: 851px) {
  #service.lower-page__main .lower-page__section-text {
    padding: min(15vw, 30px) min(10vw, 20px);
  }
  #service .section-service__name {
    margin-bottom: min(5vw, 25px);
  }
  #service .section-service__name.is_pc {
    display: block;
  }
  #service .section-service__name.is_sp {
    display: none;
  }
  #service .en-text {
    top: min(15vw, 30px);
  }
  #service #tele .en-text {
    font-size: min(20vw, 65px);
  }
  @media (max-width: 1049px) {
    #service #tele .en-text {
      font-size: min(10vw, 50px);
    }
  }
  #service .section-service__flex-box {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: end;
  }
  #service .reverse .section-service__flex-box {
    flex-direction: row-reverse;
  }
  #service .section-service__image-box {
    width: calc(52% - min(15vw, 55px));
    aspect-ratio: 1;
    margin-top: 0;
    margin-bottom: 0;
  }
  #service .reverse .section-service__image-box {
    margin-top: 0;
    margin-bottom: 0;
  }
  @media (min-width: 1050px) {
    #service .en-text {
      font-size: min(10vw, 50px);
    }
    #service #tele .en-text {
      font-size: min(10vw, 45px);
    }
    #service .section-service__image-box {
      aspect-ratio: 3/2;
    }
  }
  #service .section-service__text {
    width: 50%;
    padding-left: min(5vw, 15px);
    margin-bottom: 0;
  }
  #service .reverse .section-service__text {
    padding: 0 min(5vw, 15px) 0 0;
  }
}
@media (min-width: 1440px) {
  #service .section-service__name,
  #service #web .section-service__name {
    /* top: -30px; */
    font-size: 40px;
  }
  /* #service .section-service__image-box,
  #service .reverse .section-service__image-box {
    width: 50%;
    aspect-ratio: 3.5/2.25;
    margin: 0;
  } */
  #service .section-service__text {
    width: 50%;
    font-size: 16px;
  }
}
