function inputChange(){switch($('input[name="op_journal"]:checked').val()){case"0":$("#js_volume").hide(),$("#js_number").hide();break;case "1": $("#js_volume").show(), $("#js_number").show(), $("#js_volume dt").text("通巻"); $("#js_number").show(), $("#js_number dt").text("巻数");break;case"2":case"3":$("#js_volume").show(),$("#js_number").hide(),$("#js_volume dt").text("号数");break;case"4":$("#js_volume").show(),$("#js_number").hide(),$("#js_volume dt").text("Volume")}}$(".js_accordion_btn").on("click",function(){var e;inputChange(),$(this).hasClass("is_active")?(e=768<$(window).width()?$("#close_point").offset().top-20:$("#close_point").offset().top-70,$("html, body").stop().animate({scrollTop:e},300),$(".js_accordion_detail").slideUp(),$(this).removeClass("is_active"),$(this).text("詳細条件を指定する")):($(".js_accordion_detail").slideDown(),$(this).addClass("is_active"),$(this).text("詳細条件を折りたたむ"))}),$(".js_common_check").on("click",function(){var e=$(this).parent("label").parent("li").parent("ul");1==$(this).prop("checked")?e.find(".js_child_check").each(function(){$(this).prop("checked",!0)}):e.find(".js_child_check").each(function(){$(this).prop("checked",!1)})}),$(".js_child_check").on("click",function(){var e=$(this).parent("label").parent("li").parent("ul");e.find(".js_child_check:checked").length==e.find(".js_child_check").length?e.find(".js_common_check").prop("checked",!0):0==$(this).prop("checked")&&e.find(".js_common_check").prop("checked",!1)}),$(".js_genre_detail").find('input[type="checkbox"]').prop("checked",!0),$('input[name="op_genre_type"]').on("change",function(){"0"==$(this).val()?($(".js_genre_detail").find('input[type="checkbox"]').prop("checked",!0),$(".js_genre_detail").slideUp()):($(".js_genre_detail").find('input[type="checkbox"]').prop("checked",!1),$(".js_genre_detail").slideDown())}),$(function(){inputChange()}),$('input[name="op_journal"]').on("change",function(){$("#js_volume input").val(""),$("#js_number input").val(""),inputChange()});