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

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

/* ==========================================================
   サイト配色（暖かくやさしい：クリーム・ベージュ + 水色・シナモン）
   ========================================================== */

body {
  background-color: #FAF6F0;
  color: #4A3F35;
}

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

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

a {
  color: #B5713F;
}
a:hover {
  color: #C9825A;
}

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

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

.entry-category {
  background-color: #A9D4E0 !important;
  color: #2B4A54 !important;
  border-color: #A9D4E0 !important;
}

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

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

/* ==========================================================
   動物・肉球モチーフの装飾
   ========================================================== */

/* サイト全体にうっすら肉球柄の背景 */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cellipse cx='12' cy='16' rx='6' ry='5' fill='%23C9825A' opacity='0.06'/%3E%3Cellipse cx='5' cy='7' rx='2.2' ry='3' fill='%23C9825A' opacity='0.06'/%3E%3Cellipse cx='10' cy='4' rx='2.2' ry='3' fill='%23C9825A' opacity='0.06'/%3E%3Cellipse cx='14' cy='4' rx='2.2' ry='3' fill='%23C9825A' opacity='0.06'/%3E%3Cellipse cx='19' cy='7' rx='2.2' ry='3' fill='%23C9825A' opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 60px 60px;
}

/* 本文の箇条書きを肉球マーカーにする */
.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;
}

/* 見出しの先頭に肉球 */
.article h2::before {
  content: "🐾 ";
}

/* 引用ブロックに肉球の透かし */
.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);
}

/* トップへ戻るボタンを肉球に */
#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ブログ」感をなくし、
   カード型の一覧・大きめの見出しで回遊と広告収益を意識したレイアウトにする。
   既存の配色（クリーム・ベージュ・シナモン）とモチーフは維持し、
   フォント・ヘッダー・記事一覧・サイドバーの「作り」を刷新する。
   ========================================================== */

/* ---- 見出し用フォント（本文フォントはCocoon既定のまま） ---- */
.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: "Zen Maru Gothic", var(--cocoon-default-font, sans-serif);
}

/* ---- ヘッダー：スクロールに追従させ、ロゴを大きく・太く ---- */
#header-container {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(74, 63, 53, 0.08);
}
.header-in {
  padding: 16px 0 12px;
}
.tagline {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #9C7A5C;
  margin-bottom: 2px;
}
.logo-header .site-name-text {
  font-size: 26px;
  font-weight: 900;
  color: #7A4B26;
  letter-spacing: 0.01em;
}
.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: 14px;
  background-color: #FFFDF9;
  box-shadow: 0 1px 3px rgba(74, 63, 53, 0.08), 0 10px 24px -16px rgba(74, 63, 53, 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: #FFFDF9;
  box-shadow: 0 4px 10px rgba(74, 63, 53, 0.1), 0 18px 30px -16px rgba(74, 63, 53, 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: 14px 14px 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: #8A7A6A;
  -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: 999px;
  background-color: rgba(181, 113, 63, 0.92);
  padding: 3px 11px;
  font-size: 11px;
}
@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: #FFFDF9;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(74, 63, 53, 0.06);
}
.sidebar .widget-title,
.sidebar h2.wp-block-heading {
  font-size: 15px;
  font-weight: 700;
  color: #7A4B26;
  border-bottom: 2px solid #C9825A;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

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

/* ---- フッター ---- */
.footer {
  border-top: 1px solid rgba(74, 63, 53, 0.08);
}
