/* 只作用在由英文頁產生的日文頁(<html data-ja>);中文、英文頁與既有的日文獨立頁不受影響。 */
html[data-ja] {
  --font: "YK Digits Small", "YK Chevron", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: var(--font);
}
html[data-ja] body { font-weight: 500; letter-spacing: 0; line-break: strict; }
html[data-ja] :is(h1, h2, h3, .h-hero) { word-break: auto-phrase; }
/* 水合前隱藏 SSR island(水合後才換成日文,避免先閃英文)。3 秒後無論如何顯示。 */
html[data-ja] astro-island[ssr]:not([data-language-ready]) { visibility: hidden; animation: sw-ja-reveal 0s 3s forwards; }
@keyframes sw-ja-reveal { to { visibility: visible; } }
/* global.css 對大字與價格指定了 Noto Sans TC 在前;日文頁改用日文字形。 */
html[data-ja] :is(h1, h2, .h-hero, .qs__total b, .qs__review-total b, .qs-mbar__price b, .price, [class*="__price"] b, [class*="__big"], [class*="-hero"] b, .stat b, [class*="__stat"] b, [class*="__num"]) { font-family: "YK Digits", "YK Chevron", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif; }
html[data-ja] :is(h1, h2, h3, .h-hero) { font-family: "Cal Sans", "YK Chevron", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif; }
