/*! Nikko-Kikai Font Unification — SANS version (drop-in override)
    Place this file AFTER all existing CSS (styles.css, indexstyles.css, commonstyles.css, partsstyles.css, sliderstyles.css, fixspmenu.css)
    Purpose: unify typography to sans-serif across the mixed site while avoiding side effects on icons/monospace.
*/
:root{
  /* Tune these two variables if needed */
  --font-sans: "Yu Gothic Medium","Yu Gothic","游ゴシック体",
               "Meiryo","ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN",
               -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-serif: "Noto Serif JP","游明朝",YuMincho,"Hiragino Mincho ProN W3","ヒラギノ明朝 ProN W3","ＭＳ Ｐ明朝","ＭＳ 明朝",serif;
}

/* 1) Site-wide default to SANS, overriding styles.css body { font-family: 'Noto Serif JP', ... } */
html, body { font-family: var(--font-sans) !important; }

/* 2) Typical text elements */
h1,h2,h3,h4,h5,h6, p, li, dt, dd, blockquote, small, time, address,
table, th, td, input, select, textarea, button { font-family: var(--font-sans) !important; }

/* 3) Components that enforce serif fonts in existing CSS */
.pagelist_ul li { font-family: var(--font-sans) !important; } /* styles.css sets 'Amiri', serif */
.fnt-minchou { font-family: var(--font-sans) !important; }   /* partsstyles.css defines Mincho stack */

/* 4) Keep code/monospace and icons untouched */
code, kbd, pre, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace !important; }
[class*="icon_"], i[class^="icon"], .material-icons, .fa, .fab, .far, .fas { font-family: inherit !important; }
svg, [class*="svg"], [class*="icon"] { font-family: inherit !important; }

/* 5) Safety: ensure forms and nav don't accidentally fall back to serif on mobile */
nav, header, footer { font-family: var(--font-sans) !important; }

/* Optional: if some blocks must stay serif, add .keep-serif to that container */
.keep-serif, .keep-serif * { font-family: var(--font-serif) !important; }