レスポンシブデザインのために resize イベントを使うのはやめて matchMedia メソッドを使おう 2016年10月4日 http://vividcode.hatenablog.com/entry/js/match-media-method