@charset "utf-8";

.yellow-btn{
  margin:1.5rem auto 0;
  display: block;
  width: fit-content;
}

.fv{
  position:relative;
  padding-bottom:5rem;
  height:calc(100vh + 5rem - 118px);
}

.fv::before{
  content: "";
  position: absolute;
  width: 80%;
  height: 60%;
  left: 0;
  bottom: 0;
  z-index: -1;
  background: #FEF5E4;
}

.fv-swiper{
  width:85%;
  margin:0 0 0 auto;
}

.fv-swiper img{
  object-fit:cover;
  aspect-ratio:1154/657;
}

.slide-inner {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

/* 表示されるスライド（右→中央） */
.swiper-slide-active .slide-inner {
  opacity: 1;
  transform: translateX(0);
}

/* 消えるスライド（中央→左） */
.swiper-slide-prev .slide-inner {
  opacity: 0;
  transform: translateX(-50px);
}

.custom-pagination {
  display: flex;
  gap: 12px;
  position:absolute;
  left:0%;
  width:10%;
  top:100px;
  z-index: 10;
  flex-direction: column;
  align-items: end;
  max-width:115px;
}

.custom-pagination .num {
  opacity: 0.3;
  transition: opacity 0.4s ease;
  font-weight: 600;
  display:flex;
  font-style:italic;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  line-height:1.3;
}

.custom-pagination .num::before {
  content:"";
  display:block;
  width:2.5rem;
  height:1px;
  background:#B1B1B1;
  transition:0.5s;
}

.custom-pagination .num.is-active {
  opacity: 1;
}

.custom-pagination .num.is-active::before {
  width:calc(100% - 1rem - 20px);
  background:#000000;
}

.fv-txt{
  position:absolute;
  left:5%;
  width:max-content;
  bottom:7rem;
  z-index: 10;
}

.fv-txt h1{
  font-size:clamp(1.25rem, 0.598rem + 2.17vw, 2.5rem);
  width:fit-content;
  padding:1rem;
  line-height:1;
  margin-bottom:1rem;
  background:#fff;
  letter-spacing: 1px;
}

.fv-txt h2{
  font-size:clamp(1rem, 0.739rem + 0.87vw, 1.5rem);
  width:fit-content;
  padding:1.4rem 1rem;
  line-height:1;
  background:#fff;
}

.fv-scroll{
  position:absolute;
  right:2.5%;
  width:8px;
  bottom: 5rem;
  z-index: 10;
}

.top-access .lower-title + p{
  text-align:center;
  margin-bottom:1.5rem;
}

.top-feature{
  margin:5rem 0;
  padding:5rem 0;
  position: relative;
}

.top-feature > img{
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  object-fit:cover;
  z-index: 1;
}

.top-feature-bg{
  text-align:center;
  padding:5rem 5%;
  background:rgba(255,255,255,0.9);
  border-radius:5px;
  width: 80%;
  margin: 0 auto;
  max-width: 1080px;
  position: relative;
  z-index: 10;
}

.top-info{
  margin-bottom:0;
}

.top-info .top-feature-bg{
  text-align:left;
}

.top-service-bg .yellow-btn{
  margin:1.5rem 0 0;
}

.top-service-bg{
  margin:0 0 10rem;
  padding:5rem 5% 0;
  position:relative;
  height: 90%;
}

.top-service-bg.reverse{
  margin-bottom:5rem;
}

.top-service-bg::before{
  content:"";
  position:absolute;
  width:80%;
  height:90%;
  right:0;
  top:0;
  z-index:-1;
  background:#FEF5E4;
}

.top-service-bg.reverse::before{
  right:auto;
  left:0;
}

.top-service-wrap{
  display:flex;
  justify-content: space-between;
  align-items: center;
}

.top-service-bg.reverse .top-service-wrap{
  flex-direction:row-reverse;
}

.top-service-wrap img{
  width:50%;
}

.top-service-txt{
  width:45%;
}

.top-service-txt .lower-title{
  padding:0;
  text-align:left;
  margin-bottom: 1.5rem;
}

.top-service-txt .lower-title::before{
  display:none;
}

@media screen and (max-width: 1280px) {

}


@media screen and (max-width: 1024px) {
  .fv{
    height: 600px;
    padding-bottom:0;
  }
  .fv-swiper img{
    aspect-ratio: auto;
    height: 100%;
    object-position: 70% center;
  }
  .fv-swiper,
  .slide-inner{
    height: 100%;
  }
  .top-service-bg {
    margin: 0 0 5rem;
    padding: 3rem 5% 0;
  }
  .fv-scroll{
    bottom:0;
  }
  .fv-txt{
    bottom:2rem;
  }
  .custom-pagination .num::before{
    width:1.5rem;
  }
}



@media screen and (max-width: 767px) {
  .custom-pagination .num::before{
    width:0rem;
  }
  .custom-pagination .num.is-active::before{
    width:1rem;
  }
  .fv-txt h1{
    padding: 14px;
    margin-bottom: 0.5rem;
  }
  .fv-txt h2{
    padding: 1rem 0.8rem;
  }
  .top-service-wrap,
  .top-service-bg.reverse .top-service-wrap{
    flex-direction: column-reverse;
    gap: 1rem;
  }
  .top-service-txt,
  .top-service-wrap img{
    width:100%;
  }
  .top-service-txt .lower-title{
    text-align: center;
    margin-bottom: 1rem;
  }
  .top-service-bg .yellow-btn {
    margin: 1.5rem auto 0;
  }
  .top-service-bg::before{
    width: 100%;
    height: 100%;
  }
  .top-service-bg{
    padding: 3rem 5%;
  }
  .fv {
    height: calc(100vh - 52px);
    padding-top: 3rem;
  }
  .fv::before{
    height: 65%;
  }
  .fv-txt {
    bottom: 4rem;
  }
  .top-service-bg.reverse {
    margin-bottom: 0rem;
  }
  .top-feature {
    margin: 0rem 0 3rem;
    padding: 3rem 0;
  }
  .top-feature-bg{
    width: 90%;
    padding: 3rem 5%;
  }
  .service-blog{
    margin-bottom: 3rem;
  }
}
