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

/*人気記事を3列横並びにする（スマホでは２列）*/

#popular_entries-4 .popular-entry-cards {
   display: flex;
   justify-content: space-around;
   flex-wrap: wrap;
}

#popular_entries-4 .popular-entry-cards > a {/*３列にする*/
   width: 31.5%;
}

#popular_entries-4 .widget-entry-cards.card-large-image .a-wrap {
   max-width: none;/*最大幅400pxの指定を初期化する*/
}

#popular_entries-4 .popular-entry-cards::after {/*クリアフィックス用のアイテムを消す*/
   content: none;
}

@media screen and (max-width:480px) {/*画面幅が480px以下のとき2列にする*/

   #popular_entries-4 .popular-entry-cards > a {
      width: 48%;
   }

   #popular_entries-4 .popular-entry-cards::after {
      width: 48%;
      content: "";
      display: block;
   }

}