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

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

/* ==========================================================
   サイト配色（博物図鑑風：パーチメント + モスグリーン + 標本ラベルのゴールド）
   ========================================================== */

body {
  background-color: #F6F4EA;
  color: #2E3B2C;
}

#container,
#content,
.article,
.entry-card-wrap {
  background-color: #FFFEF9;
}

#header,
#navi,
#footer,
.navi-in {
  background-color: #E7E3D2;
}

a {
  color: #4C7A52;
}
a:hover {
  color: #6B9A70;
}

.article h1,
.article h2 {
  border-bottom: 3px solid #B98F2C;
}

.article h3 {
  border-left: 6px solid #B98F2C;
}

.entry-category {
  background-color: #7FA8A3 !important;
  color: #1E3A36 !important;
  border-color: #7FA8A3 !important;
}

.entry-card-wrap {
  border-radius: 8px;
  overflow: hidden;
}

.sns-share-buttons,
.widget-title,
.box-title {
  border-color: #B98F2C;
}

/* ==========================================================
   生物・DNAモチーフの装飾
   ========================================================== */

/* サイト全体にうっすら葉脈風の背景 */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' width='40' height='40'%3E%3Cpath d='M20 4c6 4 6 12 0 16 6 4 6 12 0 16' stroke='%234C7A52' stroke-width='1.4' fill='none' opacity='0.08'/%3E%3Ccircle cx='20' cy='4' r='1.6' fill='%234C7A52' opacity='0.08'/%3E%3Ccircle cx='20' cy='36' r='1.6' fill='%234C7A52' opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 64px 64px;
}

/* 本文の箇条書きをDNAマーカーにする */
.article .entry-content ul li,
.article .entry-content > ul li {
  list-style: none;
  position: relative;
  padding-left: 1.5em;
}
.article .entry-content ul li::before,
.article .entry-content > ul li::before {
  content: "🧬";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.9em;
}

/* 見出しの先頭にDNA */
.article h2::before {
  content: "🧬 ";
}

/* 引用ブロックにDNAの透かし */
.article blockquote {
  position: relative;
  overflow: hidden;
}
.article blockquote::after {
  content: "🧬";
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: 2em;
  opacity: 0.15;
  pointer-events: none;
}

/* 記事一覧のサムネイル右下に標本ラベル風バッジ */
.entry-card-thumb {
  position: relative;
}
.entry-card-thumb::after {
  content: "🧬";
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 1.3em;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

/* トップへ戻るボタンをDNAに */
#go-to-top a::before {
  content: "🧬";
  font-family: initial;
}

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

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

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

/* ==========================================================
   v2 マガジンデザイン刷新（2026-09-28）
   ねらい: 「よくあるWordPressブログ」感をなくし、
   標本ラベル・図鑑を思わせるカード型の一覧で回遊と広告収益を意識したレイアウトにする。
   既存の配色（パーチメント・モスグリーン・ゴールド）とモチーフは維持し、
   フォント・ヘッダー・記事一覧・サイドバーの「作り」を刷新する。
   ========================================================== */

/* ---- 見出し用フォント（標本ラベル風の明朝体） ---- */
.logo-header .site-name-text,
.logo-footer .site-name-text,
.article h1,
.article h2,
.article h3,
.entry-card-title,
.related-entry-card-title,
.widget-title,
.box-title {
  font-family: "Shippori Mincho", var(--cocoon-default-font, serif);
}

/* ---- ヘッダー：スクロールに追従させ、ロゴを大きく ---- */
#header-container {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(46, 59, 44, 0.08);
}
.header-in {
  padding: 16px 0 12px;
}
.tagline {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #7A8F6E;
  margin-bottom: 2px;
}
.logo-header .site-name-text {
  font-size: 26px;
  font-weight: 700;
  color: #33512F;
  letter-spacing: 0.02em;
}
.logo-header .site-name-text::before {
  content: "🧬 ";
}

/* ---- 記事一覧：横長カセットから図鑑カード風グリッドへ ---- */
.list.ect-entry-card {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 3%;
}
.list.ect-entry-card .entry-card-wrap {
  width: 31.33%;
  padding: 0;
  border-radius: 10px;
  background-color: #FFFEF9;
  border: 1px solid rgba(46, 59, 44, 0.08);
  box-shadow: 0 1px 3px rgba(46, 59, 44, 0.06), 0 10px 24px -18px rgba(46, 59, 44, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.list.ect-entry-card .entry-card-wrap:hover {
  transform: translateY(-4px);
  background-color: #FFFEF9;
  box-shadow: 0 4px 10px rgba(46, 59, 44, 0.08), 0 18px 30px -16px rgba(46, 59, 44, 0.4);
}
.list.ect-entry-card .entry-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.list.ect-entry-card .entry-card-thumb {
  float: none;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
}
.list.ect-entry-card .entry-card-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list.ect-entry-card .entry-card-content {
  margin: 0;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.list.ect-entry-card .entry-card-title {
  font-size: 16.5px;
  -webkit-line-clamp: 2;
}
.list.ect-entry-card .entry-card-snippet {
  color: #6E7A6C;
  -webkit-line-clamp: 2;
}
.list.ect-entry-card .entry-card-meta {
  position: static;
  margin-top: auto;
  padding-top: 10px;
  text-align: left;
}
.list.ect-entry-card .cat-label {
  top: 10px;
  left: 10px;
  border: none;
  border-radius: 3px;
  background-color: rgba(185, 143, 44, 0.92);
  color: #2E3B2C;
  padding: 3px 11px;
  font-size: 11px;
  letter-spacing: 0.02em;
}
@media screen and (max-width: 900px) {
  .list.ect-entry-card .entry-card-wrap {
    width: 48.5%;
  }
}
@media screen and (max-width: 560px) {
  .list.ect-entry-card .entry-card-wrap {
    width: 100%;
  }
  .logo-header .site-name-text {
    font-size: 21px;
  }
}

/* ---- サイドバー：ウィジェットをカード化 ---- */
.sidebar .widget {
  background-color: #FFFEF9;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(46, 59, 44, 0.08);
}
.sidebar .widget-title,
.sidebar h2.wp-block-heading {
  font-size: 15px;
  font-weight: 700;
  color: #33512F;
  border-bottom: 2px solid #B98F2C;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* ---- ページネーションを角丸に ---- */
.pagination a.page-numbers,
.pagination span.page-numbers {
  border-radius: 4px !important;
}

/* ---- フッター ---- */
.footer {
  border-top: 1px solid rgba(46, 59, 44, 0.08);
}
