@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
*/
/*====================================
** 子テーマ用のスタイル
**====================================*/
/* 見出しのスタイルを完全にリセット */
.article h2, .article h3, .article h4, .article h5 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.article h2::before, .article h2::after,
.article h3::before, .article h3::after,
.article h4::before, .article h4::after,
.article h5::before, .article h5::after {
  content: none !important;
  display: none !important;
}

/* H2～H5の共通スタイル */
.article h2, .article h3, .article h4, .article h5 {
  font-weight: bold !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* H2: ストライプデザイン */
.article h2 {
  position: relative !important;
  font-size: 1.8rem !important;
  padding-bottom: 5px !important;
  z-index: 1 !important;
}

.article h2::before {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  background: repeating-linear-gradient(-45deg, #D4AF37, #D4AF37 2px, #FFF8DC 0, #FFF8DC 4px) !important;
  width: 100% !important;
  height: 10px !important;
  z-index: -1 !important;
  display: block !important;
}

/* H3: ストライプデザイン */
.article h3 {
  position: relative !important;
  font-size: 1.5rem !important;
  padding-bottom: 3px !important;
  border-bottom: none !important;
}

.article h3::before {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  background: repeating-linear-gradient(-45deg, #D4AF37, #D4AF37 2px, #FFF8DC 0, #FFF8DC 4px) !important;
  width: 100% !important;
  height: 5px !important;
  z-index: -1 !important;
  display: block !important;
}

/* H4: 左帯と下線デザイン */
.article h4 {
  font-size: 1.25rem !important;
  padding: 5px 10px !important;
  padding-bottom: 3px !important;
  border-left: 5px solid #D9941C !important;
  border-bottom: 1px solid #B5A993 !important;
}

/* H5: シンプルなデザイン */
.article h5 {
  font-size: 1.15rem !important;
  padding: 5px 0 !important;
  color: #4A433D !important;
}

/*====================================
** サイドバー見出しを本文のH3と統一（修正版）
**====================================*/
#sidebar .widget-title {
  /* 本文の見出しh3のスタイルをそのまま適用 */
  position: relative !important;
  font-size: 1.5rem !important;
  padding-bottom: 3px !important;
  border-bottom: none !important;
  font-weight: bold !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1.5rem !important;
  background: none !important;
  color: inherit !important;
}

#sidebar .widget-title::before {
  /* 本文のh3と同じストライプデザインを適用 */
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  background: repeating-linear-gradient(-45deg, #D4AF37, #D4AF37 2px, #FFF8DC 0, #FFF8DC 4px) !important;
  width: 100% !important;
  height: 5px !important;
  z-index: -1 !important;
  display: block !important;
}

/*====================================
** その他のサイト機能に関するCSS
**====================================*/
.home .entry-header {
  display: none !important;
}
.main {
  border-top: none !important;
}
.content {
  margin-top: 0 !important;
}
#header-container {
  border-bottom: 1px solid #ccc !important;
}
#footer {
  border-top: 1px solid #d49b55 !important;
}