The ruling of the Osaka court dashed the hopes of gay rights activists who are pressuring the government to rethink its opposition to same-sex marriage.
But the court sided with the government, ruling that under the constitution the definition of marriage did not extend to partnerships between people of the same gender, public broadcaster NHK reported.