/* Works
-------------------------------------------*/

#main.works{
  margin-top: 0;
}
#main.works .page_header__in{
  width: 100%;
  padding: clamp(100px,25vw,280px) 0 0;
  border-radius: 0;
  text-align: center;
  color: rgba(var(--black-rgb),.8);
  margin-top: 0; /* white分 */
}
#main.works .page_nav{
  padding: calc(var(--sec-margin)*.8) 0 calc(var(--sec-margin)*1);
}

/* ----------------------------------------
 一覧ページ
---------------------------------------- */

.works_list{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(2rem,4vw,5rem);
  width: var(--page-narrow);
  margin: 0 auto;
}
.works_item a{
  display: block;
  font-weight: 500;
}
.works_thumb{
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4/3.8;
}
.works_thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}
.works_item:hover img{
  transform: scale(1.05);
}
.works_meta{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: clamp(12px,1.846vw,14px);
}
.category{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 2px 1rem;
  border-radius: 999px;
  border: 1px solid var(--black);
}
.works_title{
  margin-top: .5rem;
  line-height: 1.5;
  text-align: left;
  font-size: clamp(14px,2.154vw,17px);
  letter-spacing: .075em;
}

/* ページネーション */

.navigation.pagination{
  margin-top: clamp(4rem,8vw,6rem);
}
.navigation.pagination .screen-reader-text{
  display: none;
}
.navigation.pagination .nav-links{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
}
.navigation.pagination a,
.navigation.pagination span{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  font-family: var(--font-en);
  font-size: clamp(15px,2.308vw,19px);
  text-decoration: none;
  transition:.25s;
}
.navigation.pagination a{
  color: var(--black);
}
.navigation.pagination a:hover{
  color: var(--orange);
}
.navigation.pagination .current{
  color: var(--orange);
  font-weight: bold;
}


/* ----------------------------------------
 SP
---------------------------------------- */

@media screen and (max-width: 650px){
  
  .works_list{
    grid-template-columns: repeat(2,1fr);
    gap: 3rem 1rem;
  }
  .works_thumb{
    border-radius: 14px;
  }
  .works_meta{
    gap: .5rem;
  }
  .category{
    padding: 2px .65rem;
  }
}


/* ----------------------------------------
 シングルページ
---------------------------------------- */

.works .morebtn{
  padding-top: calc(var(--sec-margin)*1.5);
}
.works_detail{
  width: min(1100px,94%);
  padding-top: var(--sec-margin);
  margin: 0 auto;
  font-weight: 500;
}

.works_intro{
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}
.detail_info{
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 42%;
  text-align: left;
  font-size: clamp(12px,1.846vw,15px);
}
.detail_head{
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: clamp(11px,1.692vw,13px);
}
.detail_head dl{
  display: flex;
  align-items: center;
  gap: 1rem;
}
.detail_head dt{
  letter-spacing: .1em;
  font-family: var(--font-en);
  color: var(--orange);
  font-size: clamp(10px,1.538vw,15px);
}
.detail_tit{
  font-size: clamp(18px,2.769vw,24px);
}
.voice{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1rem,5vw,3rem);
  font-size: 90%;
}
.voice::before,
.voice::after{
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
}
.voice::before{
  top: 0;
  left: 0;
  background: url("../img/works/bg_voice_1.png") no-repeat center / contain;
}
.voice::after{
  right: 0;
  bottom: 0;
  background: url("../img/works/bg_voice_2.png") no-repeat center / contain;
}
.voice_tit{
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-en);
  letter-spacing: .1em;
}
.voice_tit::before{
  content: "";
  width: 22px;
  height: 19px;
  flex-shrink: 0;
  margin-top: -2px;
  background: url("../img/works/ic_voice.svg") no-repeat center / contain;
}


/* ----------------------------------------
 ギャラリー
---------------------------------------- */
.works_gallery{
  width: 48%;
}
.gallery_main{
  overflow: hidden;
  height: clamp(520px, 52vw, 700px);
  margin-bottom: 20px;
  border-radius: 20px;
}
.gallery_main img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.works_gallery .swiper-wrapper{
  align-items: center;
}
.gallery_thumb .swiper-slide{
  overflow: hidden;
  width: 90px;
  aspect-ratio: 1;
  border-radius: 6px;
  opacity: .5;
  cursor: pointer;
  transition: .3s;
}
.gallery_thumb .swiper-slide-thumb-active{
  opacity: 1;
  transform: scale(1.05);
}
.gallery_thumb img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 矢印 */
.gallery_main .swiper-button-prev,
.gallery_main .swiper-button-next{
  width: auto;
  height: auto;
  color: rgba(255,255,255,.65);
  transition: .25s;
}
.gallery_main .swiper-button-prev{
  left: 8px;
}
.gallery_main .swiper-button-next{
  right: 8px;
}
.gallery_main .swiper-button-prev::after,
.gallery_main .swiper-button-next::after{
  font-size: 24px;
  font-weight: 300;
}

.gallery_main .swiper-button-prev:hover,
.gallery_main .swiper-button-next:hover{
  color: #fff;
}

/* ----------------------------------------
 SP
---------------------------------------- */

@media screen and (max-width: 980px){
  
  /* ギャラリー */
  .works_gallery{
    width: 52%;
  }
}
@media screen and (max-width: 650px){
  
  /* シングルページ */
  .works_intro{
    flex-direction: column-reverse;
    gap: 2rem;
  }
  .detail_info{
    width: 100%;
    gap: 1.5rem;
  }
  .detail_head{
    gap: .75rem;
  }
  .voice{
    gap: 1.25rem;
    font-size: 11px;
  }
  .voice::before,
  .voice::after{
    width: 40px;
    height: 40px;
  }
  
  /* ギャラリー */
  .works_gallery{
    width: 100%;
  }
  .gallery_main{
    width: 80%;
    height: min(520px,60vh);
  }
}