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

/****************************************
** 子テーマ用のスタイルを書く
****************************************/

/* ============================================
   サイト全体の色・フォント統一
   フロントページ（front-page.php）には影響しない
   ============================================ */
:root {
  --site-bg: #F4EBD8;
  --site-bg-card: #FFFCF4;
  --site-bg-quiet: #FBF5E7;
  --site-text: #3D2E1F;
  --site-text-sub: #6B5B4A;
  --site-border: #E5DAC1;
  --site-accent: #8B9D7A;
  --site-signature: #c98f7a;
  --site-signature-deep: #b07868;
  --site-font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --site-font-sans: 'Noto Sans JP', sans-serif;
}

/* ===== body・全体背景（フロントページ以外） ===== */
body:not(.custom-front-page) {
  background: var(--site-bg) !important;
  color: var(--site-text);
}
body:not(.custom-front-page) #wrap,
body:not(.custom-front-page) .wrap,
body:not(.custom-front-page) .content-in {
  background: var(--site-bg) !important;
}
body:not(.custom-front-page) #main,
body:not(.custom-front-page) .main {
  background: transparent !important;
}

/* ===== 記事本体・カテゴリページの記事カード ===== */
body:not(.custom-front-page) .article,
body:not(.custom-front-page) #single-page,
body:not(.custom-front-page) .article-archive {
  background: var(--site-bg-card) !important;
  border: 1px solid var(--site-border) !important;
  border-radius: 4px !important;
}

/* ===== 見出しを明朝フォントに ===== */
body:not(.custom-front-page) .entry-title,
body:not(.custom-front-page) .archive-title,
body:not(.custom-front-page) .article h1,
body:not(.custom-front-page) .article h2,
body:not(.custom-front-page) .article h3,
body:not(.custom-front-page) .article h4 {
  font-family: var(--site-font-serif) !important;
  color: var(--site-text) !important;
}

/* H2見出し：完成版風（左にサーモン色のライン） */
body:not(.custom-front-page) .article h2 {
  background: transparent !important;
  border: none !important;
  border-left: 6px solid var(--site-signature) !important;
  border-bottom: 1px solid var(--site-border) !important;
  padding: 12px 16px !important;
  margin: 32px 0 20px !important;
  font-size: 1.4em !important;
}

/* H3見出し */
body:not(.custom-front-page) .article h3 {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid var(--site-signature) !important;
  padding: 6px 0 8px !important;
  margin: 24px 0 16px !important;
  font-size: 1.2em !important;
}

/* H4見出し */
body:not(.custom-front-page) .article h4 {
  background: transparent !important;
  border-left: 3px solid var(--site-accent) !important;
  padding: 4px 12px !important;
  margin: 20px 0 14px !important;
  font-size: 1.1em !important;
}

/* ===== サイドバー：緑帯見出し→茶色系へ ===== */
body:not(.custom-front-page) .widget-sidebar-title,
body:not(.custom-front-page) .widget-title {
  background: var(--site-signature-deep) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 4px 4px 0 0 !important;
  padding: 14px 18px !important;
  font-family: var(--site-font-serif) !important;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.15);
}

body:not(.custom-front-page) #sidebar .widget {
  background: var(--site-bg-card) !important;
  border: 1px solid var(--site-border) !important;
  border-radius: 4px !important;
  margin-bottom: 24px !important;
  overflow: hidden !important;
}

/* Gutenberg block 由来の見出し（Archives / Categories 等）も茶色帯に */
body:not(.custom-front-page) #sidebar .wp-block-heading,
body:not(.custom-front-page) #sidebar .widget_block h2,
body:not(.custom-front-page) #sidebar .widget_block h3,
body:not(.custom-front-page) .widget-sidebar-scroll .wp-block-heading,
body:not(.custom-front-page) .widget-sidebar-scroll h2,
body:not(.custom-front-page) .widget-sidebar-scroll h3 {
  background: var(--site-signature-deep) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 4px 4px 0 0 !important;
  padding: 14px 18px !important;
  font-family: var(--site-font-serif) !important;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.15);
  margin: 0 0 12px 0 !important;
  font-size: 1.1em !important;
}

/* wp-block-group の中身を整える */
body:not(.custom-front-page) #sidebar .wp-block-group {
  padding: 0 !important;
}
body:not(.custom-front-page) #sidebar .wp-block-archives-list,
body:not(.custom-front-page) #sidebar .wp-block-categories-list,
body:not(.custom-front-page) #sidebar .wp-block-latest-posts__list {
  padding: 0 18px 14px !important;
  margin: 0 !important;
}

/* ===== 記事一覧カード（カテゴリページ等） ===== */
body:not(.custom-front-page) .entry-card,
body:not(.custom-front-page) .entry-card-wrap,
body:not(.custom-front-page) .e-card {
  background: var(--site-bg-card) !important;
  border: 1px solid var(--site-border) !important;
  border-radius: 4px !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
}
body:not(.custom-front-page) .entry-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(176, 120, 104, 0.15) !important;
}
body:not(.custom-front-page) .entry-card-title,
body:not(.custom-front-page) .e-card-title {
  color: var(--site-text) !important;
  font-family: var(--site-font-serif) !important;
}
body:not(.custom-front-page) .entry-card-snippet,
body:not(.custom-front-page) .e-card-snippet {
  color: var(--site-text-sub) !important;
}

/* ===== PR / 広告ラベルを控えめに ===== */
body:not(.custom-front-page) .pr-label,
body:not(.custom-front-page) .pr-label-l {
  background: transparent !important;
  color: var(--site-text-sub) !important;
  border: 1px solid var(--site-border) !important;
  border-radius: 3px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  padding: 4px 10px !important;
}

/* ===== リンク色 ===== */
body:not(.custom-front-page) a {
  color: var(--site-signature-deep);
}
body:not(.custom-front-page) a:hover {
  color: var(--site-signature);
}

/* ===== ヘッダー ===== */
body:not(.custom-front-page) #header-container,
body:not(.custom-front-page) .header-container {
  background: var(--site-bg) !important;
  border-bottom: 1px solid var(--site-border) !important;
}
body:not(.custom-front-page) .site-name-text,
body:not(.custom-front-page) .header h1,
body:not(.custom-front-page) #header .site-name {
  color: var(--site-text) !important;
  font-family: var(--site-font-serif) !important;
}
body:not(.custom-front-page) .tagline {
  color: var(--site-text-sub) !important;
}

/* ===== グローバルナビ ===== */
body:not(.custom-front-page) #navi,
body:not(.custom-front-page) .navi {
  background: var(--site-bg-card) !important;
  border-top: 1px solid var(--site-border) !important;
  border-bottom: 1px solid var(--site-border) !important;
}
body:not(.custom-front-page) #navi a,
body:not(.custom-front-page) .navi a,
body:not(.custom-front-page) #navi-menu-item a {
  color: var(--site-text) !important;
  font-family: var(--site-font-serif) !important;
  letter-spacing: 0.04em;
}
body:not(.custom-front-page) #navi a:hover,
body:not(.custom-front-page) .navi a:hover {
  color: var(--site-signature-deep) !important;
  background: var(--site-bg-quiet) !important;
}

/* ===== フッター ===== */
body:not(.custom-front-page) #footer,
body:not(.custom-front-page) .footer,
body:not(.custom-front-page) #footer-in {
  background: #2f2820 !important;
  color: #c8bda8 !important;
}
body:not(.custom-front-page) #footer a,
body:not(.custom-front-page) .footer a {
  color: #c8bda8 !important;
}
body:not(.custom-front-page) #footer a:hover,
body:not(.custom-front-page) .footer a:hover {
  color: #FFFFFF !important;
}

/* ===== シェアボタンを少し馴染ませる ===== */
body:not(.custom-front-page) .sns-share-buttons {
  filter: saturate(0.65) brightness(0.95) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

/* ===== ページネーション ===== */
body:not(.custom-front-page) .pagination .page-numbers,
body:not(.custom-front-page) .pagination-next-link {
  background: var(--site-bg-card) !important;
  border: 1px solid var(--site-border) !important;
  color: var(--site-text) !important;
}
body:not(.custom-front-page) .pagination .current {
  background: var(--site-signature-deep) !important;
  color: #FFFFFF !important;
  border-color: var(--site-signature-deep) !important;
}

/* ===== 記事内のテーブル ===== */
body:not(.custom-front-page) .article table {
  border: 1px solid var(--site-border) !important;
}
body:not(.custom-front-page) .article table th {
  background: var(--site-bg-quiet) !important;
  color: var(--site-text) !important;
  font-family: var(--site-font-serif) !important;
}

/* ===== 記事内の引用ブロック ===== */
body:not(.custom-front-page) .article blockquote {
  background: var(--site-bg-quiet) !important;
  border-left: 4px solid var(--site-signature) !important;
  padding: 16px 20px !important;
  color: var(--site-text-sub) !important;
}

/* ===== 記事内の box ===== */
body:not(.custom-front-page) .article .blank-box {
  background: var(--site-bg-quiet) !important;
  border: 1px solid var(--site-border) !important;
}

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

/*834px以下*/
@media screen and (max-width: 834px){
  body:not(.custom-front-page) .article h2 {
    font-size: 1.25em !important;
  }
  body:not(.custom-front-page) .article h3 {
    font-size: 1.1em !important;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  body:not(.custom-front-page) .article,
  body:not(.custom-front-page) #single-page,
  body:not(.custom-front-page) .article-archive {
    padding: 16px !important;
  }
}
