$(function(){navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/)&&$(function(){$(".tellink").each(function(){var t=$(this).html();$(this).children().is("img")?$(this).html($("").attr("href","tel:"+$(this).children().attr("alt").replace(/-/g,"")).append(t+"")):$(this).html($("").attr("href","tel:"+$(this).text().replace(/-/g,"")).append(t+""))})});var t=$(window);$("a").on("touchstart",function(){var n=$(this),o=!1;t.on("scroll",function(){o=!0}),n.on("touchend",function(){if(!o){var t=n.find("a").attr("href");t&&(window.location.href=t)}o=!1,n.off("touchend")})}),$('a, input[type="button"], input[type="submit"], button, .touch-hover').on("touchstart",function(){$(this).addClass("hover")}).on("touchend",function(){$(this).removeClass("hover")}),$(".pagescroll").click(function(){var t=$(this).attr("href"),n=$("#"==t||""==t?"html":t).offset().top;return $("body,html").animate({scrollTop:n},400,"swing"),!1}),navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/)||$(".anniv-tour__list-btn .tour-title").heightLine(),$(".anniv-tour__list-btn").on("click",function(){$(this).parent().toggleClass("open")}),$(function(){$(".pagetop-btn a").click(function(){var t=$(this).attr("href"),n=$("#"==t||""==t?"html":t).offset().top;return $("html, body").animate({scrollTop:n},500,"swing"),!1})}),$(".anniv-co .anniv-btn").on({mouseenter:function(){$(".anniv-co-inner").addClass("hover")},mouseleave:function(){$(".anniv-co-inner").removeClass("hover")}})});