om/pin/create/button/?url=" + encodeURIComponent(shareUrl) +
                               "&media=" + encodeURIComponent(mediaUrl) +
                               "&description=" + encodeURIComponent(description);
            openWindow(pinterestUrl);
        });

        document.getElementById('redditButton').addEventListener('click', function() {
            var shareUrl = "https://www.example.com"; // 共有するURLを入力
            var title = "ここにタイトルを入力";
            var r