@charset "utf-8";
#case-page h1 {
  font-weight: 500;
  font-size: 3rem;
  text-align: center;
  margin-top: 100px;
}
.case-tag-wrap,
.sliderArea {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}
.case-tag-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
  margin-top: 24px;
}
.case-tag-wrap .case_category {
  min-width: 110px;
  padding: 10px 27px;
  background-color: #004690;
  color: #fff;
  font-size: 1.4rem;
  text-align: center;
}
.case_date {
  font-weight: bold;
  font-size: 1.4rem;
  color: #004690;
}
.slider {
  width: 100%;
}
.thumb {
  width: 90%;
  max-width: 640px;
  margin: 36px auto 0;
}
.thumb img {
  margin: 0 10px;
  cursor: pointer;
}
.thumb img:hover {
  opacity: 0.8;
}
.slider_text {
  position: relative;
  z-index: 5;
  margin-top: 11px;
  text-align: center;
}
.case_text,
.case-table {
  margin: 80px auto 0;
  width: 90%;
  max-width: 700px;
}
.case_text {
  font-size: 1.6rem;
  line-height: 1.87;
}
.case-table {
  margin-bottom: 50px;
}
.case-table th {
  font-size: 1.6rem;
  text-align: center;
  vertical-align: middle;
  color: #004690;
  padding: 18px 0;
  background-color: #f0faff;
}
.case-table td {
  font-size: 1.6rem;
  vertical-align: middle;
  padding: 18px 24px;
}
.case-table tr {
  border-top: 1px solid #e0e0e0;
}
.case-table tr:last-of-type {
  border-bottom: 1px solid #e0e0e0;
}
.case-link-wrap {
  margin: 80px auto 0;
  width: 90%;
  max-width: 700px;
  display: flex;
  justify-content: space-between;
}

.case-link-wrap a {
  /* width: 200px; */
  font-weight: 500;
  font-size: 1.5rem;
  color: #004690;
  padding: 15px 61px 15px;
  border: 1px solid #1d468b;
  display: block;
  position: relative;
  transition: all 0.3s ease-in-out;
}
.case-link-wrap a::before {
  content: "";
  width: 7px;
  height: 11px;
  display: inline-block;
  background-image: url(../images/icon-arrow.png);
  background-size: contain;
  position: absolute;
  top: 50%;
  transition: all 0.3s ease-in-out;
}
.link-pre a::before {
  transform: translateY(-50%) rotateZ(180deg);
  left: 15px;
}
.link-next a::before {
  transform: translateY(-50%);
  right: 15px;
}
.case-link-wrap a:hover {
  color: #fff;
  background-color: #004690;
  opacity: 1;
}
.case-link-wrap a:hover::before {
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}
.link-pre,
.link-next {
  /* width: 50%; */
}
.link-next a {
  /* margin: 0 0 0 auto; */
}
.case-link-toList {
  margin-top: 83px;
  margin-bottom: 160px;
  display: flex;
  justify-content: center;
}
.case-link-toList a {
  padding: 18px 71px 18px 85px;
  font-weight: 500;
  font-size: 1.6rem;
  color: #fff;
  background-color: #004690;
  position: relative;
}
.case-link-toList a::before {
  content: "";
  width: 7px;
  height: 11px;
  display: inline-block;
  background-image: url(../images/icon-arrow.png);
  background-size: contain;
  position: absolute;
  top: 50%;
  left: 21px;
  transition: all 0.3s ease-in-out;
  transform: translateY(-50%) rotateZ(180deg);
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}

/* 施工事例一覧ぺージ用 */
.page-section-title {
  margin-top: 90px;
}
.case-list-wrap {
  margin-top: 66px;
}
.case-list-wrap ul {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
}
.case-list-wrap li {
  width: calc((100% - 10%) / 3);
  margin-bottom: 80px;
  margin-right:calc(10% / 6); 
  margin-left:calc(10% / 6); 
}
.works-item-textWrap {
  position: relative;
  margin-top: 14px;
  border-left: 1px solid #1d468b;
  padding-left: 20px;
}
.category-tag {
  display: inline-block;
  background: #004690;
  min-width: 110px;
  padding: 10px 8px;
  text-align: center;
  position: absolute;
  top: -34px;
  right: 0;
  color: #fff;
  z-index: 2;
}
.works-item-date {
  font-weight: bold;
  font-size: 1.4rem;
  text-align: left;
  color: #004690;
}
.works-item-name {
  font-size: 1.6rem;
}

#case-list {
  padding-bottom: 190px;
}
/* 施工事例一覧レスポンシブ */
@media screen and (max-width: 959px) {
  .case-list-wrap ul {
    justify-content: space-around;
  }
  .case-list-wrap li {
    width: calc((100% - 10%) / 2);
    max-width: 350px;
    margin-right:calc(10% / 4); 
  margin-left:calc(10% / 4); 
  }
}
@media screen and (max-width: 599px) {
  .page-section-title{
    margin-top:60px;
  }
  .works-item-textWrap {
    padding-left: 8px;
  }
  .category-tag {
    padding: 8px 7px;
  }
}

/* 施工事例詳細レスポンシブ */
@media screen and (max-width: 959px) {
  .thumb img {
    margin: 0 5px;
  }
}
@media screen and (max-width: 559px) {
  #case-page h1 {
    margin-top: 60px;
  }
  .case-tag-wrap .case_category {
    padding: 4px 27px;
  }
  .case-tag-wrap,
  .sliderArea {
    width: 100%;
    max-width: initial;
  }
  .thumb {
    width: 100%;
    max-width: initial;
    margin: 24px auto 0;
  }

  .thumb img {
    margin: 0 5px;
  }
  .case_text,
  .case-table {
    width: 100%;
    margin: 40px auto 0;
  }
  .case_text {
    font-size: 1.5rem;
    line-height: 1.7;
  }
  .case-table th,
  .case-table td {
    width: 100%;
    display: block;
  }
  .case-table th {
    padding: 10px 0;
  }
  .case-table td {
    padding: 10px 12px 24px;
  }
  .case-link-toList a {
    width: 300px;
    padding: 18px;
    text-align: center;
  }
  .case-link-wrap {
    width: 100%;
    margin: 60px auto 0;
  }
  .case-link-wrap a {
    padding: 14px 30px;
  }
  .link-pre a::before {
    left: 10px;
  }
  .link-next a::before {
    right: 10px;
  }
  .case-link-toList {
    margin-top: 60px;
    margin-bottom: 100px;
  }
}
/* ここからページネーションcss */

.nav-links{
  display: flex;
  align-items: center;
  width: 80%;
  justify-content: center;
  margin: 0 auto;
}
.pagination .page-numbers{
   display:inline-block;
   margin:0 10px;
   padding:10px 12px;
   color:#1d468b;
   /* border-radius:3px; */
  border:1px solid #1d468b;
   /* box-shadow:0 3px 3px #1d468b; */
   background:#fff;
   font-size: 1.4rem;
}
/* .pagination .page-numbers:not(:last-of-type){
  margin-right:20px;
} */
.pagination .current{
  padding:10px 12px;
   background:#1d468b;
   color:#fff;
}
.pagination .prev,
.pagination .next{
   background:transparent;
   /* box-shadow:none; */
   border: none;
   color:#1d468b;
}
.pagination .dots{
   background:transparent;
   box-shadow:none;
   border: none;
   /* margin-right:20px; */
}
@media screen and (max-width: 599px) {
  .pagination .page-numbers {
    margin: 0 6px;
  }
}