@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

.mobile-footer-menu-buttons li.navi-menu-button{
  display: none;
}

/* --- ヘッダーメニューのカスタマイズ --- */
/* メニューのリンク文字 */
#navi .navi-in a {
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.08em; /* 字間を広げて知的な印象に */
  padding: 1.5em 1em; /* ゆとりを持たせる */
  position: relative;
  transition: all 0.3s ease;
}

/* ホバー時の文字色と背景 */
#navi .navi-in a:hover {
  transform: translateY(-2px); /* 上にふわっと浮く */
}

/* ホバー時に下からラインが出るアニメーション */
#navi .navi-in a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #ffffff; /* アクセントのゴールド */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#navi .navi-in a:hover::after {
  width: 100%; /* マウスホバーでラインが広がる */
}

/* 現在表示しているページのメニューを強調 */
#navi .navi-in .current-menu-item a,
#navi .navi-in .current-post-ancestor a {
  color: #ffffff !important;
}

#navi .navi-in .current-menu-item a::after {
  width: 70%; /* 現在のページは常にラインを表示（少し短めがおしゃれ） */
}

/* サブメニュー（ドロップダウン）の調整 */
#navi .sub-menu {
  border-top: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#navi .sub-menu a {
  font-size: 14px;
  padding: 1em 1.5em !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#navi .sub-menu a:hover {
  background-color: #0d2a1f !important;
}

#navi .navi-in a i {
  margin-right: 8px; /* 文字との間に余白を作る */
  font-size: 1.1em;  /* 少しだけ大きく */
  transition: transform 0.3s ease;
}

/* ホバーした時にアイコンが少し跳ねるアニメーション */
#navi .navi-in a:hover i {
  transform: translateY(-1px); /* 上にふわっと浮く */
  color: #ffffff;             /* ホバー時は白に戻して視認性アップ */
}

/* =========================================
   サイドバー：カテゴリー一覧 モダンカスタム (FA4対応)
   基本カラー：#28b893 (エメラルドグリーン)
========================================= */

/* ウィジェットタイトルの装飾 */
.sidebar .widget-title {
  background-color: #28b893;
  color: #fff;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* リスト全体の余白リセット */
.widget_categories ul {
  padding: 0;
  list-style: none;
}

/* 各カテゴリー項目 */
.widget_categories ul li {
  margin-bottom: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* リンクエリア */
.widget_categories ul li a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #ffffff;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #eeeeee;
  border-left: 5px solid #28b893; /* 左側のアクセントライン */
  transition: all 0.3s ease;
}

/* Font Awesome 4 のアイコン（右矢印） */
.widget_categories ul li a::before {
  content: '\f105'; /* FA4の angle-right */
  font-family: "FontAwesome"; /* FA4用のフォントファミリー指定 */
  margin-right: 10px;
  color: #28b893;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* 投稿数（カウント）のバッジ化 */
.widget_categories ul li .post-count {
  margin-left: auto;
  background-color: #f0f4f3;
  color: #28b893;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: bold;
}

/* --- ホバー時の演出 --- */
.widget_categories ul li a:hover {
  background-color: #28b893;
  color: #ffffff;
  border-color: #28b893;
  padding-left: 20px; /* 右にスライド */
  box-shadow: 0 5px 15px rgba(40, 184, 147, 0.2);
}

/* ホバー時にアイコンとバッジの色を白へ */
.widget_categories ul li a:hover::before {
  color: #ffffff;
  transform: translateX(3px);
}

.widget_categories ul li a:hover .post-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* 子カテゴリーの階層表現 */
.widget_categories ul li .children {
  margin: 8px 0 5px 15px;
  border-left: 1px dashed #28b893;
  padding-left: 10px;
}

/* =========================================
   [C] 人気記事ウィジェット 専用カスタム
   大きなサムネイル表示・FA4対応
   基本カラー：#28b893
========================================= */

/* ウィジェット全体の枠組み */
#sidebar .widget-entry-cards.popular-entry-cards {
  padding: 0 !important;
}

/* 各記事カード（aタグがカード全体を包む構造に対応） */
#sidebar .widget-entry-cards .a-wrap {
  display: block !important;
  position: relative !important;
  margin-bottom: 25px !important;
  background-color: #fff !important;
  border: 1px solid #f0f0f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  transition: all 0.4s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

#sidebar .widget-entry-cards.card-large-image .card-content{
  margin-bottom: 0 !important;
}

/* ホバー時の動き */
#sidebar .widget-entry-cards .a-wrap:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 25px rgba(0,0,0,0.1) !important;
  border-color: #28b893 !important;
}

/* サムネイル画像エリア */
#sidebar .widget-entry-cards .card-thumb {
  width: 100% !important;
  height: 160px !important;
  margin: 0 !important;
  float: none !important; /* 横並び設定を解除 */
  overflow: hidden !important;
}

#sidebar .widget-entry-cards .card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s ease !important;
}

/* ホバー時に画像をズーム */
#sidebar .widget-entry-cards .a-wrap:hover .card-thumb img {
  transform: scale(1.1) !important;
}

/* 記事タイトル */
#sidebar .widget-entry-cards .card-title {
  padding: 10px !important;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
  color: #333 !important;
  margin: 0 !important;
}

/* ホバー時にタイトルをグリーンに */
#sidebar .widget-entry-cards .a-wrap:hover .card-title {
  color: #28b893 !important;
}

/* ランキングバッジ（自動カウント） */
#sidebar .widget-entry-cards .a-wrap {
  counter-increment: popular-rank;
}

#sidebar .widget-entry-cards .a-wrap::before {
  content: counter(popular-rank);
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  background: #28b893;
  color: #fff

}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
  /* =========================================
   モバイルメニュー内 (#sidebar-menu-content #slide-in-sidebar)
   [C] 人気記事・新着記事：大きなサムネイル対応
   基本カラー：#28b893
========================================= */

/* 1. リストの横並びを解除して縦積みに */
#sidebar-menu-content #slide-in-sidebar .widget-entry-cards {
  display: block;
}

/* 2. 各記事を独立したカードにする */
#sidebar-menu-content #slide-in-sidebar .widget-entry-cards .a-wrap {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  width: 100%;
  margin: 0 0 25px 0;
  background-color: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 3. サムネイル画像をカード上部に配置 */
#sidebar-menu-content #slide-in-sidebar .card-thumb {
  width: 100%;
  height: 160px; /* 画像の高さ */
  margin: 0;
}

#sidebar-menu-content #slide-in-sidebar .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4. タイトル（太字）とコンテンツエリア */
#sidebar-menu-content #slide-in-sidebar .card-content {
  padding: 15px;
}

#sidebar-menu-content #slide-in-sidebar .card-title,
#sidebar-menu-content #slide-in-sidebar .new-entry-card-title,
#sidebar-menu-content #slide-in-sidebar .popular-entry-card-title {
  font-size: 15px;
  font-weight: bold; /* ここで太字を適用 */
  color: #333;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 5. ランキングバッジ（人気記事用） */
#sidebar-menu-content #slide-in-sidebar .popular-entry-cards .a-wrap {
  counter-increment: popular-rank-menu;
  position: relative;
}

#sidebar-menu-content #slide-in-sidebar .popular-entry-cards .a-wrap::before {
  content: counter(popular-rank-menu);
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  background: #28b893;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  z-index: 5;
  border: 2px solid #fff;
}

/* 上位3位のバッジカラー */
#sidebar-menu-content #slide-in-sidebar .popular-entry-cards .a-wrap:nth-child(1)::before { background: #d4af37; }
#sidebar-menu-content #slide-in-sidebar .popular-entry-cards .a-wrap:nth-child(2)::before { background: #c0c0c0; }
#sidebar-menu-content #slide-in-sidebar .popular-entry-cards .a-wrap:nth-child(3)::before { background: #cd7f32; }

}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/* =========================================
   インデックス：縦型カード2列 
   「本から言葉が出る」ブック・トークデザイン
========================================= */

/* 1. カード全体の構造：画像が下、タイトルが上 */
.entry-card-wrap .entry-card-borderless.entry-card {
  background-color: transparent !important;
  border: none !important;
  display: flex;
  flex-direction: column-reverse; /* タイトルを上に配置 */
  position: relative;
  overflow: visible !important; /* 吹き出しのツノを表示するため */
  margin-bottom: 20px;
}

/* 2. 画像エリア（本本体に見立てる） */
.entry-card-thumb {
  width: 100% !important;
  position: relative;
  order: 2;
  z-index: 1;
  border: 2px solid #333; /* 本の輪郭を出す黒枠 */
  border-radius: 4px;
  box-shadow: 5px 5px 0px rgba(40, 184, 147, 0.2); /* エメラルド色の影（しおり風） */
}

.entry-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 3. タイトルエリア（白い吹き出し） */
.entry-card-content {
  background-color: #fff !important; /* 背景は白 */
  border: 2px solid #333 !important; /* 黒枠 */
  color: #333 !important; /* 黒文字 */
  padding: 10px !important;
  margin: 0 0 15px 0 !important; /* 下（画像）との距離 */
  border-radius: 8px;
  position: relative;
  order: 1;
  z-index: 2;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.05);
}

/* 4. 吹き出しのツノ（黒枠の三角形） */
.entry-card-content::after,
.entry-card-content::before {
  content: '';
  position: absolute;
  top: 100%; /* 下側に配置 */
  left: 30px;
  border: solid transparent;
}

/* 外側の黒枠部分 */
.entry-card-content::before {
  border-top-color: #333;
  border-width: 10px;
  margin-left: -10px;
}

/* 内側の白い塗り部分 */
.entry-card-content::after {
  border-top-color: #fff;
  border-width: 7px;
  margin-left: -7px;
  margin-top: -1px; /* 枠線と重ねる微調整 */
}

/* =========================================
   カテゴリーラベル：シンプルしおり（透明度アップ）
========================================= */
.entry-card-thumb .cat-label {
  /* 1. 色と透明度：RGBAで透明度を0.85に設定 */
  background-color: rgba(40, 184, 147, 0.85) !important; 
  color: #fff !important;
  
  /* 2. テキスト：余計な影を消してシンプルに */
  font-size: 11px !important;
  font-weight: bold !important;
  letter-spacing: 0.05em;
  text-shadow: none !important; /* 影を削除 */

  /* 3. 形状：パターンAのしおり型 */
  padding: 6px 10px 12px 10px !important;
  position: absolute;
  left: 15px !important;
  top: -2px !important;
  border-radius: 0 !important;
  z-index: 5 !important;
  
  /* 下のリボンの切れ込み */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%) !important;
  
  /* 4. 装飾：控えめな影 */
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1) !important;
  border: none !important;
}

/* =========================================
   記事内見出し：H2・H3 【モダン・グラフィカル】
   インパクトと視認性を両立したデザイン
   基本カラー：#28b893 (エメラルドグリーン)
========================================= */

/* --- H2：存在感のあるブロックデザイン --- */
.article h2 {
  position: relative;
  background: #fff !important; /* 背景は白でヌケ感を出す */
  color: #333 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  padding: 15px 20px 15px 35px !important; /* 左側にライン用の余白 */
  margin: 65px 0 35px 0 !important;
  border: 2px solid #333 !important; /* 外枠を黒で引き締める */
  border-radius: 0 !important; /* あえて角を立ててクールに */
  /* 重厚な2重の影（エメラルドと黒） */
  box-shadow: 6px 6px 0px #28b893, 10px 10px 0px #333 !important;
}

/* 左側のアクセントバー */
.article h2::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 15%;
  width: 8px;
  height: 70%;
  background-color: #28b893;
}

/* --- H3：スマート・マーカー（H2を引き立てる洗練デザイン） --- */
.article h3 {
  position: relative;
  background: transparent !important; /* 背景を抜いてスッキリさせる */
  color: #333 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  padding: 10px 0 10px 20px !important; /* 左側にライン用の余白 */
  margin: 45px 0 20px 0 !important;
  border: none !important;
  border-bottom: 2px solid #333 !important; /* 下線は黒でH2と統一感 */
  display: block;
  line-height: 1.4;
}

/* 左側のアクセント：H2のバーを細くスタイリッシュにしたもの */
.article h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  width: 6px;
  height: 60%;
  background-color: #28b893; /* エメラルドグリーン */
  border-radius: 2px;
}

/* 右側にさりげない「/」スラッシュ装飾（ショトカ感の演出） */
.article h3::after {
  content: '//';
  position: absolute;
  right: 5px;
  bottom: 5px;
  color: #28b893;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 2px;
  opacity: 0.6;
}


/* モバイル（スマホ）対応 */
@media screen and (max-width: 480px) {
  .article h2 {
      font-size: 19px !important;
      padding: 12px 15px 12px 25px !important;
      box-shadow: 4px 4px 0px #28b893, 7px 7px 0px #333 !important; /* 影を少し小さく */
  }
  .article h3 {
    font-size: 17px !important;
    padding-left: 15px !important;
}
}

/* =========================================
   記事タイトル：H1 セントラル・グラデーション
   「一体感」と「色彩の奥行き」を追求
   基本カラー：#28b893（エメラルド）
========================================= */

/* 1. タイトルエリア全体の構成：たっぷりの余白 */
.article-header {
  display: flex;
  flex-direction: column;
  align-items: center;    /* 中央寄せ */
  text-align: center;      /* 文字の中央寄せ */
  padding: 0 0 50px 0; /* 上下の贅沢な余白 */
  margin-bottom: 30px;
}

/* 2. H1タイトル本体：文字と線の距離を詰めて一体化 */
.article-header .entry-title {
  position: relative !important;
  display: inline-block;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #1a1a1a !important;
  line-height: 1.3 !important;
  margin: 0 0 40px 0 !important;
  padding: 0 0 12px 0 !important; /* 下線を文字に近づけました（25px→12px） */
  border: none !important;
  background: transparent !important;
  letter-spacing: 0.03em;
}

/* 中央の下線：緑を基調とした洗練されたグラデーション */
.article-header .entry-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px; /* 少し幅を広げて安定感をプラス */
  height: 4px;
  /* エメラルドから深みのあるグリーンへのグラデーション */
  background: linear-gradient(90deg, #28b893 0%, #1e8a6e 100%);
  border-radius: 50px; /* 両端を丸めて柔らかな印象に */
}

/* 3. アイキャッチ画像：タイトルの清潔感を維持 */
.entry-eye-catch {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.entry-eye-catch img {
  display: block;
  width: 100%;
  height: auto;
}

/* 4. モバイル対応 */
@media screen and (max-width: 480px) {
  .article-header {
      padding: 40px 20px 30px 20px;
  }
  .article-header .entry-title {
      font-size: 21px !important;
      padding-bottom: 10px !important;
  }
  .article-header .entry-title::after {
      width: 50px;
      height: 3px;
  }
}

/* =========================================
   検索フォーム：クリーン・ボーダー
========================================= */
.widget_search form {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd; /* 繊細な1pxの枠線 */
  border-radius: 4px;      /* わずかな角丸 */
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.widget_search input[type="search"],
.widget_search input[type="text"] {
  width: 100% !important;
  height: 45px !important;
  padding: 0 45px 0 15px !important; /* 右側の虫眼鏡スペースを確保 */
  background: transparent !important;
  border: none !important;
  font-size: 14px !important;
  outline: none !important;
}

/* 入力中に枠線が少し色づき、グラデーションの下線が浮かぶ */
.widget_search form:focus-within {
  border-color: #28b893;
  box-shadow: 0 4px 12px rgba(40, 184, 147, 0.05);
}

/* H1と同じグラデーションの下線がスッと伸びる演出 */
.widget_search form::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #28b893, #1e8a6e);
  transition: width 0.4s ease;
}

.widget_search form:focus-within::after {
  width: 100%;
}