@charset "utf-8";

.service{
  margin:-5rem 0 10rem;
}

.service-wrap{
  display:flex;
  justify-content: space-between;
}

.service-img{
  width:38%;
  margin-top:5rem;
}

.service-img img{
  margin-bottom:1rem;
}

.service-txt{
  width:57%;
  text-align:right;
  color:#fff;
  text-shadow:0px 3px 6px rgba(0,0,0,0.16);
  font-size:clamp(1.25rem, 0.886rem + 1.21vw, 2.25rem);
}

.service-txt-list{
  position:relative;
  font-weight: bold;
}

.service-txt strong{
  font-weight: bold;
}

.service-txt-list.last{
  margin-bottom:3rem;
}

.service-txt h2{
  font-size:clamp(2rem, 1.273rem + 2.42vw, 4rem);
  margin-bottom:4rem;
}

.service-txt-list .fadeUpTrigger{
  display: block;
  clip-path: inset(0% 100% 0% 0%);
  transition: 2s;
}


.service-txt-list .service-txt-list_opacity {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  opacity: .4;
}

.service-txt-list .fadeUpTrigger.fadeUp {
  clip-path: inset(0%); 
}

.flow{
  margin-bottom:10rem;
  position:relative;
}

.flow::before{
  content:"";
  position: absolute;
  aspect-ratio:1920/2632;
  background:url(https://sanei-construction.com/system_panel/uploads/images/20251106163444791438.png) no-repeat center/contain;
  left:0;
  top: 30%;
  z-index: -1;
  width: 100%;
}

.flow iframe{
  width: 100%;
  aspect-ratio: 1920 / 1080;
  border: none;
  margin:2.5rem 0 5rem;
}

.flow-wrap{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom:5rem;
}

.flow-txt{
  width:63%;
}

.flow-list{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flow-list .label{
  font-size:clamp(1.5rem, 0.591rem + 3.03vw, 4rem);
  line-height:1;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 999vh;
  border: 1px solid;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  color:#024DA4;
}

.flow-list div{
  width:calc(100% - 160px);
}

.flow-list:not(:last-child){
  margin-bottom:5rem;
}

.flow-list h3{
  font-size:clamp(1.125rem, 0.943rem + 0.61vw, 1.625rem);
  margin-bottom:0.5rem;
  color:#024DA4;
}

.flow-img{
  width:32%;
}

.flow-img img{
  margin-bottom:12px;
}

.building{
  background:rgba(255,255,255,0.2);
  padding:2.5rem 5% 5rem;
}

.building h3{
  color:#fff;
  text-align:center;
  font-size:clamp(2rem, 1.636rem + 1.21vw, 3rem);
  margin-bottom:2.5rem;
  text-shadow:0px 3px 6px rgba(0,0,0,0.16);
}

.building-item{
  position:relative;
  width:calc((100% - 2rem)/2);
}

.building-item p{
  position:absolute;
  width:max-content;
  color:#fff;
  top:0;
  left:0;
  background:#024DA4;
  padding:10px 1rem;
  font-size:14px;
  font-weight:bold;
}

.building-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  justify-content:center;
    max-width: 532px;
    margin: 0 auto;
}



@media screen and (max-width: 1024px) {
  .service-wrap {
    flex-direction: column-reverse;
    align-items: center;
  }
  .service-txt {
    width: 90%;
    text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.5);
  }
  .service-img {
    width: 80%;
    max-width:450px;
  }
  .service {
    margin: 0rem 0 10rem;
  }
  .flow-list div {
    width: calc(100% - 90px);
  }
  .flow-list .label{
    width: 80px;
    height: 80px;
  }
}

@media screen and (max-width: 767px) {
  .service {
    margin: 0rem 0 5rem;
  }
  .service-img,
  .container{
    width: 100%;
  }
  .service-txt h2 {
    margin-bottom: 2.5rem;
  }
  .service-txt-list {
    margin-bottom: 0rem;
  }
  .service-txt-list.last {
    margin-bottom: 1rem;
  }
  .building-wrap{
    gap:0.5rem;
  }
  .building-item {
    width: calc((100% - 0.5rem) / 2);
  }
  .building-item p {
    padding: 2px 4px;
    font-size: 12px;
  }
  .flow iframe {
    margin: 0.5rem 0 5rem;
  }
  .flow-wrap {
    flex-direction: column;
    gap: 3rem;
    align-items: center;
  }
  .flow-txt {
    width: 90%;
  }
  .flow-list .label {
    width: 48px;
    height: 48px;
  }
  .flow-list div {
    width: calc(100% - 65px);
  }
  .flow-list:not(:last-child) {
    margin-bottom: 2rem;
  }
  .flow-list{
    align-items: flex-start;
  }
  .flow-img{
    width:100%;
  }
  .flow {
    margin-bottom: 0rem;
  }
  .case::before{
    top: 20%;
    width: 50%;
    left: -10%;
  }
  .service-txt {
    font-size: 18px;
    width: 97%;
  }
  .main::before {
    width: 225%;
  }
  .main::after {
    width: 100%;
    bottom: auto;
    top: 32%;
  }
  .flow::before{
    top: auto;
    bottom: 0;
    aspect-ratio:390/1275;
    background:url(https://sanei-construction.com/system_panel/uploads/images/20251106163859598652.png) no-repeat center/contain;
  }
}