@charset "utf-8";

/*========================================
  post_home.css
                          20250114w4403
========================================*/
main {
  clear: both;
}
.category_title {
  margin-bottom: 15px;
}
main ul {
  clear: both;
}
main li.post {
  width: 32%; /*287px  width: 49%;2列 */
  height: 200px;
  position: relative;
  float: left;
  margin: 0 1% 1% 0;
  border-radius: 4px;
  border: #888 1px solid;
  overflow: hidden;
}
main .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: all 0.5s ease 0.2s;
  position: absolute;
  bottom: 0;
  left: 0;
}
main .cover img:hover {
  opacity: 0.7;
  filter: brightness(1.1);
}

.underlay {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: #000;
  opacity: 0.5;
}
main .text {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 10px;

}
main h3 {
  width: 100%;
  margin: 0 auto;
  border-bottom: #ddd 2px solid;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 3px;
}
main .category {
  font-size: 0.8em;
  float: left;
  width: 180px;
  text-align: right;
  margin-bottom: 3px;
}
main .date {
  font-size: 0.8em;
  float: right;
}
main .comment {
  clear: both;
  font-size: 0.85em;
  line-height: 1.1em;
  overflow: hidden; /*行制限*/
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;/* 任意の行数を指定 */
}

main h3, main .comment, main .category, main .date{
  color: #fff;
  text-shadow: 2px 2px 5px #000;
}

/*pagenation*/
main .pagination {
  width: 100%;
  text-align: center;
  font-size: 0.9em;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center; 
}
main .pagination a {
  margin: 0 5px;
  transition: all 0.3s;
}
/* media screen
 ----------------------------------------------*/
@media screen and (max-width: 900px) {
 main .pagination {
  margin-bottom: 40px;
 }
}
@media screen and (max-width: 600px) {

  main li.post {
    width: 49%; /*287px  width: 49%;2列 */
    height: 200px;
  }

  main h3 {
    width: 100%;
    margin: 0 auto;
    border-bottom: #ddd 2px solid;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 3px;
  }
  main .category {
    font-size: 0.8em;
    float: left;
    width: 130px;
    text-align: right;
    margin-bottom: 3px;
  }
  main .date {
    font-size: 0.8em;
    float: right;
  }
  main .comment {
    clear: both;
    font-size: 0.8em;
    line-height: 1.0em;
    overflow: hidden;
    /*行制限*/
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* 任意の行数を指定 */
  }
}