Japan won gold medals in both the men's and women's karate kata team competition on Sunday, the final day of the six-day world championships.