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

/*====================================
** 子テーマ用のスタイル
**====================================*/
/* 固定ページの投稿日・更新日を非表示 */
.page .date-tags {
  display: none;
}

/* 見出しのスタイルを完全にリセット */
.article h2, .article h3, .article h4, .article h5 {
  font-weight: bold;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  background: none;
  border: none;
  padding: 0;
}

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

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

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

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

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

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

/* 通知エリアのカスタムCSS */
.notice-area {
  padding-top: 2.5px;
  padding-bottom: 2.5px;
}

.notice-area-message {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.35; /* 読みやすさを考慮して調整 */
}

/*====================================
** サイドバー見出しを本文のH3と統一（PC+モバイル対応）
**====================================*/
#sidebar .widget-title,
#slide-in-sidebar .widget-title {
  background-color: #ffffff;
  padding-bottom: 5px;
  position: relative;
}

#sidebar .widget-title::after,
#slide-in-sidebar .widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  background: repeating-linear-gradient(-45deg, #d89134 0 2px, #fff8dc 2px 4px);
  width: 100%;
  height: 5px;
}

/*====================================
** その他のサイト機能に関するCSS
**====================================*/
.page .post-meta {
  display: none !important;
}

.home .entry-header {
  display: none;
}

.main {
  border-top: none;
}

.content {
  margin-top: 0;
}

#header-container {
  border-bottom: 1px solid #ccc;
}

#footer {
  border-top: 1px solid #d49b55;
}
