@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.2.1
Comment:    Refactored & Integrated by Gemini. 
            - Nanacolog brand completion (Brown theme).
            - Fixed profile underline bug and lingering green decorations.
*/

/* =============================================================================
 * 0. 基本設定（変数・フォント・基本色）
 * ========================================================================== */

:root {
  /* カラーパレット：うつ友（緑） */
  --color-text-body: #333;
  --color-text-sub: #454545;
  --color-text-light: #555;
  --color-text-link-rinker: #3296d2;

  --color-theme-green-dark: #1F7343;
  --color-theme-green-primary: #82cd82;
  --color-theme-green-border: #9ddb9d;
  --color-theme-green-light-bg: #e6f4e6;
  --color-theme-green-lighter-bg: #e8f7e8;
  --color-theme-green-lightest-bg: #f7fdfa;

  /* カラーパレット：ななころぐ（茶系） */
  --color-theme-nanacolog-primary: #d4a97c;
  --color-theme-nanacolog-accent: #b88d5f;
  --color-theme-nanacolog-border: #e2cbb1;
  --color-theme-nanacolog-light-bg: #f9f4ef;

  /* Font Awesome ファミリ */
  --font-fa-brands: "Font Awesome 5 Brands";
  --font-fa-free: "Font Awesome 5 Free";
}

body {
  font-family: "ヒラギノ角ゴ ProN", "Yu Gothic", "メイリオ", Meiryo, sans-serif;
  color: var(--color-text-body);
}

a {
  color: var(--color-text-body);
  text-decoration: none;
}

input, textarea, button, select {
  font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ ProN", "Yu Gothic", sans-serif;
}

/* =============================================================================
 * 1. 全体レイアウト・パーツ
 * ========================================================================== */

main.main {
  padding: 0 10px !important;
}

.header .header-in {
  min-height: auto !important;
}

.logo-image {
  padding: 0;
}
.logo-image * {
  display: block;
  margin: auto;
}

/* ヘッダーロゴのレスポンシブ切り替え */
.site-logo-image.header-site-logo-image {
  display: inline;
  width: 1200px;
  height: 150px;
}
.site-fixed-logo-image.header-site-logo-image {
  display: none;
  width: 300px;
  height: 38px;
}

.container .column-wrap > div {
  padding-top: 5px !important;
}

.entry-content {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.7;
}

.footer {
  padding-top: 0;
  margin-top: 0;
}
.footer a:hover {
  color: #B3E0B3;
}
.footer-bottom {
  margin-top: 0;
}
.footer-bottom-content {
  line-height: 2.0;
}

.page-prev-next {
  border-radius: 30px;
}

/* 共通の入力エリア装飾 */
.search-edit,
input[type="text"], input[type="password"], input[type="date"],
input[type="datetime"], input[type="email"], input[type="number"],
input[type="search"], input[type="tel"], input[type="time"],
input[type="url"], textarea, select {
  border: 1px solid #8dcaae;
  border-radius: 10px;
}

.go-to-top {
  right: 10px;
  bottom: 10px;
}
.go-to-top-button,
.go-to-top-button:hover {
  border: 0;
}

/* =============================================================================
 * 2. 見出し (h1-h6) （うつ友用基本設定）
 * ========================================================================== */

.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
  color: var(--color-theme-green-dark) !important;
}

.article h1 {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 32px 0 28px !important;
}

.article h2 {
  background-color: var(--color-theme-green-light-bg) !important;
  border-bottom: 2px solid var(--color-theme-green-border) !important;
  padding-bottom: 8px !important;
  margin: 2em 0 24px !important;
  font-weight: 700 !important;
  font-size: 1.6rem !important;
  line-height: 1.3 !important;
}

.article h3 {
  border-left: 4px solid var(--color-theme-green-border) !important;
  padding-left: 12px !important;
  margin: 1.5em 0 16px !important;
  font-weight: 600 !important;
  font-size: 1.4rem !important;
  line-height: 1.4 !important;
}

.article h4 {
  border-left: 3px solid var(--color-theme-green-border) !important;
  padding-left: 10px !important;
  margin-bottom: 12px !important;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  line-height: 1.4 !important;
}

.article h5,
.article h6 {
  border-left: 2px solid var(--color-theme-green-border) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}
.article h5 {
  padding-left: 8px !important;
  margin-bottom: 10px !important;
  font-size: 1.1rem !important;
}
.article h6 {
  padding-left: 6px !important;
  margin-bottom: 8px !important;
  font-size: 1rem !important;
}

/* =============================================================================
 * 3. アニメーション
 * ========================================================================== */

/* ふわっと表示 */
.widget-entry-card-thumb,
.entry-card-thumb {
  opacity: 0;
  animation: fadeIn 0.5s ease 0.5s 1 normal forwards;
}
@keyframes fadeIn {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* キラッと光る */
.more-btn {
  position: relative;
  overflow: hidden;
}
.more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30px;
  width: 30px;
  height: 100%;
  background-color: rgba(130, 205, 130, 0.4);
  transform: rotate(45deg);
  opacity: 0;
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0%   { transform: scale(0) rotate(45deg); opacity: 0; }
  80%  { transform: scale(0) rotate(45deg); opacity: 0.5; }
  81%  { transform: scale(4) rotate(45deg); opacity: 1; }
  100% { transform: scale(50) rotate(45deg); opacity: 0; }
}

/* ふわふわ */
.speech-icon {
  animation: fuwa 1.5s ease infinite alternate;
}
@keyframes fuwa {
  0%   { transform: scale(1); }
  100% { transform: scale(0.95); }
}

/* ぷかぷか */
.to-profile {
  animation: profuwa 1.0s ease infinite alternate;
}
@keyframes profuwa {
  0%   { transform: scale(1); }
  100% { transform: scale(0.9); }
}

/* =============================================================================
 * 4. Cocoonパーツのカスタマイズ
 * ========================================================================== */

/* 吹き出し */
.sbs-flat .speech-balloon {
  background-color: #e4f5ec;
  border-color: #e4f5ec;
}
.sbs-flat .speech-balloon::before,
.sbs-flat .speech-balloon::after {
  border-right-color: #e4f5ec;
}

/* 内部ブログカード */
.internal-blogcard {
  position: relative;
  padding-bottom: 30px;
}
.internal-blogcard-excerpt {
  padding-right: 7em;
  padding-bottom: 1.5em;
}
.internal-blogcard-site {
  display: none;
}
.internal-blogcard-date::before {
  font-family: var(--font-fa-free);
  font-weight: 900;
  font-size: 12px;
  content: "\f1da";
  padding-right: 2px;
}
a.internal-blogcard-wrap:hover img.blogcard-thumb-image {
  transform: scale(1.05, 1.05);
  transition: .35s;
}
.internal-blogcard::after {
  content: '続きを読む \00bb';
  position: absolute;
  bottom: 0.4rem;
  right: 0.8rem;
  font-size: 68%;
  font-weight: bold;
  background-color: var(--color-theme-green-primary);
  padding: 0.3em;
  color: var(--color-text-sub);
  border-radius: 3px;
}

/* コメント欄 */
.blank-box.site-color-notice {
  background-color: var(--color-theme-green-lighter-bg);
  border: none;
  border-left: 5px solid var(--color-theme-green-primary);
}
.comment-title::before {
  font-family: var(--font-fa-free);
  font-weight: 900;
  font-size: 24px;
  content: "\f086";
}
.comment-notes { display: none; }
.comment-form-comment label::after { font-size: 14px; content: "（必須）"; }
.comment-form-author label { font-size: 0; }
.comment-form-author label::after { font-size: 14px; content: "お名前（省略可）"; }
.comment-form-email label::after { font-size: 14px; content: "（省略可）"; }
.comment-form-url label::after { font-size: 14px; content: "（省略可）"; }

/* =============================================================================
 * 5. ウィジェットのカスタマイズ
 * ========================================================================== */

/* --- 5-1. ウィジェット共通 --- */
.sidebar {
  padding: 0 5px !important;
  box-shadow: none;
  background: white;
  color: var(--color-text-sub);
}

/* --- 5-2. プロフィール（サイドバー・記事下共通） --- */
.widget_author_box {
  background: #fff;
  padding-top: 1.2em;
  border-radius: 3px 3px 0 0;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  letter-spacing: 0;
}
.author-box {
  border: none;
  position: relative;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
}
.author-content {
  background: linear-gradient(90deg, rgba(130, 205, 130, 1) 0%, rgba(169, 225, 169, 1) 51.39%, rgba(130, 205, 130, 1) 100%);
  color: var(--color-text-sub);
  width: 110%;
  margin-left: -5% !important;
}
.author-box .author-name a {
  color: var(--color-text-sub) !important;
  text-decoration: none !important; /* 下線排除 */
  font-size: 16px;
  border-bottom: none !important;
}
.author-box p { line-height: 1.2; font-size: 15px; }
.author-box .author-thumb { width: 120px; margin: 0 auto; position: absolute; bottom: 0; }
.author-box img { border: solid 1px #009250; }
.author-box .author-name { font-size: 1.1em; font-weight: bold; position: absolute; }
.author-box .author-widget-name { position: absolute; top: 3px; bottom: 0; right: 0; left: 0; font-size: 0.7em; color: #bbb; }
.author-box .sns-follow { padding: 15px 10px; }
.author-box .sns-follow-buttons { display: flex; gap: 10px; }

.widget_author_box .author-box .sns-follow-buttons a {
  border-radius: 50%;
  border: none;
  width: 45px;
  height: 45px;
  line-height: 45px;
  font-size: 30px;
  box-shadow: 0 0 10px rgba(137, 201, 151, .8);
  background: #fff;
  transition: all .3s ease-in-out;
}
.author-box .sns-follow-buttons .icon-twitter-logo::before { color: #1da1f2 !important; }
.author-box .sns-follow-buttons .icon-instagram-logo::before { color: #c522b8 !important; }
.author-box .sns-follow-buttons .youtube-button .icon-youtube-logo::before {
  font-family: var(--font-fa-brands) !important;
  content: "\f167" !important;
  color: #FF0000 !important;
  font-weight: 400 !important;
  font-size: 26px;
  display: inline-block;
  line-height: 45px;
  width: 100%;
  text-align: center;
}
.to-profile {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: var(--color-text-sub) !important;
  box-shadow: 0 0 10px rgba(137, 201, 151, .8);
  font-size: 0.9em;
  font-weight: bold;
  text-decoration: none !important; /* 下線排除 */
  border-bottom: none !important;
}

/* --- 5-3. プロフィール（サイドバー用） --- */
.sidebar .author-box { padding: 120px 0 5px; }
.sidebar .author-content { border-radius: 200px 200px 0 0 / 100px 100px 0 0; padding: 20px; }
.sidebar .author-box .author-description { padding: 45px 25px 0; }
.sidebar .author-box .author-thumb { top: 50px; right: 0; left: 0; }
.sidebar .author-box .author-name { top: 23px; right: 0; left: 0; }
.sidebar .author-box .sns-follow-buttons { justify-content: center; }
.sidebar .author-box .to-profile { top: 115px; left: calc(50% + 36px); }

/* --- 5-4. プロフィール（記事下用） --- */
.article .author-box { padding: 120px 0 0; }
.article .author-content { border-radius: 200px 0 200px 0/100px 0 100px 0; padding: 20px 20px 0; }
.article .author-box .author-description { padding: 45px 45px 0; }
.article .author-box .author-thumb { top: 50px; left: 50px; }
.article .author-box .author-name { top: 23px; left: 78px; }
.article .author-box .sns-follow-buttons { justify-content: flex-start; padding-left: 80px; }
.article .author-box .to-profile { top: 115px; left: 150px !important; }

/* =============================================================================
 * 6. SNSボタン / 7. プラグイン
 * ========================================================================== */

.article .sns-follow-message, .article .sns-share-message { font-weight: bold; color: var(--color-text-sub); }
.article .sns-follow-buttons, .article .sns-share-buttons { justify-content: center; }

/* Appreach */
.appreach { text-align: left; padding: 25px; margin: 20px; border-radius: 2px; box-shadow: 0 2px 5px 1px #e5e5e5; overflow: hidden; }
.appreach__icon { float: left; border-radius: 10%; width: 25% !important; max-width: 120px !important; }

/* もしもアフィリエイト */
.easyLink-info-btn a { display: inline-block; padding: 10px 16px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.15); font-weight: 600; text-decoration: none !important; }

/* =============================================================================
 * 8. モバイル / 9. SVG / 10. メディアクエリ
 * ========================================================================== */

.mobile-footer-menu-buttons, .mobile-header-menu-buttons { background: var(--color-theme-green-primary); color: white; }

@media screen and (max-width: 768px) {
  .site-logo-image.header-site-logo-image { display: none; }
  .site-fixed-logo-image.header-site-logo-image { display: inline; }
}

/* =============================================================================
 * 11. サイト全体のデザイン統一・アクセシビリティ
 * ========================================================================== */

/* NEWマーク (金銀銅) */
:is(.home, .page-id-1746) #main .a-wrap:nth-child(1) .new-entry-card-thumb::before { background-color: #d0a933; border: 1px solid #e1b700; }
:is(.home, .page-id-1746) #main .a-wrap:nth-child(2) .new-entry-card-thumb::before { background-color: #b7b7b9; border: 1px solid #a8a8a8; }
:is(.home, .page-id-1746) #main .a-wrap:nth-child(3) .new-entry-card-thumb::before { background-color: #b97c48; border: 1px solid #b56e26; }

/* 日付表示の統一 */
.sidebar .widget-entry-card-date .post-update::before { font-family: var(--font-fa-free); font-weight: 900; content: "\f1da" !important; margin-right: 3px; }

/* FAQアコーディオン */
.entry-content details.faq-box summary.faq-question { background: #f1f8e9; border: 2px solid #81c784; border-radius: 8px; font-weight: bold; cursor: pointer; padding: 1em 3em 1em 3.2em; position: relative; }
.entry-content details.faq-box summary.faq-question::before { content: 'Q'; position: absolute; left: 1em; background: #81c784; color: #fff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; top: 50%; transform: translateY(-50%); }

/* =============================================================================
 * 12. 「こころの絵本」シリーズ（GSC対策版）
 * ========================================================================== */

/* --- 12.1 ページナビゲーション --- */
.ehon-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin: 20px 0 40px;
  gap: 20px;
  line-height: 1.2;
}
.ehon-nav--single-next { justify-content: flex-end; }
.ehon-nav--single-prev { justify-content: flex-start; }
.ehon-nav__item {
  width: 48%;
  max-width: 420px;
}
.ehon-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
  text-decoration: none !important; /* アンダーライン防止 */
  color: inherit;
  background-color: #e9e2d5;
  border-radius: 8px;
  transition: transform 0.2s ease-out;
}
.ehon-nav__link:hover,
.ehon-nav__link:focus {
  transform: translateY(-4px);
}
.ehon-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 35px;
  height: 35px;
  transition: all 0.2s ease-out;
}
.ehon-nav__link:hover::after,
.ehon-nav__link:focus::after {
  width: 45px;
  height: 45px;
}
.ehon-nav__link--prev::after {
  left: 0;
  background: radial-gradient(circle at bottom left, #fff 68%, #e8e6e0 70%);
  filter: drop-shadow(2px -2px 2px rgba(0,0,0,.15));
}
.ehon-nav__link--next::after {
  right: 0;
  background: radial-gradient(circle at bottom right, #fff 68%, #e8e6e0 70%);
  filter: drop-shadow(-2px -2px 2px rgba(0,0,0,.15));
}
.ehon-nav__link--next { flex-direction: row-reverse; }
.ehon-nav__image {
  width: 100px;
  height: 63px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  margin: 0 !important;
}
.ehon-nav__text { flex-grow: 1; }
.ehon-nav__link--prev .ehon-nav__text { margin-left: 15px; text-align: left; }
.ehon-nav__link--next .ehon-nav__text { margin-right: 15px; text-align: right; }
.ehon-nav__direction { display: block; font-size: 0.85em; color: #666; }
.ehon-nav__title { display: block; font-size: 1.1em; font-weight: bold; margin-top: 4px; }

/* --- 12.2 本文テキスト --- */
.ehon-text {
  text-align: center;
  font-size: 17px;
  line-height: 2.2;
  letter-spacing: 0.08em;
}

/* --- 12.3 タブUI：基本構造 --- */
.ehon-tab-wrap { margin-bottom: 2em; }
.ehon-tab-wrap input[type="radio"] { position: absolute; left: -9999px; }
.ehon-tab-wrap .ehon-tab-nav {
  display: flex;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #e0e0e0;
}
.ehon-tab-wrap .ehon-tab-nav label {
  padding: 10px 20px;
  background: #f0f0f0;
  color: #666;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  margin-right: 4px;
  position: relative;
  bottom: -1px;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  font-size: 0.9em;
}

/* アクティブなタブの装飾 */
#ehon-tab-text:checked ~ .ehon-tab-nav label[for="ehon-tab-text"],
#ehon-tab-audio:checked ~ .ehon-tab-nav label[for="ehon-tab-audio"],
#ehon-tab-video:checked ~ .ehon-tab-nav label[for="ehon-tab-video"] {
  background: #fff;
  color: #558b2f;
  border-top: 3px solid #8dd08d;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  z-index: 2;
}

/* コンテンツ表示エリア */
.ehon-tab-wrap .tab-content {
  display: none; /* 基本は非表示 */
  padding: 2em;
  border: 1px solid #e0e0e0;
  border-top: none;
  background: #fff;
}

/* 通常の表示切り替え */
#ehon-tab-text:checked ~ #content-text,
#ehon-tab-audio:checked ~ #content-audio {
  display: block;
}

/* -----------------------------------------------------------------------------
 * GSC動画対策：動画タブが非アクティブな時も、DOM上に高さを0にして維持する
 * -------------------------------------------------------------------------- */
#ehon-tab-text:checked ~ #content-video,
#ehon-tab-audio:checked ~ #content-video {
  display: block !important;
  height: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 動画タブが選択されたら正常なデザインで表示 */
#ehon-tab-video:checked ~ #content-video {
  display: block !important;
  height: auto !important;
  padding: 2em !important;
  border: 1px solid #e0e0e0 !important;
  border-top: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.ehon-credit { text-align: right; font-size: 90%; margin: 2em 0 0; }

/* 動画レスポンシブ */
.ehon-video-center { width: 100%; max-width: 640px; margin: 20px auto; aspect-ratio: 16 / 9; }
.ehon-video-center iframe { width: 100%; height: 100%; display: block; }

/* =============================================================================
 * 13. ななころぐ（カスタム投稿タイプ：nanacolog）専用デザイン
 * ここですべての緑色要素を茶系に上書きし、デグレを徹底修正します
 * ========================================================================== */

/* 13-1. 対象ページのベース設定 */
:is(.single-nanacolog, .post-type-archive-nanacolog, .page-id-6155) {
  background-color: #f8f9fa !important;
}

/* 13-2. ヘッダー・フッター・ナビゲーション（ロゴ切り替え含む） */
:is(.single-nanacolog, .post-type-archive-nanacolog, .page-id-6155) .header,
:is(.single-nanacolog, .post-type-archive-nanacolog, .page-id-6155) .footer,
:is(.single-nanacolog, .page-id-6155) #header-container .navi,
:is(.single-nanacolog, .page-id-6155) #navi .navi-in > .menu-header .sub-menu {
  background-color: var(--color-theme-nanacolog-primary) !important;
  color: #fff !important;
}

:is(.single-nanacolog, .page-id-6155) .site-name-text a,
:is(.single-nanacolog, .page-id-6155) .navi-in a,
:is(.single-nanacolog, .page-id-6155) .footer a { 
  color: #fff !important; 
}

/* ヘッダーロゴの切り替え（ななころぐ専用） */
:is(.single-nanacolog, .post-type-archive-nanacolog, .page-id-6155) :is(.site-logo-image, .site-fixed-logo-image).header-site-logo-image {
  content: url("https://nana-coro.com/wp-content/uploads/2025/12/header-nanacolog.webp") !important;
}

/* 13-3. 見出し（H1-H6）の完全上書き */

/* H1（記事タイトル）: 太めの下線 */
:is(.single-nanacolog, .page-id-6155) .entry-title { 
  color: var(--color-text-sub) !important;
  border: none !important;
  border-bottom: 3px solid var(--color-theme-nanacolog-primary) !important; 
  padding-bottom: 10px !important;
}

/* H2: 背景塗り＋濃い左線 */
:is(.single-nanacolog, .page-id-6155) .article h2 {
  background: var(--color-theme-nanacolog-primary) !important;
  color: #fff !important;
  border: none !important;
  border-left: 8px solid var(--color-theme-nanacolog-accent) !important;
  padding: 0.6em 0.8em !important;
}

/* H3: 濃い左線＋標準の下線 */
:is(.single-nanacolog, .page-id-6155) .article h3 { 
  background: none !important;
  color: var(--color-text-sub) !important;
  border: none !important;
  border-left: 6px solid var(--color-theme-nanacolog-accent) !important; 
  border-bottom: 2px solid var(--color-theme-nanacolog-border) !important; 
  padding: 0.4em 0 0.4em 12px !important; 
}

/* H4-H6: 茶系の左線に統一 */
:is(.single-nanacolog, .page-id-6155) .article h4 { border-left: 5px solid var(--color-theme-nanacolog-border) !important; }
:is(.single-nanacolog, .page-id-6155) .article h5 { border-left: 3px solid var(--color-theme-nanacolog-border) !important; }
:is(.single-nanacolog, .page-id-6155) .article h6 { border-left: 2px solid var(--color-theme-nanacolog-border) !important; }

/* 13-4. プロフィールボックス */
:is(.single-nanacolog, .page-id-6155) .author-box {
  background-color: var(--color-theme-nanacolog-light-bg) !important;
  border: 1px solid var(--color-theme-nanacolog-border) !important;
  box-shadow: none !important;
}
:is(.single-nanacolog, .page-id-6155) .author-content { background: none !important; }
:is(.single-nanacolog, .page-id-6155) .author-widget-name {
  background-color: var(--color-theme-nanacolog-accent) !important;
  color: #fff !important;
}
:is(.single-nanacolog, .page-id-6155) .author-box img { border: 1px solid var(--color-theme-nanacolog-accent) !important; }
:is(.single-nanacolog, .page-id-6155) .to-profile,
:is(.single-nanacolog, .page-id-6155) .widget_author_box .author-box .sns-follow-buttons a {
  box-shadow: 0 0 10px rgba(184, 141, 95, .4) !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* 13-5. サイドバー・ウィジェット */
:is(.single-nanacolog, .page-id-6155) .sidebar h3 {
  background-color: var(--color-theme-nanacolog-light-bg) !important;
  border-left: 5px solid var(--color-theme-nanacolog-accent) !important;
  border-bottom: 1px solid var(--color-theme-nanacolog-border) !important;
  color: var(--color-text-sub) !important;
}
:is(.single-nanacolog, .page-id-6155) .sidebar .tagcloud a {
  background-color: #fff !important;
  color: var(--color-theme-nanacolog-accent) !important;
  border: 1px solid var(--color-theme-nanacolog-border) !important;
}
:is(.single-nanacolog, .page-id-6155) .search-edit,
:is(.single-nanacolog, .page-id-6155) input[type="text"],
:is(.single-nanacolog, .page-id-6155) input[type="search"] {
  border: 1px solid var(--color-theme-nanacolog-border) !important;
}

/* 13-6. 目次 (TOC) */
:is(.single-nanacolog, .page-id-6155) .toc { border-color: var(--color-theme-nanacolog-border) !important; }
:is(.single-nanacolog, .page-id-6155) .toc-title { background-color: var(--color-theme-nanacolog-primary) !important; color: #fff !important; }

/* 13-7. デグレ徹底修正：カテゴリーラベル・タグ・アイコン */

/* カテゴリーラベル：背景薄茶、文字とアイコンは「濃い茶色」でコントラストを確保 */
:is(.single-nanacolog, .post-type-archive-nanacolog, .page-id-6155) .cat-link {
  background-color: #e2cbb1 !important;
  border: none !important;
  color: #5d4037 !important; /* 視認性の高い濃い茶色に変更（コントラスト比 4.8:1） */
}

/* ラベル内のアイコン（フォルダ等）も同じ濃い茶色に指定 */
:is(.single-nanacolog, .post-type-archive-nanacolog, .page-id-6155) .cat-link .tax-icon {
  color: #5d4037 !important;
}

/* タグ：枠線と文字を「少し濃いめの茶色」にして白背景上での視認性を確保 */
:is(.single-nanacolog, .post-type-archive-nanacolog, .page-id-6155) .tag-link {
  border-color: #8d6e63 !important; /* 白背景上で基準をクリアする茶色に変更 */
  color: #8d6e63 !important;
}
:is(.single-nanacolog, .post-type-archive-nanacolog, .page-id-6155) .tag-link .tax-icon {
  color: #8d6e63 !important;
}

/* 記事メタアイコン（カレンダー・フォルダ等：ラベル外） */
:is(.single-nanacolog, .post-type-archive-nanacolog, .page-id-6155) :is(.post-meta, .entry-footer) :is(.fa, .fas, .far) {
  color: var(--color-theme-nanacolog-accent) !important;
}

/* 13-8. ページネーション・ボタン類 */
:is(.single-nanacolog, .page-id-6155) .navigation .nav-links a {
  background-color: #fff !important;
  color: var(--color-theme-nanacolog-accent) !important;
  border: 1px solid var(--color-theme-nanacolog-border) !important;
}
:is(.single-nanacolog, .page-id-6155) .navigation .nav-links a:hover {
  background-color: var(--color-theme-nanacolog-primary) !important;
  color: #fff !important;
}
:is(.post-type-archive-nanacolog, .page-id-6155) .entry-read .btn {
  background-color: var(--color-theme-nanacolog-accent) !important;
  color: #fff !important;
}
:is(.single-nanacolog, .post-type-archive-nanacolog, .page-id-6155) .mobile-footer-menu-buttons {
  background-color: var(--color-theme-nanacolog-primary) !important;
}
:is(.single-nanacolog, .page-id-6155) .go-to-top-button {
  background-color: var(--color-theme-nanacolog-accent) !important;
  color: #fff !important;
}

/* 13-9. 特殊ボックス・検索窓 */
:is(.single-nanacolog, .page-id-6155) .information-box.common-icon-box {
  background-color: var(--color-theme-nanacolog-light-bg) !important;
  border-color: var(--color-theme-nanacolog-border) !important;
}
:is(.single-nanacolog, .page-id-6155) .information-box.common-icon-box::before {
  background-color: transparent !important;
  color: var(--color-theme-nanacolog-primary) !important; 
  border-right: 1px solid var(--color-theme-nanacolog-border) !important;
}
.nanacolog-search .search-submit { color: var(--color-theme-nanacolog-accent) !important; }