The permits had been granted by the country's nuclear regulator and this is the first time a Japanese court has challenged safety assessments by the regulator under tougher safety standards imposed after the 2011 Fukushima disaster, according to Kyodo news agency.

The court ruled in favour of about 130 plaintiffs who claimed that the Ohi No. 3 and No. 4 reactors are vulnerable to major earthquakes, according to Kyodo.

The court said the Nuclear Regulation Authority's decision had not taken into account necessary considerations in assuming the magnitude of earthquakes, Kyodo said.

"The court ruling is regrettable and unacceptable," Kansai Electric Power said in a statement.

"We will study details of the court decision and take appropriate actions after swiftly coordinating with the government," it added.

The two reactors have been shut for scheduled maintenance since earlier this year.

(Reporting by Yuka Obayashi; Editing by Susan Fenton)