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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

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

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

/* --- Force Modern Design Injection --- */
/* ヘッダーのモダン化（ダークネイビー＆サイバーブルー） */
.header { background-color: #0f172a !important; color: #f8fafc !important; border-bottom: 3px solid #38bdf8; }
.site-name-text { font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 800; letter-spacing: 1.5px; color: #f8fafc !important; }
.site-name-text::after { content: '.'; color: #38bdf8; }
.tagline { color: #94a3b8 !important; }

/* グローバルナビ（メニュー）の調整 */
.navi-in a { color: #f8fafc !important; font-weight: bold; transition: 0.3s; }
.navi-in a:hover { color: #38bdf8 !important; background-color: #1e293b !important; }

/* 記事カードのホバーエフェクト（浮き上がり） */
.entry-card-wrap { border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; transition: transform 0.2s, box-shadow 0.2s; }
.entry-card-wrap:hover { transform: translateY(-4px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

/* Navigation Visibility Fix */
#navi, .navi, .navi-in { background-color: #0f172a !important; }
#navi .navi-in a, .navi .navi-in a { color: #f8fafc !important; }

/* --- Forceful Visibility & Contrast Fixes --- */
/* Global Navigation Fix */
#navi, .navi, .navi-in, #navi-in { background-color: #0f172a !important; color: #f8fafc !important; }
.navi-in a, #navi-in a { color: #f8fafc !important; visibility: visible !important; opacity: 1 !important; display: block; }
.navi-in a:hover, #navi-in a:hover { background-color: #1e293b !important; color: #38bdf8 !important; }

/* Active Menu Item Fix */
.current-menu-item a, .current-cat-item a { background-color: #1e293b !important; color: #38bdf8 !important; }

/* Footer Logo/Text Visibility Fix */
.footer, .footer-in { background-color: #121212 !important; color: #e0e0e0 !important; }
.footer .site-name-text, .footer .site-name-text-link { color: #38bdf8 !important; font-weight: bold !important; opacity: 1 !important; }

/* Breadcrumbs & Pagination Visibility */
.breadcrumb a, .page-numbers, .pagination a { color: #1e293b !important; text-decoration: underline !important; }

/* Search Box Visibility */
.wp-block-search__input { border: 1px solid #cbd5e1 !important; background-color: #fff !important; color: #333 !important; }

/* Mobile Header Button Fix */
.mobile-menu-buttons, .menu-button, .search-button, .header-search-button, .header-menu-button { color: #f8fafc !important; background-color: transparent !important; opacity: 1 !important; visibility: visible !important; }

/* --- Forceful Visibility & Contrast Fixes (Phase 5) --- */
#navi, .navi, .navi-in, #navi-in { background-color: #0f172a !important; color: #f8fafc !important; }
.navi-in a, #navi-in a { color: #f8fafc !important; visibility: visible !important; opacity: 1 !important; display: block !important; }
.navi-in a:hover, #navi-in a:hover { background-color: #1e293b !important; color: #38bdf8 !important; }

/* Active Menu Item Fix */
.current-menu-item a, .current-cat-item a { background-color: #1e293b !important; color: #38bdf8 !important; }

/* Footer Logo/Text Visibility Fix */
.footer, .footer-in { background-color: #121212 !important; color: #e0e0e0 !important; }
.footer .site-name-text, .footer .site-name-text-link { color: #38bdf8 !important; font-weight: bold !important; opacity: 1 !important; }

/* Breadcrumbs & Pagination Visibility */
.breadcrumb a, .page-numbers, .pagination a { color: #1e293b !important; text-decoration: underline !important; }

/* Search Box Visibility */
.wp-block-search__input { border: 1px solid #cbd5e1 !important; background-color: #fff !important; color: #333 !important; }

/* Mobile Header Button Fix */
.mobile-menu-buttons, .menu-button, .search-button, .header-search-button, .header-menu-button { color: #f8fafc !important; background-color: transparent !important; opacity: 1 !important; visibility: visible !important; }

/* ====== 5つのデザイン改善 (Phase 6) ====== */
/* 1. フォントのモダン化と行間の最適化 */
body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif !important;
  line-height: 1.8;
  color: #334155;
}

/* 2. アクセントカラーの統一（見出し・リンク） */
.article h2 {
  background: transparent !important;
  border-left: 5px solid #2563eb !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 10px 15px !important;
  margin-top: 2.5em;
}
.article h3 {
  border-bottom: 2px dashed #e2e8f0 !important;
}
a { color: #2563eb; transition: 0.2s; }
a:hover { color: #1d4ed8; text-decoration: underline; }

/* 3. カテゴリーバッジのスタイリッシュ化 */
.entry-card-wrap .cat-label {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-radius: 20px !important;
  padding: 4px 12px !important;
  font-size: 0.8em !important;
  font-weight: bold;
  border: none !important;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* 4. フッターのダーク化（引き締め効果） */
.footer {
  background-color: #0f172a !important;
  color: #94a3b8 !important;
  border-top: none !important;
}
.footer a { color: #f8fafc !important; }
.footer-bottom { background-color: #020617 !important; }

/* 5. 不要なクレジットの非表示 */
.credit { display: none !important; }
/* =============================== */
