@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. 「こころの絵本」シリーズ
 * ========================================================================== */

.ehon-text { text-align: center; font-size: 17px; line-height: 2.2; letter-spacing: 0.08em; }
.ehon-video-center { width: 100%; max-width: 640px; margin: 20px auto; aspect-ratio: 16 / 9; }
.ehon-tab-wrap .ehon-tab-nav label { padding: 10px 20px; background: #f0f0f0; border-radius: 5px 5px 0 0; cursor: pointer; }
#ehon-tab-text:checked ~ .ehon-tab-nav label[for="ehon-tab-text"] { background: #fff; border-top: 3px solid #8dd08d; }

/* =============================================================================
 * 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: 標準の左線＋細い下線（追加） */
:is(.single-nanacolog, .page-id-6155) .article h4 { 
  background: none !important;
  color: var(--color-text-sub) !important;
  border: none !important;
  border-left: 5px solid var(--color-theme-nanacolog-border) !important; 
  border-bottom: 1px solid var(--color-theme-nanacolog-border) !important; 
  padding: 0.3em 0 0.3em 10px !important; 
}

/* H5: 細い左線＋細い点線の下線（追加） */
:is(.single-nanacolog, .page-id-6155) .article h5 { 
  background: none !important;
  color: var(--color-text-sub) !important;
  border: none !important;
  border-left: 3px solid var(--color-theme-nanacolog-border) !important; 
  border-bottom: 1px dashed var(--color-theme-nanacolog-border) !important; 
  padding: 0.2em 0 0.2em 8px !important; 
}

/* H6: 最も細い左線（H6はシンプルに維持） */
:is(.single-nanacolog, .page-id-6155) .article h6 { 
  background: none !important;
  color: var(--color-text-sub) !important;
  border: none !important;
  border-left: 2px solid var(--color-theme-nanacolog-border) !important; 
  padding-left: 6px !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;
  border-radius: 5px 5px 0 0 !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 {
  box-shadow: 0 0 10px rgba(184, 141, 95, .5) !important;
  color: var(--color-text-sub) !important;
}

/* SNSフォローボタン（茶系の影へ） */
: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;
}

/* 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, .page-id-6155) .entry-categories a,
:is(.single-nanacolog, .page-id-6155) .entry-tags a,
:is(.single-nanacolog, .page-id-6155) .information-box.common-icon-box {
  background-color: var(--color-theme-nanacolog-light-bg) !important;
  border: 1px solid var(--color-theme-nanacolog-border) !important;
  color: var(--color-theme-nanacolog-accent) !important;
}
:is(.single-nanacolog, .page-id-6155) .go-to-top-button {
  background-color: var(--color-theme-nanacolog-accent) !important;
  color: #fff !important;
}

/* ななころぐ検索窓の修正（虫めがね表示） */
.nanacolog-search .search-form {
  position: relative; /* ボタンを内側に配置するため */
}

.nanacolog-search .search-submit {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent !important;
  color: var(--color-theme-nanacolog-accent) !important; /* 虫めがねを茶色に */
  height: 100%;
  width: 40px;
  border: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 枠線の色の固定 */
.nanacolog-search .search-edit {
  padding-right: 40px; /* 虫めがねと文字が重ならないように */
  border: 1px solid var(--color-theme-nanacolog-border) !important;
}