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

/************************************
** Z-Generation Premium Design System (SNSHub Custom CSS)
************************************/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Noto+Sans+JP:wght@400;700&display=swap');

/* 全体のダークモード化と背景 */
body {
  background-color: #070913 !important; /* より深みのあるダークネイビー */
  color: #f1f5f9 !important; /* より明るいフォントカラー（白に近いグレー）でコントラスト確保 */
  font-family: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  line-height: 1.9;
}

/* メインコンテンツエリアの背景 */
#main {
  background-color: transparent !important;
  border: none !important;
}
#sidebar {
  background-color: transparent !important;
}

/* ヘッダーのフューチャリスティック化 */
.header {
  background: linear-gradient(180deg, #0b1329 0%, #070913 100%) !important;
  border-bottom: 2px solid #3b82f6 !important;
  box-shadow: 0 4px 25px rgba(59, 130, 246, 0.2) !important;
}
.site-name-text-link {
  background: linear-gradient(to right, #38bdf8, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
}
.tagline {
  color: #94a3b8 !important;
  font-weight: 600;
}

/* ナビゲーションのグラスモフィズム */
#navi, .navi-in {
  background-color: rgba(11, 19, 41, 0.9) !important; /* 不透明度を高めて文字の視認性確保 */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#navi .navi-in a {
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.8) !important;
  color: #f1f5f9 !important; /* ナビメニューの文字をよりはっきりと白に */
  font-family: 'Outfit', sans-serif !important;
  text-transform: uppercase;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}
#navi .navi-in a:hover {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.6) !important;
  border-color: #a78bfa !important;
}
.current-menu-item a, .current-cat-item a {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3)) !important;
  border: 1px solid #8b5cf6 !important;
  color: #ffffff !important;
}

/* 記事カードのプレミアム化（ガラスライクカード） */
.entry-card-wrap {
  background: rgba(15, 23, 42, 0.85) !important; /* 背景を濃くして文字を浮き上がらせる */
  border: 1px solid rgba(255, 255, 255, 0.1) !important; /* ボーダーを明るめにして輪郭を明瞭に */
  border-radius: 16px !important;
  padding: 18px !important;
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.entry-card-wrap:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(56, 189, 248, 0.6) !important; /* ホバー時の輝きをネオンブルーに */
  box-shadow: 0 20px 45px -15px rgba(56, 189, 248, 0.4) !important;
  background: rgba(21, 32, 59, 0.95) !important;
}
.entry-card-title {
  color: #ffffff !important; /* タイトルは純白 */
  font-weight: 700 !important;
  line-height: 1.5 !important;
  font-size: 1.15em !important;
}
.entry-card-wrap:hover .entry-card-title {
  color: #38bdf8 !important; /* ホバー時はネオンブルーに */
}

/* 記事カード内の抜粋（スニペット）テキスト */
.entry-card-excerpt {
  color: #94a3b8 !important; /* 明るめのグレーで視認性向上 */
  font-size: 0.9em !important;
}

/* カテゴリーラベル */
.entry-card-wrap .cat-label {
  background: linear-gradient(135deg, #38bdf8, #8b5cf6) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4) !important;
}

/* 記事本文ページ（個別記事）のスタイル */
.main-in, .entry-content {
  background: #0f172a !important; /* 不透明なダークネイビーにして読みやすさを劇的に改善 */
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 35px !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important;
}
.article h1.entry-title {
  font-weight: 800 !important;
  color: #ffffff !important; /* タイトルは純白 */
  line-height: 1.4 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
  padding-bottom: 18px !important;
}
.article h2 {
  font-weight: 700 !important;
  color: #ffffff !important;
  border-left: 6px solid #38bdf8 !important; /* ネオンブルーのボーダー */
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15) 0%, transparent 100%) !important;
  padding: 12px 20px !important;
  border-bottom: none !important;
  border-radius: 0 8px 8px 0;
  margin-top: 2em !important;
}
.article h3 {
  color: #f8fafc !important;
  border-left: 4px solid #8b5cf6 !important;
  padding-left: 12px !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.article p {
  color: #e2e8f0 !important; /* 明るめの本文テキスト */
  font-size: 1.05em !important;
}

/* リンク */
a {
  color: #38bdf8 !important; /* 明るいネオンブルーでハイコントラスト化 */
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  color: #7dd3fc !important;
  text-decoration: underline !important;
}

/* 埋め込みカード（引用元）の装飾 */
.wp-block-embed, iframe {
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden;
  background: #090d16 !important;
  margin: 30px 0 !important;
}

/* ページネーション */
.pagination .current {
  background: linear-gradient(135deg, #38bdf8, #8b5cf6) !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4) !important;
  color: #fff !important;
}
.pagination a {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  border-radius: 8px !important;
}
.pagination a:hover {
  background: #1e293b !important;
  color: #38bdf8 !important;
}

/* =================================*********
** サイドバーのGutenbergブロックウィジェット最適化（強制白背景の排除）
** =================================********* */
/* ブロックウィジェット内のグループ等の背景を透明化し、白背景を強制排除 */
.widget_block,
.widget_block *,
.wp-block-group,
.wp-block-group-is-layout-flow,
.wp-block-group__inner-container {
  background-color: transparent !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ウィジェット（asideタグ）自体のスタイル */
.widget-sidebar,
.widget_block {
  background-color: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  margin-bottom: 25px !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
}

/* ウィジェット内のタイトル（文字を純白に） */
.sidebar h3,
.sidebar h2,
.sidebar .widget-title,
.sidebar .wp-block-group__inner-container > h2,
.sidebar h2.wp-block-heading {
  color: #ffffff !important;
  border-bottom: 2px solid #38bdf8 !important;
  padding-bottom: 10px !important;
  font-size: 1.15em !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  letter-spacing: 0.5px;
  background: transparent !important;
}

/* 検索フォームの入力ボックス */
.wp-block-search__input {
  background-color: #0b1329 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
}
.wp-block-search__button {
  background: linear-gradient(135deg, #38bdf8, #8b5cf6) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-weight: bold !important;
  cursor: pointer;
  transition: 0.2s;
}
.wp-block-search__button:hover {
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.6) !important;
}

/* リストアイテムの文字色 */
.sidebar ul, .sidebar li, .sidebar a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
}
.sidebar a:hover {
  color: #38bdf8 !important;
  text-decoration: underline !important;
}

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