@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){
  /*必要ならばここにコードを書く*/
}
.header-container {
    min-height: 160px;
  }
  .site-name-text {
    font-size: 1.3rem;
  }
  #header-in {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ===================================
   スマホ最適化（834px以下）
   =================================== */
@media screen and (max-width: 834px) {

  /* ─── ① ヘッダーの余白をなくす ─── */
  #header {
    min-height: 0 !important;
    height: auto !important;
  }
  .header-container,
  .header-container-in {
    min-height: 0 !important;
    height: auto !important;
  }
  /* サイトロゴ（タイトル周り）のpaddingをゼロに */
  .logo,
  .logo-header {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    margin-bottom: 0 !important;
  }
  /* キャッチコピーの余白もゼロに */
  .tagline {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    font-size: 0.75rem !important;
  }

  /* ─── ② 記事カード：縦並び・アイキャッチ全幅・タイトル非表示・メタのみ表示 ─── */

  /* カード全体を縦並びに */
  .entry-card-wrap {
    display: flex !important;
    flex-direction: column !important;
  }

  /* サムネイルをfloat解除・全幅に */
  .entry-card-thumb,
  .card-thumb,
  .e-card-thumb {
    float: none !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }
  .entry-card-thumb img,
  .card-thumb img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 6px 6px 0 0 !important;
  }

  /* コンテンツ部分も全幅に */
  .entry-card-content,
  .card-content,
  .e-card-content {
    width: 100% !important;
    padding: 8px 12px 14px !important;
    box-sizing: border-box !important;
  }

  /* タイトルを非表示 */
  .entry-card-title,
  .card-title,
  .e-card-title {
    display: none !important;
  }

  /* メタ（説明文）をしっかり表示 */
  .entry-card-snippet,
  .card-snippet,
  .e-card-snippet {
    display: block !important;
    font-size: 0.82rem !important;
    line-height: 1.75 !important;
    color: #555 !important;
    margin-top: 0 !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
