.page_header_back {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url("/casa-reform/wp-content/themes/blankslate-child/asset/works_top_img_sp.webp");
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  background-position: center;
  height: 135px;
  background-size: cover;
}
.page-header-copy {
  font-family: 'Fjalla One';
  color: #ffffff;
  position: absolute;
  letter-spacing: 1px;
  text-align: center;
  font-size: 3rem;
  transform: translate(-50%,-42%);
  top: 50%;
  left: 50%;
  line-height: 30px;
}
.page-header-copy_main {
  position: relative;
  color: #ffffff;
  font-weight: 400;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 1px;
}
.works_pickup_container,.works_a__content{
  text-align: center;
  padding: 45px 2.5rem 1rem;
}
.works_pickup_container h4,.works_tabs h4{
  margin: 0 0 3.2rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.8px;
}
.works_a__list{
  text-align: left;
}
.works_pickup_container .works-item{
  position: relative;
  z-index: 1;
}
.works_pickup_container .works-item::before{
  content: "PICK UP";
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 1.8rem;
  color: #fff;
  font-family: 'Fjalla One';
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  background-color: #070707;
  top: 0;
  left: 0;
  z-index: 10; 
  pointer-events: none;
}
.works_a__content{
  background-color: #F7F6F2;
}
.works_category {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 40px;
  gap: 10px;
}
.works_category li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 3rem;
  cursor: pointer;
  background: #f7f7f7;
  border: 1px solid #000000;
  border-radius: 50px;
  font-size: 1.3rem;
  transition: all 0.3s;
}
.works_category li.is-active {
  background: #000001;
  color: #fff;
  border-color: #000000;
}
.works_category li:hover:not(.is-active) {
  background: #eee;
}
.works_a__list li {
  margin-bottom: 40px;
}
.works_s__other_case {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.6px;
  margin: 4% 0 4% 5px;
  text-align: center;
  color: #3B3B3B;
  vertical-align: middle;
  height: initial;
  line-height: 1.8;
}
.works_s__other_case:first-of-type{
  margin-left: initial;
}
.works_s__other_case.new{
  width: 7rem;
  background-color: #930B0B;
  color: #fff;
  border: 1px solid #3B3B3B;
  border-radius: 25px;
}
.works_s__other_case.movie{
  background-color: initial;
  color: #3B3B3B;
}
.movie-label{
  display: flex;
  align-items: center;
  justify-content: center;
}
.movie-icon{
  width: 1.4rem;
  margin: 0 0.5rem 0 0;
}
.movie-text{
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
}
.works_a__list h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.9px;
  line-height: 1.5;
  color: #000;
}
.works_a__list h2 br {
  display: none;
}

.works_a__navi {
  padding: 5rem 0;
}
.navigation.pagination {
  margin: 0 2.5rem;
}
.nav-links {
  text-align: center;
  position: relative;
}
.page-numbers {
  font-size: 15px;
  font-weight: 500;
  padding: 5px;
  margin: 5px;
  color: #000;
}
.page-numbers.current {
  font-size: 15px;
  color: #930B0B;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.page-numbers.dots {
  color: #9a9a9a;
  padding: 0;
  margin: 0;
}
.prev.page-numbers , .next.page-numbers {
  padding: 0;
}
.prev.page-numbers {
  margin: 0 20px 0 0;
}
.next.page-numbers {
  margin: 0 0 0 20px;
}
.prev span::before {
  content: '';
  width: 40px;
  height: 40px;
  display: inline-block;
  border: 1px solid #000;
  border-radius: 30px;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto 0;
  transition: 0.3s;
}
.prev span::after {
  content: '';
  line-height: 1;
  width: 10px;
  height: 3px;
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
  transform: skew(135deg);
  position: absolute;
  left: 17px;
  top: -1px;
  bottom: 0;
  margin: auto 0;
  transition: 0.3s;
}
.next span::before {
  content: '';
  width: 40px;
  height: 40px;
  display: inline-block;
  border: 1px solid #000;
  border-radius: 30px;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto 0;
  transition: 0.3s;
}
.next span::after {
  content: '';
  line-height: 1;
  width: 10px;
  height: 3px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  transform: skew(45deg);
  position: absolute;
  right: 17px;
  top: -1px;
  bottom: 0;
  margin: auto 0;
  transition: 0.3s;
}

@media (min-width: 768px) { 
  .works_category{
    grid-template-columns: initial;
    grid-auto-flow: column;
    justify-content: center;
    gap: 1.5rem;
  }
  .works_a__list {
    padding: 0 4.5rem;
  }
  .works_pickup_container{
    padding: 45px 2.5rem 1rem;
  }
  .works_a__list ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 5rem;
  }
  .navigation.pagination {
    max-width: 450px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
.page_header_back {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(/casa-reform/wp-content/themes/blankslate-child/asset/works_top_img_pc.webp);
  height: 24rem;
}
.page_header_area.works .page-header-copy p {
  font-size: 55px;
  letter-spacing: 1.65px;
}
.page_header_area.works .page-header-copy h2 {
  font-size: 16px;
  margin-top: 10px;
  letter-spacing: 2.24px;
}
.works_pickup_container {
  padding: 8rem 2.5rem 6rem;
}
.works_category li{
  width: 12rem;
  height: 3.3rem;
}
.works_a__content{
  padding: 6.3rem 2.5rem 70px;
}
.works_a__list {
  margin: 4.3rem 0 0;
}
.works_a__list ul {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 4.5rem;
}
  .works_a__list li {
    width: 100%;
  }
  .works_pickup_container .works_a__list li {
    margin: initial;
  }
  .works_s__other_case.new, .movie-label{
    width: 7.5rem;
  }
  .works_a__img {
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  .works_a__img img {
    display: block;
    transition: 0.5s;
  }
.works_a__list a:hover img {
  scale: 1.1;
}
.works_a__list a:hover .movie-icon{
  scale: 1;
}
.page-numbers {
  margin: 15px;
}
.page-numbers:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.prev.page-numbers:hover span::before {
  background-color: #000;
}
.prev.page-numbers:hover span::after {
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
.next.page-numbers:hover span::before {
  background-color: #000;
}
.next.page-numbers:hover span::after {
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
}