@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){
  /*必要ならばここにコードを書く*/
}

/*
========================================
  Cocoon 子テーマ カスタムCSS
  テーマ: ダークネイビー×モダン
  クルマ系YouTuber 機材ブログ用
========================================
*/

/* ----------------------------------------
   Google Fonts 読み込み
   ※ functions.php で読み込む場合は不要
---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ----------------------------------------
   CSS カスタムプロパティ（色・変数）
---------------------------------------- */
:root {
  --navy:        #1a2744;
  --navy-dark:   #0f1a2e;
  --navy-light:  #243258;
  --blue:        #3b82f6;
  --blue-light:  #e6f1fb;
  --blue-mid:    #185fa5;
  --text-main:   #1a2744;
  --text-muted:  #64748b;
  --text-faint:  #94a3b8;
  --bg-site:     #f5f7fa;
  --bg-white:    #ffffff;
  --border:      #e2e8f0;
  --radius-card: 12px;
  --radius-sm:   6px;
  --shadow-card: 0 2px 8px rgba(26, 39, 68, 0.08);
  --shadow-hover: 0 8px 24px rgba(26, 39, 68, 0.14);
  --transition:  0.2s ease;
}

/* ----------------------------------------
   全体・ベース
---------------------------------------- */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg-site);
  color: var(--text-main);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--navy);
}

/* ----------------------------------------
   ヘッダー
---------------------------------------- */
#header {
  background: var(--navy) !important;
  box-shadow: 0 2px 12px rgba(15, 26, 46, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* キャッチフレーズ帯（最上部） */
#header .header-container > .header-catchphrase,
.site-catch,
#catch {
  background: var(--navy-dark) !important;
  color: #8fafd4 !important;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 5px 16px;
}

/* サイトタイトル */
#site-title,
.site-name,
#header .site-name-text {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
}

#site-title a,
.site-name a {
  color: #ffffff !important;
}

/* サイト説明文 */
#site-description,
.site-description,
.site-catch {
  color: #6a90b8 !important;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* ----------------------------------------
   グローバルナビゲーション
---------------------------------------- */
#navi,
.navi-in,
#global-navi {
  background: var(--navy) !important;
}

#navi .menu-item a,
#global-navi .menu-item a,
.navi-in > ul > li > a {
  color: #a8c4e0 !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  transition: color var(--transition), border-bottom var(--transition);
  border-bottom: 2px solid transparent;
}

#navi .menu-item a:hover,
#global-navi .menu-item a:hover,
.navi-in > ul > li > a:hover,
.navi-in > ul > li.current-menu-item > a {
  color: #ffffff !important;
  border-bottom-color: var(--blue) !important;
  background: transparent !important;
}

/* ハンバーガーメニュー（スマホ） */
.menu-toggle,
#navi-button {
  color: #ffffff !important;
}

/* ----------------------------------------
   メインコンテンツエリア
---------------------------------------- */
#content,
.content-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* ----------------------------------------
   記事カード（トップページ一覧）
---------------------------------------- */
.card-wrap,
.entry-card-wrap,
.a-wrap {
  background: var(--bg-white) !important;
  border-radius: var(--radius-card) !important;
  border: 0.5px solid var(--border) !important;
  box-shadow: var(--shadow-card) !important;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition) !important;
  margin-bottom: 20px;
}

.card-wrap:hover,
.entry-card-wrap:hover,
.a-wrap:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-hover) !important;
}

/* カードサムネイル */
.card-thumb img,
.entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

/* カードタイトル */
.card-title,
.entry-card-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  line-height: 1.55 !important;
  margin-bottom: 8px;
}

/* カード抜粋文 */
.card-excerpt,
.entry-card-content p,
.entry-summary {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  line-height: 1.7 !important;
}

/* カテゴリーラベル */
.cat-label,
.entry-card-cat-label,
.card-cat-label {
  background: var(--blue-light) !important;
  color: var(--blue-mid) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  padding: 2px 10px !important;
  letter-spacing: 0.05em;
  border: none !important;
}

/* 投稿日・メタ情報 */
.card-meta,
.entry-card-meta,
.post-date,
.date {
  font-size: 11px;
  color: var(--text-faint) !important;
}

/* ページングPVカウント（非表示推奨） */
.card-meta-views {
  display: none;
}

/* ----------------------------------------
   「続きを読む」ボタン
---------------------------------------- */
.more-link,
.btn-more-link,
.entry-button,
a.btn {
  background: var(--blue) !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: none !important;
  transition: background var(--transition) !important;
  letter-spacing: 0.03em;
}

.more-link:hover,
.btn-more-link:hover,
.entry-button:hover,
a.btn:hover {
  background: var(--navy) !important;
  color: #ffffff !important;
}

/* ----------------------------------------
   記事見出し（h2, h3）
---------------------------------------- */
.entry-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0 1rem;
  line-height: 1.5;
}

.entry-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 6px;
  margin: 1.8rem 0 0.8rem;
}

.entry-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-mid);
  margin: 1.5rem 0 0.6rem;
}

/* ----------------------------------------
   サイドバー
---------------------------------------- */
#sidebar {
  padding-left: 8px;
}

/* ウィジェット全体 */
.widget {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

/* ウィジェットタイトル */
.widget-title,
.widgettitle {
  background: var(--navy) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 !important;
}

/* ウィジェット内コンテンツ */
.widget-in,
.widget > div:not(.widget-title):not(.widgettitle) {
  padding: 12px 16px;
}

/* カテゴリーリスト */
.widget ul li {
  border-bottom: 0.5px solid var(--border);
  padding: 8px 0;
  font-size: 13px;
}
.widget ul li:last-child {
  border-bottom: none;
}
.widget ul li a {
  color: var(--text-main);
  font-weight: 500;
}
.widget ul li a:hover {
  color: var(--blue);
}

/* ----------------------------------------
   パンくずリスト
---------------------------------------- */
#breadcrumb,
.breadcrumb {
  background: transparent;
  padding: 12px 0;
  font-size: 12px;
  color: var(--text-faint);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--blue);
}

/* ----------------------------------------
   投稿ページ
---------------------------------------- */
/* アイキャッチ画像 */
.entry-header .eye-catch img,
.post-thumbnail img {
  border-radius: var(--radius-card);
  width: 100%;
  height: auto;
}

/* 本文テキスト */
.entry-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-main);
}

.entry-content p {
  margin-bottom: 1.2rem;
}

/* 引用ブロック */
.entry-content blockquote {
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: normal;
  margin: 1.5rem 0;
}

/* テーブル */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.entry-content th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
}
.entry-content td {
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--border);
}
.entry-content tr:nth-child(even) td {
  background: var(--bg-site);
}

/* ----------------------------------------
   タグ・カテゴリーページ
---------------------------------------- */
.tag-label,
.post-tag,
.entry-tags .tag {
  background: var(--blue-light);
  color: var(--blue-mid);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  margin: 2px;
  display: inline-block;
  transition: background var(--transition);
}
.tag-label:hover,
.entry-tags .tag:hover {
  background: var(--blue);
  color: #fff;
}

/* ----------------------------------------
   ページネーション
---------------------------------------- */
.pagination .page-numbers,
.pager-links .page-numbers {
  background: var(--bg-white);
  color: var(--text-main);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ----------------------------------------
   フッター
---------------------------------------- */
#footer,
footer {
  background: var(--navy) !important;
  color: #6a90b8 !important;
  font-size: 12px;
  text-align: center;
  padding: 24px 16px !important;
  letter-spacing: 0.05em;
}

#footer a,
footer a {
  color: #8fafd4 !important;
}
#footer a:hover,
footer a:hover {
  color: #ffffff !important;
}

/* フッターウィジェットエリア */
#footer-widget-area {
  background: var(--navy-light) !important;
  padding: 32px 16px !important;
}
#footer-widget-area .widget-title,
#footer-widget-area .widgettitle {
  background: transparent !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  padding: 0 0 8px !important;
}
#footer-widget-area .widget ul li a {
  color: #8fafd4;
}
#footer-widget-area .widget ul li a:hover {
  color: #fff;
}

/* ----------------------------------------
   スクロールトップボタン
---------------------------------------- */
#go-to-top,
.to-top {
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: 50% !important;
  border: 2px solid var(--blue) !important;
  transition: background var(--transition) !important;
}
#go-to-top:hover,
.to-top:hover {
  background: var(--blue) !important;
}

/* ----------------------------------------
   レスポンシブ（スマホ）
---------------------------------------- */
@media (max-width: 768px) {
  .entry-content h2 {
    font-size: 17px;
  }
  .entry-content h3 {
    font-size: 15px;
  }
  .card-title,
  .entry-card-title {
    font-size: 14px !important;
  }
  #navi .menu-item a,
  .navi-in > ul > li > a {
    padding: 12px 14px;
    font-size: 14px;
  }
}
/* Cocoon PVカウント非表示（確定版） */
.admin-pv {
  display: none !important;
}

/* 記事ページ改善 */

/* h2見出し：ネイビー左ボーダー＋薄青背景 */
.entry-content h2 {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #1a2744 !important;
  border-left: 5px solid #3b82f6 !important;
  background: #eef4ff !important;
  padding: 12px 16px !important;
  border-radius: 0 6px 6px 0 !important;
  margin: 2rem 0 1rem !important;
}

/* h3見出し：ネイビーアンダーライン */
.entry-content h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1a2744 !important;
  border-left: 3px solid #1a2744 !important;
  border-bottom: none !important;
  background: transparent !important;
  padding: 4px 12px !important;
  margin: 1.8rem 0 0.8rem !important;
}

/* 本文の余白調整 */
.entry-content {
  font-size: 15px !important;
  line-height: 1.9 !important;
  max-width: 780px;
  margin: 0 auto;
}

/* 記事内画像を横幅いっぱいに */
.entry-content img {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}

/* カテゴリータグ 文字切れ修正 */
.cat-label,
.entry-card-cat-label,
.card-cat-label {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: none !important;
}

/* スマホ 左右余白を狭くして文字数を増やす */
@media (max-width: 768px) {
  #content,
  .content-in,
  .wrap {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .entry-content {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .card-wrap,
  .entry-card-wrap,
  .a-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
