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

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

/************************************
** Smart Blue Design Customization
************************************/

/* サイト全体の色設定の微調整 */
:root {
  --sb-accent: #0ea5e9;
  --sb-accent-hover: #0284c7;
  --sb-navy: #0f172a;
  --sb-border: #e2e8f0;
  --sb-bg: #f8fafc;
}

body {
  background-color: var(--sb-bg) !important;
  color: #1e293b;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* ============================================
   ヘッダー: 左寄せ強制 (センターロゴ設定対応)
   ============================================ */
#header {
  background-color: var(--sb-navy) !important;
}
#header-in {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 10px 0 !important;
  text-align: left !important;
}
.logo-header {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  display: flex !important;
  justify-content: flex-start !important;
  width: 100% !important;
}
.site-name-text-link {
  display: flex !important;
  align-items: center !important;
  color: #fff !important;
  margin: 0 !important;
  text-decoration: none !important;
  font-size: 22px !important;
  font-weight: bold !important;
}
/* アイコン追加 (疑似要素) */
.site-name-text-link::before {
  content: "";
  display: inline-block !important;
  width: 32px !important;
  height: 32px !important;
  background-image: url('https://snowsystem.net/wp-content/uploads/2020/12/icon.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  margin-right: 12px !important;
}

/* ============================================
   ナビゲーション: 別行・左寄せ
   ============================================ */
.navi {
  background-color: #fff !important;
  border-bottom: 2px solid #f1f5f9 !important;
}
#navi-in {
  max-width: 1240px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: flex-start !important;
  padding: 0 !important;
}
.menu-header {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  width: auto !important;
}
.navi-in a {
  padding: 12px 1.5rem !important;
  color: #475569 !important;
  transition: all 0.2s;
  border-bottom: 2px solid transparent !important;
}
.navi-in a:hover {
  color: var(--sb-accent) !important;
  border-bottom: 2px solid var(--sb-accent) !important;
  background-color: transparent !important;
}
/* カレントメニューの強調 */
.navi-in .current-menu-item a {
  color: var(--sb-accent) !important;
  border-bottom: 2px solid var(--sb-accent) !important;
}

/* ============================================
   全体的なテキストリンクのホバー効果（青字化）
   ============================================ */
a:hover {
  color: var(--sb-accent) !important;
}

/* ============================================
   メインカラム・サイドバーのカード風スタイル
   ============================================ */

/* メインとサイドバーの高さを揃える */
.content-in {
  display: flex !important;
  align-items: flex-start !important;
  gap: 20px;
}

#main {
  background-color: #ffffff !important;
  border: 1px solid var(--sb-border) !important;
  border-radius: 0.25rem !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  padding: 1.5rem !important;
  padding-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  margin-top: 0 !important;
}

.sidebar {
  margin-top: 0 !important;
  padding-top: 0 !important;
  background-color: transparent !important;
}
#sidebar {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background-color: transparent !important;
}

.widget {
  background-color: #ffffff;
  border: 1px solid var(--sb-border);
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 1.25rem !important;
  margin-bottom: 1.5rem;
}
.sidebar .widget:first-child {
  margin-top: 0 !important;
}

/* ============================================
   記事一覧のカードデザイン
   ============================================ */
.entry-card-wrap {
  background-color: #ffffff;
  border: 1px solid var(--sb-border);
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.entry-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

/* カードのサムネイルカテゴリラベル */
.cat-label {
  background-color: var(--sb-accent) !important;
  color: #fff !important;
  font-weight: bold;
}

/* カードメタ情報のクリーンアップ */
.entry-card-wrap .post-author,
.entry-card-wrap .post-update,
.entry-card-wrap .post-view,
.entry-card-wrap .pv-count,
.widget-entry-cards .post-author,
.widget-entry-cards .post-view {
  display: none !important;
}

/* ============================================
   一覧の「最新の記事」見出しを非表示
   ============================================ */
.list-title {
  display: none !important;
}

/* ============================================
   記事内の見出しデザイン (H2〜H5)
   ============================================ */
.article h2, .entry-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--sb-navy);
  background-color: #f0f9ff;
  padding: 1rem 1.25rem;
  margin: 3rem 0 1.5rem 0;
  border-left: 6px solid var(--sb-accent);
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0 4px 4px 0;
}

.article h3, .entry-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1e293b;
  padding-left: 1rem;
  margin: 2.5rem 0 1rem 0;
  border-left: 4px solid var(--sb-accent);
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.article h4, .entry-content h4 {
  font-size: 1.125rem;
  font-weight: bold;
  color: #334155;
  padding-bottom: 0.5rem;
  margin: 2rem 0 1rem 0;
  border-bottom: 2px solid var(--sb-border);
}

.article h5, .entry-content h5 {
  font-size: 1rem;
  font-weight: bold;
  color: #475569;
  margin: 1.5rem 0 0.5rem 0;
}
.article h5::before, .entry-content h5::before {
  content: "■";
  color: var(--sb-accent);
  margin-right: 0.5rem;
  font-size: 0.8em;
  vertical-align: middle;
}

/* ============================================
   ウィジェットタイトルの装飾
   ============================================ */
.widget-title {
  font-weight: bold;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sb-accent) !important;
  position: relative;
}
.widget-title::after {
  display: none !important;
}

/* ============================================
   階層型カテゴリーのスタイル
   ============================================ */
.widget_categories > ul {
  padding: 0;
}
.widget_categories ul li {
  position: relative;
  padding: 2px 0 !important;
  border-bottom: 1px dashed var(--sb-border) !important;
  list-style-type: none !important;
  font-size: 0.9rem;
}
.widget_categories ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1e293b;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 2px 0 !important;
}
.widget_categories ul li a:hover {
  color: var(--sb-accent);
}
.widget_categories ul li:last-child {
  border-bottom: none;
}
/* カテゴリーカウントバッジ */
.widget_categories ul li .post-count {
  font-size: 0.75rem;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}
.widget_categories ul .children {
  margin-top: 0.5rem;
  margin-left: 1rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--sb-border);
}
.widget_categories ul .children li {
  border-bottom: none !important;
  padding: 0.25rem 0 !important;
}
.widget_categories ul .children li::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 50%;
  width: 0.6rem;
  height: 2px;
  background-color: var(--sb-border);
}

/* ============================================
   人気記事ランキングの数字バッジ調整
   ============================================ */
.ranking-item-number, .popular-entry-no {
  background-color: #334155 !important;
  color: white !important;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: bold;
}
.ranking-item-number-1, .popular-entry-no-1 { background-color: #eab308 !important; }
.ranking-item-number-2, .popular-entry-no-2 { background-color: #94a3b8 !important; }
.ranking-item-number-3, .popular-entry-no-3 { background-color: #b45309 !important; }

/* ============================================
   フッターの微調整
   ============================================ */
.footer {
  background-color: #1e293b !important;
  color: #cbd5e1 !important;
  border-top: 4px solid var(--sb-accent);
}
.footer a {
  color: #cbd5e1 !important;
}
.footer a:hover {
  color: #ffffff !important;
}

/* ============================================
   ページネーションの現在地（青に）
   ============================================ */
.pagination .current {
  background-color: var(--sb-accent) !important;
  border-color: var(--sb-accent) !important;
  color: #fff !important;
}

/* ============================================
   目次（番号・ホバーを青に）
   ============================================ */
.toc-list li {
  color: var(--sb-accent) !important;
}
.toc-list li a {
  color: #1e293b !important;
  display: inline !important;
}
.toc-list li a:hover {
  color: var(--sb-accent) !important;
  text-decoration: underline !important;
}
.toc-link::before {
  color: var(--sb-accent) !important;
  margin-right: 0.5rem;
}

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

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

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