#p_news {
  padding-bottom: 50px;
}

#p_news .newslist {
  padding: 60px 0;
}

#p_news .newslist .newsbox {
  position: relative;
  padding: 25px 0;
  align-items: center;
  border-bottom: 1px solid #ccc;
  margin: 0 auto;
  max-width: 1000px;
}

#p_news .newslist .newsbox a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

#news .newslist .newsbox a:hover {
  background-color: #fff;
  opacity: 0.5;
}

#p_news .newslist .newsbox:after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url(../img/arrow.png);
  background-size: contain;
  vertical-align: middle;
  background-repeat: no-repeat;
}

#p_news .newslist .newsbox .category {
  color: #fff;
  height: 30px;
  line-height: 30px;
  margin: 0 20px;
  width: 100px;
  text-align: center;
  background: #4a4a4a;
}

#p_news .newslist .newsbox .ttl {
  font-size: 17px;
  padding-right: 30px;
}

#p_news .newslist .newsbox .thumbnail {
  max-width: 100px;
  width: 100%;
  margin-right: 10px;
}

.pagination {
  margin: 60px 0;
  position: relative;
}

.pagination .flex {
  justify-content: center;
  align-items: baseline;
}

.pagination .flex li {
  margin: 0 15px;
  font-size: 16px;
  font-weight: bold;
  position: relative;
}

.pagination .flex li.ac {
  border-bottom: 3px solid #000;
  padding: 0 2px 8px;
}

.pagination .flex li a {
  color: #000;
}

.pagination .flex li.next img {
  width: 8px;
}

@media screen and (max-width: 767px) {
  #p_news .newslist .newsbox {
    flex-wrap: wrap;
  }
  #p_news .newslist .newsbox .ttl {
    width: 100%;
    margin-top: 15px;
  }

  #p_news .newslist .newsbox .list_ttl {
    width: calc(70% - 10px);
    margin-top: 15px;
  }

  #p_news .newslist .newsbox .thumbnail {
    max-width: 30%;
  }

  #p_news .newslist .newsbox .cost {
    width: 100%;
    text-align: right;
    padding-right: 10%;
  }
}

@media screen and (max-width: 540px) {
  #p_news .newslist {
    padding: 40px 0;
  }

  .pagination .flex li {
    margin: 0 10px;
  }

  .pagination {
    margin: 20px 0;
  }
}

/*シングルページ*/
.single_news {
  padding-bottom: 30px !important;
}

.single_news .newsbox {
  flex-wrap: wrap;
}

.single_news .newsbox .ttl {
  width: 100%;
  margin-top: 20px;
  border-bottom: 1px solid #ccc;
  padding: 0 0 30px !important;
  margin-bottom: 30px;
  font-size: 28px !important;
  font-weight: bold;
}

.single_news .newsbox .txt {
  width: 100%;
  line-height: 1.8;
}

.single_news .newsbox {
  border-bottom: none !important;
}

.single_news .newslist .newsbox:after {
  display: none !important;
}
