html{
  scroll-behavior: smooth;
}

p,li,h1,h2,h3{
  font-family: 'Noto Sans JP', sans-serif;
}

img{
  width: 100%;
}

header{
  padding: 15px;
  /* display: flex;
  justify-content: space-between;
  align-items: center; */
  border-bottom: 1px solid #ccc;
}

header h1{
  font-size: 25px;
  font-weight: bold;
}

header h1 a{
  transition: 0.3s;
}

header h1 a:hover{
  opacity: 80%;
}

nav ul{
  display: flex;
}

nav ul li:first-child{
  margin-right: 20px;
}

nav ul li a{
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.02em;
}

iframe{
  max-width: 100%;
}

.top_work{
  padding: 0 15px;
}

.top_work h2{
  padding: 40px 0;
  text-align: center;
  letter-spacing: 0.02em;
  font-size: 36px;
  font-weight: bold;
}
.card_list_box,.production_box{
  max-width: 960px;
  margin: 0 auto
}

.card_list{
  display: flex;
  flex-wrap: wrap;
}

/* .card_list::after{
  content: "";
  max-width: calc((100% - 20px) /3);
} */

.card_list a{
  transition: 0.3s;
}

.card_list a:hover{
  opacity: 80%;
}

.card{
  max-width: calc((100% - 20px) /3);
  margin-right: 10px;
  margin-bottom: 50px;
}

.card:nth-child(3n){
  margin-right: 0px;
}

.card_img{
  margin-bottom: 15px;
}

.card_img img{
  border: 1px solid #ccc;
}

.card_ttl{
  font-size: 16px;
  letter-spacing: 0.02em;
  text-align: center;
}

.work_inner{
  padding: 0 15px;
}

.production_ttl{
  font-size: 23px;
  font-weight: bold;
  text-align: center;
  margin: 40px 0;
  letter-spacing: 0.02em;
}

.production_box{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
}

.production_img_box{
  display: flex;
  align-items: flex-start;
  margin-right: 20px;
}

.flexWrap{
  flex-wrap: wrap;
  width: 100%;
}

.flexWrap .production_img{
  width: 100%;
}

.flexWrap .pc_img{
  margin-bottom: 30px;
  margin-right: 0;
  max-width: 100%;
}

.flexWrap .sp_img{
  max-width: 100%;
}

.production_img img{
  border: 1px solid #ccc;
}

.pc_img{
  margin-right: 10px;
  max-width: 420px;
}

.sp_img{
  max-width: 220px;
}

.overview{
  max-width: 280px;
  position: -webkit-sticky;
  position: sticky;
  top: 30px;
}

.overview p{
  letter-spacing: 0.02em;
}

.overview .read{
  background-color: #ddf1fa;
  margin-bottom: 20px;
  padding: 15px;
}

.overview .info{
  background-color: #f3f3f3;
  padding: 15px;
}

.overview .info p{
  margin-bottom: 15px;
}

.overview .info p:last-child{
  margin-bottom: 0px;
}

.page_top_btn{
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 90px;
  height: 90px;
}

.page_top_btn a:hover{
  opacity: 80%;
}

footer{
  width: 100%;
  padding: 50px 30px 20px;
  border-top: 1px solid #ccc;
}

footer .card_list_box{
  width: 100%;
}

footer .card_list{
  justify-content: flex-start;
}

/* footer .card_list::after{
  width: 180px;
} */

footer .card{
  max-width: calc((100% - 40px) /5);
  margin-right: 10px;
}

footer .card:nth-child(3n){
  margin-right: 10px;
}

footer .card:nth-child(5n){
  margin-right: 0px;
}

footer .card .card_img{
  margin-bottom: 5px;
}

footer .card .card_ttl{
  font-size: 12px;
}

@media screen and (max-width:768px) {
  header h1{
    font-size: 20px;
  }

  .top_work h2{
    font-size: 22px;
  }

  .card_list{
    justify-content: center;
  }

  .card{
    max-width: calc((100% - 20px) /2);
    margin-right: 10px;
    margin-bottom: 50px;
  }

  .card:nth-child(3n){
    margin-right: 10px;
  }

  .card:nth-child(2n){
    margin-right: 0px;
  }

  .card_img{
    margin-bottom: 10px
  }

  .card_ttl{
    font-size: 14px;
  }

  .overview{
    max-width: 45%;
    padding: 10px;
  }

  .overview p{
    font-size: 12px;
  }

  .production_img_box{
    flex-wrap: wrap;
  }

  .flexWrap .pc_img{
    margin-bottom: 20px;
  }

  .pc_img{
    margin-bottom: 20px;
    max-width: 100%;
    margin-right: 0;
  }

  .sp_img{
    max-width: 100%;
  }

  footer{
    padding: 50px 15px 20px;
  }

  footer .card_list{
    justify-content: center;
  }

  footer .card{
    max-width: calc((100% - 20px) /2);
    margin-right: 10px;
  }

  footer .card:nth-child(3n){
    margin-right: 10px;
  }
  footer .card:nth-child(5n){
    margin-right: 10px;
  }

  footer .card:nth-child(2n){
    margin-right: 0px;
  }

  .page_top_btn{
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
  }

  .page_top_btn a:hover{
    opacity: 80%;
  }
}
