/* pagenation */

.pagenation p {
  color: #6D747E;
  margin-bottom: 5px;
}

.pagenation .list {
  display: flex;
}

.pagenation .list .next,
.pagenation .list .prev {
  background: #CDCDCE;
  width: 21px;
  height: 30px;
  position: relative;
  display: block;
  border: solid 1px #CDCDCE;
}

.pagenation .list .next::before,
.pagenation .list .prev::before {
  position: absolute;
  top: 7px;
  left: 6px;
  content: "";
  border-left: solid 2px white;
  border-bottom: solid 2px white;
  width: 10px;
  height: 10px;
  transform: rotateZ(45deg);
  transition: .3s;
}

.pagenation .list .next:hover,
.pagenation .list .prev:hover {
  background: white;
}

.pagenation .list .next:hover::before,
.pagenation .list .prev:hover::before {
  border-left: solid 2px #CDCDCE;
  border-bottom: solid 2px #CDCDCE;
}

.pagenation .list .next::before {
  left: 1px;
  transform: rotateZ(-135deg);
}

.pagenation .list .num {
  color: #6D747E;
  border: solid 1px #CDCDCE;
  border-width: 1px 0 1px 1px;
  padding: 2px;
  display: block;
  transition: .3s;
  min-width: 24px;
  text-align: center;
}

.pagenation .list .num.active,
.pagenation .list .num:hover {
  background: #058fbe;
  color: white;
}

.pagenation .list .page-item {
  color: #6D747E;
  border: solid 1px #CDCDCE;
  border-width: 1px 0 1px 1px;
  padding: 2px;
  display: block;
  transition: .3s;
  min-width: 24px;
  text-align: center;
}

.pagenation .list .page-item.active,
.pagenation .list .page-item:hover {
  background: #058fbe;
  color: white;
}

.pagenation .list .page-item a {
  color: #6D747E;
}

.pagenation .list .page-item a:hover,
.pagenation .list .page-item.active a {
  color: white;
  display: block;
}

/* 施設検索画面用 */

#facility .pagenation .list li.active a {
    height: auto;
    width: auto;
    color: white;
    display: block;
    border: 0;
    border-width: 0px;
}

#facility .pagenation .list li.active {
  border: solid 1px #CDCDCE;
  border-width: 1px 0 1px 1px;
  padding: 2px;
  display: block;
  transition: .3s;
  min-width: 24px;
  text-align: center;
}

#facility .pagenation .list li:not(.active,.prev,.next):hover {
  color: white;
  background: #058fbe;
}

#facility .pagenation .list li:not(.active,.prev,.next)  {
  font-weight: 400;
  line-height: 1.5;
  list-style: none;
  box-sizing: border-box;
  min-height: 0%;
  outline: 0;
  background: transparent;
  margin: 0;
  color: #6D747E;
  border: solid 1px #CDCDCE;
  border-width: 1px 0 1px 1px;
  padding: 2px;
  display: block;
  transition: .3s;
  min-width: 24px;
  text-align: center;
}

#facility .pagenation .list li:not(.active,.prev,.next) a {
  height: auto;
  width: auto;
  display: block;
  border: 0;
  border-width: 0px;
}

li.next,
li.prev {
  cursor: pointer;
}

#facility .pagenation .list .next a:hover,
#facility .pagenation .list .prev a:hover
{
  background: transparent;
}


#facility .pagenation .list .next:hover::before,
#facility .pagenation .list .prev:hover::before {
  position: absolute;
  top: 10px;
  left: 7px;
  content: "";
  border-left: solid 2px #CDCDCE;
  border-bottom: solid 2px #CDCDCE;
  width: 7px;
  height: 7px;
  transform: rotateZ(45deg);
  transition: .3s;
}
#facility .pagenation .list .next:hover::before {
  left: 1px;
  transform: rotateZ(-135deg);
}

@media screen and (max-width: 767px) {
  .pagenation {
    margin-bottom: 20px;
  }

  .pagenation p {
    font-size: 14px;
  }

  .pagenation .list .next,
  .pagenation .list .prev {
    height: 27px;
  }

  .pagenation .list .next::before,
  .pagenation .list .prev::before {
    top: 6px;
  }

  .pagenation .list .num {
    font-size: 14px;
  }

  .pagenation .list .page-item {
    font-size: 14px;
  }
}