/* 繁体字(/zh-TW/)と韓国語(/ko/)のページだけが読み込む。日本語の字形にならないよう、言語に合うフォントを先に並べる。
   ys.css・style.css のあとに読み込む(この2つは変えない)。 */
html[lang="zh-TW"] body { font-family:'Noto Sans TC',-apple-system,BlinkMacSystemFont,'PingFang TC','Microsoft JhengHei',sans-serif; }
html[lang="ko"] body { font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif; word-break:keep-all; }
html[lang="zh-TW"] .ys-title h1, html[lang="zh-TW"] .lp h2, html[lang="zh-TW"] .lp h3, html[lang="zh-TW"] .lead { font-family:'Noto Serif TC','Songti TC','PMingLiU',serif; }
html[lang="ko"] .ys-title h1, html[lang="ko"] .lp h2, html[lang="ko"] .lp h3, html[lang="ko"] .lead { font-family:'Noto Serif KR','AppleMyungjo','Batang',serif; }
/* 長い URL・メールアドレス・言葉が、スマホの幅からはみ出さないように */
main, .ys-footer, .ys-title { overflow-wrap:anywhere; }
/* プライバシーの表(style.css には表の決まりがない。ys.css のページは、記事の中の .tbl が先に効く) */
.tblwrap { overflow-x:auto; }
.tbl { width:100%; border-collapse:collapse; margin:14px 0 4px; font-size:.93rem; }
.tbl th, .tbl td { border:1px solid var(--line, var(--ring)); padding:7px 10px; text-align:left; vertical-align:top; line-height:1.6; }
.tbl th, .tbl td { overflow-wrap:break-word; }
.tbl.kv th { width:24%; }
/* スマホの幅: 列が細くなって1字ずつ折り返さないよう、行ごとに縦に積む */
@media (max-width:640px) {
  .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack th, .tbl.stack td { display:block; width:auto; }
  .tbl.stack thead { display:none; }
  .tbl.stack tr { border:1px solid var(--line, var(--ring)); border-radius:8px; margin:0 0 10px; padding:4px 0; }
  .tbl.stack th, .tbl.stack td { border:0; padding:4px 12px; }
  .tbl.kv th { width:auto; font-weight:700; padding-bottom:0; }
  .tbl.stack td[data-label]::before { content:attr(data-label); display:block; font-weight:700; font-size:.85em; color:var(--muted, var(--ink-soft)); }
}
.lang-switch a { white-space:nowrap; }
html[lang="zh-HK"] body, html[lang="zh-TW"] .lp2, html[lang="zh-HK"] .lp2 { font-family:'Noto Sans TC',-apple-system,BlinkMacSystemFont,'PingFang HK','PingFang TC','Microsoft JhengHei',sans-serif; }
html[lang="ko"] .lp2 { font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif; }
