Can a phrase be both a metaphor and an idiom?
Solution 1:
Short answer, yes, by definition.
An idiom is a phrase whose meaning cannot be established from the combination of its individual words, usually by repeated use in other contexts.
A metaphor, or more generally a figure of speech, is a nonliteral way of understanding a phrase (for metaphor, by analogy).
An idiom is non-literal and a figure of speech is non-literal, though their emphases are different. An idiom is opaque but a figure of speech is more poetic. A particular phrase that uses any one of the strategies of figure of speech (metaphor, synecdoche, personification, etc), can become an idiom by overuse.
In particular, a metaphor that has become a dead metaphor. Their example, 'Time is running out' is a metaphor because time can't literally run but it can feeling like it is flowing quickly along like someone running. It's also an idiom because no one (native speaker) has any inkling about flowing when they say it, it just means immediately that there is no more time.
Of course other figures of speech could be considered idioms. 'White House', used as a stand-in for 'the presidency of the USA', is metonymy. But it is also an idiom because you'd never know it was referring to the presidency unless you knew the name of the president's residence.
Solution 2:
According to ODO, there is (even today) a literal usage for the compound noun rain check:
rain check NOUN
North American
1 A ticket given for later use when a sporting fixture or other outdoor event is interrupted or postponed by rain.
and of course this is where the broadened usage has come from:
take a rain check [phrase (in the broader sense of the word)]
Used to refuse an offer politely, with the implication that one may take it up at a later date.
Since the broadened usage is obviously not a literal one, this usage is a metaphor. Yourdictionary.com gives the most helpful definition of metaphor here:
'[a figure of speech where] a word or phrase ordinarily and primarily used of one thing is applied to another'
..............
The term 'idiom' has been defined in a multitude of ways {see Fixed Expressions and Idioms in English ... Rosamund Moon for a thorough overview of this problem}. I prefer the definition 'a multi-word string reasonably commonly used and considered acceptable by proficient speakers, using otherwise non-standard grammar and/or an otherwise unknown sense of a word'. Notice that this definition doesn't mention degrees of transparency / opaqueness.
Since 'take a rain check' (cf 'take a sun hat') uses neither unusual senses of any words (one might argue somewhat old-fashioned, but that's different) nor unusual syntax, I'd maintain that this is not an idiom. Though it's certainly a fixed expression.
.............
'She led him a merry dance' is certainly a metaphor and arguably an extra-grammatical idiom; I've seen an argument for ditransitivity here, but it is extremely unconvincing.