Imperial army flag, not Japan marine flag. Both are the same yet the "marine" version is offset to one side while the ground imperial (not JGSDF) is centered. The difference is minimal but allows the SDF ships to carry the naval flag, while the "centered" rising sun is forbidden with the interdiction of the imperial army.
However unsure that can be added to speculation since it isn't a well known fact.