/* top / cmn
-------------------------------------------*/

/* main-visual
-------------------------------------------*/

#main .mv{
  position: relative;
  display: flex;
  justify-content: space-between;
  column-gap: 4rem;
  width: min(1600px,100%);
  margin: 0 auto;
}
.mv .illust{
  position: absolute;
  top: -1rem;
  right: 5%;
  width: clamp(90px,12vw,130px);
  height: auto;
  z-index: 10;
}

/* スライド */

.slider{
  position: relative;
  overflow: hidden;
  width: min(800px,58%);
  height: calc(98vh - 120px);
  max-height: 1020px;
  min-height: 800px;
  border-radius: 0 60px 60px 0;
  margin-top: -4rem; /* white分 */
}
.mvSwiper,
.mvSwiper .swiper-wrapper,
.mvSwiper .swiper-slide{
  width: 100%;
  height: 100%;
}
.mvSwiper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* メインコピー */

.main_copy{
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  row-gap: 2.5rem;
  padding: 160px 5rem 0 0;
  text-align: justify;
  font-weight: 500;
  width: 50%;
  margin-bottom: 5rem;
}
.main_copy .copy{
  width: 100%;
}
.main_copy .copy img{
  width: 380px;
  object-fit: cover;
}
.main_copy .text{
  font-size: clamp(14px,2.154vw,19px);
}

/* イラストアニメーション */

.illust img{
  max-width: 100%;
  height: auto;
  object-fit: cover;
  animation:
    fadeUp .6s ease forwards,
    float 4s ease-in-out infinite .6s;
}
@keyframes float{
  0%,
  100%{
    transform: translateY(0);
  }
  50%{
    transform: translateY(-14px);
  }
}

@media screen and (min-width: 1600px){
  
  .slider{
    border-radius: 60px;
  }
}

@media (max-width: 1220px){
  
  .main_copy .text br.l{
    display: none;
  }
}

@media (max-width: 960px){
  
  .slider{
    height: calc(80vh - 60px);
    min-height: auto;
  }
}

@media (max-width: 650px){
  
  #main .mv{
    flex-flow: column;
    justify-content: flex-start;
    gap: 2rem;
  }
  
  /* スライド */
  .slider{
    width: 90%;
    height: calc(70vh - 60px);
    border-radius: 0 30px 30px 0;
    margin-top: -3rem; /* white分 */
  }
  
  /* メインコピー */
  .main_copy{
    row-gap: 1.25rem;
    padding: 0;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 5rem;
  }
  .main_copy .copy img{
    width: min(240px,70%);
  }
}


/* service
-------------------------------------------*/

.top_service{
  position: relative;
  width: 96%;
  height: auto;
  margin: calc(var(--sec-margin)*2.5) auto;
  background-color: rgba(var(--main-color-rgb),.9);
  color: #fff;
}
.top_service::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/top/service_bg.png) no-repeat center / cover;
  opacity: .1;
  z-index: 0;
}
.top_service,
.top_service::before{
  border-radius: 100px;
}
.top_service__in{
  position: relative;
  z-index: 1;
}
.top_service .illust{
  position: absolute;
}
.top_service .illust:first-child,
.top_service .illust:last-child{
  width: clamp(106px,16vw,170px);
}
.top_service .illust:first-child{
  top: -4rem;
  left: 8%;
}
.top_service .illust:last-child{
  bottom: -8rem;
  right: 8%;
}
.top_service__in{
  width: min(1020px,92%);
  margin: 0 auto;
  padding: calc(var(--sec-margin)*1.5) 0;
}
.service_list > ul{
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  width: 100%;
}
.service_list ul .service_item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
  padding: 3rem 4rem;
  border-radius: 40px;
  background-color: #fff;
}
.service_list .service_thumb{
  flex: 0 0 200px;
}
.service_list li:first-child .service_thumb img{
  width: 100%;
}
.service_list li:last-child .service_thumb img{
  width: 75%;
}
.service_content{
  flex: 1;
  color: var(--black);
  text-align: justify;
  display: flex;
  row-gap: 1rem;
  flex-direction: column;
}
.service_content h3{
  font-size: var(--large-font-size);
  letter-spacing: .125em;
}
.service_content .text,
.service_link{
  font-size: clamp(11px,1.692vw,15px);
}
.service_link{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem .5rem;
}
.service_link li a{
  display: block;
  padding: 1rem 1.5rem;
  white-space: nowrap;/* 改行禁止 */
  font-weight: bold;
  font-size: clamp(11px,1.692vw,14px);
  background-color: #ddd;
  border-radius: 9999px;
}
.service_link li a span:first-child{
  color: var(--orange);
  font-size: 110%;
  padding-right: .5rem;
  transition: all .15s ease-out;
}
.service_link li a span.small{
  font-size: 80%;
}
.service_link li a:hover{
  background-color: var(--main-color);
}
.service_link li a:hover,
.service_link li a:hover span{
  color: #fff;
}


@media (max-width: 650px){
  
  .top_service{
    width: var(--sp-width);
    margin-top: calc(var(--sec-margin)*3.5);
  }
  .top_service .h2_tit{
    padding-bottom: 2rem;
  }
  .top_service,
  .top_service::before{
    border-radius: 60px;
  }
  .top_service .illust:first-child{
    top: -3rem;
    left: 3%;
  }
  .top_service .illust:last-child{
    bottom: -3rem;
  }
  .top_service__in{
    padding: calc(var(--sec-margin)*1.75) 0;
  }
  .service_list > ul{
    row-gap: 1rem;
  }
  .service_list ul .service_item{
    flex-flow: column;
    gap: 2rem;
    padding: 2rem 1.75rem;
    border-radius: 38px;
  }
  .service_list .service_thumb{
    flex: none;
    width: min(150px,60%);
  }
  .service_list li:first-child .service_thumb img{
    width: 100%;
  }
  .service_content{
    flex: none;
  }
  .service_content h3{
    text-align: center;
    letter-spacing: .175em;
  }
  .service_link{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
  }
  .service_link li{
    width: 100%;
  }
  .service_link li a span:first-child{
    font-size: 130%;
  }
}

/* works
-------------------------------------------*/

.top_works{
  position: relative;
  width: var(--page-width);
  height: auto;
  margin: 0 auto;
}
.works_list ul{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(2rem,5vw,70px);
  row-gap: clamp(2rem,4vw,60px);
  padding-bottom: 5rem;
}
.works_item a{
  display: block;
}
.works_item .thumb{
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 1 / 1;
  background: #fff;
}
.works_item .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works_item .meta{
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  font-weight: 500;
  letter-spacing: .1em;
  font-size: clamp(11px,1.692vw,13px);
}
.works_item .type{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--black);
  padding: 0 .5rem;
}
.works_item .tit{
  text-align: left;
  letter-spacing: .1em;
  font-size: var(--large-font-size);
}

@media (max-width: 650px){
  
  .works_list ul{
    grid-template-columns: repeat(2, 1fr);
  }
  .works_item .thumb{
    border-radius: 16px;
  }
  .works_item .meta{
    margin: .75rem 0 .25rem;
  }
  .works_item .type{
    height: 26px;
  }
}