https://support.apple.com/en-lk/guide/japanese-input-method/welcome/mac
Japanese Input Method User Guide for Mac - Apple Support (LK)
On your Mac, use the Japanese or Ainu input method to enter characters in input sources such as hiragana, katakana, or romaji.
japanese input methoduser guidefor macapple support