RIFをBGBに交換