Japan court rules against ban on same-sex marriage