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

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

/* ナビメニューバーを完全非表示（カテゴリはヒーローセクションで表示） */
#navi {
  display: none !important;
}

/* ヒーローセクション */
#hero-section {
  background: linear-gradient(135deg, #007a82 0%, #00BFC5 55%, #7de8eb 100%);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}
#hero-section .hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
#hero-section .hero-sub {
  font-size: 14px;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  opacity: 0.9;
  font-weight: 400;
}
#hero-section .hero-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
#hero-section .hero-desc {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
  opacity: 0.95;
}
#hero-section .hero-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
#hero-section .hero-btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
}
#hero-section .hero-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

/************************************
** レスポンシブ
************************************/
@media screen and (max-width: 834px){
  #hero-section {
    padding: 40px 16px;
  }
  #hero-section .hero-title {
    font-size: 26px;
  }
}
@media screen and (max-width: 480px){
  #hero-section .hero-title {
    font-size: 22px;
  }
  #hero-section .hero-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}
/* ヒーローセクション カテゴリカード */
#hero-section .hero-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
#hero-section .hero-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 24px;
  padding: 10px 20px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  white-space: nowrap;
}
#hero-section .hero-cat:hover {
  background: rgba(255,255,255,0.32);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
/* スマホ：2列グリッド */
@media (max-width: 600px) {
  #hero-section {
    padding: 36px 16px 40px;
  }
  #hero-section .hero-title {
    font-size: 22px !important;
  }
  #hero-section .hero-desc {
    font-size: 13px !important;
  }
  #hero-section .hero-cats {
    gap: 10px;
    margin-top: 20px;
  }
  #hero-section .hero-cat {
    width: calc(50% - 8px);
    min-height: 80px;
  }
  #hero-section .hero-cat {
    padding: 14px 8px 12px;
  }

}

/* == 特集ドロップダウン == */
.hero-cat-wrap {
  position: relative;
  display: inline-block;
}
.hero-cat-sub {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 200;
  min-width: 180px;
  padding: 6px 0;
}
.hero-cat-wrap:hover .hero-cat-sub {
  display: block;
}
.hero-cat-sub a {
  display: block;
  padding: 9px 18px;
  color: #007a82;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s;
}
.hero-cat-sub a:hover {
  background: #e8f9fa;
}
.hero-cat-parent {
  cursor: pointer;
}
/* == 特集ドロップダウン モバイル修正 == */
@media (max-width: 600px) {
  #hero-section .hero-cat-wrap {
    width: calc(50% - 8px);
    min-height: 80px;
  }
  #hero-section .hero-cat-wrap .hero-cat-parent {
    width: 100%;
    min-height: 80px;
    padding: 14px 8px 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* == ヘッダーロゴ == */
.site-name-text {
  margin: 0;
  padding: 0;
}
.site-name-text a {
  display: block;
  width: 220px;
  height: 88px;
  background-image: url('https://www.herb-health-navi.com/wp-content/uploads/2026/03/%E3%83%AD%E3%82%B4.jpeg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px;
  overflow: hidden;
  margin: 0 auto;
}

/* == フッターロゴ == */
.footer-logo-wrap {
  text-align: center;
  padding: 12px 0 4px;
}
.footer-logo-wrap img {
  width: 100px;
  opacity: 0.75;
  filter: brightness(0) invert(1);
}

/* == サイドバー プロフィール == */
.profile-widget {
  text-align: center;
  padding: 16px;
  background: #f9f7f4;
  border-radius: 12px;
  margin-bottom: 20px;
}
.profile-widget .profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid #b0e4e6;
}
.profile-widget h3 {
  font-size: 15px;
  font-weight: 700;
  color: #007a82;
  margin: 0 0 4px;
}
.profile-widget .profile-title {
  font-size: 12px;
  color: #888;
  margin: 0 0 10px;
}
.profile-widget p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  text-align: left;
}

/* == ヘッダーロゴ (上書き修正) == */
.site-name-text-link {
  display: block !important;
  width: 220px !important;
  height: 88px !important;
  background-image: url('https://www.herb-health-navi.com/wp-content/uploads/2026/03/%E3%83%AD%E3%82%B4.jpeg') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  overflow: hidden !important;
  margin: 0 auto !important;
}
.site-name-text {
  opacity: 0 !important;
  font-size: 0 !important;
}

/* == フッターロゴ 修正 == */
.footer-logo-wrap {
  text-align: center;
  padding: 16px 0 8px;
}
.footer-logo-wrap a {
  display: inline-block;
  background: rgba(255,255,255,0.92);
  padding: 8px 12px;
  border-radius: 10px;
}
.footer-logo-wrap img {
  width: 110px !important;
  opacity: 1 !important;
  filter: none !important;
  display: block;
}

/* == フッター 下段重複ロゴを非表示 == */
#footer .site-name-text-link {
  display: none !important;
}

/* == ヘッダーロゴ 白浮き解消 (mix-blend-mode) == */
#header .site-name-text-link {
  mix-blend-mode: multiply;
  background: rgba(255,255,255,0.88) !important;
  border-radius: 6px;
  padding: 4px 8px;
}

/* == フッターロゴ 白浮き解消 == */
.footer-logo-wrap a {
  background: transparent !important;
}
.footer-logo-wrap img {
  mix-blend-mode: screen;
  opacity: 0.9 !important;
}

/* == ヘッダーロゴ mix-blend 修正 == */
#header .site-name-text-link {
  background-image: url('https://www.herb-health-navi.com/wp-content/uploads/2026/03/%E3%83%AD%E3%82%B4.jpeg') !important;
  mix-blend-mode: multiply !important;
  background-color: transparent !important;
}

/* == ヘッダーロゴ 最終修正: 白抗き解消 == */
#header .site-name-text-link {
  filter: invert(1) !important;
  mix-blend-mode: screen !important;
  background-color: transparent !important;
}

/* == フッターロゴ 白抗き解消 == */
.footer-logo-wrap img {
  filter: invert(1) !important;
  mix-blend-mode: screen !important;
  opacity: 1 !important;
}

/* == ヘッダーロゴ 一時戻し (blend解除) == */
#header .site-name-text-link {
  filter: none !important;
  mix-blend-mode: normal !important;
  background-color: rgba(255,255,255,0.9) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
}
.footer-logo-wrap img {
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* == ヘッダー・フッターロゴ 透遊PNG適用 == */
#header .site-name-text-link {
  background-image: url('https://www.herb-health-navi.com/wp-content/uploads/2026/03/logo_transparent.png') !important;
  background-color: transparent !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.footer-logo-wrap img {
  content: url('https://www.herb-health-navi.com/wp-content/uploads/2026/03/logo_transparent.png');
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 0.85 !important;
}

/* == ヘッダーロゴ 最終確定版 (透遊PNG) == */
#header .site-name-text-link {
  background-image: url('https://www.herb-health-navi.com/wp-content/uploads/2026/03/logo_transparent.png') !important;
  background-color: transparent !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* == フッターロゴ 白抜き == */
.footer-logo-wrap img {
  filter: invert(1) !important;
  opacity: 0.85 !important;
  mix-blend-mode: normal !important;
}

/* ===== ヘッダー背景色: バランスターコイズ ===== */
#header, .site-header, header.site-header {
  background-color: #00BFC5 !important;
}

/* ===== フッター背景色: TOPヘッダーと同じティール色 ===== */
#footer,
.site-footer,
footer.site-footer {
  background-color: #00BFC5 !important;
}

/* フッター内テキスト・リンク色（ティール背景に合わせて濃色） */
#footer,
#footer a,
.footer-copyright,
.footer-copyright a {
  color: #1a4444 !important;
}

/* フッターロゴ: ティール背景なので白箱・invert不要 */
.footer-logo-wrap a {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.footer-logo-wrap img {
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  width: 140px !important;
}


/* ===== プロフィールウィジェット 名前（h3）スタイル修正 ===== */
/* Cocoonのウィジェットタイトルスタイルを上書き */
#sidebar .profile-widget h3,
.profile-widget h3 {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #2c5555 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  margin: 0 0 4px !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center !important;
}

/* ===== モバイル用プロフィールバナー ===== */
.mobile-profile-wrap {
  display: none;
}
@media (max-width: 834px) {
  .mobile-profile-wrap {
    display: block;
    background: #f9f7f4;
    padding: 16px 20px;
    border-top: 3px solid #00BFC5;
    border-bottom: 1px solid #e0dcd7;
  }
  .mobile-profile-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 600px;
    margin: 0 auto;
  }
  .mobile-profile-img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: top !important;
    border: 2px solid #00BFC5 !important;
    flex-shrink: 0;
    display: block !important;
  }
  .mobile-profile-text {
    flex: 1;
    min-width: 0;
  }
  .mobile-profile-text strong {
    display: block;
    font-size: 14px;
    color: #2c5555;
    font-weight: 700;
    margin-bottom: 2px;
  }
  .mobile-profile-text span {
    font-size: 11px;
    color: #888;
  }
  .mobile-profile-btn {
    display: inline-block;
    background: #007a82;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ===== サイドバー ウィジェットタイトル バランスターコイズ ===== */
#sidebar .wp-block-heading,
#sidebar h2.wp-block-heading,
.sidebar .wp-block-heading {
  background-color: #007a82 !important;
  color: #fff !important;
}

/* ===== 記事内 H2見出し バランスターコイズ ===== */
.entry-content h2,
.article-body h2,
.body h2 {
  background-color: #007a82 !important;
  color: #fff !important;
}

/* ===== カード記事タイトル 2行固定 ===== */
.entry-card-title, .card-title, .e-card-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* ===== カテゴリバッジ カテゴリ別カラー ===== */
.cat-label {
  color: #fff !important;
  border-radius: 4px !important;
}
.cat-label-7  { background-color: #d4618a !important; } /* 女性のお悩み：ローズピンク */
.cat-label-9  { background-color: #3a9c72 !important; } /* ハーブ図鑑：ハーブグリーン */
.cat-label-3  { background-color: #e8904a !important; } /* 季節のハーブティー：アンバー */
.cat-label-13 { background-color: #4a7fc4 !important; } /* ハーブ研究・最新情報：ブルー */

/* ===== 「次のページ」ボタン スタイル改善 ===== */
.pagination-next-link,
a.pagination-next-link.key-btn {
  background-color: #007a82 !important;
  color: #fff !important;
  border: none !important;
  opacity: 1 !important;
}
.pagination-next-link:hover,
a.pagination-next-link.key-btn:hover {
  background-color: #00BFC5 !important;
  color: #fff !important;
}

/* ===== 「新着記事」タブラベル ターコイズ ===== */
.index-tab-button {
  background-color: #007a82 !important;
  color: #fff !important;
  border-color: #007a82 !important;
}

/* ===== 記事内リンク色 ターコイズ ===== */
.entry-content a:not(.btn):not([class*="button"]):not(.wp-block-button__link) {
  color: #007a82 !important;
}
.entry-content a:not(.btn):not([class*="button"]):not(.wp-block-button__link):hover {
  color: #00BFC5 !important;
}

/* ===== カテゴリバッジ 追加カテゴリ色設定 ===== */
.cat-label-4  { background-color: #2aaa8a !important; } /* ハーブの暮らし活用：セージグリーン */
.cat-label-15 { background-color: #7ab830 !important; } /* ハーブレシピ：イエローグリーン */
.cat-label-11 { background-color: #9b6dc9 !important; } /* ライフステージ：ソフトパープル */
.cat-label-6  { background-color: #00969e !important; } /* ハーブティーの基本：ミディアムティール */
.cat-label-16 { background-color: #c8a030 !important; } /* ランキング：ゴールド */
.cat-label-14 { background-color: #7b5ea7 !important; } /* 星座×ハーブ：インディゴ */
.cat-label-17 { background-color: #5b88b0 !important; } /* 比較・選び方：スチールブルー */
.cat-label-18 { background-color: #2c7a6e !important; } /* 編集部レビュー：ダークティール */
.cat-label-1  { background-color: #999    !important; } /* Uncategorized：グレー */

/* ===== ページネーション 数字ボタン ターコイズ ===== */
.page-numbers {
  color: #007a82 !important;
  border: 1px solid #007a82 !important;
}
.page-numbers.current {
  background-color: #007a82 !important;
  color: #fff !important;
  border-color: #007a82 !important;
}
.page-numbers:hover {
  background-color: #00BFC5 !important;
  color: #fff !important;
  border-color: #00BFC5 !important;
}
/* nextボタン（「次へ」）は既存の .pagination-next-link スタイルを適用済みのため除外 */
a.next.page-numbers, a.prev.page-numbers {
  background-color: transparent !important;
  color: #007a82 !important;
  border: 1px solid #007a82 !important;
}
a.next.page-numbers:hover, a.prev.page-numbers:hover {
  background-color: #007a82 !important;
  color: #fff !important;
}

/* ===== 検索ボタン ターコイズ ===== */
.wp-block-search__button,
.search-submit,
button.wp-element-button {
  background-color: #007a82 !important;
  color: #fff !important;
  border-color: #007a82 !important;
}
.wp-block-search__button:hover,
.search-submit:hover {
  background-color: #00BFC5 !important;
  border-color: #00BFC5 !important;
}

/* ===== フッターリンク色（追加コンテンツ用） ===== */
.footer-nav-wrap a {
  color: #fff !important;
  opacity: 0.9;
  text-decoration: none;
  font-size: 13px;
}
.footer-nav-wrap a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-extra {
  text-align: center;
  padding: 20px 20px 10px;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: 16px;
}
.footer-extra-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
}
.footer-extra-links a {
  color: rgba(255,255,255,0.9) !important;
  font-size: 13px;
  text-decoration: none;
}
.footer-extra-links a:hover {
  color: #fff !important;
  text-decoration: underline;
}
.footer-extra-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
