An upscale office building in downtown San Francisco that has served for almost four decades as the headquarters of jeans maker Levi Strauss & Co., one of America's most iconic brands since its founding in California's Gold Rush, is up for sale, setting up a deal that could be one of the largest in city history.