#contents {
  padding-top: 90px;
}
/** カテゴリ一覧 **/
#sub_category {
  margin: 30px auto;
}
#sub_category ul {
  text-align: center;
}
#sub_category ul li {
  display: inline-block;
  border-right: 1px solid black;
  line-height:1;
}
#sub_category ul.po-sub_category_list li  {
  border-right: 1px solid #999;
}
#sub_category ul li:last-child {
  border-right: none;
}
#sub_category ul li a {
  display: inline-block;
  padding: 0 10px;
  color: black;
  text-decoration: none;
  font-weight:bold;
}
#sub_category ul.po-sub_category_list li a {
  color: #0074a9;
}
#sub_category ul li a:hover,
#sub_category ul li.current a {
  color: #aaa;
}
#sub_category ul.po-sub_category_list li a:hover,
#sub_category ul.po-sub_category_list li.current a {
  color: #0074a9;
  opacity: .75;
}



#list:after {
  content: "";
  display: block;
  clear: both;
}
#list article {
  width: 22.1%;
  float: left;
  margin-right: 3.8%;
  padding-bottom: 35px;
  position:relative;
}
#list article:nth-child(4n+1) {
  clear: both;
}
#list article:nth-child(4n) {
  margin-right: 0;
  float: right;
}

#list article a {
  display: block;
  text-decoration: none;
  background-color: #f1f1f1;
  transition: background .3s;
  height: 300px;
}
#list article a:hover {
  background-color: white;
}
#list article a .item_img {
  display: block;
  width: 100%;
  height: 130px;
  overflow:hidden;
  text-align:center;
  padding-top:20px;
}
#list article a .item_img img {
  height: 100%;
}
#list article a cite {
  padding: 20px 10px 10px;
  font-size: 14px;
  font-weight:bold;
  color: black;
  display: block;
  word-wrap: break-word;
}
#list article a p {
    padding: 0 10px 20px;
    font-size:12px;
    color:black;
    text-align:right;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-bottom: 20px;
}
#list article a p>* {
    display:inline-block;
}
#list article a .category {
    color: white;
    background-color:#999;
    padding:2px 4px;
    margin-right:3px;
}

@media only screen and (max-width: 768px) {
#list article {
  width: 32.4%;
  margin-right: 1.3%;
}
#list article:nth-child(4n+1) {
  clear: none;
}
#list article:nth-child(4n) {
  margin-right: 1.3%;
  float: left;
}
#list article:nth-child(3n+1) {
  clear: both;
}
#list article:nth-child(3n) {
  margin-right: 0;
  float: right;
}
}
@media only screen and (max-width: 568px) {
#list article {
  width: 48.9%;
  margin-right: 0;
}
#list article:nth-child(3n+1) {
  clear: none;
}
#list article:nth-child(3n) {
  margin-right: 0;
  float: left;
}
#list article:nth-child(odd) {
  clear: both;
}
#list article:nth-child(even) {
  margin-right: 0;
  float: right;
}

}

@media only screen and (max-width: 414px) {
#list article {
  width: 100%;
  float: none!important;
}
}
