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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/*
  縦型カード3列レイアウトの強制適用
  Cocoon設定の「カードタイプ: 縦型カード3列」に対応するため追加。
  外部CSSによって flex-direction が上書きされていた問題を修正。
*/
.rect-entry-card-wrap .list.ect-entry-card {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start;
}
.rect-entry-card-wrap .list.ect-entry-card > .entry-card-wrap {
  width: calc(33.33% - 1em) !important;
  max-width: calc(33.33% - 1em) !important;
  flex: 0 0 calc(33.33% - 1em) !important;
  margin: 0.5em;
  box-sizing: border-box;
}

/* 縦型カード: サムネイルを上部フル幅に表示 */
.rect-entry-card-wrap .list.ect-entry-card .entry-card {
  flex-direction: column !important;
}
.rect-entry-card-wrap .list.ect-entry-card .entry-card-thumb {
  width: 100% !important;
  flex: none !important;
  float: none !important;
}
.rect-entry-card-wrap .list.ect-entry-card .entry-card-thumb img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.rect-entry-card-wrap .list.ect-entry-card .entry-card-content {
  margin-left: 0 !important;
  width: 100% !important;
  padding: 0.5em;
  box-sizing: border-box;
}

/* アピールエリア バッジデザイン */
.appeal-badges {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 0.75em;
}
.appeal-badge {
  display: inline-block !important;
  padding: 5px 16px !important;
  border-radius: 20px;
  font-size: 13px !important;
  font-weight: bold;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.6;
  background-color: #3a5068 !important;
  color: #fff !important;
  border: none;
}
/* プラチナランクはゴールド系 */
.appeal-badge:nth-child(2) {
  background-color: #8b6914 !important;
}

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

/*834px以下 タブレット: 2カラム*/
@media screen and (max-width: 834px){
  .rect-entry-card-wrap .list.ect-entry-card > .entry-card-wrap {
    width: calc(50% - 1em) !important;
    max-width: calc(50% - 1em) !important;
    flex: 0 0 calc(50% - 1em) !important;
  }
}

/*480px以下 スマートフォン: 1カラム*/
@media screen and (max-width: 480px){
  .rect-entry-card-wrap .list.ect-entry-card {
    flex-direction: column !important;
  }
  .rect-entry-card-wrap .list.ect-entry-card > .entry-card-wrap {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0.5em 0;
  }
}