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

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

.entry-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ==================================================
   Cocoon 背景色
   ================================================== */

/* ページ全体 */
body {
  background-color: #fff7ef !important;
}

/* メインコンテンツ周り */
#container,
#content,
#content-in,
.main,
.main-inner {
  background-color: #fff7ef !important;
}

/* 記事エリア */
.entry-content,
.article,
.single .article,
.page .article {
  background-color: #fff7ef !important;
}

/* サイドバー */
#sidebar,
.sidebar,
.sidebar-content {
  background-color: #ffffff !important;
}

/*==============================================
 Header
================================================*/
/* ヘッダー下の線を消す */

/*==============================================
 Content Page Header
================================================*/
.content-header {
  border-bottom: 1px solid #eee;
  background: #fff;
}

.content-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 20px;

  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
}

.content-header .logo-wrap img {
  width: 180px;
  height: auto;
}

.page-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #036eb8;
  margin: 0;
  line-height: 1.2;
}

#header-container {
  display: none;
}

/* ===== モバイル ===== */
@media (max-width: 768px) {
  .content-header-inner {
    padding: 20px 16px;
    gap: 16px;
  }

  .content-header .logo-wrap img {
    width: 140px;
  }

  .page-title {
    font-size: 30px;
    line-height: 1.3;
  }
}

/*==============================================
2. Footer
================================================*/
.footer-fixed {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 9999;
  pointer-events: none;
}

/* ===== 2.1 Footer menu ===== */
.footer-nav {
  pointer-events: auto;
  width: 90vw;
  max-width: 480px;
  height: 44px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 16px;
  background: #036eb8;
  border-radius: 999px;
  box-sizing: border-box;
}

/* メニュー文字 */
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0 4px;           /* ← 文字の呼吸 */
  white-space: nowrap;
}

/* ===== モバイル ===== */
@media (max-width: 768px) {
  .footer-fixed {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .footer-nav {
    width: 90vw;
    padding: 0 14px;
  }

  .footer-nav a {
    font-size: 13px;
  }
}

/* ===== 2.2 Copyright ===== */
.footer-copy {
  margin: 0;
  font-size: 11px;
  line-height: 1;
  color: #777;
  pointer-events: none;
}

/* フッター全体を非表示 */
#footer,
#footer-in,
.footer,
.footer-in {
  display: none !important;
}

#container {
  padding-bottom: 80px !important;
}

/*==============================================
 目次
================================================*/
/* 目次全体 */
#toc {
  border: 1px solid #0b2c4d;
  background-color: #ffffff !important;
}

/* タイトル */
#toc .toc-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* ===== リスト共通 ===== */
#toc .toc-content ol {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* 階層ごとのインデント */
#toc .toc-content > ol {
  padding-left: 0;       /* H2 */
}

#toc .toc-content ol ol {
  padding-left: 16px;    /* H3 */
}

#toc .toc-content ol ol ol {
  padding-left: 28px;    /* H4 */
}

#toc .toc-content ol ol ol ol {
  padding-left: 40px;    /* H5 */
}

/* ===== 各行共通 ===== */
#toc .toc-content li {
  margin: 0;
}

#toc .toc-content li a {
  display: block;
  padding: 6px 10px;
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

/* ===== H2（第1階層） ===== */
#toc .toc-content > ol > li > a {
  background-color: #0b2c4d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

/* ===== H3以降（第2階層以下） ===== */
#toc .toc-content ol ol > li > a {
  background-color: #ffffff;
  color: #111111;
  font-weight: 400;
}

/* ===== ホバー ===== */
#toc .toc-content li a:hover {
  filter: brightness(0.95);
}

/* ===== モバイル微調整 ===== */
@media (max-width: 768px) {
  #toc .toc-content li a {
    font-size: 12.5px;
    padding: 5px 8px;
  }

  #toc .toc-content > ol > li > a {
    font-size: 13px;
  }
}

/* ==================================================
   記事の投稿日・更新日を非表示・その他非表示
   ================================================== */
/* 記事の投稿日・更新日を非表示 */
.entry-date,
.post-date,
.date,
.post-meta-date,
.entry-meta .date {
  display: none !important;
}
/* 記事タイトル直下の掲載日を消す */
.entry-header .entry-date {
  display: none !important;
}
/* 記事一覧の掲載日を消す */
.archive .entry-date,
.home .entry-date {
  display: none !important;
}
/* 更新日を非表示 */
.post-update,
.entry-date.modified {
  display: none !important;
}

/* 記事一覧の集計（PV・コメント・いいね等）を非表示 */
.archive .entry-meta,
.home .entry-meta {
  display: none !important;
}
/* 表示回数（PV）を非表示 */
.post-view-count,
.view-count {
  display: none !important;
}
/* コメント数を非表示 */
.comment-count,
.entry-comments {
  display: none !important;
}
/* いいね・評価系を非表示 */
.like-count,
.rating-box,
.star-rating {
  display: none !important;
}
/* メタアイコンごと消す */
.entry-meta-item {
  display: none !important;
}

/* サイドバーのアーカイブウィジェットを非表示にする */
.sidebar-scroll #block-5 {
    display: none !important;
}

/* 複数ラベルを横並びにするための設定 */
.cat-labels-multiple {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    flex-wrap: wrap; /* 折り返しを許可 */
    gap: 4px;
    z-index: 5;
    width: calc(100% - 10px); /* 親要素（サムネイル）からはみ出さないように制限 */
}

/* ラベル自体の見た目修正 */
.cat-labels-multiple .cat-label {
    position: static !important;
    display: inline-block !important;
    padding: 3px 6px !important;
    font-size: 11px; /* 読みやすく少し調整 */
    line-height: 1.2;
    border-radius: 2px;
    color: #fff;
    
    /* --- 省略（...）を解除する重要設定 --- */
    max-width: none !important;      /* 最大幅制限を解除 */
    overflow: visible !important;   /* はみ出しを許可 */
    text-overflow: clip !important; /* 省略記号を消す */
    white-space: nowrap !important; /* ラベル内での意図しない改行を防ぐ */
    flex-shrink: 0 !important;      /* flex内でラベルが潰されるのを防ぐ */
}

/* 元の単一ラベル用スタイルが干渉して消えるのを防ぐ */
.entry-card .cat-label {
    opacity: 1 !important;
    visibility: visible !important;
}
}

/* ==================================================
   H1 デザイン（タイトル用）
  ================================================== */
/* 記事本文内の自作H1 */
h1.hashtag-title {
  font-size: 26px !important;
  font-weight: bold;
  line-height: 1.4;
}

/* 頭文字だけ */
h1.hashtag-title::first-letter {
  font-size: 50px !important;
  color: #2f94af;
  line-height: 1;
}

/* ==================================================
   H2 デザイン
   ================================================== */
.entry-content h2.wp-block-heading,
.entry-content h2.wp-block-heading * {
  box-sizing: border-box;
}

/* span を完全に無力化 */
.entry-content h2.wp-block-heading > span {
  position: static !important;
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
}

.entry-content h2.wp-block-heading {
  position: relative;
  color: #fff;
  background: #213448;
  line-height: 1.4;
  padding: 0.6em 0.6em 0.6em 2.6em;
  margin: 2.5em 0 1.5em;
}

.entry-content h2.wp-block-heading::before {
  content: "≪";
  position: absolute;
  left: 14px;
  top: 45%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 700;
  color: #FE7F2D;
  pointer-events: none;
}

/* POINT タブ */
.entry-content h2.wp-block-heading::after {
  content: "POINT";
  position: absolute;
  left: 0;
  bottom: 100%;
  background: #FE7F2D;
  color: #fff;
  font-size: 0.7em;
  font-weight: 700;
  padding: 5px 8px 3px;
  border-radius: 5px 5px 0 0;
  line-height: 1;
}

/* ==================================================
   モバイル
   ================================================== */
@media (max-width: 768px) {
  .entry-content h2.wp-block-heading {
    font-size: 18px;
    padding-left: 2.3em;
  }

  .entry-content h2.wp-block-heading::before {
    font-size: 20px;
    left: 10px;
  }
}

/* ==================================================
   H3 デザイン
   ================================================== */
.entry-content h3 {
  position: relative;
  background: #547792;
  padding: 6px 5px 6px 25px;
  font-size: 20px;
  color: #fff;
}

.entry-content h3:before {
  font-family: "Font Awesome 5 Free";
  content: "";
  display: inline-block;
  line-height: 40px;
  position: absolute;
  padding: 0em;
  color: white;
  background: #213448;
  font-weight: 900;
  width: 40px;
  text-align: center;
  height: 40px;
  line-height: 40px;
  left: -1.35em;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  border: solid 3px white; 
  border-radius: 50%;
}

@media (max-width: 768px) {
  .entry-content h3 {
    margin-left: 10px;
    padding-left: 25px;
    font-size: 17px;
  }
  .entry-content h3:before {
    left: -1.35em;
  }
}

/* ==================================================
   H4 デザイン
   ================================================== */
.entry-content h4 {
  position: relative;
  color: #213448;
  text-shadow: 0 0 2px white;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.3em 0 0.3em 1.2em;
  margin: 1.8em 0 1em;
  z-index: 2;
}

  /* 丸背景装飾 */
.entry-content h4::before {
  content: "";
  position: absolute;
  background: #547792;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
  z-index: -1;
}

@media (max-width: 768px) {
  .entry-content h4 {
    font-size: 16px;
    margin-left: 10px;
    padding-left: 25px;

  }
  .entry-content h4::before {
    left: -12px;
  }
}

/* =================================
   リストアイコン装飾
================================= */
.entry-content ul.wp-block-list {
  list-style: none;
  padding-left: 1.6em;
}

.entry-content ul.wp-block-list li {
  position: relative;
  padding-left: 1.4em;
  line-height: 1.6;
}

.entry-content ul.wp-block-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #FBA834;
  font-size: 1em;
  text-shadow:
    0.5px 0 0 #FBA834,
   -0.5px 0 0 #FBA834,
    0 0.5px 0 #FBA834,
    0 -0.5px 0 #FBA834;
}

/* =================================
   マーカーライン
================================= */
.marker-yellow {
  background-color: rgba(255,235,59,0.5); /* 半透明イエロー */
  padding: 0 0.2em;
}

.marker-skyblue {
  background-color: rgba(79,195,247,0.5); /* 半透明スカイブルー */
  padding: 0 0.2em;
}

.marker-orange {
  background-color: rgba(255,152,0,0.5); /* 半透明オレンジ */
  padding: 0 0.2em;
}

/* =================================
   テーブル Flexible Table Block
================================= */
/* ===== Flexible Table 比較表デザイン ===== */
.wp-block-flexible-table-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

/* ヘッダー */
.wp-block-flexible-table-block-table table thead th {
  background-color: #2292b4 !important;
  color: #fff;
  padding: 13px 8px;
  text-align: center !important;
}

/* 通常セル */
.wp-block-flexible-table-block-table table td {
  padding: 12px 8px;
  border: 1px solid #2292b4 !important;
}

/* 1列目だけ左寄せ */
.wp-block-flexible-table-block-table table td:first-child {
  text-align: left;
  font-weight: 600;
}

/* 交互色 */
.wp-block-flexible-table-block-table table tbody tr:nth-child(even) td {
  background: #fafafa;
}

/* =================================
   参考になる外部情報
================================= */
.reference-box {
  background: #f1d9c2;
  border: 2px solid #d3a375;
  border-radius: 16px;
  padding: 20px;
  margin: 32px 0;
}
.reference-box .reference-heading {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 10px 12px !important;
  padding-left: 25px;
  border-left: none !important;   /* ←既存を消す */
  padding-left: 25px !important;     /* ←既存の余白も消す */
}
.reference-box .reference-heading::before {
  background: #af8052 !important;  /* ←好きな色に変更 */
}
.reference-org {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 14px 0 4px;
  color: #333;
}
.reference-box h5.reference-org {
  font-size: 1.05rem;
  color: #222;
  border: none !important;
  margin: 12px 0 2px !important;
  line-height: 1.4;
}
.reference-box .reference-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #0725a8;
  text-decoration: none;
  margin: 0 0 6px !important;
}
.reference-link:hover {
  text-decoration: underline;
}
.reference-note {
  font-size: 0.85rem;
  color: #333;
  margin-top: 12px;
}

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

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

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