.works-menu{
  font-family: futura-pt, sans-serif;
  font-weight: 700;
  display: flex;
  justify-content: center;
  gap: 30px;
  @media screen and (max-width: 767px){
    flex-wrap: wrap;
    gap: 10px;
  }
  li{
    border-radius: 100px;
    border: 1px solid #000;
    background: transparent;
    font-size: 14px;
    line-height: 1;
    width: calc((100% - 120px) / 5);
    max-width: 134px;
    text-align: center;
    transition: all .4s;
    @media screen and (max-width: 767px){
      width: 105px;
    }
    &.is-active,
    &:hover{
      background: #000;
      color: #fff;
      a{
        color: #fff;
      }
    }
  }
  a{
    display: block;
    color: #000;
    padding: 16px 0;
  }
}

.works-content{
  margin: 50px auto 100px;
  width: 100%;
  max-width: 1176px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 30px;
  @media screen and (max-width: 767px){
    width: 90%;
    gap: 20px;
    margin-top: 20px;
  }
  a{
    color: #000;
  }
  /* .work{
    margin-bottom: 48px;
    @media screen and (max-width: 767px){
      margin-bottom: 20px;
    }
  } */
  figure{
    img{
      width: 100%;
      height: 266px;
      transition: all .4s;
      @media screen and (max-width: 767px){
        width: auto;
        height: 157px;
      }
      &:hover{
        transform: scale(.95);
        transform-origin: center;
      }
    }
  }
}
.works-inner{
  margin-bottom: 100px;
  min-height: 350px;
}
.work-title{
  font-size: 14px;
  font-weight: 700;
}
.work-tag span{
  font-family: futura-pt, sans-serif;
  font-size: 12px;
  background: #fff;
  border-radius: 100px;
  display: inline-block;
  padding: 2px 8px;
  font-weight: 700;
  letter-spacing: .6px;
  margin-right: 8px;
}

.work.view{
  /* opacity: 0;
  margin-top: 5vh;
  transition: opacity .5s, margin-top .5s; */
  margin-top: 5vh;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .6s cubic-bezier(0.77, 0, 0.175, 1), margin-top .5s;
  img{
    transform: scale(1.1);
    transition: transform .6s cubic-bezier(0.77, 0, 0.175, 1);
  }
  &.fadein{
    /* opacity: 1;
    margin-top: 0; */
    margin-top: 0;
    clip-path: inset(0 0 0 0);
    img{
      transform: scale(1);
    }
  }
}

/* not item */
.non-item{
  text-align: center;
  margin-top: 50px;
}

/* pager */
.pagination,
.post-navigation{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.post-navigation{
  margin: 50px auto;
}
.page-link,
.back-to-list a{
  font-family: futura-pt, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  position: relative;
  color: #000;
  background: #fff;
  cursor: pointer;
  padding: 15px 20px;
  border-radius: 3px;
  border: 1px solid #000;
  transition: all .2s;
  @media screen and (max-width: 767px){
    padding: 8px 12px;
  }
  &:hover{
    color: #fff;
    background: #d9d9d9;
  }
  &.active{
    color: #fff;
    background: #d9d9d9;
    border: 1px solid #d9d9d9;
    /* &::after{
      content: "ー";
      font-weight: 400;
      display: block;
      position: absolute;
      bottom: -20px;
      left: 50%;
      transform: translateX(-50%);
    } */
  }
}

.pageinfo-link span{
  display: block;
}
.page-arrow,
.pageinfo-link span{
  width: 58px;
  height: 38px;
  border: 1px solid #000;
  border-radius: 100px;
  background: url(/recruit/works/wp-content/themes/work_theme/assets/images/arrow.png) no-repeat 50% 50%;
  cursor: pointer;
  transition: all .2s;
  margin-right: 52px;
  @media screen and (max-width: 767px){
    margin-right: 0;
    width: 40px;
    height: 30px;
    background-size: 50%;
  }
  &:hover{
    background: #000 url(/recruit/works/wp-content/themes/work_theme/assets/images/arrow-wh.png) no-repeat 50% 50%;
  }
  &.next{
    transform: rotate(180deg);
    margin-right: 0;
    margin-left: 52px;
    @media screen and (max-width: 767px){
      margin: 0;
    }
  }
}
.next-link span{
  transform: rotate(180deg);
  margin-right: 0;
  margin-left: 52px;
  @media screen and (max-width: 767px){
    margin: 0;
  }
}


/* 詳細 */
.work-item{
  width: 100%;
  max-width: 1176px;
  margin: 50px auto;
  font-family: futura-pt,  sans-serif;
  .wp-block-image{
    width: 100%;
    max-height: 547px;
    text-align: center;
    img{
      width: auto;
      height: auto;
      max-width: 100%;
      max-height: 547px;
      object-fit: contain;
    }
  }
  .work-item-header{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-end;
    @media screen and (max-width: 767px){
      display: block;
    }
    figure{
      width: 100%;
      max-width: 531px;
      margin: 0;
      img{width: 100%;}
    }
  }
  .titles{
    @media screen and (max-width: 767px){
      width: 95%;
      margin: 0 auto;
    }
  }
  .titles-tax{
    display: flex;
    gap: 12px;
    .cat{
      font-size: 14px;
      background: #000;
      color: #fff;
      padding: 4px 20px;
      border-radius: 100px;
      font-weight: 700;
    }
    .tag{
      font-size: 16px;
      line-height: 2;
      font-weight: 500;
      span{
        margin-right: 12px;
        display: inline-block;
      }
    }
  }
  h2{
    font-size: 50px;
    line-height: 1;
    margin-top: 16px;
    @media screen and (max-width: 767px){
      font-size: 28px;
    }
  }
  .work-item-desc{
    margin-top: 52px;
    font-size: 14px;
    line-height: 1.9;
    font-weight: 500;
    max-width: 800px;
    @media screen and (max-width: 767px){
      width: 95%;
      margin: 28px auto 0;
    }
  }
  .work-item-info{
    margin-top: 60px;
    border: 1px solid #000;
    border-left: none;
    border-right: none;
    padding: 30px;
    width: 600px;
    @media screen and (max-width: 767px){
      width: 95%;
      margin: 30px auto 0;
      padding: 12px;
    }
    dl{
      display: flex;
      align-items: center;
      gap: 12px;
      padding-top: 16px;
      &:first-child{
        padding-top: 0;
      }
      @media screen and (max-width: 767px){
        padding-top: 0;
      }
    }
    dt{
      font-size: 14px;
      font-weight: 700;
      width: 50px;
      @media screen and (max-width: 767px){
        font-size: 12px;
      }
    }
    dd{
      font-size: 16px;
      @media screen and (max-width: 767px){
        font-size: 14px;
      }
      a{
        color: #000;
        &:hover{
          text-decoration: underline;
        }
      }
    }
  }
  .work-item-gallery{
    margin-top: 148px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    @media screen and (max-width: 767px){
      width: 95%;
      margin: 68px auto 0;
      .work-item-gallery-img{
        margin: 0 auto;
      }
      img{width: 100%;}
    }
  }
}

