@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){
  /*必要ならばここにコードを書く*/
}

/* ===== Cocoon おすすめカード：PCで1枚目の拡大を強制OFF ===== */
@media (min-width: 1024px){
  body.home .recommend,
  body.home .recommend-content,
  body.home .recommended-entries{
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0,1fr)) !important;
    gap: 12px !important;
  }
  body.home .recommend > *,
  body.home .recommend-content > *,
  body.home .recommended-entries > *{
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
    flex: 0 0 auto !important;
  }
  body.home .recommend > *:first-child,
  body.home .recommend-content > *:first-child,
  body.home .recommended-entries > *:first-child{
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }
  body.home .recommend img,
  body.home .recommend-content img,
  body.home .recommended-entries img{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    object-fit: cover !important;
    display: block !important;
  }
}
