/* @override 
	https://japan.nightingalehealth.test/assets/css/ja.css */

/* -----------------------------------------------------------

	Project:		Nightingale Health - Japan
	Version:		1.0
	Created:		December 8, 2025
	Modified:		

----------------------------------------------------------- */



/*

	Setting Japanese web fonts

*/

@font-face {
	font-family: "NotoSansJP-Regular";
	font-display: swap;
	src: url("../fonts/NotoSansJP-Regular.woff2") format("woff2"), /* Super Modern Browsers */
		url("../fonts/NotoSansJP-Regular.woff") format("woff"); /* Pretty Modern Browsers */
	font-weight: normal;
	font-style: normal;
	unicode-range:
		U+3000-303F,   /* CJK punctuation */
		U+3040-309F,   /* Hiragana */
		U+30A0-30FF,   /* Katakana */
		U+4E00-9FFF,   /* CJK Unified Ideographs (Kanji) */
		U+FF00-FFEF;   /* Halfwidth/Fullwidth forms */
}

@font-face {
	font-family: "NotoSansJP-Light";
	font-display: swap;
	src: url("../fonts/NotoSansJP-Light.woff2") format("woff2"), /* Super Modern Browsers */
		url("../fonts/NotoSansJP-Light.woff") format("woff"); /* Pretty Modern Browsers */
	font-weight: normal;
	font-style: normal;
	unicode-range:
		U+3000-303F,   /* CJK punctuation */
		U+3040-309F,   /* Hiragana */
		U+30A0-30FF,   /* Katakana */
		U+4E00-9FFF,   /* CJK Unified Ideographs (Kanji) */
		U+FF00-FFEF;   /* Halfwidth/Fullwidth forms */
}

@font-face {
	font-family: "NotoSansJP-Medium";
	font-display: swap;
	src: url("../fonts/NotoSansJP-Medium.woff2") format("woff2"), /* Super Modern Browsers */
		url("../fonts/NotoSansJP-Medium.woff") format("woff"); /* Pretty Modern Browsers */
	font-weight: normal;
	font-style: normal;
	unicode-range:
		U+3000-303F,   /* CJK punctuation */
		U+3040-309F,   /* Hiragana */
		U+30A0-30FF,   /* Katakana */
		U+4E00-9FFF,   /* CJK Unified Ideographs (Kanji) */
		U+FF00-FFEF;   /* Halfwidth/Fullwidth forms */
}

@font-face {
	font-family: "NotoSansJP-Bold";
	font-display: swap;
	src: url("../fonts/NotoSansJP-Bold.woff2") format("woff2"), /* Super Modern Browsers */
		url("../fonts/NotoSansJP-Bold.woff") format("woff"); /* Pretty Modern Browsers */
	font-weight: normal;
	font-style: normal;
	unicode-range:
		U+3000-303F,   /* CJK punctuation */
		U+3040-309F,   /* Hiragana */
		U+30A0-30FF,   /* Katakana */
		U+4E00-9FFF,   /* CJK Unified Ideographs (Kanji) */
		U+FF00-FFEF;   /* Halfwidth/Fullwidth forms */
}



/*

	Overwriting default global :root variables

*/

:root	{
	/* Typography */
	--lh-base: 1.5; /* Set base line-height for body text */
	
	--ff-body: "NotoSansJP-Regular", "riforma-regular", Helvetica, Arial, sans-serif; /* Set font-family for body text */
	--ff-headers: "NotoSansJP-Medium", "riforma-medium", Helvetica, Arial, sans-serif; /* Set font-family for headers */

	--ff-light: "NotoSansJP-Light", "riforma-light", Helvetica, Arial, sans-serif;
	--ff-bold: "NotoSansJP-Bold", "riforma-bold", Helvetica, Arial, sans-serif;
	--ff-italic: "NotoSansJP-Regular", "riforma-italic", Helvetica, Arial, sans-serif;
	--ff-medium: "NotoSansJP-Medium", "riforma-medium", Helvetica, Arial, sans-serif;
}



/*

	Basic settings for Japanese text

*/

.ja .block__content,
.ja .txt-wrapper						{ text-align: justify; }



/*

	Use alternate half widths
	This re-spaces glyphs designed to be set on full-em widths, fitting them onto half-em widths.

*/

.ja .block__content,
.ja .txt-wrapper						{ -moz-font-feature-settings: "halt"; -webkit-font-feature-settings: "halt"; font-feature-settings: "halt"; }



/*

	Use CJK-aware line-breaking
	Enforces Japanese “kinsoku” rules (no breaks before certain punctuation, small kana, etc.) and is widely supported.

*/

.ja .block__content,
.ja .txt-wrapper						{ line-break: strict; }



/*

	Progressive enhancement for short text (titles, etc)
	Chrome has word-break: auto-phrase; which tries to wrap at natural phrase boundaries (bunsetsu) — great for headings, with graceful fallback.

*/

.ja h1,
.ja h2,
.ja h3,
.ja h4,
.ja h5									{ line-break: strict; word-break: auto-phrase; /* supported in modern Chromium, ignored elsewhere */ }