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


/* アクセス数（読まれた回数）非表示 */
.admin-pv { display: none !important; }

/* ===== スマートフォン最適化 ===== */

@media screen and (max-width: 600px) {

  /* 1. ヘッダー：高さを削減してコンテンツを早く表示 */
  html body #header {
    padding: 8px 0 !important;
  }
  .site-name-text {
    font-size: 20px !important;
  }
  .tagline, .site-description {
    font-size: 11px !important;
  }

  /* 2. ナビゲーション：縦並びでスッキリ */
  .menu-mobile {
    flex-direction: column !important;
  }
  .menu-mobile > li {
    width: 100% !important;
    flex: none !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  }
  .menu-mobile > li > a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
  }
  .menu-mobile > li > a .item-label {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: bold !important;
  }

  /* 3. カードリスト：余白を減らして読みやすく */
  .ect-2-columns,
  .entry-card-list {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* 4. カードタイトル：見やすいフォントサイズ */
  .entry-card-title {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  /* 5. カード本文抜粋：適切なサイズ */
  .entry-card-content {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  /* 6. メインコンテンツ上部パディング削減 */
  #main {
    padding-top: 20px !important;
  }

  /* 7. カテゴリーボックス：モバイル用に間隔調整 */
  .widget_custom_html div[style*="flex"] {
    gap: 8px !important;
    margin: 12px 0 16px !important;
  }
}