@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; }

/* 記事カードのホバーエフェクト（浮き上がり） */
.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); }

/* 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. フッターのダーク化（引き締め効果） & アクセシビリティコントラスト比向上 (#cbd5e1に変更) */
.footer {
  background-color: #0f172a !important;
  color: #cbd5e1 !important; 
  border-top: none !important;
}
.footer a { color: #f8fafc !important; }
.footer-bottom { background-color: #020617 !important; }

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

/* ====== ヘッダーメニューの「かっこいい」刷新 (Phase 7) ====== */
/* スマホのアコーディオンメニューと干渉しないよう、PC表示（1024px以上）に限定してスタイルを適用 */
@media screen and (min-width: 1024px) {
  /* 1. ナビゲーションボタンの基本スタイル（PC専用） */
  #navi .navi-in a {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 2px !important;      /* 四角形 */
    margin: 0 4px !important;           
    padding: 0 24px !important;
    height: 60px !important;            /* バーの高さに固定 */
    display: flex !important;           /* 垂直中央揃え */
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #cbd5e1 !important;          /* ★非活性メニューの文字色をハッキリ見やすい薄いグレーに設定 */
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  /* 2. ホバー時のエフェクト（ネオンブルー） */
  #navi .navi-in a:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6) !important;
    border-color: #60a5fa !important;
  }
  
  /* 3. アクティブ（現在地）のスタイル */
  .current-menu-item a, .current-cat-item a {
    background: rgba(37, 99, 235, 0.2) !important;
    border: 1px solid #2563eb !important;
    color: #60a5fa !important;
    box-shadow: inset 0 0 10px rgba(37, 99, 235, 0.2);
  }
  
  /* 4. メニュー全体のコンテナ調整 */
  /* 親コンテナ全体の背景をダークネイビーに統一し、両端が白く表示されるのを防止 */
  #navi, .navi {
    background-color: #0f172a !important;
  }
  #navi-in, .navi-in {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: #0f172a !important;
  }
  #menu-global-container, .menu-global {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

/* ==============================================
   Stackhub 2.0 クリーン・スクロールレイアウト (タブ廃止)
   ============================================== */

/* 最上部：このニュース of 要点（3行要約）カード */
.stackhub-summary-card {
  margin: 30px 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  padding: 24px 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.stackhub-summary-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.stackhub-summary-card-icon {
  font-size: 18px;
}

.stackhub-summary-card-body ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
  color: #334155;
  font-size: 14.5px;
}

.stackhub-summary-card-body li {
  margin-bottom: 8px;
}

.stackhub-summary-card-body li:last-child {
  margin-bottom: 0;
}

/* 最下部：編集部インサイト */
.stackhub-insight-panel {
  margin-top: 50px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 35px !important;
  box-shadow: none !important;
}

.stackhub-insight-panel h3,
.stackhub-insight-panel p {
  color: #334155 !important;
}

/* 用語Wikiリンクの点線デザイン */
.stackhub-wiki-link {
  color: #2563eb !important;
  text-decoration: none !important;
  border-bottom: 1.5px dashed #2563eb !important;
  transition: background-color 0.2s;
  cursor: pointer;
}

.stackhub-wiki-link:hover {
  background-color: rgba(37, 99, 235, 0.06);
}

/* 用語Wikiポップアップ（Stripe風クリーンカード） */
.stackhub-wiki-popup {
  position: absolute;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 18px;
  max-width: 320px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.stackhub-wiki-popup.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.stackhub-wiki-popup-title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  font-size: 14px;
}

/* ==============================================
   追加の UI/UX カイゼン (SNSシェアボタン・余白等の調整)
   ============================================== */
/* SNSシェアボタンをサイトテーマと調和するモダンなミニマルデザインに変更 */
.sns-share-buttons a {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 6px !important;
}

/* ホバー時にブランドカラーが綺麗に浮かび上がるエフェクト */
.sns-share-buttons .twitter-button:hover { background-color: #1da1f2 !important; color: #ffffff !important; border-color: #1da1f2 !important; }
.sns-share-buttons .facebook-button:hover { background-color: #1877f2 !important; color: #ffffff !important; border-color: #1877f2 !important; }
.sns-share-buttons .hatebu-button:hover { background-color: #00a4de !important; color: #ffffff !important; border-color: #00a4de !important; }
.sns-share-buttons .line-button:hover { background-color: #06c755 !important; color: #ffffff !important; border-color: #06c755 !important; }

/* シェアボタンコンテナ上下の余白を広げ、窮屈さを解消して可読性を向上 */
.sns-share {
  margin-top: 36px !important;
  margin-bottom: 44px !important;
}

/* 入力エリアの輪郭視認性向上とフォーカス時のモダンな青色シャドウ効果 */
input[type="password"]:focus, input[type="text"]:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
}
