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

.mv_wrap{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: calc(clamp(600px,92.3vw,100vh) - 130px);
  z-index: 0;
}
.mv_wrap .autoscroll{
  display: flex;
  align-items: center;
  margin-top: 6%;
  height: 100%;
  z-index: 0;
}
.mv_wrap .mv{
  position: absolute;
  right: 0;
  left: 0;
  margin: 0 auto;
  width: min(1280px,90%);
  height: 100%;
  overflow: hidden;
}
.mv_wrap .mv .img,
.mv_wrap .mv .text{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}
.mv_wrap .mv .img{
  text-align: left;
  margin: 3vw 0 0 8vw;
}
.mv_wrap .mv .img img{
  object-fit: cover;
  width: auto;
  height: 92%;
}
.mv_wrap .mv .text{
  right: 0;
  margin: 6% 8vw 0 0;
  width: clamp(260px,38vw,490px);
  height: auto;
}
.mv_wrap .mv .text img{
  object-fit: cover;
  width: 100%;
  height: auto;
}
.scrolldown{
  position: absolute;
  right: 5%;
  bottom: 8%;
  background: url(../img/top/ic-scrolldown.svg) center / 18px auto no-repeat
}
.scrolldown img{
  width: clamp(100px,15.38vw,166px);
  height: auto;
  animation: rotation 20s linear infinite;
}
@keyframes rotation {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(-360deg);}
}

@media screen and (max-width: 650px){
  
  .mv_wrap{
    height: min(580px,140vw);
  }
  .mv_wrap .mv .img{
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mv_wrap .mv .img img{
    width: min(450px,100%);
    height: auto;
  }
  .mv_wrap .mv .text{
    margin: 30px 0 0;
    width: min(300px,65%);
  }
  .scrolldown{
    right: auto;
    left: 6%;
    bottom: 0;
  }
}


/* concept
-------------------------------------------*/

.top_concept{
  position: relative;
  width: 100%;
  height: auto;
  padding: var(--sec-margin) 0 calc(var(--sec-margin) * 1.5);
}
.top_concept__in{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  width: var(--page-width);
  margin: 0 auto;
  text-align: justify;
}
.top_concept__in > div{
  width: 45%;
}
.top_concept__text h2{
  font-size: clamp(21px,3.23vw,42px);
  line-height: 1.5;
  padding-bottom: 6%;
}
.top_concept__text p{
  width: 94%;
  line-height: 2.25;
  font-weight: 500;
  font-size: clamp(14px,2.15vw,18px);
}
.top_concept__img{
  text-align: right;
}
.top_concept__img img{
  width: min(400px,100%);
}

@media screen and (max-width: 650px){
  
  .top_concept__in{
    row-gap: 50px;
  }
  .top_concept__in > div,
  .top_concept__text p{
    width: 100%;
  }
  .top_concept__text h2{
    padding-bottom: 6%;
  }
  .top_concept__text p{
    line-height: 2;
  }
  .top_concept__img{
    text-align: center;
  }
  .top_concept__img img{
    width: 70%;
  }
}


/* top_service
-------------------------------------------*/

.top_service{
  width: 100%;
  padding: min(15%,100px) 0;
  background: url(../img/top/bg_pattern.png) repeat center / 80% var(--red);
}
.top_service__in{
  width: min(1200px,86%);
  background-color: #fff;
  border-radius: 240px;
  margin: 0 auto;
  padding: min(110px,10%) 0;
}
.top_service__head{
  width: min(900px,90%);
  margin: 0 auto;
  font-weight: bold;
}
.top_service__head .copy{
  position: relative;
  line-height: 1.5;
  font-size: clamp(21px,3.23vw,42px);
}
.top_service__head .copy::before,
.top_service__head .copy::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.top_service__head .copy::before {
  background: url(../img/top/fukidashi_l.gif) no-repeat left center / auto 76%;
  left: 10%;
}
.top_service__head .copy::after {
  background: url(../img/top/fukidashi_r.gif) no-repeat right center / auto 76%;
  right: 10%;
}
.top_service__head .copy span{
  color: var(--red);
}
.top_service__item ul{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 84%;
  margin: 4% auto;
}
.top_service__item ul li{
  width: max(23%,200px);
  border-radius: 50%;
}
.top_service__item ul li > div{
  position: relative;
  padding-top: 100%;
  height: 0;
}
.top_service__item ul li p,
.top_service__item ul li p + div{
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
}
.top_service__item ul li p{
  top: 20%;
  font-weight: 500;
  line-height: 1.5;
}
.top_service__item ul li:nth-of-type(odd){
  background: #f7ae18;
}
.top_service__item ul li:nth-of-type(odd) p{
  top: 50%;
  transform: translate(0, -50%);
}
.top_service__item ul li:nth-of-type(even){
  background: var(--bg-color2);
}
.top_service__item ul li:nth-child(2) p + div{ bottom: 9%; }
.top_service__item ul li:nth-child(2) p + div img{ width: 50%;}
.top_service__item ul li:nth-child(4) p + div{ bottom: 6%; }
.top_service__item ul li:nth-child(4) p + div img{ width: 38%;}
.top_service__item ul li:nth-child(6) p + div{ bottom: 10%; }
.top_service__item ul li:nth-child(6) p + div img{ width: 57%;}

@media screen and (max-width: 870px){
  .top_service__item ul li:nth-child(3){
    order: 1;
  }
  .top_service__item ul li:nth-child(5),
  .top_service__item ul li:nth-child(6){
    order: 2;
  }
}

@media screen and (max-width: 650px){
  
  .top_service__in{
    border-radius: 30px;
  }
  .top_service__head .copy{
    border-bottom: 1px dashed;
    padding-bottom: 3%;
  }
  .top_service__head .copy::before,
  .top_service__head .copy::after {
    display: none;
  }
  .top_service__item ul{
    gap: 10px;
    width: 90%;
    margin: 8% auto;
  }
  .top_service__item ul li{
    width: 46%;
  }
}


/* top_case
-------------------------------------------*/

.top_case{
  width: 100%;
  padding: var(--sec-margin) 0;
}
.top_case__in{
  width: min(84%,1200px);
  margin: 0 auto;
}
.top_case_head{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: auto;
  text-align: left;
}
.top_case_head .main_copy{
  width: 75%;
}
.top_case_head .main_copy p{
  padding-bottom: 3%;
  font-weight: bold;
  line-height: 1.5;
  font-size: clamp(18px,2.769vw,39px);
  background-image: linear-gradient(to right, var(--font-black) 4px, transparent 4px);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  background-position: left bottom;
}
.top_case_head .img{
  width: 18%;
}
.top_project__in,
.top_voice__in{
  position: relative;
  width: 100%;
  margin: 10% 0;
}
.top_project__in .head,
.top_voice__in .head{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.top_project__in .head h2,
.top_voice__in .head h2{
  font-size: clamp(19px,2.923vw,33px);
}
.top_project__in .head h2::before,
.top_voice__in .head h2::before{
  content: "●";
  font-size: 50%;
  vertical-align: 20%;
  padding-right: 2px;
  color: var(--red);
}
.top_project__in .morebtn,
.top_voice__in .morebtn{
  position: absolute;
  top: 0;
  right: 0;
}
.top_project__in .morebtn a,
.top_voice__in .morebtn a{
  width: 300px;
}
.top_project__in ul,
.top_voice__in ul{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: max(40px,3%);
}
.top_project__in ul li a .thumb,
.top_voice__in ul li a .thumb{
  border-radius: 10px;
  overflow: hidden;
}
.top_project__in ul li a .thumb img,
.top_voice__in ul li a .thumb img{
  object-fit: cover;
  width: 100%;
  height: min(280px,100%);
  transition: transform .5s ease;
}
.top_project__in ul li a:hover .thumb img,
.top_voice__in ul li a:hover .thumb img{
  opacity: 1;
  transform: scale(1.05);
}
.top_project__in ul li a .view,
.top_voice__in ul li a .view{
  margin-top: auto; /*高さを揃える*/
  text-align: right;
  font-size: clamp(11px,1.69vw,14px);
}
.top_project__in ul li a .number,
.top_project__in ul li a .view,
.top_voice__in ul li a .view{
  font-family: var(--font-en);
  font-weight: 600;
}
.top_project__in ul li a .view p,
.top_voice__in ul li a .view p{
  padding-right: 34px;
  background: url(../img/cmn/ic-morebtn.svg) no-repeat right center / 24px;
}
.top_project__in ul li a:hover img,
.top_voice__in ul li a:hover img{
  opacity: 1;
}
.top_project__in ul li a:hover,
.top_voice__in ul li a:hover{
  background-color: var(--red);
}

/* プロジェクト事例 */

.top_project__in ul{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.top_project__in ul:after{
  content: "";
  display: block;
  width: 32%;  /* .boxに指定したwidthと同じ幅を指定する */
  height: 0;
}
.top_project__in ul li{
  width: 32%;
  display: flex;
  flex-direction: column; /*高さを揃える*/
}
.top_project__in ul li a{
  flex-grow: 1;
  display: flex;
  flex-direction: column; /*ひ孫の高さを揃える*/
  padding: 30px;
  text-align: left;
  font-weight: bold;
  line-height: 1.75;
  border-radius: 20px;
  background-color: #fff;
}
.top_project__in ul li a .number{
  color: var(--red);
  font-size: clamp(14px,2.15vw,19px);
  padding-top: 6%;
}
.top_project__in ul li a .tit{
  padding: 3% 0 6%;
}
.top_project__in ul li a:hover,
.top_project__in ul li a:hover .number{
  color: #fff;
}

/* カスタマーボイス */

.top_voice__in{
  margin-bottom: 5%;
}
.top_voice__in ul{
  row-gap: min(2vw,20px);
}
.top_voice__in ul li{
  width: 49%;
  display: flex;
  flex-direction: column; /*高さを揃える*/
}
.top_voice__in ul li a{
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 30px;
  text-align: left;
  font-weight: bold;
  line-height: 1.75;
  border-radius: 20px;
  background-color: #fff;
}
.top_voice__in ul li a .thumb{
  width: 55%;
}
.top_voice__in ul li a .box{
  width: 40%;
  display: flex;
  flex-direction: column; /*高さを揃える*/
}
.top_voice__in ul li a .box .name{
  color: #636363;
  font-size: clamp(11px,1.69vw,14px);
}
.top_voice__in ul li a .box .tit{
  padding: 6% 0;
}
.top_voice__in ul li a:hover,
.top_voice__in ul li a:hover .box .name{
  color: #fff;
}

@media screen and (max-width:800px){
  .top_project__in .morebtn a,
  .top_voice__in .morebtn a{
    height: 60px;
  }
}
@media screen and (max-width:650px){
  
  .top_case{
    padding-bottom: calc(var(--sec-margin) * 1.5);
  }
  .top_case_head{
    flex-direction: column-reverse;
    align-items: center;
    row-gap: 20px;
  }
  .top_case_head .main_copy{
    width: 100%;
  }
  .top_case_head .main_copy p{
    line-height: 1.75;
    text-align: center;
    padding-bottom: 12px;
    background-size: 8px 2px;
  }
  .top_case_head .img{
    width: max(100px,30%);
  }
  .top_project__in,
  .top_voice__in{
    margin: 12% 0;
    padding-bottom: 80px;/* morebtn分 */
  }
  .top_project__in .morebtn,
  .top_voice__in .morebtn{
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
  }
  .top_project__in .morebtn a,
  .top_voice__in .morebtn a{
    width: 240px;
  }
  .top_project__in ul,
  .top_voice__in ul{
    padding-top: 3%;
    row-gap: min(4vw,20px);
  }
  .top_project__in ul li,
  .top_voice__in ul li{
    width: 100%;
  }
  .top_project__in ul li a,
  .top_voice__in ul li a{
    padding: 6%;
    border-radius: 10px;
  }
  .top_project__in ul li a .view p,
  .top_voice__in ul li a .view p{
    padding-right: 30px;
    background-size: 20px;
    padding-bottom: 2px;
    padding-top: 2px;
  }
  
  /* プロジェクト事例 */
  
  .top_project__in ul li a .number{
    padding-top: 3%;
  }
  .top_project__in ul li a .tit{
    padding: 2px 0 3%;
  }
  
  /* カスタマーボイス */
  
  .top_voice__in{
    margin-bottom: 5%;
  }
}


/* News
-------------------------------------------*/

.top_news{
  width: 100%;
  padding: var(--sec-margin) 0;
  background: rgba(var(--bg-color2-rgb),.7);
}
.top_news__in{
  width: var(--page-width);
  margin: 0 auto;
  text-align: left;
}
.top_news__in .h2_tit{
  display: flex;
  align-items: center;
  column-gap: 20px;
}
.top_news__in .h2_tit p{
  font-size: clamp(25px,3.84vw,42px);
  font-weight: bold;
}
.top_news__in .h2_tit h2{
  color: var(--red);
}
.top_news__list ul{
  padding-bottom: 6%;
}
.top_news__list li a{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 10px;
  padding: 3% 0;
  border-bottom: 1px solid #cfcac2;
}
.top_news__list li a .news_list__head{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 30%;
}
.top_news__list li a .news_list__head .date,
.top_news__list li a .news_list__head .cate{
  width: 46%;
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: .075em;
}
.top_news__list li a .news_list__head .cate{
  height: 34px;
  line-height: 32px;
  border-radius: 17px;
  font-size: clamp(10px,1.538vw,13px);
  text-align: center;
  border: 1.5px solid;
  background-color: #fff;
}
.top_news__list li a .tit{
  width: calc(70% - 10px);
  font-weight: 500;
}
.top_news__list li a:hover{
  color: var(--red);
}
.top_news__list li a:hover .tit{
  text-decoration: underline;
}
.top_news .morebtn a{
  margin: 0 0 0 auto;
}

@media screen and (max-width:800px){
  
  .top_news__list li a .news_list__head{
    width: 15%;
    row-gap: 4px;
    align-content: flex-start;
  }
  .top_news__list li a .news_list__head .date{
    width: 100%;
  }
  .top_news__list li a .news_list__head .cate{
    width: auto;
    padding: 0 14px;
    height: 28px;
    line-height: 26px;
    border-radius: 14px;
  }
  .top_news__list li a .tit{
    width: calc(85% - 10px);
  }
}

@media screen and (max-width:650px){
  
  .top_news__list li a{
    padding: 6% 0;
  }
  .top_news__list li a .news_list__head{
    width: 20%;
  }
  .top_news__list li a .news_list__head .cate{
    padding: 0 10px;
    height: 24px;
    line-height: 22px;
    border-radius: 12px;
  }
  .top_news__list li a .tit{
    width: calc(80% - 20px);
  }
  .top_news .morebtn a{
    margin: 0 auto;
  }
}