Where does Kai-awase (the shell-matching game) come from?
Kai-awase comes from Japan, from the Heian court of Kyoto. It began as a nobles' contest of rare seashells and became a matching game played with painted clamshells, because each half of a clam fits only its own partner.
A contest of shells and poems
At first kai-awase was one of the court's mono-awase, contests in which two sides compared objects. The teams brought unusual shells and competed over their shape and colour. Each shell came with a waka poem written for it, and shells were set out on suhama, trays modelled as a seashore. The oldest detailed record is Princess Ryōshi's shell contest, held at Ise in 1040.
Finding the other half
A different game, kai-ōi, 'shell covering', used the fact that a hamaguri clamshell fits only its own other half. It was played from the late Heian or Kamakura period with hundreds of shells: one half of each pair was laid face down in a ring, the other brought out one at a time, and players searched for its match. Whoever took the most pairs won. As the old shell contest faded, kai-ōi took over the name kai-awase.
Japanese from the start
Everything about the game is rooted in Japanese court life, from the waka poems of the first contests to the later shells painted inside, often with scenes from The Tale of Genji. Because a clamshell fits no other, the pairs came to stand for a faithful marriage. From the late Muromachi period, pairs of richly lacquered shell buckets, kai-oke, became part of upper-class wedding trousseaus, and in the Edo period they were carried at the head of the bridal procession.
Sources: en.wikipedia.org ↗ · kotobank.jp › 貝合 42088 ↗ · kotobank.jp › 貝覆 42124 ↗