@charset "utf-8";


.works_main {
  background-color: #dfdfdf;
  padding-left: 17.5rem;
  width: 100%;
}

.main_img {
  width: 100%;
  height: 25rem;
  margin-bottom: 6rem;
  object-fit: cover;
  vertical-align: bottom;
}

.main_title {
  font-size: 3rem;
  font-family: 'Alegreya Sans SC', serif;
  font-weight: 500;
  color: #000000;
  text-align: center;
  margin-bottom: 10rem;
}

.category {
  padding-bottom: 10rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.55rem;
  margin-left: 8.7rem;
  margin-right: 8.7rem;
  color: #000;
  height: fit-content;
}

.category_list {
  font-family: var(--Shippori);
  font-size: 1.6rem;
  line-height: calc(24em / 16);
  font-weight: 500;
  padding-right: 1.15rem;
  border-right: #000000 0.2rem solid;
}

.category_list.selected {
  font-weight: 700;
  padding-right: 1.15rem;
}

.category_list:last-child {
  border-right: none;
}

/*---------- main_content ----------*/

.masonry_item {
  width: 32.0rem;
  margin-bottom: 2.9rem;
}

.content_wrapper {
  width: 101.8rem;
  margin-left: 0;
  padding-bottom: 20.0rem;
}

.main_content {
  cursor: pointer;
  width: 32.0rem;
  position: relative;
  overflow: hidden;
}

.home_img {
  width: 32.0rem;
  height: 18.0rem;
  object-fit: cover;
  transition: .2s ease;
}

.home_img2 {
  width: 32.0rem;
  height: 18.0rem;
  object-fit: contain;
  transition: .2s ease;
}

.home_img3 {
  width: 32.0rem;
  height: 38.9rem;
  object-fit: cover;
  transition: .2s ease;
}

.home_img4 {
  width: 32.0rem;
  height: 38.9rem;
  object-fit: contain;
  transition: .2s ease;
}

.hover_mask {
  align-items: center;
  background: rgba(0, 0, 0, .5);
  bottom: 0;
  color: #fff;
  display: flex;
  height: auto;
  justify-content: center;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .2s ease;
  width: 100%;
}

.hover_mask:hover {
  opacity: 1;
}

.main_content:hover img {
  transform: scale(1.2);
}

.inner_text {
  font-size: 1.8rem;
  font-family: var(--NotoSans);
  padding: 0 2.0rem;
}

/*----------pagination----------*/

.pagination {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-bottom: 10rem;
}

.nav-links {
  display: flex;
}

.pagination .page-numbers {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1.0rem;
  font-size: 1.4rem;
  font-weight: 400;
  font-family: var(--Shippori);
  line-height: calc(20em / 14);
  width: 2.9rem;
  height: 2.9rem;
  border: 0.1rem solid #000000;
  border-radius: 50%;
  color: #000000;
  background-color: #FFFFFF;
}

.pagination .current {
  background: #000;
  color: #fff;
}

.pagination .prev,
.pagination .next {
  background: transparent;
  box-shadow: none;
  color: #000;
}

.pagination .dots {
  background: transparent;
  box-shadow: none;
  border: none;
}

@media screen and (max-width:699.98px) {


  .works_main {
    background-color: #CACACA;
    width: 37.5rem;
    padding-left: 0rem;
  }

  .main_img {
    width: 37.5rem;
    height: 15rem;
    object-fit: cover;
    vertical-align: bottom;
    margin-left: 0rem;
    margin-bottom: 2.3rem;
  }

  .main_title {
    font-family: var(--Asc);
    padding-top: 0rem;
    font-size: 3.0rem;
    font-weight: 500;
    margin-left: 0rem;
    margin-bottom: 0rem;
    text-align: center;
    line-height: calc(42em / 30);
    color: #000;
  }

  .category {
    padding-top: 3.0rem;
    padding-bottom: 0rem;
    font-family: var(--Shippori);
    font-size: 1.5rem;
    line-height: calc(21em / 15);
    font-weight: 400;
    display: flex;
    gap: 0.55rem;
    margin-left: 0rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-right: 0rem;
    color: #000;
    width: 100%;
    height: fit-content;
  }

  .category_list {
    padding-right: 1.15rem;
    border-right: #000000 0.2rem solid;
    margin-bottom: 1.7rem;
  }

  /*---------- main_content ----------*/

  .masonry_item {
    width: 32.0rem;
    margin-bottom: 2.8rem;
  }

  .content_wrapper {
    width: 37.5rem;
    padding-bottom: 10.0rem;
    margin-left: 0rem;
    padding-left: 2.7rem;
  }

  .main_content {
    cursor: pointer;
    width: 32.0rem;
    position: relative;
    overflow: hidden;
  }

  .home_img {
  width: 32.0rem;
  height: 18.0rem;
  object-fit: cover;
  transition: .2s ease;
}

.home_img2 {
  width: 32.0rem;
  height: 18.0rem;
  object-fit: contain;
  transition: .2s ease;
}

.home_img3 {
  width: 32.0rem;
  height: 38.9rem;
  object-fit: cover;
  transition: .2s ease;
}

.home_img4 {
  width: 32.0rem;
  height: 38.9rem;
  object-fit: contain;
  transition: .2s ease;
}

  .hover_mask {
    align-items: center;
    background: rgba(0, 0, 0, .5);
    bottom: 0;
    color: #fff;
    display: flex;
    height: auto;
    justify-content: center;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .2s ease;
    width: 100%;
  }

  .hover_mask:hover {
    opacity: 1;
  }

  .main_content:hover img {
    transform: scale(1.2);
    overflow: hidden;
  }

  .text {
    font-weight: 400;
    font-size: 1.5rem;
    font-family: var(--Shippori);
    line-height: calc(21em / 15);
  }

  /*----------pagination----------*/

  .pagination {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-bottom: 7.5rem;
  }

  .nav-links {
    display: flex;
  }

  .pagination .page-numbers {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    margin-right: 1.0rem;
    font-size: 1.4rem;
    font-weight: 400;
    font-family: var(--Shippori);
    line-height: calc(20em / 14);
    width: 2.9rem;
    height: 2.9rem;
    border: 0.1rem solid #000000;
    border-radius: 50%;
    color: #000000;
    background-color: #FFFFFF;
  }

  .pagination .current {
    background: #000;
    color: #fff;
  }

  .pagination .prev,
  .pagination .next {
    background: transparent;
    box-shadow: none;
    color: #000;
  }

  .pagination .dots {
    background: transparent;
    box-shadow: none;
    border: none;
  }


}