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


/************************************
** 見出しデザイン
************************************/

/* H1：記事タイトル */
.article h1 {
  color: #183B56;
  border-bottom: 2px solid #183B56;
  padding-bottom: 0.5em;
}

/* H2：ロゴを意識した装飾 */
.article h2 {
  position: relative;
  padding: .5em 0 .5em 1.1em;
  border: none;
  border-bottom: 3px solid #183B56;
  background: #FFFFFF;
  color: #183B56;
  border-radius: 0;
}

.article h2::before {
  content: "";
  position: absolute;
  top: .35em;
  left: .25em;
  width: 12px;
  height: 12px;
  background: #183B56;
  transform: rotate(55deg);
}

.article h2::after {
  content: "";
  position: absolute;
  top: .8em;
  left: 0;
  width: 8px;
  height: 8px;
  background: #247F85;
  transform: rotate(15deg);
}

/* H3：控えめなアクセント */
.article h3 {
  position: relative;
  padding: .5em .7em;
  border: none;
  border-left: 4px solid #247F85;
  border-bottom: 1px solid #CBD5E1;
  background: transparent;
  color: #183B56;
  border-radius: 0;
}

.article h3::before,
.article h3::after {
  content: none;
}

/* H4：補足見出し */
.article h4 {
  padding: 0.3em 0.5em;
  color: #334155;
  border: none;
  border-left: 3px solid #247F85;
}

/* H5：さらに細かい見出し */
.article h5 {
  padding-bottom: 0.3em;
  color: #334155;
  border: none;
  border-bottom: 1px dashed #CBD5E1;
}

/* 関連記事などの見出し */
.under-entry-content h2 {
  position: relative;
  padding: 0.5em 0.2em;
  background: transparent;
  color: #183B56;
  border: none;
  border-bottom: 2px solid #183B56;
  font-size: 22px;
}

/* サイドバー見出し */
.sidebar h3 {
  position: relative;
  padding: .4em 0 .4em 1.2em;
  border: none;
  border-bottom: 2px solid #DCE6EC;
  background: transparent;
  color: #183B56;
  font-size: 20px;
}

/* 小さなロゴ風装飾 */
.sidebar h3::before {
  content: "";
  position: absolute;
  top: .65em;
  left: .2em;
  width: 10px;
  height: 10px;
  background: #183B56;
  transform: rotate(55deg);
}

.sidebar h3::after {
  content: "";
  position: absolute;
  top: 1em;
  left: 0;
  width: 7px;
  height: 7px;
  background: #247F85;
  transform: rotate(15deg);
}

/************************************
** 前後記事ナビ
************************************/

.pager-post-navi {
  gap: 16px;
  margin: 32px 0;
}

.pager-post-navi a {
  border-radius: 8px;
  padding: 14px;
  color: #183B56;
  transition: background-color .2s,
              border-color .2s,
              box-shadow .2s;
}

.pager-post-navi a:hover {
  background: #F0F5F9;
  border-color: #247F85;
  box-shadow: 0 3px 10px rgba(24, 59, 86, .08);
}

/* 記事タイトル */
.pager-post-navi .prev-post-title,
.pager-post-navi .next-post-title {
  color: #183B56;
  line-height: 1.6;
}

/* 画像 */
.pager-post-navi img {
  border-radius: 4px;
}

/* スマホではカードを縦並び */
@media screen and (max-width: 600px) {
  .pager-post-navi {
    flex-direction: column;
  }

  .pager-post-navi a {
    width: 100%;
  }
}

/************************************
** コメント欄の見出し
************************************/

#comment-area h2.comment-title {
  position: relative;
  padding: .5em 0 .5em 1.1em;
  margin-bottom: 24px;

  background: transparent;
  color: #183B56;

  border: none;
  border-bottom: 3px solid #183B56;
  border-radius: 0;
}

/* ロゴ風の四角形：ネイビー */
#comment-area h2.comment-title::before {
  content: "";
  position: absolute;
  top: .35em;
  left: .25em;

  width: 12px;
  height: 12px;

  background: #183B56;
  transform: rotate(55deg);
}

/* ロゴ風の四角形：ターコイズ */
#comment-area h2.comment-title::after {
  content: "";
  position: absolute;
  top: .8em;
  left: 0;

  width: 8px;
  height: 8px;

  background: #247F85;
  transform: rotate(15deg);
}

/************************************
** コメント入力欄
************************************/

.comment-form textarea {
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 12px;
}

.comment-form textarea:focus {
  outline: 2px solid #247F85;
  outline-offset: 1px;
}

/************************************
** コメント送信ボタン
************************************/

.comment-form .submit {
  background: #183B56;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background-color .2s;
}

.comment-form .submit:hover {
  background: #247F85;
}

/************************************
** コメントフォームを開くボタン
************************************/

.comment-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;

  background: #183B56;
  color: #FFFFFF;

  border: 1px solid #183B56;
  border-radius: 6px;

  font-size: 16px;
  font-weight: 600;
  text-align: center;

  cursor: pointer;
  transition: background-color .2s,
              border-color .2s;
}

/* ホバー時 */
.comment-btn:hover {
  background: #247F85;
  border-color: #247F85;
  color: #FFFFFF;
}

/************************************
** 次のページボタンを非表示
************************************/
.pagination-next {
  display: none;
}


/************************************
** ページ送りナビ
************************************/
/* ページ送り全体 */
.pagination {
  margin: 32px auto 40px;
  text-align: center;
}

/* ページ番号 */
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 42px;
  height: 42px;
  margin: 0 3px;
  padding: 0 8px;

  background: #FFFFFF;
  color: #183B56;

  border: 1px solid #DCE6EC;
  border-radius: 6px;

  font-weight: 500;
  text-decoration: none;

  transition: background-color .2s,
              border-color .2s,
              color .2s;
}

/* 現在のページ */
.pagination .page-numbers.current {
  background: #183B56;
  color: #FFFFFF;
  border-color: #183B56;
}

/* ホバー時 */
.pagination a.page-numbers:hover {
  background: #247F85;
  color: #FFFFFF;
  border-color: #247F85;
}

/* 「…」の表示 */
.pagination .page-numbers.dots {
  background: #F3F6FA;
  color: #94A3B8;
  border-color: #E2E8F0;
}

/* スマートフォン */
@media screen and (max-width: 480px) {
  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    margin: 0 2px;
    padding: 0 6px;
  }
}


/************************************
** 記事本文とフッターの調整
************************************/

/* 本文末の余白 */
.article .entry-content {
  margin-bottom: 0px;
}

/* 記事フッターの上余白 */
.article .entry-footer {
  margin-top: 0;
}

/* カテゴリー・タグの上余白 */
.article .entry-categories-tags {
  margin-top: 0;
}

/* 記事末尾の小さな著者名を非表示 */
.article-footer .footer-meta .author-info {
  display: none;
}

/* フッターロゴの高さを80pxに固定 */
footer .footer-bottom-logo img {
  height: 80px !important;
  width: auto !important;
  max-height: none !important;
 }

/************************************
** サイドバー：カテゴリー一覧
************************************/
.sidebar .widget_categories ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

/* カテゴリー全体 */
.sidebar .widget_categories li {
  position: relative;
  margin: 0;
  padding: 2px;
  border-bottom: 1px solid #EDF1F5;
  color: #64748B;
  transition: background-color .2s;
}

/* 最後のカテゴリーは下線なし */
.sidebar .widget_categories > ul > li:last-child {
  border-bottom: none;
}

/* カテゴリー名 */
.sidebar .widget_categories li a {
  color: #334155;
  text-decoration: none;
}

/* ホバー時 */
.sidebar .widget_categories li:hover {
  background-color: #EFF6F8;
  border-radius: 4px;
}

.sidebar .widget_categories li a:hover {
  color: #247F85;
}

/* 子カテゴリー */
.sidebar .widget_categories ul.children {
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
  padding-left: 16px;
}

/* 子カテゴリーはコンパクトに */
.sidebar .widget_categories ul.children li {
  padding: 0px;
  border-bottom: none;
  font-size: 0.92em;
}

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

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

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

/************************************
** MathJax関連
************************************/
/* 数式を左寄せ＋はみでた数式のスクロール */
.mjx-chtml[jax="CHTML"][display="true"],
.mjx-chtml[jax="CHTML"][display="true"] .mjx-table,
.MathJax_Display,
.MathJax_Display .MathJax_Table {
  text-align: left !important;
  text-indent: 0em !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

/************************************
** 表関連
************************************/
/* 特定のテーブルだけ文字を中央に配置する設定 */
.center-table th,
.center-table td {
  text-align: center !important;
}

/************************************
** コード関連
************************************/
/* インラインコードのデザイン変更 */
p code, li code {
  background-color: #f1f3f5; /* 背景色 */
  padding: 2px 6px;          /* 内側の余白 */
  border-radius: 4px;        /* 角丸 */
  font-size: 0.9em;          /* 文字サイズ */
}


/************************************
** フローボックス
************************************/

.flow-box {
  max-width: 680px;
  margin: 2em auto;
  padding: 28px 32px;
  background: #F3F6FA;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(24, 59, 86, 0.05);
  text-align: center;
}

.flow-item {
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid #D8E3EA;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.6;
}

.flow-arrow {
  padding: 5px 0;
  color: #247F85;
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1;
}
