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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* 見出し２をカスタマイズ */
.article h2 {
  position: relative;
  background: #006bb4;
  padding: 7px 12px 7px 22px;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  border-left: 10px solid #004a84;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12); /* ←影を濃く */
  margin-bottom: 20px;
  background: linear-gradient(90deg, #006bb4 0%, #0075c8 100%);
  letter-spacing: 0.5px;
  margin-top: 30px;
  margin-bottom: 25px;

}

.article h2:before {
  font-family: "Font Awesome 5 Free";
  content: "\f058";
  display: inline-block;
  line-height: 40px;
  position: absolute;
  padding: 0em;
  color: white;
  background: #006bb4;
  font-weight: 900;
  width: 50px;
  text-align: center;
  height: 50px;
  line-height: 50px;
  font-size: 30px;
  left: -1.35em;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  border: 3px solid rgba(255,255,255,0.9);
  border-radius: 50%;
}

h3 {
  background: #e0f0f9; /* 明るめの水色（H2と同系色で差を出す） */
  color: #005580;       /* 文字色も少し薄めの落ち着いた色に */
  padding: 4px 10px;
  font-size: 18px;      /* 少し小さめにして段階感を出す */
  font-weight: 500;     /* 太さをやや控えめに */
  border-left: 3px solid #89c2e0;
  border-radius: 3px;
  margin-top: 15px;
  margin-bottom: 6px;
  line-height: 1.2;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

}
h4 {
  background: #f5f9fc; /* かなり淡いブルーグレー系（目立ちすぎない） */
  color: #333;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: normal;
  border-left: 3px solid #b3d4ef; /* 控えめなアクセントカラー */
  border-radius: 3px;
  margin-top: 15px;
  margin-bottom: 10px;
}

/* タブレット */
@media (max-width: 1024px) and (min-width: 769px){
  .article h2{
    padding-left: 38px; /* 文字と被らない最低限の余白 */
  }
  .article h2:before{
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 24px;

    left: -0.9em;       /* ←見える位置に調整（重要） */
    border-width: 2px;
  }
}

/* スマホ */
@media (max-width: 768px){
  .article h2{
    padding-left: 34px; /* ここは条さんの妥協案を維持 */
  }
  .article h2:before{
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 22px;

    left: -0.8em;       /* ←見える位置に調整（重要） */
    border-width: 2px;
  }
}




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

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

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

/* 表のヘッダー部分の文字色だけを変更（背景はそのまま） */
figure.wp-block-table table.has-fixed-layout thead th {
  color: #ffffff !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* 念のため、thead内の全ての要素にも適用 */
figure.wp-block-table table.has-fixed-layout thead th * {
  color: #ffffff !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
