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

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

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

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

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




/* ============================
   H1：ページタイトル専用（看板）
   ・余白を少し広げて格上感
   ・角丸はH2/H3よりやや大きめ
============================ */
.single h1,
.page h1 {
  position: relative;
  margin: 0 0 3rem;                 /* 少し広げる */
  padding: 1.5rem 1.2rem 1.5rem 1.7rem;

  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.03em;

  color: #0f172a;
  background: linear-gradient(
    to right,
    rgba(59,196,241,0.14),
    rgba(59,196,241,0.05)
  );

  border-left: 7px solid #3bc4f1;   /* ほんの少しだけ主張 */
  border-bottom: 1px solid #e5e7eb;
  border-radius: 10px;             /* H2/H3より大きめ */
}

/* H1 下のサブテキスト（リード文） */
.single h1 + p,
.page h1 + p {
  margin-top: -1.4rem;
  margin-bottom: 2.2rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.8;
}


/* ============================
   H2：親見出し（セクション開始）
   ・H1より“帯感”を抑える
   ・二重ラインは維持しつつ、軽く
============================ */
.entry-content h2.wp-block-heading {
  position: relative;
  margin: 2.6em 0 1.4em;
  padding: 0.85em 0 0.9em 2.0em;    /* 少しだけコンパクト */
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: .03em;
  color: #0f172a;

  background: rgba(59,196,241,0.08); /* べた塗り感を弱める */
  border-radius: 8px;
}

/* 左の太線 */
.entry-content h2.wp-block-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 6px;
  height: calc(100% - 0.84em);
  background: #3bc4f1;
  border-radius: 999px;            /* 角を丸くして洗練 */
}

/* 左の細線 */
.entry-content h2.wp-block-heading::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 0.42em;
  width: 3px;
  height: calc(100% - 0.84em);
  background: rgba(59,196,241,.35); /* 少し薄く */
  border-radius: 999px;
}


/* ============================
   H3：小見出し（白枠）
   ・線の主張はH2より弱く
   ・下ラインは箱と一体化
============================ */
.entry-content h3.wp-block-heading {
  position: relative;
  display: block;
  width: 100%;
  margin: 2.0em 0 1.2em;
  padding: 0.7em 0 0.9em 1.5em; /* 下線分だけ下余白を少し増やす */
  font-size: 1.16rem;
  font-weight: 700;
  color: #0f172a;

  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  border-left: 3px solid rgba(59,196,241,0.9);
}

/* 下のアクセントライン（横幅100%・一体型） */
.entry-content h3.wp-block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 2px;
  background: rgba(59,196,241,0.55);
  border-radius: 0 0 8px 8px;
}








/* ============================
   アイキャッチを中央寄せにする
============================ */
/* アイキャッチを中央寄せにする（Cocoonのflex仕様に対応） */
.eye-catch-wrap {
  justify-content: center;  /* flex の中身を中央寄せ */
}

.eye-catch {
  margin-left: auto;
  margin-right: auto;
}

/* PCでは画像を実サイズ寄りに（正方形でも不自然にならないように） */
@media (min-width: 834px) {
  .single .eye-catch img {
    width: auto;
    max-width: 100%;
    height: auto;
  }
}

/* 記事本文の最後に “ウィジェット風の注意ボックス” として固定表示 */
.post-note {
  margin: 1.5rem 0 0.5rem; /* 下余白を 0.5rem に縮小 */
  padding: 0.8rem 1rem;
  background: #f8fafc;
  border-left: 4px solid #0ea5e9;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #334155;
}

.post-note p {
  margin-bottom: 0; /* 段落のデフォルト下余白を消す */
}



/* 投稿・固定ページではヘッダー画像を非表示 */
.single #header,
.page #header {
  background-image: none !important;
}

/* トップページ（固定ページ）のみ表示 */
.home.page #header,
.front-page.page #header {
  background-image: inherit !important;
}
