Geometric Superconductivity in 3D Hofstadter Butterfly