@charset "UTF-8";
.page_main {
  padding: 150px 0 120px;
}

.page_main .page_header {
  position: relative;
}

.page_main .page_header::after {
  content: "";
  position: absolute;
  top: -150px;
  width: 100%;
  height: 742px;
  background-image: url(../../../image/page_mv_bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.page_main .page_title {
  margin-top: 80px;
  margin-bottom: 50px;
}

.page_main .page_title .en {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 1.2;
  color: #4581b5;
  font-family: "Figtree", sans-serif;
}

.page_main .page_title .ja {
  font-size: 16px;
  font-weight: 500;
  color: #919191;
  line-height: 1.38;
  margin-top: 5px;
}

.page_main .page_mv {
  margin-right: calc(50% - 50vw);
  height: 320px;
}

.page_main .page_mv img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.common_page_wrap {
  padding: 150px 0 0;
}

/* 施工実績一覧 */
.page_works .works_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
}

.page_works .works_card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page_works .works_img {
  width: 270px;
  height: 380px;
  overflow: hidden;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.page_works .works_img a {
  display: block;
  width: 100%;
  height: 100%;
}

.page_works .works_img .js_before_after_modal {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page_works .works_thumbnail {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  cursor: pointer;
}

.page_works .works_title {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.page_works .icon_btn {
  width: 220px;
  margin: 0 auto;
}

.page_works .works_pagination {
  margin-top: 80px;
}

/* ページネーション */
.works_pagination .wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.works_pagination .wp-pagenavi a,
.works_pagination .wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  margin: 0;
  border-radius: unset;
}

/* 非アクティブなページ番号 */
.works_pagination .wp-pagenavi a {
  background-color: #b1cee6;
  color: #fff;
}

/* アクティブなページ */
.works_pagination .wp-pagenavi .current {
  background-color: #4581b5;
  color: #fff;
}

/* 省略記号（3点リーダー） */
.works_pagination .wp-pagenavi .extend {
  background: transparent;
  color: #5a5a5a;
  cursor: default;
  min-width: auto;
  padding: 0 4px;
  font-size: 18px;
  line-height: 1;
}

/* 次へボタンを非表示 */
.works_pagination .wp-pagenavi .nextpostslink {
  display: none;
}

/* Lastボタン */
.works_pagination .wp-pagenavi .last {
  background-color: #fff;
  border: 1px solid #d1d1d1;
  color: #4581b5;
  font-weight: 500;
  padding-right: 8px;
}

/* ビフォーアフターモーダル */
.before_after_modal_overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.before_after_modal_overlay.show {
  display: flex;
}

.before_after_modal {
  position: relative;
  background: #fff;
  padding: 40px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: auto;
  overflow-y: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.before_after_modal_close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #5a5a5a;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.before_after_modal_content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.before_after_modal_img_box {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.before_after_modal_label {
  font-size: 32px;
  letter-spacing: 0.08em;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 15px 0;
  color: #4581b5;
  text-align: center;
  font-family: "Figtree", sans-serif;
  text-transform: uppercase;
}

.before_after_modal_img_wrap {
  width: 28.125vw;
  height: 39.58vw;
  max-height: 80vh;
  -o-object-fit: cover;
     object-fit: cover;
}

.before_after_modal_img_wrap img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  max-width: 100%;
}

.icon_btn {
  cursor: pointer;
}

/*----------------------------------------
   ホバー
----------------------------------------*/
@media screen and (min-width: 751px) {
  .page_works .works_img:hover {
    filter: grayscale(0%);
  }
  .works_pagination .wp-pagenavi a:hover {
    background-color: #4581b5;
    color: #fff;
  }
  .works_pagination .wp-pagenavi .last:hover {
    background-color: #4581b5;
    color: #fff;
  }
}
/*----------------------------------------
   メディアクエリ
----------------------------------------*/
@media (min-width: 1441px) {
  .page_main .page_header::after {
    height: 51.53vw;
  }
  .before_after_modal_img_wrap {
    width: 540px;
    height: 760px;
  }
}
@media (max-width: 750px) {
  .page_main {
    padding: 21.79vw 0 15.38vw;
  }
  .page_main .page_header::after {
    top: -21.79vw;
    height: 148.72vw;
    background-image: url(../../../image/page_mv_bg_sp.png);
  }
  .page_main .page_title {
    margin-top: 8.97vw;
    margin-bottom: 8.97vw;
  }
  .page_main .page_title .en {
    font-size: 10.26vw;
    line-height: 1.2;
  }
  .page_main .page_title .ja {
    font-size: 3.59vw;
    line-height: 1.36;
  }
  .page_main .page_mv {
    height: 46.15vw;
  }
  .page_works .common_page_wrap {
    padding: 15.38vw 0 0;
  }
  .page_works .works_list {
    grid-template-columns: 1fr;
    gap: 5.13vw;
  }
  .page_works .works_card {
    width: 100%;
  }
  .page_works .works_img {
    width: 100%;
    height: 46.15vw;
    filter: grayscale(0%);
  }
  .page_works .works_title {
    padding: 2.56vw 0;
  }
  .page_works .icon_btn {
    width: 56.41vw;
    margin: 0 auto;
  }
  /* ビフォーアフターモーダル（SP） */
  .before_after_modal {
    padding: 7.69vw 5.13vw;
    max-width: 95%;
  }
  .before_after_modal_content {
    flex-direction: column;
    gap: 5.13vw;
  }
  .before_after_modal_label {
    font-size: 6.15vw;
    margin: 0 0 2.56vw 0;
  }
  .before_after_modal_img_wrap {
    width: 100%;
    height: 46.15vw;
  }
}
/*# sourceMappingURL=works.css.map */