Japanese farm minister Kazuo Yana has resigned following criticism from Prime Minister Sanae Takaichi for his reported remarks over road funding.