@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* ===== ブログ一覧 ===== */
.blog-list {
  padding: 60px 20px;
}

.inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
}

/* グリッド */
.post-grid-2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* カード */
.post-card {
  display: block;
  text-decoration: none;
  color: #333;
  width: 45%;
  margin: 10px 5px;
  height: 100%;
}

/* 画像 */
.list_thumb {
  aspect-ratio: 4 / 2;
  overflow: hidden;
}

.list_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

/* タイトル */
.post-card .title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  margin: 10px 0;
}

/* メタ情報 */
.post-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: auto;
  padding-left: 0;
}

span.cat.list_cat {
  margin-left: 0;
  color: #fff;
}

.post-card .date {
  color: #999;
}

.post-card:hover img {
  transform: scale(1.05);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .blog-list {
    padding: 20px 5px 0px;
  }

  .section-title {
    margin-bottom: 0px;
  }

  .post-card .title {
    -webkit-line-clamp: 2;
  }
}


/* 記事一覧誘導ボタン */
.blog-btn-wrap {
  margin: 0 auto;
  text-align: center;
  margin-top: 50px;
  width: 450px;
}

.blog-btn {
  position: relative;
  display: block;
  padding: 20px;
  color: #044D16;
  border: 1px solid #ccc;
  text-decoration: none;
  font-size: 25px;
  transition: 0.3s;
  background: #fff;
}

.blog-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-btn::after {
  content: "→";
  position: absolute;
  right: 20px;
}

@media (max-width: 768px) {
  .blog-btn-wrap {
    margin-top: 30px;
    width: 250px;
  }

  .blog-btn {
    padding: 9px;
    color: #044D16;
    font-size: 14px;
  }

  .blog-btn::after {
    right: 12px;
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/
}