/*
Theme Name: 生活整理ノート Child
Theme URI: https://steady-notes.net
Description: Cocoon Child Theme for 生活整理ノート（ネイビー＋パーティクルデザイン）
Author: かずのん
Author URI: https://steady-notes.net
Template: cocoon-master
Version: 1.0
*/

/* ==============================================
   生活整理ノート — Cocoon 子テーマ CSS
   ネイビー（#0f2040）＋グリーンアクセント（#4aa87d）
   フォント：Noto Sans JP
   ============================================== */

/* ── ページ背景 ── */
body {
  background-color: #f5f5f3 !important;
  color: #1a1a2e !important;
}

/* ── ヘッダー ── */
#header {
  background-color: #0f2040 !important;
  border-bottom: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* ヘッダー内要素をz-index管理 */
#header .header-container,
#header .header-container-in,
#header .header-in,
#header .site-name,
#header .tagline,
#header #navi,
#header .navi-in {
  position: relative !important;
  z-index: 1 !important;
}

/* サイトタイトル */
.site-name-text {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
}

/* キャッチフレーズ */
.tagline {
  color: rgba(255,255,255,0.4) !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
}

/* ── ヒーロー（ヘッダー画像エリア） ── */
#header-image,
.header-image,
.header-container-image {
  background: linear-gradient(135deg, #0a1628 0%, #0f2040 55%, #162d52 100%) !important;
  min-height: 300px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
}

/* ── ナビゲーション ── */
#navi,
.navi {
  background-color: #0f2040 !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  border-bottom: none !important;
}

.navi-in > ul > li > a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 13px !important;
  transition: color 0.15s, background 0.15s !important;
}

.navi-in > ul > li > a:hover {
  color: #ffffff !important;
  background-color: rgba(255,255,255,0.08) !important;
}

/* ドロップダウン */
.navi-in > ul > li > ul {
  background-color: #162d52 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
}

.navi-in > ul > li > ul li a {
  color: rgba(255,255,255,0.75) !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
  font-size: 12px !important;
}

.navi-in > ul > li > ul li a:hover {
  color: #fff !important;
  background-color: rgba(255,255,255,0.06) !important;
}

/* ── コンテンツ背景 ── */
#container,
#contents,
.contents-in,
#content-in {
  background: #f5f5f3 !important;
}

/* ── 記事一覧セクション見出し ── */
.archive-title,
.list-title,
h2.archive-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1a1a2e !important;
  letter-spacing: 2px !important;
  border-left: 4px solid #4aa87d !important;
  border-bottom: 1px solid #e0e0d8 !important;
  background: none !important;
  padding: 0 0 12px 12px !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
}

/* ── 記事カード ── */
.entry-card-wrap,
.a-wrap {
  background: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid #e8e8e2 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 20px 0 !important;
  margin-bottom: 0 !important;
  transition: background 0.15s !important;
}

.entry-card-wrap:hover,
.a-wrap:hover {
  background: #fafaf8 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* サムネイル */
.entry-card-thumb {
  border-radius: 3px !important;
  overflow: hidden !important;
}

.entry-card-thumb img {
  border-radius: 3px !important;
  transition: transform 0.2s !important;
}

.entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.03) !important;
}

/* タイトル */
.entry-card-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.65 !important;
  margin-bottom: 6px !important;
}

.entry-card-title a {
  color: #1a1a2e !important;
  text-decoration: none !important;
}

.entry-card-title a:hover {
  color: #0f2040 !important;
}

/* 抜粋文 */
.entry-card-snippet {
  font-size: 12px !important;
  color: #888 !important;
  line-height: 1.7 !important;
}

/* 日付 */
.entry-card-date,
.entry-date {
  font-size: 11px !important;
  color: #aaa !important;
}

/* カテゴリーラベル */
.cat-label {
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 2px 9px !important;
  border-radius: 2px !important;
  letter-spacing: 0.5px !important;
  background-color: #1a3a5c !important;
  border-color: #1a3a5c !important;
  color: #fff !important;
}

/* ── 記事内 見出し ── */
.entry-content h2 {
  background-color: #0f2040 !important;
  color: #ffffff !important;
  border-left: 4px solid #4aa87d !important;
  border-bottom: none !important;
  border-radius: 3px !important;
  padding: 12px 16px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.entry-content h3 {
  color: #0f2040 !important;
  border-left: 4px solid #4aa87d !important;
  border-bottom: 1px solid #e0e0d8 !important;
  background: none !important;
  padding: 8px 0 8px 12px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.entry-content h4 {
  color: #1a1a2e !important;
  border-left: 3px solid #4aa87d !important;
  padding-left: 10px !important;
  background: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* ── リンク ── */
.entry-content a {
  color: #1a3a5c !important;
  border-bottom: 1px solid rgba(26,58,92,0.25) !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}

.entry-content a:hover {
  color: #4aa87d !important;
  border-bottom-color: #4aa87d !important;
}

/* ── サイドバー ── */
#sidebar {
  background: transparent !important;
}

/* ウィジェット共通 */
.widget {
  background: #ffffff !important;
  border-radius: 6px !important;
  border: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* ウィジェットタイトル 全上書き */
.widgettitle,
.widget-title,
h2.widgettitle,
h3.widgettitle {
  background: #fff !important;
  background-color: #fff !important;
  color: #999 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 4px !important;
  border-bottom: 1px solid #eee !important;
  border-left: none !important;
  border-top: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  padding: 14px 20px 12px !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.widgettitle::before,
.widgettitle::after {
  display: none !important;
}

/* ウィジェット内リスト */
.widget ul {
  padding: 6px 0 !important;
  margin: 0 !important;
}

.widget ul li {
  padding: 8px 20px !important;
  border-bottom: 1px solid #f5f5f3 !important;
  font-size: 13px !important;
  list-style: none !important;
}

.widget ul li:last-child {
  border-bottom: none !important;
}

.widget ul li a {
  color: #333 !important;
  text-decoration: none !important;
}

.widget ul li a:hover {
  color: #0f2040 !important;
}

/* ── プロフィールウィジェット ── */
.author-content,
.widget-profile,
.author-box {
  padding: 20px !important;
  text-align: center !important;
}

.author-content img,
.author-avatar img {
  border-radius: 50% !important;
  border: 2px solid #4aa87d !important;
}

.author-content .author-name,
.author-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  text-decoration: none !important;
  display: block !important;
  margin: 10px 0 6px !important;
}

.author-content .author-name a,
.author-name a {
  text-decoration: none !important;
  color: #1a1a2e !important;
  font-weight: 700 !important;
}

.author-content .author-description,
.author-description {
  font-size: 11px !important;
  color: #777 !important;
  line-height: 1.8 !important;
  text-align: left !important;
}

/* プロフィール内余分な枠を除去 */
.author-content .author-box,
.author-content .author-info,
.author-content > .box {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* ── カテゴリーウィジェット ── */
.widget_categories ul li {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.widget_categories ul li::before {
  content: '' !important;
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #4aa87d !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

/* ── アーカイブ・新着情報を非表示 ── */
.widget_archive,
.widget_recent_entries,
.widget_archives,
.widget_recent_comments {
  display: none !important;
}

/* ── 人気記事・新着記事ウィジェット ── */
.widget .new-entry-card-wrap,
.widget .popular-entry-card-wrap {
  padding: 10px 20px !important;
  border-bottom: 1px solid #f5f5f3 !important;
  background: transparent !important;
}

.widget .new-entry-card-title a,
.widget .popular-entry-card-title a {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #444 !important;
  line-height: 1.65 !important;
  text-decoration: none !important;
}

/* ── フッター ── */
#footer {
  background-color: #0a1628 !important;
  border-top: 3px solid #4aa87d !important;
}

#footer,
#footer p,
#footer li {
  color: rgba(255,255,255,0.5) !important;
}

#footer a {
  color: rgba(255,255,255,0.5) !important;
}

#footer a:hover {
  color: #4aa87d !important;
}

#footer .widgettitle {
  background: transparent !important;
  color: rgba(255,255,255,0.4) !important;
  border-bottom-color: rgba(255,255,255,0.12) !important;
  letter-spacing: 3px !important;
}

.footer-copyright,
#copyright {
  color: rgba(255,255,255,0.3) !important;
  font-size: 11px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  padding-top: 16px !important;
}

/* ── ページネーション ── */
.page-numbers {
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.15s !important;
}

.page-numbers.current {
  background-color: #4aa87d !important;
  border-color: #4aa87d !important;
  color: #fff !important;
}

.page-numbers:hover {
  background-color: #0f2040 !important;
  border-color: #0f2040 !important;
  color: #fff !important;
}

/* ── タグ ── */
.tag-list a {
  background-color: #f0f0ec !important;
  border: 1px solid #e0e0d8 !important;
  color: #555 !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  transition: all 0.15s !important;
}

.tag-list a:hover {
  background-color: #0f2040 !important;
  border-color: #0f2040 !important;
  color: #fff !important;
}

/* ── パンくずリスト ── */
.breadcrumb,
#breadcrumb {
  font-size: 11px !important;
  color: #aaa !important;
  padding: 10px 0 !important;
}

.breadcrumb a,
#breadcrumb a {
  color: #4aa87d !important;
  text-decoration: none !important;
}

/* ── スクロールバー ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f3; }
::-webkit-scrollbar-thumb { background: #0f2040; border-radius: 3px; }

/* パーティクルキャンバス強制表示 */
#particle-canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  display: block !important;
}

#header {
  min-height: 300px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* アーカイブを確実に非表示 */
.widget_archive,
.widget_archives,
[class*="archive"] {
  display: none !important;
}

/* ウィジェットタイトル 強制上書き */
.widget-title,
.widgettitle,
h2.widget-title,
h3.widget-title,
h2.widgettitle,
h3.widgettitle,
.sidebar h2,
.sidebar h3 {
  background: #fff !important;
  background-color: #fff !important;
  color: #999 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 4px !important;
  border: none !important;
  border-bottom: 1px solid #eee !important;
  border-radius: 0 !important;
  padding: 14px 20px 12px !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* プロフィールアイコン枠を除去 */
.author-content,
.author-widget-box,
.author-widget-box-in {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 20px !important;
  text-align: center !important;
}

/* アーカイブを一番下に移動（非表示→最後尾に） */
.widget_archive,
.widget_archives,
[class*="archive"] {
  order: 999 !important;
}

#sidebar {
  display: flex !important;
  flex-direction: column !important;
}

/* プロフィールウィジェットに「PROFILE」を追加 */
.widget:has(.author-content)::before,
.widget:has(.author-widget-box)::before {
  content: 'PROFILE' !important;
  display: block !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #999 !important;
  letter-spacing: 4px !important;
  border-bottom: 1px solid #eee !important;
  padding: 14px 20px 12px !important;
  background: #fff !important;
}
/* 新着記事 見出し */
#custom-archive-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1a1a2e !important;
  letter-spacing: 2px !important;
  border-left: 4px solid #4aa87d !important;
  border-bottom: 1px solid #e0e0d8 !important;
  padding: 0 0 12px 12px !important;
  margin-bottom: 20px !important;
  display: block !important;
}