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

/**
 * サイトタイトルのフォントサイズ
 */

/** サイトタイトルの改行防止と調整 - PC表示用 */
.site-name-text {
    font-size: 26px !important;
    white-space: nowrap !important;
}

/** モバイル表示のロゴボタン内のサイト名調整 */
.logo-menu-button .menu-button-in {
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

/* モバイルメニューボタンの色設定 */
.mobile-menu-buttons .menu-button > a {
    color: white;
}

/* モバイルメニューボタンのサイズ調整（必要に応じて） */
@media screen and (max-width: 480px) {
    .mobile-menu-buttons {
        display: flex;
        align-items: center;
    }
    
    .logo-menu-button {
        flex-grow: 1;
        max-width: 60%; /* ロゴボタンの最大幅を調整 */
    }
}


/**
 * 記事一覧のカスタマイズ
 */

/* 記事一覧のタイトルフォントサイズを変更 */
.entry-card-title {
  font-size: 14px !important;
}


/* モバイル表示時のフォントサイズも調整する場合 */
@media screen and (max-width: 768px) {
  .entry-card-title {
    font-size: 13px !important;
  }
}

/* ブログカードのスタイル改善 */
.entry-card-wrap.a-wrap,
.related-entry-card-wrap.a-wrap,
.rect-entry-card-wrap.a-wrap,
.blogcard-wrap.a-wrap {
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    overflow: hidden;
}

/* マウスオーバー時のスタイル */
.entry-card-wrap.a-wrap:hover,
.related-entry-card-wrap.a-wrap:hover,
.rect-entry-card-wrap.a-wrap:hover,
.blogcard-wrap.a-wrap:hover {
    background-color: #fff0f5; /* 薄いピンク色 */
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* カード内の画像スタイル調整 */
.entry-card-thumb,
.related-entry-card-thumb,
.rect-entry-card-thumb,
.blogcard-thumbnail {
    margin-bottom: 0;
    overflow: hidden;
}

/* カード内のコンテンツ部分のパディング調整 */
.entry-card-content,
.related-entry-card-content,
.rect-entry-card-content,
.blogcard-content {
    padding: 12px;
}

/* カードタイトルのスタイル調整 */
.entry-card-title,
.related-entry-card-title,
.rect-entry-card-title,
.blogcard-title {
    margin-bottom: 8px;
    font-weight: bold;
    line-height: 1.4;
}

/* カードスニペット（抜粋）のスタイル調整 */
.entry-card-snippet,
.related-entry-card-snippet,
.rect-entry-card-snippet,
.blogcard-snippet {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* 特定のクラス「border-element」を持つカードのスタイル */
.border-element {
    border: 1px solid #ffb6c1; /* ピンク色の枠線 */
}

/* グローバルメニューの文字を太字にする */
#navi .navi-in a,
.navi-in > ul li a {
    font-weight: bold !important;
}

/* マウスオーバー時の下線効果 - シンプルな方法 */
#navi .navi-in a:hover,
.navi-in > ul li a:hover {
    text-decoration: underline !important; /* 標準の下線 */
    text-underline-offset: 3px !important; /* 下線と文字の間隔 */
}

/**
 * タグクラウドとカテゴリのデザインカスタマイズ
 * シンプルで見やすいデザイン
 */

/* タグクラウドとカテゴリの共通スタイル */
.widget_tag_cloud .tagcloud,
.widget_categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
}

/* タグとカテゴリの個別アイテム */
.widget_tag_cloud .tagcloud a,
.widget_categories ul li {
  display: inline-block;
  padding: 3px 8px; /* 内側の余白を調整 */
  border-radius: 4px;
  font-size: 13px !important;
  line-height: 1.4;
  text-decoration: none;
  color: #333 !important;
  background-color: #fff;
  border: 1px solid #ff69b4; /* 蛍光ピンクの囲み線を1pxに変更 */
  transition: all 0.2s ease;
  margin: 1px 3px 1px 0; /* 縦マージン1px、右マージン3px */
  float: left; /* 左から右へ敷き詰める */
}

/* カテゴリリストのリストスタイルを削除 */
.widget_categories ul li {
  list-style: none;
  width: auto;
  float: left; /* 左から右へ敷き詰める */
}

/* カテゴリのリンク */
.widget_categories ul li a {
  color: #333 !important;
  text-decoration: none;
  display: inline-block; /* リンクがクリックしやすくなる */
  padding: 0 2px; /* リンク部分の内側余白 */
}

/* list-item-captionクラスのスタイル調整 */
.widget_categories ul li a .list-item-caption {
  display: inline-block;
}

/* タグとカテゴリのホバー効果 */
.widget_tag_cloud .tagcloud a:hover,
.widget_categories ul li:hover {
  background-color: #ffebf3; /* より明確な薄いピンク色 */
  box-shadow: 0 2px 5px rgba(255, 105, 180, 0.3);
}

/* アイコンを非表示に */
.fa-tag,
.widget_tag_cloud .tagcloud a:before,
.widget_categories ul li a:before {
  display: none !important;
}

/* 投稿数の表示スタイル */
.widget_categories ul li .post-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 10px;
  background-color: #ff69b4;
  color: white;
  font-size: 11px;
}

/* 子カテゴリのスタイル */
.widget_categories ul .children {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  margin-top: 1px; /* 親カテゴリとの間隔も1pxに */
  margin-left: 10px;
  clear: both; /* 子カテゴリは新しい行から始める */
}

.widget_categories ul .children li {
  font-size: 12px !important;
  padding: 2px 6px; /* 子カテゴリは少し小さめのパディング */
  border-width: 1px;
  margin: 1px 3px 1px 0; /* 縦マージン1px、右マージン3px */
}

/* ウィジェットタイトルのスタイル - シンプルバージョン */
.widget_tag_cloud .widget-title,
.widget_categories .widget-title {
  position: relative;
  padding: 8px 15px;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background-color: #ff0080;
  border-radius: 4px;
}

.widget_tag_cloud .widget-title:after,
.widget_categories .widget-title:after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff69b4;
  font-size: 14px;
}

/* カテゴリのホバー時のリンク色を黒に固定 */
.widget_categories ul li:hover a {
  color: #333 !important;
}

/* タグクラウドの敷き詰め調整 */
.widget_tag_cloud .tagcloud {
  text-align: justify;
}

/* カテゴリリストの敷き詰め調整 */
.widget_categories ul {
  text-align: justify;
  overflow: hidden; /* floatの高さを確保 */
}

/* カテゴリリストの後にクリアフィックス */
.widget_categories ul:after {
  content: "";
  display: block;
  clear: both;
}

/* カード間の隙間を縮小（レイアウトは維持） */
@media screen and (max-width: 480px) {
  .list {
    row-gap: 0.3em !important; /* 1emから0.3emに縮小 */
  }
  
  /* グリッドレイアウトの場合 */
  .ect-vertical-card .entry-card-wrap,
  .rect-vertical-card .related-entry-card-wrap,
  .ect-3-columns .entry-card-wrap,
  .ect-2-columns .entry-card-wrap {
    margin-bottom: 0.1em !important;
  }
  
  /* カードコンテナのギャップも調整 */
  .widget-entry-cards {
    gap: 0.1em !important;
  }
}