@charset "UTF-8";

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

/* 見出し用の明朝体（@importは必ずファイルの先頭付近に置く） */
@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@600;700;800&display=swap");

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


/************************************
** 見出しデザイン（げいくち：ダーク×琥珀）
** ヘッダー画像の「濃紺の書斎＋琥珀色の光」に合わせています
**
** 目立ち方の強さ： H2（濃紺の太いバー）＞ H3（琥珀の蛍光ペン）＞ H4（小さな琥珀の菱形）
** 長い記事でも「章の切り替わり」がひと目で分かるよう、H2は余白も広めにしています
************************************/

/* ---- Cocoon標準の見出し装飾をリセット ---- */
.article h1,
.article h2,
.article h3,
.article h4 {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  padding: 0;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.article h1::before,
.article h1::after,
.article h2::before,
.article h2::after,
.article h3::before,
.article h3::after,
.article h4::before,
.article h4::after {
  content: none;
}

/* ---- H1：記事タイトル（濃紺のパネル＋下に光の線） ---- */
.article h1 {
  position: relative;
  padding: 1.8rem 1.2rem 2rem;
  border-radius: 4px;
  color: #fff;
  text-align: center;
  font-size: 1.9em;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .06em;
  background:
    radial-gradient(ellipse 60% 90% at 50% 130%, rgba(242, 163, 58, .4), transparent 70%),
    linear-gradient(135deg, #0b1220 0%, #16233b 100%);
  text-shadow: 0 0 24px rgba(92, 200, 232, .3);
  box-shadow: 0 12px 24px -12px rgba(11, 18, 32, .7);
}
.article h1::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f2a33a 50%, transparent);
  box-shadow: 0 0 14px 1px rgba(242, 163, 58, .7);
}

/* ---- H2：章の見出し（濃紺のバー＋太い琥珀の縦線＋右下の光＋下線） ---- */
.article h2 {
  position: relative;
  margin: 3.6em 0 1.5em;
  padding: 1.2rem 1.4rem 1.3rem 1.6rem;
  color: #fff;
  font-size: 1.85em;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .06em;
  border-left: 12px solid #f2a33a;
  border-top: 1px solid rgba(242, 163, 58, .5);
  border-radius: 0 6px 6px 0;
  background:
    radial-gradient(ellipse 50% 180% at 100% 140%, rgba(242, 163, 58, .5), transparent 70%),
    radial-gradient(ellipse 30% 120% at 0% -30%, rgba(92, 200, 232, .18), transparent 70%),
    linear-gradient(90deg, #0b1220 0%, #16233b 100%);
  text-shadow: 0 0 18px rgba(242, 163, 58, .35);
  box-shadow: 0 14px 24px -12px rgba(11, 18, 32, .8), 0 0 22px rgba(242, 163, 58, .25);
}
.article h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #f2a33a, rgba(242, 163, 58, 0) 90%);
  box-shadow: 0 0 12px 1px rgba(242, 163, 58, .6);
}

/* ---- H3：節の見出し（蛍光ペン風：文字の下半分に琥珀のマーカー） ---- */
.article h3 {
  width: fit-content;
  max-width: 100%;
  margin: 2.6em 0 1.1em;
  padding: 0 .5em;
  color: #0b1220;
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .04em;
  background: linear-gradient(transparent 52%, rgba(242, 163, 58, .55) 52%);
}

/* ---- H4：小見出し（琥珀の菱形＋琥珀の点線） ---- */
.article h4 {
  position: relative;
  margin: 2em 0 .9em;
  padding: .2rem 0 .45rem 1.6rem;
  color: #16233b;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .03em;
  border-bottom: 2px dotted rgba(242, 163, 58, .85);
}
.article h4::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: .8em;
  width: .6rem;
  height: .6rem;
  background: #f2a33a;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(242, 163, 58, .7);
}

/* ---- サイドバーのH3（ヘッダーに合わせて濃紺＋琥珀の下線） ---- */
.sidebar h3 {
  background: #0b1220;
  color: #fff;
  border: none;
  border-bottom: 3px solid #f2a33a;
  padding: .4em .6em;
  margin: 0 0 .8em;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .8);
}


/************************************
** 目次（濃紺のパネル＋琥珀の上線）
** 目次タイトルは濃紺、本文は少し明るい濃紺。大見出し(H2)は白の太字、小見出しは薄い文字色
************************************/
.toc {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 2.2em auto;
  padding: 0;
  border: none;
  border-top: 3px solid #f2a33a;
  border-radius: 4px;
  background: #101a2d;
  color: #dbe6f5;
  overflow: hidden;
  box-shadow: 0 12px 24px -12px rgba(11, 18, 32, .7), 0 0 18px rgba(242, 163, 58, .12);
}

.toc-title {
  margin: 0;
  padding: .9rem 1.2rem;
  background:
    radial-gradient(ellipse 50% 200% at 100% 150%, rgba(242, 163, 58, .3), transparent 70%),
    linear-gradient(135deg, #0b1220 0%, #16233b 100%);
  border-bottom: 1px solid rgba(242, 163, 58, .45);
  color: #fff;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: .25em;
  text-align: left;
}

/* 「開く／閉じる」の表示色 */
.toc-title::after {
  color: #f2a33a;
}

.toc-content {
  padding: 1rem 1.4rem 1.2rem;
  background: #101a2d;
}

.toc a {
  color: #dbe6f5;
  text-decoration: none;
  transition: color .2s ease, text-shadow .2s ease;
}
.toc a:hover,
.toc a:focus-visible {
  color: #f2a33a;
  text-shadow: 0 0 8px rgba(242, 163, 58, .6);
}

.toc li {
  line-height: 1.7;
  padding: .15em 0;
}
.toc li::marker,
.toc li::before {
  color: #f2a33a;
}

/* 大見出し(H2)の項目は白の太字で目立たせる */
.toc-list > li > a {
  color: #fff;
  font-weight: 700;
}
.toc-list > li > a:hover,
.toc-list > li > a:focus-visible {
  color: #f2a33a;
}

/* 小見出し(H3以下)の項目は少し控えめに */
.toc-list li li > a {
  color: #a9bad3;
  font-weight: 400;
  font-size: .95em;
}
.toc-list li li > a:hover,
.toc-list li li > a:focus-visible {
  color: #f2a33a;
}


/************************************
** テーブル（濃紺の見出し行＋琥珀の線＋しま模様）
** 見出し行(th)は濃紺、本文は白と淡い青のしま模様、マウスを乗せると琥珀色にほんのり
************************************/
.article table {
  width: 100%;
  margin: 2em 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #c3cfe2;
  border-radius: 4px;
  overflow: hidden;
  font-size: .95em;
  line-height: 1.7;
  box-shadow: 0 10px 20px -14px rgba(11, 18, 32, .6);
}

.article table th {
  padding: .8em 1em;
  background: linear-gradient(135deg, #0b1220 0%, #16233b 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.article table th:last-child {
  border-right: none;
}

/* 一番上の見出し行には琥珀色の太い線 */
.article table thead th,
.article table tr:first-child th {
  border-bottom: 3px solid #f2a33a;
}

/* 左端の見出し列(th)は左揃え */
.article table tbody th,
.article table tr:not(:first-child) th {
  text-align: left;
}

.article table td {
  padding: .75em 1em;
  background: #fff;
  color: #1c2433;
  border: none;
  border-right: 1px solid #dde4ef;
  border-bottom: 1px solid #dde4ef;
}
.article table td:last-child {
  border-right: none;
}
.article table tr:last-child td,
.article table tr:last-child th {
  border-bottom: none;
}

/* 1行おきにほんのり色を付けて、横に読みやすく */
.article table tbody tr:nth-child(even) td {
  background: #f3f6fb;
}

/* マウスを乗せた行を琥珀色に */
.article table tbody tr:hover td {
  background: #fff3de;
}


/************************************
** カード・リンク色など
************************************/
.entry-card-title,
.related-entry-card-title,
.e-card-info > span {
  color: #4169e1;
}


/************************************
** RSSの日付の位置
.entry-card-meta {
	display: flex;

}
************************************/

.no-thumbnail .entry-card-meta {
  position: static;
  background-color: transparent;
  margin-top: 0.4em;
}

.entry-card-content,
.related-entry-card-content {
  padding-bottom: 0.1em;
}

.comment-notes,
.comment-form-email,
.comment-form-url {
  display: none;
}


/* 最近のコメント欄カスタマイズ */
.recent-comment-article {
  font-weight: bold;
  border-bottom: 3px dotted;
  border-color: #279df7;
  padding-bottom: 10px;
}

.recent-comment-content {
  border: 5px solid pink;
}


/* エントリーカードラベル非表示 */
.entry-card .cat-label {
  display: none;
}

.carousel .cat-label {
  display: none;
}


/*全体の文字サイズ */
p, .paragraph {
  font-size: 18px;
}


/*ブログタイトルの高さ */
.logo-text {
  padding: 2px 0 3px;
  font-size: 1em;
}

/************************************
** モバイルフッターボタンの色変更（濃紺×琥珀）
************************************/

/*フッターモバイルメニュー*/
.mobile-menu-buttons {
  background: rgba(11, 18, 32, 0.95); /* 濃紺（少しだけ透過） */
  border-top: 2px solid #f2a33a; /* 上に琥珀色の線 */
  box-shadow: 0 -4px 14px rgba(242, 163, 58, 0.25); /* 線のまわりのほんのり光 */
}

/* 文字・アイコンを白に（下のバーのボタン部分だけ） */
.mobile-menu-buttons .menu-button-in,
.mobile-menu-buttons .menu-button-in .menu-icon,
.mobile-menu-buttons .menu-button-in .menu-caption {
  color: #fff;
}

.mobile-menu-buttons .menu-button {
  transition: background-color .25s ease;
}

.mobile-menu-buttons .menu-icon,
.mobile-menu-buttons .menu-caption {
  transition: text-shadow .25s ease;
}

/* サイドバー(おすすめ)の中身は元の濃い文字色に戻す */
.mobile-menu-buttons .menu-content,
.mobile-menu-buttons .menu-content a,
.mobile-menu-buttons .menu-content .menu-caption,
.mobile-menu-buttons .menu-content .menu-icon {
  color: #333;
}

/* 中身まで光らないようにする */
.mobile-menu-buttons .menu-content .menu-icon,
.mobile-menu-buttons .menu-content .menu-caption {
  text-shadow: none;
}


/* ボタンhover・タップ時：背景がほんのり明るくなり、文字とアイコンが光る */
.mobile-menu-buttons .menu-button:hover,
.mobile-menu-buttons .menu-button:active,
.mobile-menu-buttons .menu-button:focus-within {
  background: rgba(242, 163, 58, 0.15);
}

.mobile-menu-buttons .menu-button:hover .menu-icon,
.mobile-menu-buttons .menu-button:hover .menu-caption,
.mobile-menu-buttons .menu-button:active .menu-icon,
.mobile-menu-buttons .menu-button:active .menu-caption,
.mobile-menu-buttons .menu-button:focus-within .menu-icon,
.mobile-menu-buttons .menu-button:focus-within .menu-caption {
  text-shadow: 0 0 6px rgba(242, 163, 58, 0.95), 0 0 14px rgba(242, 163, 58, 0.6);
}

/* 本文中のボタン（変更なし） */
.btn-square-shadow {
  display: inline-block;
  padding: 1em 1em;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  background: #279df7; /*ボタン色*/
  color: #FFF;
}


/*---------------------------------
親カテゴリのカスタマイズ
--------------------------------*/
.widget_categories ul li a {
  border-bottom: 1px dashed #CCCCCC; /* 下線の種類 */
}

.widget_categories ul li a::before {
  font-family: FontAwesome;
  content: "\f07b"; /* FontAwesomeのユニコード */
  color: #5FB3F5; /* アイコンの色 */
  padding-right: 6px;
}

.widget_categories > ul > li > a:first-child {
  border-top: none;
}

/*---------------------------------
子カテゴリのカスタマイズ
--------------------------------*/
.widget_categories ul li ul li a::before {
  font-family: FontAwesome;
  content: "\f114"; /* FontAwesomeのユニコード */
  color: #5FB3F5; /* アイコンの色 */
  padding-right: 6px;
}


.logo-image {
  padding: 2px 0px;
}



/*コメントフォームの装飾（濃紺×琥珀）*/

#commentform label {
  display: inline-block;
  color: #0b1220;
  font-weight: 700;
  letter-spacing: .03em;
}

/* 入力欄：白地に濃紺の枠 */
#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
  background: #fff;
  color: #1c2433;
  border-radius: 4px; /*コメント欄の枠の角丸さ*/
  border: solid 2px #16233b; /*コメント欄の枠線太さと色*/
  font-size: 16px; /*コメントの文字サイズ*/
  transition: border-color .25s ease, box-shadow .25s ease;
}

/* 入力中：枠が琥珀色に変わり、ほんのり光る */
#commentform textarea:focus,
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus {
  outline: none;
  border: solid 2px #f2a33a; /* コメント入力時の枠線の太さと色 */
  box-shadow: 0 0 0 3px rgba(242, 163, 58, 0.25), 0 0 14px rgba(242, 163, 58, 0.45);
}

/*送信ボタンの装飾*/

#commentform #submit {
  box-shadow: 0 10px 20px -5px rgba(11, 18, 32, 0.5); /*送信ボタンの影*/
  font-size: 20px; /*送信ボタン文字の大きさ*/
  font-weight: 700;
  letter-spacing: .08em;
  background: linear-gradient(135deg, #0b1220 0%, #16233b 100%); /* H1と同じ濃紺 */
  color: #fff; /*送信ボタンの文字色*/
  border-radius: 4px; /*送信ボタンの角の丸さ*/
  height: 50px; /*送信ボタンの縦幅*/
  padding: 0 2em;
  border: none;
  border-bottom: 3px solid #f2a33a; /* 下に琥珀色の線 */
  margin-top: 30px; /*送信ボタンとコメント欄の隙間（縦幅）*/
  cursor: pointer;
  transition: box-shadow .25s ease, text-shadow .25s ease;
}

/* ホバー・タップ時：琥珀色にほんのり光る */
#commentform #submit:hover,
#commentform #submit:active,
#commentform #submit:focus-visible {
  color: #fff; /*送信ボタンにマウスを乗せたときの文字色 */
  box-shadow: 0 0 16px rgba(242, 163, 58, 0.7), 0 10px 20px -5px rgba(11, 18, 32, 0.5);
  text-shadow: 0 0 8px rgba(242, 163, 58, 0.95);
}

/* 送信ボタンココまで */



/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1240px以下*/
@media screen and (max-width: 1240px) {
}

/*1023px以下*/
@media screen and (max-width: 1023px) {
}

/*834px以下*/
@media screen and (max-width: 834px) {
}

/*480px以下*/
@media screen and (max-width: 480px) {

  /* スマホでは見出しを少し控えめに */
  .article h1 {
    padding: 1.3rem .8rem 1.5rem;
    font-size: 1.5em;
  }
  .article h2 {
    margin: 2.8em 0 1.2em;
    font-size: 1.45em;
    padding: .9rem .8rem 1rem 1rem;
    border-left-width: 8px;
  }
  .article h3 {
    font-size: 1.25em;
    padding: 0 .4em;
  }
  .article h4 {
    font-size: 1.1em;
  }

  /* 目次・テーブルもスマホ向けに */
  .toc-content {
    padding: .8rem 1rem 1rem;
  }
  .article table {
    font-size: .85em;
  }
  .article table th,
  .article table td {
    padding: .6em .7em;
  }

 
  .mobile-menu-buttons .menu-caption {
    font-size: 15px;
    font-weight: bold;
  }



  /*----------------------------------------*/
  /* スマホ版の下メニュー位置 */
  /*----------------------------------------*/
  .mobile-menu-buttons .menu-caption {
    margin-bottom: 60px;
  }
}

/************************************
** リストの行間
************************************/
.entry-content > ul li,
.entry-content > ol li {
  line-height: 1.5;      /* 1行の高さ（1行半ぶん） */
  margin-bottom: 1.5em;  /* 項目と項目の間の空き */
  font-size: 18px;       /* 本文(p)の文字サイズに合わせる */
}
.entry-content > ul li:last-child,
.entry-content > ol li:last-child {
  margin-bottom: 0;      /* 最後の項目の下は空けない */
}
