/*
Theme Name: Cocoon Child
Template: cocoon-master
*/

/* ============================================
   副業の地雷を踏んだ話 - カスタムCSS
   適用日: 2026-05-03
   ============================================ */

/* --- Google Fonts: Noto Sans JP --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* --- ベース設定 --- */
body {
  font-family: 'Noto Sans JP', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8em;
  color: #333333;
  background-color: #FFFFFF;
}

/* --- リンク --- */
a {
  color: #1A3A5C;
}
a:hover {
  color: #E85D04;
}

/* --- ヘッダー --- */
:root {
  --cocoon-header-background-color: #1A3A5C;
}
#header,
.header,
#header-container,
.header-container,
#header-container-in,
.header-container-in,
.header-container-in.hlt-center-logo {
  background-color: #1A3A5C !important;
  color: #FFFFFF;
}
.header .logo,
.header .site-name-text,
.site-name-text-link,
.header .site-name-text-link {
  color: #FFFFFF !important;
  font-size: 20px;
}
.header .tagline {
  color: rgba(255,255,255,0.85);
}
/* ナビゲーション */
.navi {
  background-color: #1A3A5C;
}
.navi .navi-in > ul > li > a {
  color: #FFFFFF;
}
.navi .navi-in > ul > li > a:hover {
  color: #E85D04;
  border-bottom: 2px solid #E85D04;
}

/* --- フッター --- */
#footer,
.footer {
  background-color: #1A3A5C !important;
  color: #FFFFFF !important;
}
.footer a,
.footer .logo,
.footer .navi-footer a,
.footer .source-org {
  color: #FFFFFF !important;
}
.footer a:hover {
  color: #E85D04 !important;
}

/* --- 本文エリア --- */
.entry-content {
  font-size: 16px;
  line-height: 1.8em;
}

/* --- 見出し --- */
.entry-content h2,
.article h2 {
  border-left: 4px solid #1A3A5C;
  border-bottom: 1px solid #DDDDDD;
  padding: 8px 12px;
  font-family: 'Noto Sans JP', Meiryo, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #333333;
  margin-top: 40px;
  margin-bottom: 16px;
}

.entry-content h3,
.article h3 {
  border-left: 4px solid #999999;
  padding: 6px 12px;
  font-family: 'Noto Sans JP', Meiryo, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #333333;
  margin-top: 32px;
  margin-bottom: 12px;
}

.entry-content h4,
.article h4 {
  color: #E85D04;
  font-family: 'Noto Sans JP', Meiryo, sans-serif;
  font-weight: 500;
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
}

/* --- サブ背景 --- */
.sub-bg {
  background-color: #F5F5F5;
}

/* --- ボーダー --- */
hr,
.border-element {
  border-color: #DDDDDD;
}

/* --- 地雷ボックス (.jirai-box) --- */
.jirai-box {
  background: #FFFBE6;
  border-left: 4px solid #F4C430;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}
.jirai-box .jirai-label {
  color: #1A3A5C;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}

/* --- ステータスボックス（サイドバー用） --- */
.jirai-status-box {
  background: #EEEEEE;
  color: #1A3A5C;
  border-left: 4px solid #999999;
  padding: 12px 16px;
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 16px;
}
.jirai-status-box .label {
  font-size: 12px;
  opacity: 0.8;
}
.jirai-status-box .value {
  font-size: 20px;
}

/* --- CTAボタン --- */
.cta-btn,
.btn-cta {
  display: inline-block;
  background-color: #E85D04;
  color: #FFFFFF !important;
  border-radius: 6px;
  padding: 14px 28px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  line-height: 1.4;
  transition: background-color 0.2s;
}
.cta-btn:hover,
.btn-cta:hover {
  background-color: #C44D02;
  color: #FFFFFF !important;
}

/* 地雷警告CTA */
.cta-jirai-warning {
  display: inline-block;
  background-color: #F4C430;
  color: #1A3A5C !important;
  border-left: 4px solid #E85D04;
  border-radius: 0 6px 6px 0;
  padding: 14px 28px;
  font-weight: bold;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
}

/* Cocoon ボタンブロックのスタイル上書き */
.wp-block-buttons .wp-block-button__link {
  background-color: #E85D04;
  color: #FFFFFF;
  border-radius: 6px;
  padding: 14px 28px;
  min-height: 44px;
}
.wp-block-buttons .wp-block-button__link:hover {
  background-color: #C44D02;
}

/* --- カテゴリページ：カード型2カラム --- */
.archive .list,
.category .list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.entry-card-wrap {
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  transition: box-shadow 0.2s;
  overflow: hidden;
}
.entry-card-wrap:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* カテゴリID=5（副業の失敗談・注意点）のカードにオレンジ左ボーダー */
.category-fukugyou-shippai-post.entry-card-wrap,
[class*="category-fukugyou-shippai"] .entry-card-wrap,
.entry-card.category-fukugyou-shippai-post {
  border-left: 4px solid #E85D04;
  position: relative;
}

/* ⚠ 実体験バッジ */
.category-fukugyou-shippai-post.entry-card-wrap::before,
[class*="category-fukugyou-shippai"].entry-card-wrap::before {
  content: "⚠ 実体験";
  position: absolute;
  top: 8px;
  left: 0;
  background: #E85D04;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 0 4px 4px 0;
  z-index: 1;
}

/* カテゴリラベル */
.cat-label {
  background-color: #1A3A5C;
  color: #FFFFFF;
}

/* --- サイドバー --- */
.sidebar {
  background-color: #F5F5F5;
}
.widget-title {
  border-bottom: 2px solid #1A3A5C;
  color: #1A3A5C;
  font-weight: bold;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

/* --- モバイル最適化 --- */
@media screen and (max-width: 767px) {
  body,
  .entry-content {
    font-size: 15px;
    line-height: 1.8em;
  }

  .archive .list,
  .category .list {
    grid-template-columns: 1fr;
  }

  .cta-btn,
  .btn-cta,
  .cta-jirai-warning,
  .wp-block-buttons .wp-block-button__link {
    min-height: 44px;
    width: 100%;
    display: block;
    text-align: center;
    box-sizing: border-box;
  }

  /* 目次：モバイルで折りたたみ */
  .toc-content {
    display: none;
  }
  .toc-title::after {
    content: "（タップして開く）";
    font-size: 12px;
    opacity: 0.7;
    margin-left: 8px;
  }
}

/* --- 目次スタイル --- */
.toc {
  background: #F5F5F5;
  border: 1px solid #DDDDDD;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 24px 0;
}
.toc-title {
  color: #1A3A5C;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}
.toc-list a {
  color: #1A3A5C;
}
.toc-list a:hover {
  color: #E85D04;
}
