#contents {
  padding-bottom: 55px;
}

#contents .seriesHead {
  position: relative;
  display: block;
  margin: 0 0 25px;
  padding: 0 10px 10px;
  border-bottom: 1px solid #ba0000;
  text-align: center;
  font-size: 2.6rem;
  font-weight: bold;
}

#contents .seriesHead:before {
  position: absolute;
  width: 88px;
  height: 9px;
  background-image: url(../images/common/deco3_head.png);
  background-repeat: no-repeat;
  background-size: contain;
  bottom: -5px;
  left: 0;
  content: '';
}

#contents .seriesHead:after {
  position: absolute;
  width: 68px;
  height: 10px;
  background-image: url(../images/common/deco2_head.png);
  background-repeat: no-repeat;
  background-size: contain;
  bottom: -6px;
  right: 0;
  content: '';
}

#searchBox {
  margin: 0 0 40px 0;
  padding: 30px 20px;
  background-color: #e5e5e5;
}

#searchBox .wrap {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

#searchBox .wrap:first-child {
  margin-bottom: 15px;
}

#searchBox .wrap .head {
  position: relative;
  display: block;
  width: 198px;
  margin-right: 12px;
  padding: 8px;
  box-sizing: border-box;
  background-color: #000;
  text-align: center;
  font-size: 1.4rem;
  color: #FFF;
}

#searchBox .wrap .head:after {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 12px;
  margin: auto;
  vertical-align: middle;
  width: 6px;
  height: 6px;
  border-top: 1px solid #ba0000;
  border-right: 1px solid #ba0000;
  transform: rotate(45deg);
  content: "";
}

#searchBox .wrap input[type="text"],
#searchBox .wrap select {
  display: block;
  box-sizing: border-box;
  -webkit-appearance: button;
  -moz-appearance: none;
       appearance: none;
  border-radius: 0;
  width: 100%;
  border: 1px solid #9b9b9b;
  background-color: #FFF;
  font-size: 1.4rem;
  font-family: "Noto Sans JP",sans-serif;
}

#searchBox .wrap .custom-input {
  flex-grow: 1;
}

#searchBox .wrap .custom-input input[type="text"] {
  padding: 10px 15px;
}

#searchBox .wrap .custom-select {
  flex-grow: 1;
  position: relative;
}

#searchBox .btn button {
  position: relative;
  display: block;
  width: 300px;
  margin: 0 auto;
  padding: 13px;
  box-sizing: border-box;
  background-color: #ba0000;
  text-align: center;
  font-size: 1.6rem;
  color: #FFF;
  border: none;
  cursor: pointer;
  font-family: "Noto Sans JP",sans-serif;
}

#searchBox .btn button:after {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 12px;
  margin: auto;
  vertical-align: middle;
  width: 6px;
  height: 6px;
  border-top: 1px solid #FFF;
  border-right: 1px solid #FFF;
  transform: rotate(45deg);
  content: "";
}

#main {
  overflow: hidden;
}

#main .resultsHead {
  position: relative;
  margin: 0 0 25px 0;
  padding: 6px 0 8px 20px;
  font-size: 1.8rem;
  font-weight: bold;
}

#main .resultsHead:before {
  position: absolute;
  width: 12px;
  height: 40px;
  background-image: url(../images/common/line2_head.png);
  background-repeat: no-repeat;
  background-size: contain;
  left: 0;
  bottom: 0;
  content: '';
}

#main .block {
  display: flex;
  flex-wrap: wrap;
  margin-right: -30px;
}

#main .block .booksItem {
  width: calc(20% - 30px);
  margin: 0 30px 50px 0;
}

#main .block .booksItem .book {
  position: relative;
  height: 236px;
  text-align: center;
}

#main .block .booksItem .book img {
  max-height: 100%;
}

#main .block .booksItem .book a {
  transition: .3s;
}

#main .block .booksItem .book a:hover {
  opacity: .8;
}

#main .block .booksItem .text {
  margin: 5px 0 25px 0;
  line-height: 1.4;
}

#main .block .booksItem .text .date {
  margin: 0 0 5px 0;
  color: #454545;
  font-weight: bold;
  font-size: 1.3rem;
}

#main .block .booksItem .text .name {
  margin: 0;
  font-weight: bold;
  font-size: 1.4rem;
}

#main .block .booksItem .btn a {
  position: relative;
  display: block;
  width: 100%;
  padding: 5px;
  border: 1px solid #000;
  box-sizing: border-box;
  background-color: #FFF;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
}

#main .block .booksItem .btn a:hover {
  background-color: #000;
  color: #FFF;
  text-decoration: none;
  opacity: 1;
}

#main .block .booksItem .btn a:after {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 8px;
  margin: auto;
  vertical-align: middle;
  width: 4px;
  height: 4px;
  border-top: 1px solid #ba0000;
  border-right: 1px solid #ba0000;
  transform: rotate(45deg);
  content: "";
}

#pagenation nav {
  display: flex;
  justify-content: center;
}

#pagenation .pagination {
  display: flex;
  align-items: flex-end;
  padding: 10px 55px;
  background-color: #b9b9b9;
}

#pagenation .page-item {
  margin: 0 10px 0 0;
}

#pagenation .page-item:last-child {
  margin-right: 0;
}

#pagenation .page-item.disabled {
  display: none;
}

#pagenation .page-item.active .page-link {
  background-color: #000;
  color: #FFF;
}

#pagenation .page-link {
  display: block;
  width: 35px;
  height: 35px;
  border: 1px solid #000;
  box-sizing: border-box;
  text-align: center;
  background-color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.9;
}

#pagenation a:hover {
  text-decoration: none;
  background-color: #000;
  color: #FFF;
}

.select2-container--default .select2-selection--single {
  height: 42px;
  border: 1px solid #9b9b9b;
  border-radius: 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 15px;
  line-height: 40px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 400px;
}

.select2-results__option.depth-1 {
  padding-left: calc(6px + 1em);
}

@media (max-width: 1024px) {
  #searchBox .wrap .head {
    width: 30%;
  }
  #searchBox .wrap input[type="text"],
  #searchBox .wrap select {
    width: 100%;
  }
  #searchBox .wrap .custom-input, #searchBox .wrap .custom-select {
    width: 70%;
  }
}

@media (max-width: 767px) {
  #contents .seriesHead {
    margin: 0 0 20px;
    padding: 10px 10px 5px;
    font-size: 1.6rem;
  }
  #contents .seriesHead:before {
    width: 34px;
    height: 6px;
    bottom: -4px;
  }
  #contents .seriesHead:after {
    width: 34px;
    height: 6px;
    bottom: -4px;
  }
  #searchBox {
    margin: 0 0 30px 0;
    padding: 15px;
  }
  #searchBox .wrap {
    display: block;
  }
  #searchBox .wrap .head {
    width: 100%;
    padding: 4px 8px;
  }
  #searchBox .wrap input[type="text"],
  #searchBox .wrap select {
    width: 100%;
  }
  #searchBox .wrap .custom-input, #searchBox .wrap .custom-select {
    width: 100%;
  }
  #searchBox .btn button {
    width: 100%;
  }
  #main .resultsHead {
    margin-bottom: 20px;
    padding: 3px 0 4px 15px;
    font-size: 1.5rem;
  }
  #main .resultsHead:before {
    width: 9px;
    height: 33px;
    bottom: -5px;
  }
  #main .block {
    margin-right: -10px;
  }
  #main .block .booksItem {
    width: calc(50% - 10px);
    margin: 0 10px 25px 0;
  }
  #main .block .booksItem .text {
    margin: 5px 0 25px 0;
  }
  #main .block .booksItem .text .name {
    font-size: 1.3rem;
  }
  #main .block .booksItem .btn a {
    font-size: 1.3rem;
  }
  #pagenation .pagination {
    padding: 10px;
  }
  #pagenation .page-item {
    margin: 0 5px 0 0;
  }
  #pagenation .page-link {
    width: 25px;
    height: 25px;
    font-size: 1.4rem;
    line-height: 1.6;
  }
}
