Rice is a household staple in Japan, but supermarkets have been having trouble keeping shelves stocked after a wave of panic buying last summer worsened longstanding problems. The demand has driven up prices and frustrations with government mismanagement.