@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. サイト全体のデザイン統一・アクセシビリティ
 * ========================================================================== */

/* strong (重要性・深刻・結論): 太字 */
.article strong {
  font-weight: bold;
}

/* em (アクセント・文脈上のニュアンス): 緑色の点線の下線で強調 */
.article em {
  font-style: normal; /* 日本語での視認性向上のため斜体解除 */
  border-bottom: 2px dotted var(--color-theme-green-border);
  padding-bottom: 1px;
}

/* 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）専用デザイン
 *     範囲: アーカイブ、記事、固定ページ、ウィジェット、ショートコード
 *     方針: 緑色要素を排除し茶系(Primary)に統一、視認性とカード大型化
 * ========================================================================== */

/* -------------------------------------------
 * 13-1. ベース設定・全体配色（緑排除）
 * ------------------------------------------- */

/* 本文の強制左寄せ */
.nanacolog-view .article .entry-content,
.nanacolog-view .article .entry-content * {
  text-align: left !important;
}

/* ヘッダー・フッター・ナビゲーションの配色（茶系統一） */
.nanacolog-view :is(#header, #header-container, .mobile-header-menu-buttons, .footer, .navi, .navi-in, .mobile-footer-menu-buttons) {
  background-color: var(--color-theme-nanacolog-primary) !important;
  color: #fff !important;
}

/* リンクテキストの白統一 */
.nanacolog-view :is(.site-name-text a, .navi-in a, .footer a) { 
  color: #fff !important; 
}


/* -------------------------------------------
 * 13-2. タイポグラフィ（見出し・本文・目次）
 * ------------------------------------------- */

/* ▼ 見出し（H1-H6）完全リセット＆再定義 */
.nanacolog-view .article :is(h1, h2, h3, h4, h5, h6) {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--color-text-sub) !important;
}

/* 各見出しのスタイル */
.nanacolog-view .article h1 {
  margin: 32px 0 28px !important;
  border-bottom: 3px solid var(--color-theme-nanacolog-primary) !important;
}
.nanacolog-view .article h2 {
  margin: 2em 0 24px !important;
  padding: 0.6em 0.8em !important;
  background-color: var(--color-theme-nanacolog-primary) !important;
  border-left: 8px solid var(--color-theme-nanacolog-accent) !important;
  color: #fff !important;
}
.nanacolog-view .article h3 {
  margin: 1.5em 0 16px !important;
  padding: 0.4em 0 0.4em 12px !important;
  border-left: 6px solid var(--color-theme-nanacolog-accent) !important;
  border-bottom: 2px solid var(--color-theme-nanacolog-border) !important;
}
.nanacolog-view .article h4 {
  margin-bottom: 12px !important;
  padding-left: 10px !important;
  border-left: 5px solid var(--color-theme-nanacolog-border) !important;
  border-bottom: 1px solid var(--color-theme-nanacolog-border) !important;
}
.nanacolog-view .article h5 {
  padding-left: 8px !important;
  border-left: 3px solid var(--color-theme-nanacolog-border) !important;
  border-bottom: 1px solid var(--color-theme-nanacolog-border) !important;
}
.nanacolog-view .article h6 {
  padding-left: 6px !important;
  border-left: 2px solid var(--color-theme-nanacolog-border) !important;
  border-bottom: 1px solid var(--color-theme-nanacolog-border) !important;
}

/* ▼ 本文リンク・強調 */
.nanacolog-view .entry-content a:not(.btn):not(.easyLink-link) {
  color: #a67c52 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.nanacolog-view .article strong {
  font-weight: bold;
}
.nanacolog-view .article em {
  font-style: normal;
  padding-bottom: 1px;
  border-bottom: 2px dotted var(--color-theme-nanacolog-border);
}

/* ▼ 目次（TOC） */
.nanacolog-view .toc {
  border: 1px solid var(--color-theme-nanacolog-border) !important;
  background-color: var(--color-theme-nanacolog-light-bg) !important;
}
.nanacolog-view .toc-title {
  background-color: var(--color-theme-nanacolog-primary) !important;
  color: #fff !important;
}
.nanacolog-view .toc-content a {
  text-decoration: none !important;
  color: var(--color-text-sub) !important;
}
.nanacolog-view .toc-content .toc-number {
  color: var(--color-theme-nanacolog-accent) !important;
}


/* -------------------------------------------
 * 13-3. UIコンポーネント（サイドバー・検索・ボタン）
 * ------------------------------------------- */

/* サイドバー見出し */
.nanacolog-view .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;
}

/* タグクラウド・検索窓 */
.nanacolog-view .sidebar .tagcloud a {
  background-color: #fff !important;
  border: 1px solid var(--color-theme-nanacolog-border) !important;
  color: var(--color-theme-nanacolog-accent) !important;
}
.nanacolog-view .search-edit,
.nanacolog-view input[type="text"],
.nanacolog-view input[type="search"] {
  border: 1px solid var(--color-theme-nanacolog-border) !important;
}
.nanacolog-search .search-submit {
  color: var(--color-theme-nanacolog-accent) !important;
}

/* ナビゲーション・ボタン */
.nanacolog-view .navigation .nav-links a {
  background-color: #fff !important;
  border: 1px solid var(--color-theme-nanacolog-border) !important;
  color: var(--color-theme-nanacolog-accent) !important;
}
.nanacolog-view .navigation .nav-links a:hover {
  background-color: var(--color-theme-nanacolog-primary) !important;
  color: #fff !important;
}
.nanacolog-view .pagination .current {
  background-color: var(--color-theme-nanacolog-primary) !important;
  border-color: var(--color-theme-nanacolog-primary) !important;
}
.nanacolog-view .entry-read .btn,
.nanacolog-view .go-to-top-button {
  background-color: var(--color-theme-nanacolog-accent) !important;
  color: #fff !important;
}

/* 特殊ボックス（Information Box） */
.nanacolog-view .information-box.common-icon-box {
  background-color: var(--color-theme-nanacolog-light-bg) !important;
  border-color: var(--color-theme-nanacolog-border) !important;
}
.nanacolog-view .information-box.common-icon-box::before {
  background-color: transparent !important;
  border-right: 1px solid var(--color-theme-nanacolog-border) !important;
  color: var(--color-theme-nanacolog-primary) !important; 
}


/* -------------------------------------------
 * 13-4. メタ情報・アイコン・タグ（配色調整）
 * ------------------------------------------- */

/* カテゴリ・タグリンク */
.nanacolog-view .cat-link {
  background-color: #e2cbb1 !important;
  border: none !important;
  color: #5d4037 !important;
}
.nanacolog-view .cat-link .tax-icon { color: #5d4037 !important; }

.nanacolog-view .tag-link {
  border-color: #8d6e63 !important;
  color: #8d6e63 !important;
}
.nanacolog-view .tag-link .tax-icon { color: #8d6e63 !important; }

/* アイコン色（FontAwesome） */
.nanacolog-view :is(.post-meta, .entry-footer) :is(.fa, .fas, .far),
.nanacolog-view .fa-folder,
.nanacolog-view .fa-tags,
.nanacolog-view .fa-hashtag,
.nanacolog-view .breadcrumb .fa-home,
.nanacolog-view .breadcrumb .fa-folder {
  color: var(--color-theme-nanacolog-accent) !important;
}
.nanacolog-view .search-result-not-found .fa-search {
  color: var(--color-theme-nanacolog-border) !important;
}

/* カード上のカテゴリラベル */
.nanacolog-view .cat-label,
.nanacolog-view .entry-card-category-label {
  background-color: var(--color-theme-nanacolog-accent) !important;
  border: none !important;
  color: #fff !important;
}


/* -------------------------------------------
 * 13-5. 記事リスト・カード（大型化・リンク分離）
 * ------------------------------------------- */

/* リスト全体のラッパー */
.nanacolog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
}

/* カード外観・ホバー効果 */
.nanacolog-list .nanacolog-card-wrap,
.nanacolog-view .entry-card-wrap {
  margin: 0 !important;
  padding: 0;
  transition: all 0.3s ease-in-out;
}

/* 旧15番: ボーダーと背景の定義 */
.nanacolog-list .nanacolog-card-wrap {
  border-bottom: 1px dotted var(--color-theme-nanacolog-border);
}
.nanacolog-view .list.ecb-entry-border .entry-card-wrap {
  border-color: var(--color-theme-nanacolog-border) !important;
}

/* ホバー時の色変更（旧18番統合） */
.nanacolog-list .nanacolog-card-wrap:hover,
.nanacolog-view .entry-card-wrap:hover {
  background-color: #faf3ea !important; /* ベージュ */
  border-color: var(--color-theme-nanacolog-accent) !important;
}

/* カード本体レイアウト */
.nanacolog-list .entry-card {
  display: flex !important; 
  align-items: flex-start;
  gap: 20px;
  margin: 0 !important;
  padding: 15px 10px !important;
  background: none !important;
  border: none !important;
}

/* サムネイル（大型化） */
.nanacolog-list .entry-card-thumb {
  width: 320px !important;
  max-width: 45%;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.nanacolog-list .entry-card-thumb img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  vertical-align: bottom;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.nanacolog-list .entry-card-thumb a {
  display: block;
  transition: opacity 0.3s;
}
.nanacolog-list .entry-card-thumb a:hover { opacity: 0.8; }

/* カードテキストエリア */
.nanacolog-list .entry-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: auto !important;
  margin: 0 !important;
  padding: 4px 0 0 0 !important;
  float: none !important;
}

/* 記事タイトル */
.nanacolog-list .entry-card-title {
  font-size: 18px !important;
  font-weight: bold !important;
  line-height: 1.4 !important;
  text-align: left !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.nanacolog-list .entry-card-title a {
  color: #5d4037 !important;
  text-decoration: none !important;
}
.nanacolog-list .entry-card-title a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* 日付 */
.nanacolog-list .entry-card-time {
  font-size: 13px !important;
  color: #999;
  display: block;
  margin: 0;
  text-align: left !important;
}
.nanacolog-list .entry-card-time .fas { margin-right: 4px; }

/* スマホ表示調整（カード） */
@media screen and (max-width: 480px) {
  .nanacolog-list .entry-card { gap: 12px; }
  .nanacolog-list .entry-card-thumb { width: 42% !important; max-width: none; }
  .nanacolog-list .entry-card-title { font-size: 15px !important; }
}


/* -------------------------------------------
 * 13-6. 固定ページ・著者プロフィール・装飾
 * ------------------------------------------- */

/* 【追加】サイドバー・ウィジェット用プロフィール（Cocoon標準）の緑色排除 */
.nanacolog-view .author-box {
  background-color: var(--color-theme-nanacolog-light-bg) !important;
  border: 1px solid var(--color-theme-nanacolog-border) !important;
  box-shadow: none !important;
}
.nanacolog-view .author-content {
  background: none !important; /* 緑の背景を消す */
}
.nanacolog-view .author-widget-name {
  background-color: var(--color-theme-nanacolog-accent) !important;
  color: #fff !important;
}
.nanacolog-view .author-box img {
  border: 1px solid var(--color-theme-nanacolog-accent) !important;
}
.nanacolog-view .to-profile,
.nanacolog-view .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;
}

/* 固定ページトップ用：ヘッダーメッセージ */
.nanacolog-header-text {
  text-align: center;
  margin: 30px 0 40px;
  padding: 0 10px;
  font-size: 15px;
  line-height: 2.0;
  color: var(--color-text-sub);
}
.nanacolog-view .article .nanacolog-header-text h2 {
  font-size: 22px !important;
  color: var(--color-theme-nanacolog-accent) !important;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 20px !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

/* カテゴリセクション見出し（アイコン付） */
.nanacolog-view .entry-content h4 {
  font-size: 18px !important;
  color: var(--color-text-sub) !important;
  margin-top: 50px !important;
  margin-bottom: 20px !important;
  padding: 0 0 5px 0 !important;
  border: none !important;
  border-bottom: 2px solid var(--color-theme-nanacolog-border) !important;
  background: none !important;
}
.nanacolog-view .entry-content h4 .fas {
  margin-right: 8px;
  color: var(--color-theme-nanacolog-accent);
}

/* 「カテゴリから探す」エリア */
.nanacolog-view .article .h-center {
  text-align: center;
  font-size: 1.4em !important;
  font-weight: bold !important;
  color: var(--color-theme-nanacolog-accent) !important;
  
  margin-top: 60px !important;
  margin-bottom: 20px !important;
  padding: 1.5em 0 !important;
  
  border: none !important;
  border-top: 1px solid var(--color-theme-nanacolog-border) !important;
  border-bottom: 1px solid var(--color-theme-nanacolog-border) !important;
  background-color: #faf8f5 !important;
}
.nanacolog-cat-desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 50px;
  text-align: center;
}

/* プロフィールBOX（固定ページ手動挿入用） */
.nanacolog-plain-box {
  max-width: 100%;
  margin: 20px auto 30px;
  padding: 25px;
  background-color: var(--color-theme-nanacolog-light-bg);
  border: 1px solid var(--color-theme-nanacolog-border);
  border-radius: 8px;
  box-sizing: border-box;
}

.nanacolog-author-flex {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.nanacolog-author-flex .author-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  object-fit: cover;
  margin: 0;
}

.nanacolog-author-flex .author-text { flex: 1; }
.nanacolog-author-flex .author-text p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
}

@media screen and (max-width: 599px) {
  .nanacolog-author-flex {
    flex-direction: column;
    text-align: center;
  }
}

/* プロフィールボタン・リンク */
.btn-wrap-center {
  text-align: center;
  margin-bottom: 0;
}
.nanacolog-btn {
  display: inline-block !important;
  padding: 12px 40px !important;
  border-radius: 30px !important;
  
  background-color: var(--color-theme-nanacolog-accent) !important;
  color: #fff !important;
  border: none !important;
  
  font-weight: bold;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(184, 141, 95, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nanacolog-btn:hover {
  background-color: var(--color-theme-nanacolog-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(184, 141, 95, 0.4);
}

/* もっと見るリンク（右寄せ） */
.nanacolog-more-link-wrap {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
}
.nanacolog-cat-link {
  display: inline-block;
  font-size: 14px;
  color: var(--color-theme-nanacolog-accent) !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}
.nanacolog-cat-link:hover {
  color: var(--color-theme-nanacolog-primary) !important;
  text-decoration: underline !important;
}


/* -------------------------------------------
 * 13-7. サイト切り替えスイッチ（旧14番）
 * ------------------------------------------- */
.mobile-switch-bar {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 200;
  width: 100%;
  margin: 5px 0;
  padding-right: 15px;
}

.mobile-switch-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
}
.mobile-switch-bar .fas { font-size: 14px; }
.mobile-switch-bar a::after {
  content: '\f054'; /* fa-chevron-right */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 10px;
  opacity: 0.6;
  margin-left: 8px;
}

/* レスポンシブ制御 */
@media screen and (max-width: 1023px) {
  .menu-item.nav-switch-link { display: none !important; }
}
@media screen and (min-width: 1024px) {
  .mobile-switch-bar { display: none !important; }
}

/* ============================================
   サイドバー（新しい記事・人気の記事）の日付修正（Flexbox対応・完結版）
   ============================================ */

/* 1. 日付エリアを強制表示・ベースの文字サイズ設定 */
.sidebar .widget_new_entries .widget-entry-card-date,
.sidebar .widget_popular_entries .widget-entry-card-date {
  display: block !important;
  font-size: 0.9em !important;
}

/* 2. 【重要】Cocoon標準の「0.7em」指定を打ち消し、親のサイズに従わせる */
.sidebar .widget-entry-card-date .post-date,
.sidebar .widget-entry-card-date .post-update {
  font-size: 100% !important;
}

/* 3. 更新日がある記事は、投稿日（要素ごと）を非表示にする */
.sidebar .widget-entry-card-date:has(.post-update) .post-date {
  display: none;
}

/* 4. アイコンの重複（2重表示）を防ぐ */
.sidebar .widget-entry-card-date .post-update::before {
  content: none !important;
}

/* 5. レイアウト調整：日付を下揃え・右寄せ・余白確保 */
.sidebar .widget-entry-card-content {
  display: flex !important;
  flex-direction: column;
  min-height: 68px;
}

.sidebar .widget-entry-card-meta {
  margin-top: auto;          /* 下揃え */
  padding-top: 6px;          /* タイトルとの余白 */
  width: 100%;               /* 幅を確保 */
}

/* 【修正】Flexbox環境で中身を右寄せにする指定 */
.sidebar .widget-entry-card-info {
  justify-content: flex-end !important; /* これで右に寄ります */
  width: 100%;
}

/* ============================================
   サイト全体の日付フォントサイズ統一
   （カテゴリ・タグ・検索結果・記事タイトル下など）
   ============================================ */

/* Cocoon標準の「0.7em」を上書きし、全ページで0.9emに統一 */
.post-date,
.post-update {
  font-size: 0.9em !important;
}