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

/* ============================================
   あね〜ズと僕ちん デザインCSS
   コンセプト: 緑×ブラウンのナチュラルかわいい
   (ヘッダー画像の森イラストに合わせた配色)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

/* ---------- 色の定義(ここを変えると全体が変わる) ---------- */
:root {
  --anez-green:      #6E9C50; /* メインの緑(木の葉) */
  --anez-green-dark: #4F7A38; /* 濃い緑(見出し・リンク) */
  --anez-green-pale: #EEF4E3; /* 淡い緑(背景・帯) */
  --anez-brown:      #4A3220; /* 濃い茶(本文・タイトル) */
  --anez-brown-soft: #7A6048; /* 薄い茶(サブテキスト) */
  --anez-cream:      #FDFBF6; /* クリーム(ページ背景) */
  --anez-border:     #E5DFCE; /* 罫線 */
  --anez-accent:     #E8A33D; /* アクセント(どんぐり色) */
}

/* ---------- 全体 ---------- */
body {
  background: var(--anez-cream);
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  color: var(--anez-brown);
}

/* ---------- ヘッダー(画像を全幅で表示) ---------- */
#header-container,
#header-container-in,
#header,
#header-in {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
}
#header-container-in {
  display: flex;
  flex-direction: column;
}
#navi { order: -1; }
#header { order: 1; }

.logo.logo-header,
#site-logo,
.site-name,
.site-name-text-link,
.site-name-text {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.header-site-logo-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- ナビ(画像の上・右寄せ) ---------- */
#navi {
  background: #fff;
  width: 100%;
  border-bottom: 2px solid var(--anez-border);
}
#navi-in {
  display: flex;
  justify-content: flex-end;
  padding: 5px 16px;
}
#navi .menu-top,
.navi-in > ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
#navi .menu-top li { list-style: none; }
#navi .menu-top li a,
.navi-in > ul > li > a {
  font-size: 13px;
  font-weight: 700;
  color: var(--anez-brown-soft);
  text-decoration: none;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 20px;
  height: auto;
  line-height: 1.4;
  transition: background .2s, color .2s;
}
#navi .menu-top li a:hover,
.navi-in > ul > li > a:hover {
  background: var(--anez-green-pale);
  color: var(--anez-green-dark);
}

/* ---------- カテゴリータブ(ヘッダー下) ---------- */
.anez-cat-tabs-wrap {
  background: #fff;
  border-bottom: 2px solid var(--anez-border);
  position: relative;
  z-index: 10;
}
.anez-cat-tabs {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
}
.anez-cat-tab {
  display: inline-block;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--anez-brown-soft);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.anez-cat-tab:hover {
  color: var(--anez-green-dark);
  border-bottom-color: var(--anez-green-pale);
}
.anez-cat-tab.is-active {
  color: var(--anez-green-dark);
  border-bottom-color: var(--anez-green);
}

/* ---------- コンテンツ幅 ---------- */
#content-in .main,
.main {
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none;
  background: transparent;
}
/* 記事ページは1行が長くなりすぎないように */
.single #content-in .main,
.page #content-in .main {
  max-width: 820px;
}

/* ---------- 記事一覧(3列カード) ---------- */
#list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.entry-card-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--anez-border);
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
  transition: transform .2s, box-shadow .2s;
}
.entry-card-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(110, 156, 80, .18);
}
.entry-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.entry-card-thumb {
  order: 1;
  width: 100%;
  margin: 0;
}
.entry-card-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.entry-card-content {
  order: 2;
  padding: 12px 14px;
  margin-left: 0;
}
/* タイトルはアイキャッチ画像に入っているので非表示 */
.entry-card-title,
.admin-pv {
  display: none;
}
.entry-card-snippet {
  font-size: 13px;
  line-height: 1.7;
  color: #5c5347;
  margin: 0 0 6px;
  padding: 0;
}
.entry-card-meta {
  font-size: 12px;
  color: #998f80;
  padding: 0;
  margin: 0;
}
.cat-label {
  background: var(--anez-green);
  color: #fff;
  border: none;
  border-radius: 0 0 8px 0;
  font-size: 11px;
}

/* スマホは1列 */
@media (max-width: 600px) {
  #list { grid-template-columns: 1fr; }
}

/* ---------- 記事ページ ---------- */
.entry-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--anez-brown);
}
.article {
  font-size: 16px;
  line-height: 1.9;
}
.article a { color: var(--anez-green-dark); }
.article a:hover { color: var(--anez-accent); }

.article h2 {
  background: var(--anez-green-pale);
  color: var(--anez-green-dark);
  border-left: 6px solid var(--anez-green);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 20px;
  font-weight: 700;
}
.article h3 {
  border-left: 4px solid var(--anez-green);
  border-bottom: 2px dashed var(--anez-border);
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--anez-brown);
}
.article h4 {
  border-bottom: 2px solid var(--anez-green-pale);
  padding: 4px 2px;
  font-size: 16px;
  color: var(--anez-brown);
}
.article blockquote {
  background: var(--anez-green-pale);
  border-left: 4px solid var(--anez-green);
  border-radius: 8px;
}

/* DWE完全ガイドへの誘導ボックス */
.anez-guide-link {
  background: var(--anez-green-pale);
  border-left: 4px solid var(--anez-green);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 15px;
}
.anez-guide-link a {
  font-weight: 700;
  color: var(--anez-green-dark);
}

/* 目次 */
.toc {
  background: #fff;
  border: 2px solid var(--anez-green-pale);
  border-radius: 14px;
  padding: 1em 1.6em;
}
.toc-title {
  color: var(--anez-green-dark);
  font-weight: 700;
}
.toc a { color: var(--anez-brown-soft); }
.toc a:hover { color: var(--anez-green-dark); }

/* ---------- ボタン・ページネーション ---------- */
.btn-wrap a,
.more-btn {
  background: var(--anez-green);
  color: #fff;
  border-radius: 24px;
}
.btn-wrap a:hover,
.more-btn:hover {
  background: var(--anez-green-dark);
  color: #fff;
}
.pagination .current {
  background: var(--anez-green);
  color: #fff;
  border-radius: 8px;
}
.page-numbers {
  border-radius: 8px;
}

/* ---------- 著者ボックス ---------- */
.author-box {
  background: #fff;
  border: 2px solid var(--anez-border);
  border-radius: 14px;
}
.author-box .author-name a { color: var(--anez-green-dark); }

/* ---------- フッター・トップへ戻る ---------- */
#footer {
  background: var(--anez-green-pale);
  border-top: 2px solid var(--anez-border);
}
#footer-bottom { background: var(--anez-green-pale); }
.footer-copyright { color: var(--anez-brown-soft); }
#footer a { color: var(--anez-brown-soft); }
#footer a:hover { color: var(--anez-green-dark); }
.go-to-top-button {
  background: var(--anez-green);
  color: #fff;
  border-radius: 50%;
}

/* ---------- スマホ調整 ---------- */
@media (max-width: 767px) {
  #navi-in {
    justify-content: center;
    padding: 3px 8px;
  }
  #navi .menu-top,
  .navi-in > ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
  #navi .menu-top li,
  .navi-in > ul > li {
    width: auto;
    border: none;
  }
  #navi .menu-top li a,
  .navi-in > ul > li > a {
    display: inline-block;
    font-size: 12px;
    padding: 6px 10px;
  }
  .anez-cat-tab {
    padding: 12px 14px;
    font-size: 13px;
  }
  .entry-title { font-size: 21px; }
  .article h2 { font-size: 18px; }
  .article h3 { font-size: 16px; }
}
