@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){
  /*必要ならばここにコードを書く*/
}


/* =============================================
   コラム記事（/contents/）用 ヒーロータイトル
   ============================================= */

/* --- ヒーローヘッダー本体 --- */
.custom-hero-title {
  background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
  padding: 20px 20px;
  text-align: center;
  margin-bottom: 2em;
  border-radius: 8px;
}

.custom-hero-title__inner {
  max-width: 720px;
  margin: 0 auto;
}

/* 「2026年最新版」バッジ */
.custom-hero-title__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* メインタイトル */
.custom-hero-title__heading {
  color: #fff !important;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 0 20px 0;
  padding: 0;
  border: none !important;         /* Cocoonのh1ボーダーを消す */
  background: none !important;     /* Cocoonのh1背景を消す */
}

/* サブテキスト（著者情報） */
.custom-hero-title__sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin: 0;
}

/* --- コラム記事のデフォルトタイトルを非表示 --- */
.is-contents-article .entry-title,
.is-contents-article .article-header .entry-title {
  display: none !important;
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
  .custom-hero-title {
    padding: 40px 16px;
  }
  .custom-hero-title__heading {
    font-size: 22px;
  }
  .custom-hero-title__badge {
    font-size: 12px;
    padding: 4px 14px;
  }
  .custom-hero-title__sub {
    font-size: 12px;
  }
}