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

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

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  line-height: 0 !important;
}


    .book-grid-item,
    .book-grid-item a {
      margin: 0 !important;
      padding: 0 !important;
      display: block !important;
      line-height: 0 !important;
      text-decoration: none;
    }

    .book-grid-item img {
      display: block;
      margin: 0;
      padding: 0;
      width: 100%;
      height: auto;
      line-height: 0;
    }

.book-grid-item img[width="1"][height="1"] {
  display: none;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* ←元より小さめ */
  gap: 10px; /* グリッド間の余白も少し狭く */
  justify-items: center;
}

.book-grid-item img {
  width: 80px;   /* 幅を固定（全体的に小ぶりに） */
  height: auto;
  border-radius: 6px;
}
