Hi, there have been several posts discussing the relationship and goals of the Japanese-German alliance in WWII; I've taken a quick look around and pulled out a few for you here
/u/ParkSungJun looks at the German perspective in What did Hitler/Nazis think of Asians?, and talks more broadly about their alliance in In WW2 why did Germany ally with Japan instead of with China?
/u/Subs-man and /u/Orchideenpavillon tackle the Japanese perspective in How aware was Japan of Hitler's idea of an Aryan master race?
These posts have all been archived, so if you have follow-up questions for any of the users, just post your questions here and tag their username to notify them.