@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

.new-entry-card {
  width: 340px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ニュース一覧を5列タイル状にする */
.news-list .new-entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ★ここが3列 */
  gap: 20px;
}

/* カードの幅は自動で調整されるので固定しない */
.new-entry-card {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .news-list .new-entry-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .news-list .new-entry-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .news-list .new-entry-cards {
    grid-template-columns: 1fr;
  }
}



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

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

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