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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ==========================================
   0. スマホ表示関連（レスポンシブ・@media）
   ========================================== */

/* 1280px超の大画面（左右余白の中央寄せ） */
@media screen and (min-width: 1281px) {
  #header-in,
  #content,
  #footer-in,
  #container,
  .container {
    width: 1280px !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}

/* PC・タブレット表示（画面幅835px以上） */
@media screen and (min-width: 835px) {
  #header-in,
  #content,
  #footer-in,
  #container,
  .container {
    max-width: 1280px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}

/* スマホ表示（画面幅834px以下：1カラム化） */
@media screen and (max-width: 834px) {
  #header-in,
  #content,
  #footer-in,
  #container,
  .container,
  .main,
  .sidebar,
  .logo-header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .content-in {
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  .main,
  .sidebar {
    padding: 15px !important;
  }

  #header,
  .header-outer,
  #header-in,
  .header-in,
  .logo-header {
    height: auto !important;
  }

  .logo-header img,
  .site-name-text-link img {
    margin-left: 10px !important;
  }
}

/* スマホ限定（768px以下）の細部調整 */
@media screen and (max-width: 768px) {
  #main, .main, #sidebar, .sidebar,
  .entry-card-wrap, a.entry-card-wrap,
  .entry-card-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 記事一覧の投稿日のはみ出し防止 */
  .entry-card-wrap .post-date,
  .entry-card-wrap .entry-card-post-date,
  .entry-card-wrap .entry-card-date,
  .entry-card-wrap .entry-card-info,
  .entry-card-wrap .entry-card-meta-box {
    white-space: normal !important;
    text-align: right !important;
    width: 100% !important;
    padding-right: 5px !important;
  }

  /* 長いタイトル・本文の折り返し */
  .entry-card-title,
  .entry-card-snippet {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}


/* ==========================================
   1. 全体レイアウト（基本構造・枠組み・非表示）
   ========================================== */

/* 画面全体の横スクロール防止 */
body {
  overflow-x: hidden !important;
}

/* 不要パーツの完全非表示 */
#navi,
.sns-share,
.sns-share-message,
.sns-follow,
.sns-follow-message,
.author-info,
.post-author,
.entry-card-thumb:has(img[src*="no-image"]),
.no-image,
.entry-card-thumb .no-image-box,
.footer-bottom-logo,
.logo-footer,
.post-pv,
.post-views,
[class*="pv"],
[class*="PV"],
[class*="postview"],
.entry-card-meta-pv,
.entry-card-wrap p:has(span),
.entry-card-snippet + p,
.single .post-update,
.single .post-date .fa,
.single .post-date .fas,
.single .post-date .far,
.single .post-date-icon,
.single .entry-categories,
.single .entry-category,
.single .entry-tags .fa,
.single .entry-tags .fas,
.single .entry-tags .far,
.single .tag-icon,
.entry-card-wrap .fa,
.entry-card-wrap .fas,
.entry-card-wrap .far,
.entry-card-wrap .fa-clock,
.entry-card-wrap .fa-clock-o,
.entry-card-wrap svg,
.widget_tag_cloud .fa,
.widget_tag_cloud .fas,
.widget_tag_cloud .far,
.widget_tag_cloud .tag-icon,
.widget_tag_cloud .tag-link-count,
.tagcloud .tag-link-count {
  display: none !important;
}

/* 左サイドバー・2カラムレイアウト構造 */
.content-in {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 0 !important;
}

.main {
  width: calc(100% - 280px) !important;
  float: none !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.sidebar {
  width: 260px !important;
  float: none !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

#header,
.header-outer,
#header-in,
.header-in,
.logo-header {
  height: 340px !important;
  min-height: 340px !important;
  max-height: 340px !important;
}


/* ==========================================
   2. 個別配置（パーツの配置・形状・余白）
   ========================================== */

/* ヘッダー＆ロゴ */
.header-in,
#header-in {
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.logo-header img,
.site-name-text-link img {
  width: auto !important;
  max-width: 800px !important;
  height: auto !important;
  max-height: 300px !important;
  display: block !important;
  margin-left: 30px !important;
  margin-right: auto !important;
}

/* フッター装飾・余白 */
#footer {
  padding: 20px 0 !important;
}

/* サイドバー内部構造・見出し */
.sidebar {
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(26, 15, 0, 0.4) !important;
}

.sidebar .widget-title,
.sidebar .widgettitle,
.sidebar h2,
.sidebar h3 {
  font-size: 15px !important;
  letter-spacing: 1px !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  margin-bottom: 14px !important;
}

.sidebar ul li a {
  font-weight: bold !important;
  text-decoration: none !important;
}

.sidebar ul li a:hover {
  text-decoration: underline !important;
}

.sidebar .widget {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 0 18px 0 !important;
  margin-bottom: 18px !important;
}

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

/* サイドバー プロフィール中央寄せ */
.sidebar .author-box,
.sidebar .author-widget,
.sidebar .widget_author_box,
.sidebar .profile-box,
#sidebar .author-box,
#sidebar .author-widget {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.sidebar .author-box *,
.sidebar .author-widget *,
.sidebar .widget_author_box *,
.sidebar [class*="author"] *,
.sidebar [class*="profile"] * {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sidebar .author-thumb,
.sidebar .author-thumb img,
.sidebar .author-box img,
.sidebar .author-widget img {
  display: block !important;
  margin: 0 auto 10px auto !important;
  float: none !important;
}

/* サイドバー タグクラウド */
.widget_tag_cloud .tagcloud,
.tagcloud {
  display: block !important;
  line-height: 1.8 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.widget_tag_cloud a,
.tagcloud a {
  display: inline !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: bold !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.widget_tag_cloud a:hover,
.tagcloud a:hover {
  text-decoration: underline !important;
}

.widget_tag_cloud a::before,
.tagcloud a::before {
  content: "＃" !important;
  font-weight: bold !important;
}

.widget_tag_cloud a:not(:last-child)::after,
.tagcloud a:not(:last-child)::after {
  content: ", " !important;
  margin-right: 4px !important;
  font-weight: normal !important;
}

/* パンくずリスト */
.breadcrumb .fa-home,
.breadcrumb .fa-folder,
.breadcrumb .fa-folder-open,
.breadcrumb .fa-home-alt,
#breadcrumb .fa-home,
#breadcrumb .fa-folder,
#breadcrumb .fa-folder-open,
#breadcrumb .fa-home-alt {
  display: none !important;
}

.breadcrumb .fa-angle-right,
.breadcrumb .fa-chevron-right,
.breadcrumb .sp,
#breadcrumb .fa-angle-right,
#breadcrumb .fa-chevron-right,
#breadcrumb .sp {
  display: inline-block !important;
  margin: 0 8px !important;
  font-size: 11px !important;
  opacity: 0.7 !important;
}

/* 記事一覧（エントリーカード）の内部並び順 Flexbox制御 */
.entry-card-wrap,
a.entry-card-wrap {
  position: relative !important;
  display: block !important;
  padding-bottom: 60px !important;
  margin-bottom: 40px !important;
}

.entry-card-content {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

/* 順番制御: 1.タイトル / 2.投稿日 / 3.アイキャッチ / 4.本文 / 5.タグ */
.entry-card-title,
.entry-card-title a { order: 1 !important; }

.entry-card-info,
.entry-card-meta,
.entry-card-wrap .post-date,
.entry-card-wrap .entry-card-post-date,
.entry-card-wrap .entry-card-date,
.entry-card-wrap .entry-card-meta-box {
  order: 2 !important;
  position: static !important;
  display: block !important;
  width: 100% !important;
}

.entry-card-thumb {
  order: 3 !important;
  width: 100% !important;
  max-height: 400px !important;
  margin: 15px 0 !important;
}

.entry-card-snippet {
  order: 4 !important;
  position: static !important;
  display: block !important;
}

.entry-card-tags,
.entry-card-tag { order: 5 !important; }

/* カード内要素の個別形状・余白 */
.entry-card-title,
.entry-card-title a {
  font-size: 28px !important;
  margin-top: 4px !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
  display: block !important;
  padding-left: 12px !important;
  font-weight: bold !important;
  text-decoration: none !important;
}

.entry-card-title a:hover {
  text-decoration: underline !important;
}

.entry-card-info,
.entry-card-meta,
.entry-card-wrap .post-date,
.entry-card-wrap .entry-card-post-date,
.entry-card-wrap .entry-card-date,
.entry-card-wrap .entry-card-meta-box {
  float: none !important;
  text-align: right !important;
  font-size: 12px !important;
  font-weight: normal !important;
  white-space: nowrap !important;
  margin-top: 2px !important;
  margin-bottom: 15px !important;
  padding-right: 0 !important;
}

.entry-card-wrap .entry-card-info::before,
.entry-card-wrap .entry-card-meta::before,
.entry-card-wrap .post-date-box::before {
  content: none !important;
}

.entry-card-wrap .post-date::before,
.entry-card-wrap .entry-card-post-date::before,
.entry-card-wrap .entry-card-date::before {
  content: "投稿日 : " !important;
  font-weight: bold !important;
  font-size: 12px !important;
}

.entry-card-thumb img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  display: block !important;
}

.entry-card-snippet {
  font-size: 16px !important;
  line-height: 1.8 !important;
  margin-top: 5px !important;
  margin-bottom: 20px !important;
}

.entry-card-snippet::after {
  content: none !important;
  display: none !important;
}

.entry-card-tags,
.entry-card-tag {
  margin-top: 15px !important;
  margin-bottom: 15px !important;
  display: block !important;
}

.entry-card-tags a,
.entry-card-tag a,
.entry-card-wrap .tag-link {
  border-radius: 4px !important;
  padding: 6px 12px !important;
  text-decoration: none !important;
  display: inline-block !important;
  font-weight: bold !important;
  font-size: 14px !important;
  margin-right: 6px !important;
}

.entry-card-tags a::before,
.entry-card-tag a::before {
  content: "#" !important;
  margin-right: 3px !important;
  font-weight: bold !important;
}

/* 「続きを読む」ボタン位置 */
.entry-card-wrap::after,
.entry-card-wrap .more-link-btn {
  content: "続きを読む" !important;
  position: absolute !important;
  bottom: 5px !important;
  right: 0 !important;
  padding: 8px 20px !important;
  border-radius: 4px !important;
  font-weight: bold !important;
  font-size: 14px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: block !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
}

/* 記事一覧カードの透過・境界線 */
.entry-card-wrap,
a.entry-card-wrap,
.ect-entry-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.entry-card-wrap *,
.entry-card-content,
.entry-card-snippet,
.entry-card-meta,
.entry-card-info {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}


/* ==========================================
   3. カラー設定（背景色・文字色・枠線色）
   ========================================== */

/* 全体＆基本フォントカラー */
body {
  background-color: #ffebcc !important;
  font-size: 18px !important;
  color: #1a0f00 !important;
}

/* 記事エリア背景 */
.main {
  background-color: #fffaf0 !important;
}

/* ヘッダーカラー */
#header {
  border-bottom: 8px solid #1a0f00 !important;
}

/* フッターカラー */
#footer {
  border-top: 2px solid #ff9900 !important;
}

#footer,
.footer,
#footer a,
.footer a,
.copyright {
  background-color: #1a0f00 !important;
  color: #ff9900 !important;
}

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

/* サイドバーカラー */
.sidebar {
  background-color: #331e00 !important;
  border: 1px solid rgba(255, 153, 0, 0.3) !important;
}

.sidebar .widget-title,
.sidebar .widgettitle,
.sidebar h2,
.sidebar h3 {
  background-color: #1a0f00 !important;
  color: #ff9900 !important;
  border: 1px solid #ff9900 !important;
}

.sidebar,
.sidebar ul li,
.sidebar ul li a,
.sidebar .widget,
.sidebar .widget a,
.sidebar .widget_search,
.sidebar label {
  color: #ffffff !important;
}

.sidebar ul li a:hover,
.sidebar .widget a:hover {
  color: #ff9900 !important;
}

.sidebar .widget {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.widget_tag_cloud a,
.tagcloud a {
  color: #ff9900 !important;
}

.widget_tag_cloud a:hover,
.tagcloud a:hover {
  color: #ffffff !important;
}

.widget_tag_cloud a::before,
.tagcloud a::before {
  color: #ff9900 !important;
}

.widget_tag_cloud a:not(:last-child)::after,
.tagcloud a:not(:last-child)::after {
  color: #ffffff !important;
}

/* パンくずリストカラー */
.breadcrumb .fa-angle-right,
.breadcrumb .fa-chevron-right,
.breadcrumb .sp,
#breadcrumb .fa-angle-right,
#breadcrumb .fa-chevron-right,
#breadcrumb .sp {
  color: #1a0f00 !important;
}

/* 記事一覧カード内カラー */
.entry-card-title,
.entry-card-title a {
  border-left: 6px solid #1a0f00 !important;
  color: #ff9900 !important;
}

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

.entry-card-info,
.entry-card-meta,
.entry-card-wrap .post-date,
.entry-card-wrap .entry-card-post-date,
.entry-card-wrap .entry-card-date,
.entry-card-wrap .entry-card-meta-box {
  color: #1a0f00 !important;
}

.entry-card-wrap .post-date::before,
.entry-card-wrap .entry-card-post-date::before,
.entry-card-wrap .entry-card-date::before {
  color: #1a0f00 !important;
}

.entry-card-snippet {
  color: #1a0f00 !important;
}

.entry-card-tags a,
.entry-card-tag a,
.entry-card-wrap .tag-link {
  background-color: #331e00 !important;
  color: #ff9900 !important;
  border: 1px solid #ff9900 !important;
}

.entry-card-wrap::after,
.entry-card-wrap .more-link-btn {
  background-color: #331e00 !important;
  color: #ff9900 !important;
  border: 1px solid #1a0f00 !important;
}

.entry-card-wrap:hover::after,
.entry-card-wrap .more-link-btn:hover {
  background-color: #1a0f00 !important;
  color: #ffffff !important;
}

.entry-card-wrap,
a.entry-card-wrap,
.ect-entry-card {
  border-bottom: 1px dashed #1a0f00 !important;
}


/* ==========================================
   4. 記事ページ表示（単体記事・解説ボックス）
   ========================================== */

/* 単体記事ページの全体余白 */
.single #main,
.single .main {
  overflow: visible !important;
  margin-bottom: 140px !important;
}

/* 記事ページ パンくずリスト */
.single .breadcrumb,
.single #breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  font-size: 13px !important;
  margin-bottom: 15px !important;
  color: #1a0f00 !important;
}

.single .breadcrumb a,
.single #breadcrumb a {
  color: #1a0f00 !important;
  text-decoration: none !important;
  font-weight: bold !important;
}

.single .breadcrumb a:hover,
.single #breadcrumb a:hover {
  color: #ff9900 !important;
  text-decoration: underline !important;
}

/* 記事ページのタイトル */
.single .entry-title {
  border: none !important;
  border-left: 6px solid #1a0f00 !important;
  padding-left: 12px !important;
  font-weight: bold !important;
  text-decoration: none !important;
  color: #ff9900 !important;
  margin-top: 10px !important;
  margin-bottom: 8px !important;
}

/* 記事ページの投稿日 */
.single .post-date-box,
.single .post-date {
  float: none !important;
  text-align: right !important;
  font-size: 12px !important;
  color: #1a0f00 !important;
  font-weight: normal !important;
  display: block !important;
  margin-bottom: 20px !important;
  margin-top: 0 !important;
}

.single .post-date::before {
  content: "投稿日：" !important;
  font-weight: bold !important;
  color: #1a0f00 !important;
}

/* 記事ページのタグボタン */
.single .entry-tags,
.single .entry-tag {
  margin-top: 15px !important;
  margin-bottom: 15px !important;
  display: block !important;
}

.single .entry-tags a,
.single .entry-tag a,
.single .tag-link {
  border-radius: 4px !important;
  padding: 6px 12px !important;
  text-decoration: none !important;
  display: inline-block !important;
  font-weight: bold !important;
  font-size: 14px !important;
  margin-right: 6px !important;
  background-color: #331e00 !important;
  color: #ff9900 !important;
  border: 1px solid #ff9900 !important;
}

.single .entry-tags a::before,
.single .entry-tag a::before {
  content: "#" !important;
  margin-right: 3px !important;
  font-weight: bold !important;
}

.single .entry-tags a:hover,
.single .entry-tag a:hover {
  background-color: #1a0f00 !important;
  color: #ffffff !important;
}

/* 前後の記事ナビ（記事の外側配置＆ホバー時オレンジ発色） */
.single #main,
.single .main {
  overflow: visible !important;
  margin-bottom: 140px !important;
}

.single .pager-post-navi {
  margin-top: 80px !important;
  margin-bottom: -100px !important; /* 白枠（記事エリア）の外側へはみ出させる */
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.single .pager-post-navi a {
  background-color: #ffffff !important; /* 外側の背景に映えるスッキリした白 */
  color: #1a0f00 !important; /* 通常時の文字色 */
  border: 1px solid rgba(26, 15, 0, 0.15) !important; /* さりげない薄い枠線 */
  border-radius: 6px !important;
  padding: 12px 18px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; /* 記事の外で少し浮いて見える上品な影 */
  transition: all 0.25s ease !important;
}

/* ホバー時：文字色と枠線をメインのオレンジ（#ff9900）に変更 */
.single .pager-post-navi a:hover {
  background-color: #ffffff !important;
  color: #ff9900 !important; /* ★文字色をメインのオレンジに */
  border-color: #ff9900 !important; /* ★枠線もメインのオレンジに */
  transform: translateY(-2px); /* ふんわり持ち上がるアニメーション */
}

/* ホバー時：アクセントカラーがふんわり浮かぶ演出 */
.single .pager-post-navi a:hover {
  background-color: #ffebcc !important; /* 全体背景と馴染む淡いオレンジ */
  border-color: #ff9900 !important; /* 枠線のみ鮮やかなオレンジに発色 */
  color: #1a0f00 !important;
  transform: translateY(-2px); /* わずかに浮き上がるアニメーション */
}

.single .pager-post-navi a:hover {
  background-color: #1a0f00 !important;
  color: #ffffff !important;
}

/* 本文上のカテゴリー/タグ解説ボックス */
.custom-tag-description {
  background-color: #ffdfb3 !important;
  border: 1px solid #1a0f00 !important;
  border-left: 5px solid #ff9500 !important;
  padding: 12px 16px !important;
  margin-bottom: 20px !important;
  border-radius: 4px !important;
  font-size: 15px !important;
  color: #1a0f00 !important;
}

.custom-tag-description p {
  color: #1a0f00 !important;
  margin: 0 !important;
  line-height: 1.7 !important;
}

.custom-tag-description p:last-child {
  margin-bottom: 0 !important;
}

.custom-tag-description strong,
.custom-tag-description a {
  color: #1a0f00 !important;
  font-weight: bold !important;
}