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




/* --- 1. 基本設定・レイアウト --- */
#appeal, .p-appeal { display: none !important; }
#main { background-color: #fff !important; }
.header { margin-bottom: 0 !important; }



/* --- 2. 記事一覧の調整（最終版：PC横長・スマホ正方形） --- */

/* 【パソコンの設定】 */
.entry-card {
  display: flex !important;
  align-items: flex-start;
  padding: 20px !important;
  gap: 20px;
  background: #fff;
}

/* PC版：画像枠を横長に固定 */
.home .entry-card-thumb, 
.archive .entry-card-thumb { 
  display: block !important; 
  width: 240px !important;  
  height: 135px !important; 
  flex-shrink: 0;
}

/* PC版：画像（横長にフィット） */
.entry-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* PCは枠いっぱいに表示 */
  border-radius: 8px;
}

/* PC版：文字エリア */
.entry-card-content {
  flex: 1;
  margin-left: 0 !important;
  padding: 0 !important;
}

/* ------------------------------------------- */
/* 【スマホ表示（480px以下）の設定】 */
/* ------------------------------------------- */
@media screen and (max-width: 480px) {
  .entry-card {
    align-items: center;
    padding: 12px !important;
  }

  /* スマホ版：画像を「正方形」に戻す */
  .home .entry-card-thumb, 
  .archive .entry-card-thumb { 
    width: 90px !important; 
    height: 90px !important; 
    margin-right: 15px !important;
  }

  /* スマホ版：画像を枠いっぱいの正方形にする（グレーの余白を消す） */
  .entry-card-thumb img {
    object-fit: cover !important; /* coverに戻して余白を消す */
    width: 100% !important;
    height: 100% !important;
  }
}









/* --- 3. サイドバーの豹柄設定 --- */
#sidebar {
    background-image: url("http://www.earth-bounder.com/wp-content/uploads/2026/02/IMG_2161.png") !important;
    background-size: 800px !important;
    background-repeat: repeat !important;
    padding: 20px 10px !important;
    border-radius: 12px !important;
}
#sidebar .widget {
    background: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    border-radius: 10px !important;
}

/* --- 4. カテゴリーと最新記事のスタイル --- */
.widget_categories ul li a,
.widget_recent_entries ul li a {
    font-family: "Noto Sans JP", sans-serif !important;
    color: #636363 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: flex !important; /* アイコンを並べるためにflexに変更 */
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed #eee !important;
}

/* --- 5. ホバー時の色変更（ここを一本化） --- */
a:hover,
.widget_categories ul li a:hover,
.widget_recent_entries ul li a:hover,
.entry-card-title a:hover,
.related-entry-card-title:hover,
.navi-in a:hover {
    color: #e56940 !important;
    transition: 0.3s !important;
}

/* --- 6. ブログタイトル --- */
.site-name-text { font-size: 60px !important; font-weight: 900 !important; }
@media screen and (max-width: 480px) { .site-name-text { font-size: 24px !important; } }




/* --- アイキャッチ画像上のカテゴリー名を消す --- */
.cat-label {
  display: none !important;
}


