Japanese confectionery firm Meiji Seika has reported a first-half loss due to higher costs for a restructuring programme and retirement packages.