@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){
  /*必要ならばここにコードを書く*/
}


/* スマホ: ナビテキスト表示 */
@media screen and (max-width: 768px) {
  .pg-cn-label { display: block !important; font-size: 11px; }
  .pg-cn-item { display: flex !important; flex-direction: column !important; align-items: center !important; }
}

/* ============================================
   トップページ：新着記事・カテゴリー 横並び2列グリッド
   ============================================ */
/* PC・タブレット: 2列表示 */
.home .new-entry-cards,
.home .widget-entry-cards {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.home .new-entry-card,
.home .widget-entry-card {
  width: 100% !important;
  margin: 0 !important;
}

/* カテゴリーブロック3つを横並び */
@media screen and (min-width: 769px) {
  .home .entry-content > .new-list-box:nth-child(n+3) {
    display: inline-block;
    vertical-align: top;
    width: 32%;
    margin-right: 1%;
  }
}

/* スマホ: 2列グリッド維持 */
@media screen and (max-width: 768px) {
  .home .new-entry-cards,
  .home .widget-entry-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .home .new-entry-card-thumb img,
  .home .widget-entry-card-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
  }
}

/* ============================================
   新着記事・カテゴリーカード 2列グリッド強制（全デバイス）
   ============================================ */
body.home .new-entry-cards,
body.home .widget-entry-cards {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}
body.home .new-entry-card,
body.home .widget-entry-card {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
@media screen and (max-width: 768px) {
  body.home .new-entry-cards,
  body.home .widget-entry-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  body.home .new-entry-card-thumb img {
    height: 80px !important;
    object-fit: cover !important;
    width: 100% !important;
  }
  body.home .new-entry-card .card-title,
  body.home .widget-entry-card .card-title {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}

/* ============================================
   ヘッダーロゴ サイズ制限
   ============================================ */
.site-logo-image.header-site-logo-image {
  max-height: 80px !important;
  width: auto !important;
  max-width: 200px !important;
}

/* pg-hero-title 中央揃え */
.pg-hero-title {
  text-align: center !important;
}