@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){
  /*必要ならばここにコードを書く*/
}
/* ===== ランキング2列カード化（GASのインラインstyleを上書き） ===== */
.ranking-widget .rw-list{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ranking-widget .rw-item{
  box-sizing: border-box;
  display: block !important;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}
.ranking-widget .rw-thumb{ 
  flex: none !important;
  margin: 0 0 6px 0;
}
.ranking-widget .rw-thumb img{
  width: 100% !important;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}
.ranking-widget .rw-title{
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 2px 0;
}
.ranking-widget .rw-meta{
  font-size: 11px;
  opacity: .75;
}
/* 幅が狭い時は1列 */
@media (max-width: 360px){
  .ranking-widget .rw-list{ grid-template-columns: 1fr; }
}
