/************************************
** レスポンシブページネーション
************************************/
.pagenation{
  list-style-type: none;
  padding-left: 0;
  margin: 0 0 100px;
}

.pagenation > * {
  text-decoration: none !important;
}
.pagenation li.next {
  display: block;
}

.pagenation,
.pagenation li > * {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.pagenation li > * {
  font-size: 1.9rem;
  padding-top: 1px;
  text-decoration:none;
  /*border: 1px solid #001e5a;*/
  border-left-width: 0;
  min-width:50px;
  min-height:50px;
  background-color: #B4B4B5;
  color: #fff;
}
.pagenation li + li {
  margin-left: 20px;
}
.pagenation a {
  -webkit-transition: all 400ms linear;
  transition        : all 400ms linear;
}
.ua-pc .pagenation a:hover {
  background-color: #c2c2c3;
}
.ua-pc .pagenation a:hover > span {
  opacity: 1;
}
/*.pagenation li > a span {
  color: #333 !important;
}*/

/*.pagenation li:not([class*="current"]) > a:hover {
  background-color: rgba(62, 52, 48,0.1);
}*/

.pagenation li:first-of-type > * {
  border-left-width: 1px;
}

/*.pagenation li.first > * > span,
.pagenation li.last > * > span,
.pagenation li.back > * > span,
.pagenation li.next > * > span {
  position: absolute;
  top: -9999px;
  left: -9999px;
}*/

.pagenation li.first > *::before,
.pagenation li.last > *::after,
.pagenation li.back > *::before,
.pagenation li.next > *::after {
  display: inline-block;
  font-family: Fontawesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translate(0, 0);
}

/*.pagenation li.first > *::before { content: "\00ab"; }*/
/*.pagenation li.last > *::after { content: "\00bb"; }*/

/*.pagenation li.back > *::before { content: "\003c"; }*/
/*.pagenation li.next > *::after { content: "\003e"; }*/
.pagenation li.current > * {
  background-color: #539535;
  cursor: default;
  pointer-events: none;
  color: #fff;
}

.pagenation > li:first-child > * {
  /*! border-bottom-left-radius: 4px; */
  /*! border-top-left-radius: 4px; */
}

.pagenation > li:last-child > * {
  /*! border-bottom-right-radius: 4px; */
  /*! border-top-right-radius: 4px; */
}

@media only screen and ( max-width: 680px ) {
  .pagenation li.first,
  .pagenation li.last {
    /* screen readers only */
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .pagenation li.previous > * { border-left-width: 1px; }
}

@media only screen and ( max-width: 500px ) {
  .pagenation li {
    /* screen readers only */
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .pagenation li.current,
  .pagenation li.current-prev,
  .pagenation li.current-next,
  .pagenation li.first,
  .pagenation li.last,
  .pagenation li.back,
  .pagenation li.next{
    position: initial;
    top: initial;
    left: initial;
  }

  .pagenation li.previous > * { border-left-width: 0; }
}

@media only screen and ( max-width: 400px ) {
  .pagenation li.first,
  .pagenation li.last {
    /* screen readers only */
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .pagenation li.back > * { border-left-width: 1px; }
}

@media only screen and ( max-width: 240px ) { /* For watches? */
  .pagenation li { width: 50%;}

  .pagenation li.current {
    order: 2;
    width: 100%;
    border-left-width: 1px;
  }
}
