@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
*/

/*
 * 畑と菜園の相談室 — Cocoon Child 共通デザイン
 * 目的: トップ・記事・固定ページ・カテゴリー・サイドバーを同じ世界観に統一
 */

:root {
  --hs-green: #327a49;
  --hs-green-dark: #205c35;
  --hs-green-soft: #edf7ee;
  --hs-leaf: #79ad54;
  --hs-yellow: #f1bf4b;
  --hs-yellow-soft: #fff7df;
  --hs-soil: #9b653d;
  --hs-sky: #dff3f7;
  --hs-ink: #26352b;
  --hs-muted: #667269;
  --hs-line: #dbe6d8;
  --hs-paper: #ffffff;
  --hs-page: #f5f8f2;
  --hs-radius: 18px;
  --hs-shadow: 0 10px 30px rgba(43, 78, 50, .09);
}

body {
  color: var(--hs-ink);
  background: var(--hs-page);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

a { color: var(--hs-green-dark); }
a:hover { color: var(--hs-green); }

/* Header / navigation */
.header-container,
.header-container-in,
#header-container,
#header-container-in { background: #fff; }

#navi {
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid #edf2ea;
  border-bottom: 1px solid var(--hs-line);
  box-shadow: 0 4px 15px rgba(40, 75, 45, .05);
}

#navi .navi-in > ul { justify-content: center; }
#navi .navi-in > ul > li > a {
  min-height: 54px;
  padding: 0 18px;
  color: #34433a;
  font-weight: 700;
  letter-spacing: .02em;
}
#navi .navi-in > ul > li > a:hover,
#navi .navi-in > ul > li.current-menu-item > a {
  color: var(--hs-green-dark);
  background: var(--hs-green-soft);
}

/* Main layouts */
#content { margin-top: 34px; }
#content-in { gap: 28px; }
#main {
  background: var(--hs-paper);
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius);
  box-shadow: var(--hs-shadow);
}

.breadcrumb { color: var(--hs-muted); font-size: 13px; }
.entry-title {
  color: var(--hs-ink);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .01em;
}
.entry-content { color: #354139; font-size: 17px; line-height: 1.9; }
.entry-content h2 {
  margin-top: 2.7em;
  padding: .72em .85em;
  color: #fff;
  background: linear-gradient(135deg, var(--hs-green-dark), var(--hs-green));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(32, 92, 53, .13);
}
.entry-content h3 {
  margin-top: 2.15em;
  padding: .2em 0 .35em .75em;
  color: var(--hs-green-dark);
  background: transparent;
  border: 0;
  border-left: 6px solid var(--hs-yellow);
  border-bottom: 1px solid var(--hs-line);
}
.entry-content h4 {
  color: var(--hs-green-dark);
  border-bottom: 2px dotted var(--hs-line);
}
.entry-content table { border-radius: 12px; overflow: hidden; }
.entry-content th { background: var(--hs-green-soft); color: var(--hs-green-dark); }
.entry-content blockquote {
  background: #f7faf5;
  border-color: var(--hs-leaf);
  border-radius: 12px;
}

/* Ads / affiliate disclosure */
.ad-label,
.ad-area .ad-label,
.ad-single-rectangle .ad-label {
  color: #7d877f;
  font-size: 11px;
  letter-spacing: .08em;
}
.ad-area { margin: 30px auto; }
.pr-label { border-radius: 10px; background: #fff8e6; border-color: #efd48a; }

/* Sidebar shared across current and future posts */
#sidebar { color: var(--hs-ink); }
#sidebar .widget {
  margin-bottom: 22px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(43, 78, 50, .07);
}
#sidebar .widget-title,
#sidebar h2 {
  margin: -20px -20px 16px;
  padding: 12px 17px;
  color: var(--hs-green-dark);
  background: var(--hs-green-soft);
  border: 0;
  border-radius: 16px 16px 0 0;
  font-size: 17px;
  font-weight: 800;
}
#sidebar .search-box input,
#sidebar .wp-block-search__input {
  border: 1px solid #cddbc9;
  border-radius: 10px 0 0 10px;
}
#sidebar .search-submit,
#sidebar .wp-block-search__button {
  color: #fff;
  background: var(--hs-green);
  border: 0;
  border-radius: 0 10px 10px 0;
}
.hs-side-profile { text-align: center; }
.hs-side-profile__avatar {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 10px;
  place-items: center;
  background: var(--hs-yellow-soft);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--hs-yellow);
  font-size: 38px;
}
.hs-side-profile strong { display: block; margin-bottom: 7px; font-size: 17px; }
.hs-side-profile p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; }
.hs-side-links { display: grid; gap: 8px; }
.hs-side-links a {
  display: block;
  padding: 10px 12px;
  color: var(--hs-green-dark);
  background: #f7faf5;
  border: 1px solid var(--hs-line);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.hs-side-links a:hover { transform: translateY(-1px); background: var(--hs-green-soft); }

/* Homepage */
body.page-id-17 { background: #fff; }
body.page-id-17 #content { margin-top: 0; }
body.page-id-17 #content-in { display: block; max-width: 1180px; }
body.page-id-17 #main {
  width: 100%; max-width: none; margin: 0; padding: 0;
  background: #fff; border: 0; border-radius: 0; box-shadow: none;
}
body.page-id-17 .entry-header,
body.page-id-17 .date-tags,
body.page-id-17 .breadcrumb,
body.page-id-17 #sidebar,
body.page-id-17 .article-footer,
body.page-id-17 .under-entry-content { display: none !important; }
body.page-id-17 .entry-content { margin: 0; padding: 0; }

.hs-home, .hs-home * { box-sizing: border-box; }
.hs-home { color: var(--hs-ink); font-size: 17px; line-height: 1.75; }
.hs-home a { color: inherit; text-decoration: none; }
.hs-home h1, .hs-home h2, .hs-home h3 {
  padding: 0; color: var(--hs-ink); background: none; border: 0; box-shadow: none;
}
.hs-home h1::before, .hs-home h1::after,
.hs-home h2::before, .hs-home h2::after,
.hs-home h3::before, .hs-home h3::after { content: none; }

.hs-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: clamp(54px, 8vw, 92px) clamp(24px, 6vw, 72px);
  background:
    radial-gradient(circle at 88% 18%, rgba(241, 191, 75, .33), transparent 22%),
    radial-gradient(circle at 78% 75%, rgba(121, 173, 84, .2), transparent 26%),
    linear-gradient(135deg, #eff9ed 0%, #fff 56%, #fff5d8 100%);
  border-bottom: 1px solid var(--hs-line);
}
.hs-hero::after {
  content: "🌱  🥔  🧅  🌽";
  position: absolute;
  right: 5%;
  bottom: 38px;
  font-size: clamp(34px, 5vw, 66px);
  letter-spacing: .12em;
  filter: drop-shadow(0 8px 8px rgba(54, 85, 43, .14));
}
.hs-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hs-eyebrow {
  display: inline-flex;
  padding: 6px 13px;
  color: var(--hs-green-dark);
  background: #fff;
  border: 1px solid #cfe0ca;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.hs-hero h1 { max-width: 700px; margin: 18px 0 14px; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.25; }
.hs-hero__lead { max-width: 690px; color: #526157; font-size: clamp(16px, 2vw, 20px); }
.hs-search { display: flex; max-width: 690px; margin-top: 28px; padding: 7px; background: #fff; border: 1px solid #ceddca; border-radius: 15px; box-shadow: var(--hs-shadow); }
.hs-search input { flex: 1; min-width: 0; padding: 13px 15px; border: 0; outline: 0; font-size: 16px; }
.hs-search button { padding: 12px 22px; color: #fff; background: var(--hs-green); border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; }

.hs-section { padding: 68px 28px 0; }
.hs-section:last-child { padding-bottom: 72px; }
.hs-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.hs-section__head h2 { margin: 0; font-size: clamp(25px, 3vw, 35px); }
.hs-section__head p { margin: 8px 0 0; color: var(--hs-muted); }
.hs-section__link { color: var(--hs-green) !important; font-weight: 800; white-space: nowrap; }

.hs-pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hs-pillar-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--hs-line);
  border-radius: 20px;
  box-shadow: var(--hs-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hs-pillar-card:hover { transform: translateY(-4px); box-shadow: 0 15px 34px rgba(43, 78, 50, .15); }
.hs-pillar-card--fertilizer { background: linear-gradient(145deg, #eff8e9, #fff); }
.hs-pillar-card--pesticide { background: linear-gradient(145deg, #edf6f8, #fff); }
.hs-pillar-card--climate { background: linear-gradient(145deg, #fff3d9, #fff); }
.hs-pillar-card__icon { display: block; margin-bottom: 14px; font-size: 46px; }
.hs-pillar-card__title { display: block; margin-bottom: 8px; font-size: 23px; font-weight: 800; }
.hs-pillar-card__note { display: block; color: var(--hs-muted); font-size: 14px; }
.hs-pillar-card__topics { display: block; margin-top: 17px; color: var(--hs-green-dark); font-size: 13px; font-weight: 700; }

.hs-popular-grid, .hs-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hs-feature-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(43, 78, 50, .07);
}
.hs-feature-card:hover { border-color: #aacaa4; transform: translateY(-2px); }
.hs-feature-card__badge { align-self: flex-start; padding: 4px 9px; color: var(--hs-green-dark); background: var(--hs-green-soft); border-radius: 999px; font-size: 12px; font-weight: 800; }
.hs-feature-card__icon { margin: 15px 0 8px; font-size: 34px; }
.hs-feature-card__title { font-size: 18px; font-weight: 800; line-height: 1.55; }
.hs-feature-card__meta { margin-top: auto; padding-top: 13px; color: var(--hs-muted); font-size: 13px; }

.hs-entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.hs-entry-card {
  display: grid;
  min-height: 156px;
  padding: 20px;
  align-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: 16px;
}
.hs-entry-card:hover { background: var(--hs-green-soft); }
.hs-entry-card__icon { font-size: 32px; }
.hs-entry-card__title { margin: 8px 0 4px; font-size: 17px; font-weight: 800; }
.hs-entry-card__note { color: var(--hs-muted); font-size: 12px; }

.hs-crop-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.hs-crop-card { display: grid; padding: 17px 10px; place-items: center; background: #fff; border: 1px solid var(--hs-line); border-radius: 14px; font-weight: 800; }
.hs-crop-card__icon { margin-bottom: 5px; font-size: 30px; }
.hs-crop-card:hover { background: var(--hs-yellow-soft); border-color: #ead18e; }

.hs-material-band, .hs-profile-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, var(--hs-green-dark), var(--hs-green));
  border-radius: 20px;
  color: #fff;
  box-shadow: var(--hs-shadow);
}
.hs-material-band__icon, .hs-profile-band__icon { font-size: 45px; }
.hs-material-band h2, .hs-profile-band h2 { margin: 0 0 5px; color: #fff; font-size: 24px; }
.hs-material-band p, .hs-profile-band p { margin: 0; color: rgba(255,255,255,.88); }
.hs-button { display: inline-flex; justify-content: center; padding: 11px 17px; color: var(--hs-green-dark) !important; background: #fff; border-radius: 999px; font-weight: 800; white-space: nowrap; }

.hs-latest-query .wp-block-post-template,
.hs-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; }
.hs-latest-query li { list-style: none; }
.hs-post-card { height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--hs-line); border-radius: 16px; box-shadow: 0 7px 22px rgba(43, 78, 50, .07); }
.hs-post-card .wp-block-post-featured-image { margin: 0; }
.hs-post-card .wp-block-post-title { margin: 0; padding: 16px 16px 8px; font-size: 18px; line-height: 1.5; }
.hs-post-card .wp-block-post-date { padding: 0 16px 16px; color: var(--hs-muted); font-size: 12px; }
.hs-ad-slot { padding-top: 46px; text-align: center; }

/* Hub / archive pages */
.hs-hub-lead { margin: 0 0 32px; padding: 24px; background: linear-gradient(135deg, var(--hs-green-soft), #fff); border: 1px solid var(--hs-line); border-radius: 16px; }
.hs-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0 34px; }
.hs-hub-card { padding: 20px; background: #fff; border: 1px solid var(--hs-line); border-radius: 15px; box-shadow: 0 6px 17px rgba(43,78,50,.06); }
.hs-hub-card h3 { margin: 0 0 7px !important; padding: 0 !important; border: 0 !important; }
.hs-hub-card p { margin: 0; color: var(--hs-muted); font-size: 14px; }

/* Footer */
.footer-bottom,
#footer { background: #244b32; color: rgba(255,255,255,.88); }
#footer a { color: #fff; }
.hs-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 18px; }

@media (max-width: 1023px) {
  #content-in { padding: 0 15px; }
  .hs-hero::after { opacity: .42; }
  .hs-entry-grid { grid-template-columns: repeat(2, 1fr); }
  .hs-crop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 834px) {
  #content { margin-top: 16px; }
  #main { border-radius: 14px; }
  .entry-content { font-size: 16px; }
  .hs-section { padding: 48px 18px 0; }
  .hs-hero { min-height: 0; padding: 48px 22px 76px; }
  .hs-hero::after { right: -5px; bottom: 13px; font-size: 36px; }
  .hs-pillar-grid, .hs-popular-grid, .hs-feature-grid, .hs-latest-query .wp-block-post-template, .hs-post-grid { grid-template-columns: 1fr; }
  .hs-pillar-card { min-height: 0; }
  .hs-material-band, .hs-profile-band { grid-template-columns: auto 1fr; }
  .hs-material-band .hs-button, .hs-profile-band .hs-button { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .hs-search { display: grid; }
  .hs-search button { width: 100%; }
  .hs-entry-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hs-entry-card { min-height: 135px; padding: 14px 9px; }
  .hs-crop-grid { grid-template-columns: repeat(2, 1fr); }
  .hs-hub-grid { grid-template-columns: 1fr; }
  .hs-section__head { align-items: start; flex-direction: column; gap: 8px; }
}
