function toggleToc() { let tocContent = document.querySelector(".toc-content"); let button = document.querySelector(".toggle-button"); if (tocContent.style.display === "none" || tocContent.style.display === "") { tocContent.style.display = "block"; button.innerHTML = "- 閉じる"; } else { tocContent.style.display = "none"; button.innerHTML = "+ 開く"; } }

© 2025