The "Microsoft Teams" app that comes standard with Windows 11 is an app that can be used with a personal account (~@outlook.jp, etc.).
For YNU mail, use "Microsoft Teams (work or school)" with a white T on a purple background. (If you don't have it, please install it)
The Also, the "Chat" app on the taskbar opens the above personal Teams app and cannot be used with YNU Mail.