/* ========================================
 *  カラーパレット
 *    緑(メイン)        : #3a7d44
 *    緑(深め)          : #265a30
 *    緑(薄、背景)      : #eaf2e3
 *    白                : #ffffff
 *    クリーム          : #faf8f3
 *    明るい茶(アクセント): #b08968
 *    明るい茶(薄)      : #d8c2a5
 *    本文テキスト      : #2d3e2f
 * ======================================== */

:root {
  --gd-green:      #3a7d44;
  --gd-green-dark: #265a30;
  --gd-green-pale: #eaf2e3;
  --gd-white:      #ffffff;
  --gd-cream:      #faf8f3;
  --gd-brown:      #b08968;
  --gd-brown-pale: #d8c2a5;
  --gd-text:       #2d3e2f;
}

/* ===== ヘッダー：白ベース + 緑文字 ===== */
#site-header,
#site-header-container,
.site-header {
  background: var(--gd-white) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-bottom: 1px solid #ece6d8;
}
.site-title a,
.site-name a,
.site-name,
.site-name-text,
.site-header .site-description {
  color: var(--gd-green-dark) !important;
}

/* ===== メインメニュー：緑文字、ホバーで茶 ===== */
#global-nav .menu-item a,
.global-nav .menu-item a,
.global-nav-list a,
.global-nav-list .menu-item > a,
.vk-menu-acc li a,
.vk-menu-acc .menu-item a {
  color: var(--gd-green-dark) !important;
  font-weight: 600;
  transition: color .2s;
}
#global-nav .menu-item a:hover,
.global-nav .menu-item a:hover,
.global-nav-list a:hover,
.vk-menu-acc li a:hover {
  color: var(--gd-brown) !important;
}
.global-nav-list .current-menu-item > a,
.global-nav-list .current_page_item > a,
#global-nav .current-menu-item > a {
  color: var(--gd-brown) !important;
  font-weight: 700;
}
.global-nav-list .sub-menu,
.global-nav .sub-menu {
  background: var(--gd-white) !important;
  border: 1px solid #ece6d8;
}
.global-nav-list .sub-menu a {
  color: var(--gd-green-dark) !important;
}

/* ===== モバイルナビ ===== */
.vk-mobile-nav,
.vk-mobile-nav-menu {
  background: var(--gd-white) !important;
}
.vk-mobile-nav a,
.vk-mobile-nav-menu a,
.vk-mobile-nav .vk-mobile-nav-menu-text {
  color: var(--gd-green-dark) !important;
}
.vk-mobile-nav-btn,
.vk-mobile-nav-btn-trigger span {
  color: var(--gd-green-dark) !important;
  background-color: var(--gd-green-dark) !important;
}

/* ===== インラインスタイルの色を全面置換（!important で上書き） ===== */
/* 旧 深緑 #2d5016 → 新緑 */
[style*="background-color:#2d5016"],
[style*="background-color: #2d5016"] {
  background-color: var(--gd-green) !important;
}
[style*="color:#2d5016"],
[style*="color: #2d5016"] {
  color: var(--gd-green-dark) !important;
}

/* 旧 テラコッタ #c45a00 → 明るい茶 */
[style*="background-color:#c45a00"],
[style*="background-color: #c45a00"] {
  background-color: var(--gd-brown) !important;
}
[style*="color:#c45a00"] {
  color: var(--gd-brown) !important;
}

/* 旧 ベージュ #f9f4e8 → クリーム */
[style*="background-color:#f9f4e8"],
[style*="background-color: #f9f4e8"] {
  background-color: var(--gd-cream) !important;
}

/* 旧 薄緑 #e8f3df → 薄緑（少しトーン揃え） */
[style*="background-color:#e8f3df"],
[style*="background-color: #e8f3df"] {
  background-color: var(--gd-green-pale) !important;
}

/* ===== ボタン全般 ===== */
.wp-block-button__link.has-background,
.wp-block-button .wp-block-button__link {
  transition: transform .2s, box-shadow .2s;
}
.wp-block-button__link[style*="background-color:#c45a00"]:hover,
.wp-block-button__link[style*="background-color: #c45a00"]:hover {
  background-color: #97704b !important;
  transform: translateY(-2px);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--gd-white) !important;
  border-color: var(--gd-white) !important;
}

/* ===== テーブル（料金表） ===== */
.wp-block-table table {
  border-collapse: collapse;
}
.wp-block-table thead th,
.wp-block-table th {
  background: var(--gd-green-pale);
  color: var(--gd-green-dark);
  font-weight: 700;
  border-color: #d4dcc8 !important;
}
.wp-block-table tbody tr:nth-child(even) td {
  background: rgba(234, 242, 227, 0.35);
}
.wp-block-table tbody td {
  border-color: #ece6d8 !important;
}
.wp-block-table strong {
  color: var(--gd-brown);
}

/* ===== Before/Afterスライダー（既存上書き） ===== */
.garden-hero { background: var(--gd-green) !important; }
.garden-hero__badge {
  background: rgba(38, 90, 48, .65) !important;
  border-color: #fff !important;
}
.garden-hero__badge.is-after {
  background: var(--gd-brown) !important;
  border-color: var(--gd-brown) !important;
}
.garden-hero__cta {
  background: var(--gd-brown) !important;
}
.garden-hero__cta:hover {
  background: #97704b !important;
}
.garden-hero__cta--outline {
  background: transparent !important;
}

/* ===== セクションH2見出し用アクセント ===== */
.entry-body .wp-block-heading.has-text-color[style*="color:#2d5016"]::after,
h2.wp-block-heading.has-text-align-center::after {
  /* 控えめにする：装飾追加なし */
}

/* ===== フッター：深緑 + 白文字 ===== */
#site-footer,
.site-footer,
.footer-info {
  background: var(--gd-green-dark) !important;
  color: var(--gd-white) !important;
}
#site-footer a,
.site-footer a,
.site-footer-content a,
.footer-info a {
  color: var(--gd-white) !important;
}
#site-footer a:hover,
.site-footer a:hover {
  color: var(--gd-brown-pale) !important;
}

/* ===== カード内テキスト見出し色 ===== */
.wp-block-column .wp-block-heading[style*="color:#2d5016"] {
  color: var(--gd-green-dark) !important;
}

/* ===== リンク色 ===== */
.entry-content a,
.post-content a {
  color: var(--gd-green) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content a:hover,
.post-content a:hover {
  color: var(--gd-brown) !important;
}
.entry-content .wp-block-button__link,
.entry-content .garden-hero__cta {
  text-decoration: none !important;
}

/* ===== サイト全体の文字色 ===== */
body,
.entry-content,
.post-content {
  color: var(--gd-text);
}

/* === button text fix === */
/* .entry-content a の色上書きより詳細度を高めて、ボタンは白文字固定 */
.wp-block-button .wp-block-button__link,
.entry-content .wp-block-button .wp-block-button__link,
.post-content .wp-block-button .wp-block-button__link,
.entry-content a.wp-block-button__link,
a.wp-block-button__link {
  color: #ffffff !important;
  text-decoration: none !important;
}
/* outline スタイル（縁取りボタン）は背景が透明なので白文字でOK */
.wp-block-button.is-style-outline .wp-block-button__link,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  color: #ffffff !important;
  background: transparent !important;
  border: 2px solid #ffffff;
}
/* 緑〜茶ベースのボタンも確実に白で */
.wp-block-button__link[style*="background-color:#3a7d44"],
.wp-block-button__link[style*="background-color:#b08968"],
.wp-block-button__link[style*="background-color:#c45a00"],
.wp-block-button__link[style*="background-color:#2d5016"] {
  color: #ffffff !important;
}