/* ============================================================
   caudexbase.com — Botanical Encyclopedia Style
   WordPress (Cocoon) Custom CSS — Phase 1
   Last updated: 2026-03-31
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   Google Fonts
   ──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');


/* ────────────────────────────────────────────────────────────
   1. サイト全体 基本スタイル
   ──────────────────────────────────────────────────────────── */

/* リセット・ルート変数 */
:root {
  --color-bg:         #FAF7F4;
  --color-surface:    #FFFFFF;
  --color-accent:     #C17A5A;
  --color-accent-dk:  #A05A38;
  --color-text:       #1A1A1A;
  --color-text-sub:   #6B6B6B;
  --color-border:     #E5E5E5;
  --color-header-bg:  #242424;
  --color-footer-bg:  #1A1A1A;
  --color-footer-txt: #AAAAAA;

  --font-serif: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  --font-sans:  'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  --font-latin: 'Cormorant Garamond', 'Georgia', serif;

  --radius:    6px;
  --shadow:    0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-hv: 0 6px 24px rgba(0, 0, 0, 0.13);
  --transition: 0.22s ease;
}

/* ページ全体 */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

/* 見出し全般 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

/* リンク */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-accent-dk);
  text-decoration: underline;
}

/* 本文中のリンクのみアンダーライン */
.entry-content a,
.article-body a {
  text-decoration: underline;
  text-decoration-color: rgba(193, 122, 90, 0.4);
  text-underline-offset: 3px;
}

/* 画像の角丸 */
img {
  border-radius: var(--radius);
}

/* 区切り線 */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.4em 0;
}


/* ────────────────────────────────────────────────────────────
   2. ヘッダー
   ──────────────────────────────────────────────────────────── */

/* ヘッダー外枠 */
#header,
.site-header {
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 8px rgba(58, 50, 40, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ヘッダー内コンテナ */
#header .header-in,
.site-header .header-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴエリア */
#header .site-name-text,
.site-header .site-name-text,
#header .header-logo a,
.site-header .header-logo a {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  text-decoration: none;
}
#header .site-name-text:hover,
.site-header .site-name-text:hover {
  color: #DDDDDD;
  text-decoration: none;
}

/* ロゴ縦積みレイアウト（サイト名＋タグライン） */
.logo-header .site-name-text-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.logo-header .site-name-text-link::after {
  content: '塊根植物のポータルサイト';
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1;
}

/* ロゴ前：塊根植物シルエット */
#header .site-name-text::before,
.site-header .site-name-text::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 30'%3E%3Cellipse cx='11' cy='5.5' rx='5' ry='6' fill='white' opacity='.82'/%3E%3Crect x='10' y='10.5' width='2' height='4' rx='1' fill='white' opacity='.85'/%3E%3Cellipse cx='11' cy='21' rx='10' ry='7.5' fill='white' opacity='.85'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 9px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ロゴ画像 */
#header .site-logo-image img,
.site-header .site-logo-image img {
  max-height: 48px;
  width: auto;
  border-radius: 0;
}

/* グローバルナビゲーション */
#navi {
  background-color: var(--color-header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#navi-in {
  background-color: transparent;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* PCメニューリスト */
.menu-top.menu-pc {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ナビリンク */
.menu-top.menu-pc > li > a {
  display: block;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #DDDDDD;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.menu-top.menu-pc > li > a .item-label {
  font-size: 13.5px;
}

.menu-top.menu-pc > li > a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  text-decoration: none;
}

/* アクティブ（現在のページ・祖先カテゴリ） */
.menu-top.menu-pc > li.current-menu-item > a,
.menu-top.menu-pc > li.current_page_item > a,
.menu-top.menu-pc > li.current-menu-ancestor > a,
.menu-top.menu-pc > li.current-menu-parent > a,
.menu-top.menu-pc > li.current_page_ancestor > a {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.12);
}

/* ドロップダウンメニュー */
.menu-top.menu-pc > li > ul {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  min-width: 180px;
}

.menu-top.menu-pc > li > ul > li > a {
  font-size: 13px;
  padding: 9px 18px;
  color: var(--color-text);
  display: block;
  transition: background-color var(--transition), color var(--transition);
}

.menu-top.menu-pc > li > ul > li > a:hover {
  background-color: var(--color-bg);
  color: var(--color-accent);
  text-decoration: none;
}


/* ────────────────────────────────────────────────────────────
   3. フッター
   ──────────────────────────────────────────────────────────── */

#footer,
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-txt);
  padding: 52px 24px 28px;
  font-size: 13.5px;
  line-height: 1.8;
}

/* フッター内コンテナ */
#footer .footer-in,
.site-footer .footer-in {
  max-width: 1160px;
  margin: 0 auto;
}

/* フッターウィジェットエリア */
#footer .footer-widget-area,
.site-footer .footer-widget-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 28px;
}

/* フッター見出し */
#footer .widget-title,
.site-footer .widget-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* フッターリンク */
#footer a,
.site-footer a {
  color: var(--color-footer-txt);
  transition: color var(--transition);
}
#footer a:hover,
.site-footer a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

/* フッターナビ */
#navi-footer-in .menu-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
}

#navi-footer-in .menu-footer li {
  padding: 4px 0;
}

#navi-footer-in .menu-footer li a {
  color: var(--color-footer-txt);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition);
}

#navi-footer-in .menu-footer li a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

#footer ul,
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#footer ul li,
.site-footer ul li {
  padding: 4px 0;
  border-bottom: none;
}

/* コピーライト */
#footer .copyright,
.site-footer .copyright,
#footer .site-info {
  text-align: center;
  font-size: 12px;
  color: rgba(200, 191, 181, 0.65);
  letter-spacing: 0.04em;
}


/* ────────────────────────────────────────────────────────────
   4. パンくずリスト
   ──────────────────────────────────────────────────────────── */

.rank-math-breadcrumb {
  padding: 10px 0 18px;
  margin-bottom: 4px;
}

.rank-math-breadcrumb p {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.5;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.rank-math-breadcrumb a {
  color: #888888;
  text-decoration: none;
  transition: color var(--transition);
}
.rank-math-breadcrumb a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.rank-math-breadcrumb .separator {
  font-size: 0; /* 元の " - " テキストを非表示 */
}
.rank-math-breadcrumb .separator::before {
  content: '›';
  font-size: 12px;
  color: #AAAAAA;
  margin: 0 6px;
}

.rank-math-breadcrumb .last {
  color: var(--color-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}


/* ────────────────────────────────────────────────────────────
   5. サイドバー
   ──────────────────────────────────────────────────────────── */

/* サイドバー外枠 */
#sidebar,
.sidebar {
  padding: 0 0 0 8px;
}

/* ウィジェット */
#sidebar .widget,
.sidebar .widget {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

/* ウィジェット見出し */
#sidebar .widget-title,
.sidebar .widget-title,
#sidebar h2,
#sidebar h3,
.sidebar h2,
.sidebar h3 {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin: 0 0 14px;
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
}

/* 見出し左のアクセントライン */
#sidebar .widget-title::before,
.sidebar .widget-title::before,
#sidebar h2::before,
#sidebar h3::before,
.sidebar h2::before,
.sidebar h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* カテゴリーメニュー：セクションヘッダー（属別図鑑など）*/
#sidebar .menu-section-header,
.sidebar .menu-section-header {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text);
  padding: 7px 0;
  border-bottom: none;
}

/* セクションヘッダーアイコン */
#sidebar .menu-section-icon,
.sidebar .menu-section-icon {
  margin-right: 5px;
  font-style: normal;
}

/* セクションヘッダー直後のliは上マージン不要 */
#sidebar .menu-section-header + li,
.sidebar .menu-section-header + li {
  padding-top: 2px;
}

/* カテゴリーメニュー：子項目 */
#sidebar .widget_nav_menu .menu li a,
.sidebar .widget_nav_menu .menu li a {
  font-size: 13.5px;
  color: var(--color-text);
  padding-left: 2px;
}

/* 子カテゴリー（sub-menu）はインデント＋小さく */
#sidebar .widget_nav_menu .sub-menu li a,
.sidebar .widget_nav_menu .sub-menu li a {
  font-size: 12.5px;
  color: var(--color-text-sub);
  padding-left: 12px;
}

/* サイドバーリスト */
#sidebar .widget ul,
.sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar .widget ul li,
.sidebar .widget ul li {
  padding: 7px 0;
  border-bottom: 1px dotted var(--color-border);
  font-size: 13.5px;
  line-height: 1.55;
}
#sidebar .widget ul li:last-child,
.sidebar .widget ul li:last-child {
  border-bottom: none;
}

/* 人気記事・最新記事のサムネイル */
#sidebar .widget .popular-posts li,
#sidebar .widget .new-entry-item,
.sidebar .widget .new-entry-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}

/* タグクラウド */
#sidebar .widget .tagcloud a,
.sidebar .widget .tagcloud a {
  display: inline-block;
  font-size: 12px !important;
  padding: 4px 10px;
  margin: 3px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-sub);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
#sidebar .widget .tagcloud a:hover,
.sidebar .widget .tagcloud a:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
  text-decoration: none;
}


/* ────────────────────────────────────────────────────────────
   6. 記事カード（一覧ページ）
   ──────────────────────────────────────────────────────────── */

/* カードグリッド */
.card-entry-list,
.archive-entry-card-wrap,
.post-list.card,
#list.ect-entry-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* カード1枚（<a>タグがラッパー） */
.card-entry,
.entry-card-wrap,
.post-list-card-item,
#list.ect-entry-card .entry-card-wrap {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

/* カード内のarticleも縦並びに */
#list.ect-entry-card .entry-card {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Cocoonの横並びレイアウトを上書き→縦並びに */
#list.ect-entry-card .entry-card-thumb {
  width: 100% !important;
  flex-shrink: 0;
}

#list.ect-entry-card .entry-card-content {
  margin-left: 0 !important;
  width: 100% !important;
}

/* カテゴリラベル重複を防ぐ（サムネイル上のみ表示） */
#list.ect-entry-card .entry-card-categorys {
  display: none;
}

/* ホバー */
.card-entry:hover,
.entry-card-wrap:hover,
.post-list-card-item:hover {
  box-shadow: var(--shadow-hv);
  transform: translateY(-3px);
}

/* カードサムネイル */
.card-entry .entry-card-thumb,
.entry-card-wrap .entry-card-thumb,
.post-list-card-item .eyecatch {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-entry .entry-card-thumb img,
.entry-card-wrap .entry-card-thumb img,
.post-list-card-item .eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.35s ease;
}

.card-entry:hover .entry-card-thumb img,
.entry-card-wrap:hover .entry-card-thumb img,
.post-list-card-item:hover .eyecatch img {
  transform: scale(1.04);
}

/* カードコンテンツ */
.card-entry .entry-card-content,
.entry-card-wrap .entry-card-content,
.post-list-card-item .entry-card-content {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* カードタイトル */
.card-entry .entry-card-title,
.entry-card-wrap .entry-card-title,
.post-list-card-item .entry-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(15px * 1.5 * 2);
}

/* カードタイトルリンク */
.card-entry .entry-card-title a,
.entry-card-wrap .entry-card-title a,
.post-list-card-item .entry-title a {
  color: var(--color-text);
  text-decoration: none;
}
.card-entry:hover .entry-card-title a,
.entry-card-wrap:hover .entry-card-title a,
.post-list-card-item:hover .entry-title a {
  color: var(--color-accent);
}

/* カード抜粋：2行クランプで表示 */
.card-entry .entry-card-snippet,
.entry-card-wrap .entry-card-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-top: 4px;
}

/* 投稿日（一覧ページのみ非表示） */
.card-entry .entry-card-date,
.entry-card-wrap .entry-card-date,
.post-list-card-item .post-date,
.entry-card-wrap .entry-date,
.entry-card-wrap .post-date {
  display: none;
}

/* カテゴリラベル */
.card-entry .cat-label,
.entry-card-wrap .cat-label,
.cat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 3px;
  background-color: var(--color-accent);
  color: #FFFFFF;
  text-decoration: none;
  line-height: 1.4;
}

/* カテゴリ別ラベルカラー（育て方） */
.entry-card-wrap .cat-label-19 { background-color: #3D7A5A; } /* 管理の基本 */
.entry-card-wrap .cat-label-22 { background-color: #B04A2A; } /* トラブル対処 */
.entry-card-wrap .cat-label-21 { background-color: #4A6A9A; } /* 作業・メンテナンス */
.entry-card-wrap .cat-label-20 { background-color: #7A5A3A; } /* 基礎知識 */

/* カテゴリ別ラベルカラー（アイテム・道具） */
.entry-card-wrap .cat-label-16 { background-color: #5A4A3A; } /* 鉢・容器 */
.entry-card-wrap .cat-label-17 { background-color: #3A5A7A; } /* 光・環境アイテム */
.entry-card-wrap .cat-label-15 { background-color: #4A7A4A; } /* 肥料・薬剤 */
.entry-card-wrap .cat-label-18 { background-color: #6A4A6A; } /* 植え替えアイテム */
.entry-card-wrap .cat-label-78 { background-color: #5A6A3A; } /* 用土・資材 */
.entry-card-wrap .cat-label-79 { background-color: #3A6A7A; } /* 水やり・管理ツール */

/* カテゴリナビゲーション（育て方・アイテム一覧ページ上部） */
.cb-cat-nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 2em;
}
.cb-cat-nav__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
  border: 1px solid var(--color-border);
  border-top: 4px solid #CCCCCC;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
}
.cb-cat-nav__item:hover {
  background: #FAFAFA;
  text-decoration: none;
}
.cb-cat-nav__item::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: left center;
  margin-bottom: 4px;
}
.cb-cat-nav__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}
.cb-cat-nav__count {
  font-size: 11px;
  color: var(--color-text-sub);
}

/* カテゴリ別：ボーダーカラー＋SVGアイコン（アイテム） */
.cb-cat-nav__item[data-slug="hachi"]  { border-top-color: #5A4A3A; }
.cb-cat-nav__item[data-slug="hikari"] { border-top-color: #3A5A7A; }
.cb-cat-nav__item[data-slug="eiyou"]  { border-top-color: #4A7A4A; }
.cb-cat-nav__item[data-slug="uekae"]  { border-top-color: #6A4A6A; }
.cb-cat-nav__item[data-slug="yodo"]   { border-top-color: #5A6A3A; }
.cb-cat-nav__item[data-slug="mizu"]   { border-top-color: #3A6A7A; }

/* カテゴリ別：ボーダーカラー＋SVGアイコン（育て方） */
.cb-cat-nav__item[data-slug="kanri"]   { border-top-color: #3D7A5A; }
.cb-cat-nav__item[data-slug="kiso"]    { border-top-color: #7A5A3A; }
.cb-cat-nav__item[data-slug="shigoto"] { border-top-color: #4A6A9A; }
.cb-cat-nav__item[data-slug="trouble"] { border-top-color: #B04A2A; }

/* SVGアイコン */
.cb-cat-nav__item[data-slug="hachi"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l-1.5 9H7.5L6 8z'/%3E%3Cpath d='M4.5 8h15'/%3E%3Cpath d='M10 17v2'/%3E%3Cpath d='M14 17v2'/%3E%3Cpath d='M9 19h6'/%3E%3C/svg%3E");
}
.cb-cat-nav__item[data-slug="hikari"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21h6'/%3E%3Cpath d='M12 3a6 6 0 0 1 6 6c0 2.5-1.5 4.5-3 5.5V17H9v-2.5C7.5 13.5 6 11.5 6 9a6 6 0 0 1 6-6z'/%3E%3Cpath d='M9 17h6'/%3E%3C/svg%3E");
}
.cb-cat-nav__item[data-slug="eiyou"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6v4l1.5 2H7.5L9 7V3z'/%3E%3Cpath d='M7.5 9h9l1 9.5a1 1 0 0 1-1 1.5h-9a1 1 0 0 1-1-1.5L7.5 9z'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M10 16h4'/%3E%3C/svg%3E");
}
.cb-cat-nav__item[data-slug="uekae"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19l8-8'/%3E%3Cpath d='M13 11l2-5 5-2-2 5-5 2z'/%3E%3Cpath d='M3 21l4-2-2-2-2 4z'/%3E%3C/svg%3E");
}
.cb-cat-nav__item[data-slug="yodo"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='8' width='14' height='13' rx='1'/%3E%3Cpath d='M8 8V6a4 4 0 0 1 8 0v2'/%3E%3Ccircle cx='9' cy='13' r='1'/%3E%3Ccircle cx='12' cy='15' r='1'/%3E%3Ccircle cx='15' cy='13' r='1'/%3E%3C/svg%3E");
}
.cb-cat-nav__item[data-slug="mizu"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='9' cy='13' rx='5' ry='4'/%3E%3Cpath d='M14 13h3a2 2 0 0 0 0-4h-1'/%3E%3Cpath d='M14 11V7a2 2 0 0 0-4 0'/%3E%3Cpath d='M7 17l-1 2'/%3E%3Cpath d='M9 17.5l-.5 1.5'/%3E%3Cpath d='M11 17l1 2'/%3E%3C/svg%3E");
}
.cb-cat-nav__item[data-slug="kanri"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='M4.93 4.93l1.41 1.41'/%3E%3Cpath d='M17.66 17.66l1.41 1.41'/%3E%3Cpath d='M4.93 19.07l1.41-1.41'/%3E%3Cpath d='M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
}
.cb-cat-nav__item[data-slug="kiso"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.5A2.5 2.5 0 0 1 4.5 4H12v16H4.5A2.5 2.5 0 0 1 2 17.5v-11z'/%3E%3Cpath d='M12 4h7.5A2.5 2.5 0 0 1 22 6.5v11A2.5 2.5 0 0 1 19.5 20H12V4z'/%3E%3C/svg%3E");
}
.cb-cat-nav__item[data-slug="shigoto"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='2.5'/%3E%3Ccircle cx='6' cy='18' r='2.5'/%3E%3Cpath d='M8.5 6.5L20 12 8.5 17.5'/%3E%3Cpath d='M8.5 6.5L14 12'/%3E%3C/svg%3E");
}
.cb-cat-nav__item[data-slug="trouble"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}

/* ────────────────────────────────────────────────────────────
   5-b. TOPページ ヒーロー・カテゴリ導線
   ──────────────────────────────────────────────────────────── */

/* TOPページヘッダー全体ラッパー（グリッド内でフル幅を確保） */
.cb-top-header {
  grid-column: 1 / -1;
  width: 100%;
}

/* ヒーローエリア */
.cb-hero {
  padding: 52px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.cb-hero__catch {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin: 0 0 14px;
  line-height: 1.5;
}

.cb-hero__sub {
  font-size: 13px;
  color: var(--color-text-sub);
  letter-spacing: 0.06em;
  margin: 0 0 28px;
  line-height: 1.8;
}

.cb-hero__cta {
  display: inline-block;
  padding: 10px 32px;
  background-color: var(--color-text);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition);
}

.cb-hero__cta:hover {
  background-color: var(--color-accent);
  transform: translateY(-1px);
  text-decoration: none;
  color: #FFFFFF;
}

/* 属別カテゴリ導線 */
.cb-genus-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 48px;
}

.cb-genus-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}

.cb-genus-nav__item:hover {
  box-shadow: var(--shadow-hv);
  transform: translateY(-2px);
  text-decoration: none;
}

.cb-genus-nav__name {
  font-family: var(--font-latin);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.cb-genus-nav__ja {
  font-size: 12px;
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
}

/* 属カードバッジ（生育型・難易度・記事数） */
.cb-genus-nav__badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.cb-genus-nav__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 3px;
  line-height: 1.7;
}

.cb-genus-nav__badge--summer {
  background-color: #FFF3E6;
  color: #C15B00;
}

.cb-genus-nav__badge--winter {
  background-color: #EBF0FF;
  color: #1A47A0;
}

.cb-genus-nav__badge--varied {
  background-color: #F0F0F0;
  color: #555555;
}

.cb-genus-nav__badge--beginner {
  background-color: #F0FFF4;
  color: #276749;
}

.cb-genus-nav__badge--mid {
  background-color: #F5F5F5;
  color: #555555;
}

.cb-genus-nav__badge--advanced {
  background-color: #FFF0EE;
  color: #9B3200;
}

.cb-genus-nav__count {
  font-size: 11px;
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.cb-genus-nav__more {
  grid-column: 1 / -1;
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 4px 0 0;
}
.cb-genus-nav__more:hover {
  color: var(--color-text);
}

/* 図鑑キーワード検索フォーム */
.cb-catalog-search {
  margin: 0 0 32px;
}
.cb-catalog-search form {
  display: flex;
  gap: 8px;
}
.cb-catalog-search__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition);
}
.cb-catalog-search__input:focus {
  border-color: var(--color-accent);
}
.cb-catalog-search__input::placeholder {
  color: var(--color-text-sub);
}
.cb-catalog-search__btn {
  padding: 10px 20px;
  background: var(--color-accent-dk);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.cb-catalog-search__btn:hover {
  opacity: 0.75;
}

/* コンテンツナビ（3ブロック） */
.cb-content-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 48px;
}
.cb-content-nav__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}
.cb-content-nav__item:hover {
  box-shadow: var(--shadow-hv);
  transform: translateY(-2px);
  text-decoration: none;
}
.cb-content-nav__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.06em;
}
.cb-content-nav__desc {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* 最新記事ラベル */
.cb-latest-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-sub);
  text-transform: uppercase;
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

/* ────────────────────────────────────────────────────────────
   5-c. メインコンテンツ幅
   ──────────────────────────────────────────────────────────── */

#main,
.main,
.content-area {
  max-width: 100%;
}

/* Cocoonのラッパーレイアウトには干渉しない（サイドバー位置に影響するため） */


/* ────────────────────────────────────────────────────────────
   6. 属別カテゴリアーカイブ ヘッダー
   ──────────────────────────────────────────────────────────── */

.cb-genus-header {
  padding: 4px 0 28px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
  grid-column: 1 / -1;
  width: 100%;
}

.cb-genus-header__name {
  font-family: var(--font-latin);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.cb-genus-header__name-ja {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}

.cb-genus-header__desc {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--color-text);
  margin: 0 0 18px;
}

.cb-genus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.cb-genus-meta__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cb-genus-meta__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
  background-color: #F0F0F0;
  color: #555555;
  white-space: nowrap;
}

.cb-genus-meta__value {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

/* 種類一覧見出し（グリッド内でフル幅を確保） */
.cb-species-list-heading {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--color-text);
}

/* ────────────────────────────────────────────────────────────
   6-b. 関連記事セクション
   ──────────────────────────────────────────────────────────── */

.related-articles {
  margin: 48px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--color-border);
}

.related-articles__heading {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.related-articles + .related-articles .related-articles__heading {
  margin-top: 20px;
}

.related-articles__list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-articles__list li {
  padding: 0;
  margin: 0;
}

.related-articles__list li::before {
  display: none;
}

.related-articles__list a {
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  padding-left: 12px;
  position: relative;
  line-height: 1.6;
}

.related-articles__list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--color-text-sub);
  border-right: 1.5px solid var(--color-text-sub);
  transform: rotate(45deg);
}

.related-articles__list a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* アーカイブカード: no-image プレースホルダー */
.entry-card-thumb img.no-image {
  visibility: hidden;
}

.card-thumb-no-image,
.entry-card-thumb:has(img.no-image),
.no-thumbnail .entry-card-thumb {
  position: relative;
  background-color: #F4F4F4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb-no-image::after,
.entry-card-thumb:has(img.no-image)::after,
.no-thumbnail .entry-card-thumb::after {
  content: '準備中';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #AAAAAA;
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* アーカイブカード: タイトルの属名部分（「・」以前）をサブカラーに */
.entry-card-title {
  white-space: normal;
}

/* ────────────────────────────────────────────────────────────
   レスポンシブ調整
   ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  body {
    font-size: 14.5px;
  }

  /* ヘッダー */
  #header .header-in,
  .site-header .header-in {
    min-height: 60px;
    padding: 0 16px;
  }

  /* PCナビはモバイルで非表示（Cocoonのモバイルナビに任せる） */
  .menu-top.menu-pc {
    display: none !important;
  }

  /* モバイル用ナビ（#navi内）：横スクロール＋白テキスト */
  .menu-top.menu-mobile {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu-top.menu-mobile > li > a {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 13px;
    padding: 8px 10px;
  }
  .menu-top.menu-mobile > li > a:hover,
  .menu-top.menu-mobile > li.current-menu-item > a,
  .menu-top.menu-mobile > li.current-menu-ancestor > a {
    color: #FFFFFF !important;
  }

  /* カードグリッド：モバイルは2カラム */
  .card-entry-list,
  .archive-entry-card-wrap,
  .post-list.card,
  #list.ect-entry-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* TOPページ カテゴリ導線 */
  .cb-hero {
    padding: 32px 0 28px;
    margin-bottom: 28px;
  }
  .cb-hero__catch {
    font-size: 18px;
  }
  .cb-hero__sub {
    font-size: 12px;
  }
  .cb-genus-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 32px;
  }
  .cb-genus-nav__item {
    padding: 18px 8px;
    gap: 4px;
  }
  .cb-genus-nav__name {
    font-size: 11px;
  }
  .cb-genus-nav__ja {
    font-size: 10px;
  }
  .cb-content-nav {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 32px;
  }
  .cb-content-nav__item {
    padding: 16px;
  }

  /* スマホでカード内を縦並びに強制 */
  #list.ect-entry-card .entry-card-wrap,
  #list.ect-entry-card .entry-card {
    flex-direction: column;
  }

  #list.ect-entry-card .entry-card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  #list.ect-entry-card .entry-card-content {
    padding: 10px 10px 12px;
  }

  #list.ect-entry-card .entry-card-title {
    font-size: 12px;
    line-height: 1.4;
  }

  #list.ect-entry-card .entry-card-snippet {
    display: none;
  }

  /* サイドバー：Cocoonのボトムツールバー（サイドバーボタン）で制御 */
  #sidebar,
  .sidebar {
    padding: 0;
    margin-top: 24px;
  }

  /* 属別ヘッダー */
  .cb-genus-header {
    padding: 4px 0 20px;
    margin-bottom: 20px;
  }
  .cb-genus-header__desc {
    font-size: 14px;
  }
  .cb-genus-meta {
    gap: 8px 14px;
  }
  .cb-genus-meta__label {
    font-size: 10.5px;
  }
  .cb-genus-meta__value {
    font-size: 12.5px;
  }

  /* 375px以下: アーカイブカードを1カラム */
  @media (max-width: 375px) {
    .archive-entry-cards,
    #list.ect-entry-card {
      grid-template-columns: 1fr !important;
    }
  }

  /* フッター */
  #footer,
  .site-footer {
    padding: 36px 16px 20px;
  }
  #footer .footer-widget-area,
  .site-footer .footer-widget-area {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* ============================================================
   Phase 2 — 種別記事ページ（.entry-content）スタイル
   Last updated: 2026-04-02
   ============================================================ */


/* ────────────────────────────────────────────────────────────
   EC-1. entry-content 基盤
   ──────────────────────────────────────────────────────────── */

.entry-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text);
  /* 記事本文のリズムを整えるための縦マージンリセット基準 */
  word-break: break-all;
  overflow-wrap: break-word;
}

/* 記事内の隣接要素間の基本余白 */
.entry-content > * + * {
  margin-top: 1.6em;
}

/* p タグ単体の余白（CocoonのデフォルトはMarginが小さい） */
.entry-content p {
  margin: 0 0 1.4em;
  line-height: 1.95;
}
.entry-content p:last-child {
  margin-bottom: 0;
}


/* ────────────────────────────────────────────────────────────
   EC-2. 見出し
   ──────────────────────────────────────────────────────────── */

/* h2 — セクションの扉 */
.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.45;
  color: var(--color-text);
  margin: 3.2em 0 1.0em;
  padding: 0.55em 0 0.55em 1.1em;
  border-left: 3px solid var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

/* 最初のh2は上マージン不要 */
.entry-content h2:first-child {
  margin-top: 0;
}

/* h3 — サブセクション */
.entry-content h3 {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--color-text);
  margin: 2.4em 0 0.75em;
  padding: 0.3em 0 0.5em 0.75em;
  border-bottom: 1px dotted var(--color-border);
}

/* h4 — 補助見出し（育て方詳細など） */
.entry-content h4 {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin: 1.8em 0 0.5em;
}


/* ────────────────────────────────────────────────────────────
   EC-3. リスト
   ──────────────────────────────────────────────────────────── */

/* ul — 独自マーカー（細い正方形） */
.entry-content ul {
  list-style: none;
  padding: 0;
  margin: 0.8em 0 1.4em;
}

.entry-content ul li {
  padding: 0.3em 0 0.3em 1.4em;
  position: relative;
  line-height: 1.75;
  border-bottom: none;
}

/* 正方形マーカー */
.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0.1em;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ol — 数字リスト */
.entry-content ol {
  list-style: none;
  padding: 0;
  margin: 0.8em 0 1.4em;
  counter-reset: ec-ol;
}

.entry-content ol li {
  padding: 0.3em 0 0.3em 1.8em;
  position: relative;
  line-height: 1.75;
  counter-increment: ec-ol;
  border-bottom: none;
}

.entry-content ol li::before {
  content: counter(ec-ol);
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.3em;
  height: 1.3em;
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-serif);
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ネストされたul（ul > ul）はインデントのみ */
.entry-content ul ul,
.entry-content ol ul {
  margin: 0.2em 0 0.2em 1.0em;
}

.entry-content ul ul li::before {
  width: 4px;
  height: 4px;
  background-color: var(--color-text-sub);
  border-radius: 50%;
  top: 0.78em;
}


/* ────────────────────────────────────────────────────────────
   EC-4. テーブル
   ──────────────────────────────────────────────────────────── */

/* テーブルラッパー（横スクロール制御） */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 1.2em 0 1.8em;
  font-size: 14px;
  line-height: 1.7;
  /* PC: overflow制御のためinline-blockを使わずblock */
  display: table;
}

/* thead */
.entry-content table thead th {
  background-color: #242424 !important;
  color: #FFFFFF !important;
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #3a3a3a !important;
  white-space: nowrap;
}

/* tbody */
.entry-content table tbody tr:nth-child(odd) {
  background-color: #FAFAFA;
}
.entry-content table tbody tr:nth-child(even) {
  background-color: #FFFFFF;
}

.entry-content table tbody tr:hover {
  background-color: #F3F3F3;
  transition: background-color 0.15s ease;
}

.entry-content table td,
.entry-content table th {
  padding: 9px 14px;
  border: 1px solid var(--color-border);
  vertical-align: top;
  font-size: 14px;
}

/* th（行見出し）— 左カラムがラベルの場合 */
.entry-content table tbody th {
  background-color: #F7F7F7;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--color-text);
  white-space: nowrap;
  width: 30%;
  min-width: 90px;
}

/* テーブルを囲む外枠 */
.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2em 0 1.8em;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

/* ブロックエディタのfigure内tableはマージン不要 */
.entry-content .wp-block-table table,
.entry-content figure.wp-block-table table {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ブロックエディタのfigure外tableにもラッパースタイルを付与 */
.entry-content table:not(.wp-block-table table) {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}


/* ────────────────────────────────────────────────────────────
   EC-5. コールアウト（ポイント・注意）
   ──────────────────────────────────────────────────────────── */

/* 共通ベース */
.entry-content .point,
.entry-content .caution,
.entry-content .info {
  padding: 16px 18px 16px 52px;
  border-radius: var(--radius);
  margin: 1.4em 0;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
}

/* アイコン共通 */
.entry-content .point::before,
.entry-content .caution::before,
.entry-content .info::before {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 18px;
  line-height: 1;
}

/* ポイント（緑系） */
.entry-content .point {
  background-color: #F4FBF4;
  border-left: 3px solid #4CAF7D;
  color: var(--color-text);
}
.entry-content .point::before {
  content: '✓';
  color: #4CAF7D;
}

/* 注意（オレンジ系） */
.entry-content .caution {
  background-color: #FFF9F0;
  border-left: 3px solid #E07820;
  color: var(--color-text);
}
.entry-content .caution::before {
  content: '!';
  color: #E07820;
  font-weight: 700;
  font-size: 17px;
}

/* 情報（グレー系） */
.entry-content .info {
  background-color: #F6F6F6;
  border-left: 3px solid #AAAAAA;
  color: var(--color-text-sub);
}
.entry-content .info::before {
  content: 'i';
  color: #AAAAAA;
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
}


/* ────────────────────────────────────────────────────────────
   EC-6. blockquote（引用・補足説明）
   ──────────────────────────────────────────────────────────── */

.entry-content blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--color-border);
  background-color: #F9F9F9;
  color: var(--color-text-sub);
  font-size: 14px;
  line-height: 1.85;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content blockquote p {
  margin: 0;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #999999;
  font-style: normal;
}


/* ────────────────────────────────────────────────────────────
   EC-7. 画像
   ──────────────────────────────────────────────────────────── */

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* figcaption */
.entry-content figcaption,
.entry-content .wp-caption-text {
  font-size: 12px;
  color: var(--color-text-sub);
  text-align: center;
  margin-top: 6px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}


/* ────────────────────────────────────────────────────────────
   EC-8. 区切り（hr）
   ──────────────────────────────────────────────────────────── */

.entry-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.8em 0;
}


/* ────────────────────────────────────────────────────────────
   EC-9. モバイル対応（テーブル縦積み）
   ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

  .entry-content {
    font-size: 14.5px;
  }

  /* h2 スケールダウン */
  .entry-content h2 {
    font-size: 17px;
    margin-top: 2.6em;
    padding: 0.5em 0 0.5em 0.9em;
  }

  .entry-content h3 {
    font-size: 15.5px;
  }

  /* テーブル：横スクロール方式（構造を維持したまま） */
  .entry-content .wp-block-table,
  .entry-content figure.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* スクロール可能を示すグラデーション */
    background:
      linear-gradient(to right, white 30%, rgba(255,255,255,0)),
      linear-gradient(to left, white 30%, rgba(255,255,255,0)) 100% 0,
      radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,0.08), transparent),
      radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.08), transparent) 100% 0;
    background-attachment: local, local, scroll, scroll;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-repeat: no-repeat;
  }

  /* テーブルラッパーなしのtableにも横スクロール */
  .entry-content table:not(.wp-block-table table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  /* テーブルセルの最小幅を設定してスクロール時の潰れを防ぐ */
  .entry-content table td,
  .entry-content table th {
    min-width: 80px;
    font-size: 13px;
    padding: 8px 10px;
  }

  .entry-content table thead th {
    font-size: 12px;
    padding: 9px 10px;
  }

  .entry-content table tbody th {
    min-width: 72px;
    font-size: 12px;
  }

  /* コールアウトのpaddingを詰める */
  .entry-content .point,
  .entry-content .caution,
  .entry-content .info {
    padding: 14px 14px 14px 44px;
    font-size: 13.5px;
  }

  .entry-content .point::before,
  .entry-content .caution::before,
  .entry-content .info::before {
    left: 14px;
    top: 14px;
  }

  /* ol の番号バッジを小さく */
  .entry-content ol li::before {
    font-size: 10px;
    width: 1.2em;
    height: 1.2em;
    top: 0.38em;
  }
}


/* ────────────────────────────────────────────────────────────
   属別アーカイブ: ヒーロー画像
   ──────────────────────────────────────────────────────────── */

.cb-archive-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  border-radius: var(--radius);
  grid-column: 1 / -1;
}

.cb-archive-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.cb-archive-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.18) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  border-radius: var(--radius);
  pointer-events: none;
}

.cb-archive-hero__text {
  position: absolute;
  bottom: 28px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cb-archive-hero__genus {
  font-family: var(--font-latin);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
}

.cb-archive-hero__name {
  font-family: var(--font-latin);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .cb-archive-hero__img {
    aspect-ratio: 4 / 3;
  }

  .cb-archive-hero__text {
    bottom: 20px;
    left: 20px;
  }

  .cb-archive-hero__name {
    font-size: 20px;
  }
}

/* Amazon affiliate button */
.btn-amazon {
  display: inline-block;
  padding: 10px 24px;
  background-color: #FF9900;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
}
.btn-amazon:hover {
  background-color: #e68a00;
  color: #fff !important;
}


/* ────────────────────────────────────────────────────────────
   404ページ
   ──────────────────────────────────────────────────────────── */

.cb-404-content {
  margin-top: 32px;
}

.cb-404-search {
  margin-bottom: 40px;
}

.cb-404-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
  text-transform: uppercase;
  border: none;
  margin-bottom: 16px;
  padding: 0;
}

/* 属リンク */
.cb-404-genera {
  margin-bottom: 40px;
}

.cb-404-genera-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cb-404-genus-link {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.cb-404-genus-link:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

/* ランダム記事 */
.cb-404-random-posts {
  margin-bottom: 40px;
}

.cb-404-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.cb-404-post-item {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.cb-404-post-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition: color var(--transition);
}

.cb-404-post-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* TOPへ戻るボタン */
.cb-404-home {
  text-align: center;
}

.cb-404-home-btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--color-text);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
}

.cb-404-home-btn:hover {
  background-color: var(--color-accent);
  color: #fff;
  text-decoration: none;
}
