Ultrahigh-Q nanocavity with 1D periodicity