@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.1.1
*/

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


/* =========================
   共通：Cocoon見出し装飾を完全無効化
========================= */
.entry-content h2::before,
.entry-content h2::after,
.entry-content h3::before,
.entry-content h3::after {
  content: none;
}

.entry-content h2,
.entry-content h3 {
  border-radius: 0;
  background: none;
}

/* =========================
   h2：｜＋フル幅下線
========================= */
.entry-content h2 {
  position: relative;
  padding: 0.4em 0 0.34em 0.6em; /* ← 文字と線の距離はここ */
  margin: 2em 0;
  font-size: 24px;
  color: #0d308a;
  border-left: 4px solid #0d308a;
  border-bottom: 2px solid #0d308a;
}

/* =========================
   h3：｜のみ（下線なし）
========================= */
.entry-content h3 {
  padding: 0.4em 0 0.34em 0.6em;
  margin: 1.6em 0;
  font-size: 18px;
  color: #0d308a;
  border-left: 4px solid #0d308a;
  border-bottom: none;
}

/* =========================
   ダークモード対応
========================= */
@media (prefers-color-scheme: dark) {
  .entry-content h2,
  .entry-content h3 {
    color: #ffffff;
    background-color: #1a1a1a;
    border-left-color: #0d308a;
  }

  .entry-content h2 {
    border-bottom-color: #0d308a;
  }
}


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

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

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