/* ============================================================
   小青田產後護理之家 — 多語言字型搭配
   英數 (en) : Google Sans
   中文 (zh) : Noto Serif HK
   日文 (ja) : Shippori Mincho B1
   原理：同一段文字以「逐字型回退 + 語言變數繼承」自動套用正確字型
   ============================================================ */

:root{
  /* 預設為中文站：英數先用 Google Sans，漢字回退到 Noto Serif HK */
  --cyan-font: "Google Sans", "Noto Serif HK", system-ui, -apple-system,
               "PingFang TC", "Microsoft JhengHei", sans-serif;
}

/* 日文區塊（任何 lang="ja" 元素）自動切換為 Shippori Mincho B1；
   因 CSS 自訂變數會向下繼承，子孫元素無需個別指定 */
:lang(ja){
  --cyan-font: "Google Sans", "Shippori Mincho B1", "Noto Serif HK", serif;
}

/* 套用到主要文字元素（刻意避開 icon／SVG 元素） */
html body,
h1, h2, h3, h4, h5, h6,
p, li, dt, dd, blockquote, figcaption, cite,
a, label, button, input, select, optgroup, textarea,
.wp-block-button__link,
.entry-title, .entry-content, .post-title,
.site-title, .ct-headline,
.ct-menu-link, .menu-item, .ct-breadcrumbs, .ct-meta-element{
  font-family: var(--cyan-font) !important;
}

/* 同步餵給 Blocksy 主題自身的字型變數，覆蓋更完整 */
:root{
  --theme-font-family: var(--cyan-font);
  --theme-button-font-family: var(--cyan-font);
  --theme-headings-font-family: var(--cyan-font);
}
