document.addEventListener('DOMContentLoaded', function () { // akiya_bank_details のアーカイブだけ実行 if (!document.body.classList.contains('post-type-archive-akiya_bank_details')) return; document.querySelectorAll('.p-postList').forEach(function(list){ // ほかのレイアウト系クラスを外してカード化 list.classList.remove('-type-simple','-type-list','-type-big','-type-mag'); list.classList.add('-type-card'); // 列数の指定(必要なら) list.classList.add('-pc-col3','-sp-col1'); }); });