A 50-year-old man presents with burning epigastric discomfort and regurgitation, especially when lying down at night. Endoscopy shows Los Angeles grade B oesophagitis. Lifestyle measures have not relieved symptoms. What is the most appropriate pharmacological management?