The White Dog and the Moon
A boy and his puppy Hachi take a walk. A game with a white pebble, a quiet wish at a mountain shrine, and a big white moon answering it back.
A な-adjective links to the next clause via ~で.
くれる means “to give me/us.” The receiver is the speaker.
~ますように expresses a wish or prayer, followed by a verb of speaking or thought.
~たように means “as if (something had happened),” a comparison clause.
Direct quote + と + a verb of speaking.
An い-adjective in the ~く form behaves like an adverb.