!(function o(r, i, s) { function a(t, e) { if (!i[t]) { if (!r[t]) { var n = "function" == typeof require && require; if (!e && n) return n(t, !0); if (c) return c(t, !0); throw ( (((e = new Error("Cannot find module '" + t + "'")).code = "MODULE_NOT_FOUND"), e) ); } (n = i[t] = { exports: {} }), r[t][0].call( n.exports, function (e) { return a(r[t][1][e] || e); }, n, n.exports, o, r, i, s, ); } return i[t].exports; } for ( var c = "function" == typeof require && require, e = 0; e < s.length; e++ ) a(s[e]); return a; })( { 1: [ function (e, I, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.ContantsHeightScroll = void 0); var E = e("./module"); function o(e) { return (o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; })(e); } function r(e, t) { for (var n = 0; n < t.length; n++) { var o = t[n]; (o.enumerable = o.enumerable || !1), (o.configurable = !0), "value" in o && (o.writable = !0), Object.defineProperty(e, i(o.key), o); } } function n(e, t, n) { return ( t && r(e.prototype, t), n && r(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e ); } function d(e, t, n) { (t = i(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = n); } function i(e) { e = (function (e, t) { if ("object" !== o(e) || null === e) return e; var n = e[Symbol.toPrimitive]; if (void 0 === n) return ("string" === t ? String : Number)(e); n = n.call(e, t || "default"); if ("object" !== o(n)) return n; throw new TypeError("@@toPrimitive must return a primitive value."); })(e, "string"); return "symbol" === o(e) ? e : String(e); } var s, b, C, Q, w, v, T, a, S = window.sakurai || {}, L = jQuery("body"), c = jQuery("header"), u = (jQuery(".p-container"), jQuery("#menu-open_btn")), l = (jQuery("#menu-bg"), jQuery(".c-menu-video video")[0]), p = jQuery(".cover_attention-wrapper"), y = !1, g = "", R = !1, A = !1, f = (-1 !== window.navigator.userAgent.toLowerCase().indexOf("windows nt") && (R = !0), jQuery("#c-contact")), h = jQuery("header .nav-contact"), m = ((S.onScroll = function () { var e; "CONTACT" != b && "DOWNLOAD" != b && "PARTS" != b && 769 <= Q && //(f.offset().top <= T + w (0 <= T + w ? h.addClass("is-hide") : h.removeClass("is-hide")), "HOME" === b && (769 <= Q && Q <= 1400 ? (a = (178 / 1440) * Q) : 1401 <= Q ? (a = 178) : Q <= 769 && (a = (250 / 375) * Q), w - a <= T ? (c.addClass("color_black"), p.addClass("is-hide")) : (c.removeClass("color_black"), p.removeClass("is-hide"))), ("MANUFACTURE" !== b && "PRODUCTS" !== b && "POSSIBILITY" !== b && "ABOUT" !== b && "NEWS" !== b && "EVENT" !== b && "RECRUIT" !== b && "RECRUIT-NEW" !== b && "FAQ" !== b && "NETWORK" !== b) || ((769 <= Q && Q <= 1400) || 1401 <= Q ? (a = (399 / 1440) * Q) : Q <= 769 && (a = (250 / 375) * Q), a <= T ? c.addClass("color_black") : c.removeClass("color_black"), "RECRUIT-NEW" === b && (jQuery("#new").offset().top, (e = jQuery("#imagination").offset().top), 100 <= T && T + w <= e + w / 3 ? jQuery("#confetti").addClass("in-view") : jQuery("#confetti").removeClass("in-view"))); }), window.addEventListener("scroll", function () { (T = jQuery(window).scrollTop()), S.onScroll(); }), !1), _ = (jQuery('a[href^="#"]').click(function () { var e = jQuery(this).attr("href"); return ( "#home" == e || "#whatsnew" == e || "#vision" == e || "#vision-mvv" == e || "#vision-sdgs" == e || "#business" == e || "#works" == e || "#company" == e || "#company_data" == e || "#company_history" == e || "#company_access" == e || "#company_affiliated_companies" == e || "#contact" == e || "#privacypolicy" == e ? (y && menuToggle(), _(e, 1)) : _(e, 0.8), !1 ); }), function (e, t) { var n, o = $("#" === e || "" === e ? "html" : e).offset().top; console.log(e), C ? (("#project" != e && "#support_system" != e) || (n = (60 / 1440) * Q), ("#new" != e && "#recruit-sakurai_data" != e && "#requirements" != e && "#to_all_students" != e && "#interview" != e) || (n = (40 / 375) * Q)) : (("#project" != e && "#support_system" != e) || (n = (110 / 1440) * Q), ("#recruit-business" != e && "#recruit-about" != e && "#recruit-people" != e && "#recruit-top_message" != e) || (n = (110 / 1440) * Q), ("#treatment_system" != e && "#access" != e && "#requirements-flow" != e) || (n = (110 / 1440) * Q), "#requirements" == e && (n = (280 / 1440) * Q), ("#new" != e && "#recruit-sakurai_data" != e && "#to_all_students" != e && "#interview" != e) || (n = (110 / 1440) * Q), ("#manufacture-about" != e && "#manufacture-qa" != e && "#manufacture-support_flow" != e && "#manufacture-order_made" != e && "#manufacture-possibility" != e && "#manufacture-our_strength" != e && "#manufacture-new_product_flow" != e) || (n = (110 / 1440) * Q), ("#recruit-new-mid" != e && "#about-top_intro" != e && "#about-top_message" != e && "#about-top_overview" != e && "#about-top_history" != e && "#about-top_data" != e) || (n = (150 / 1440) * Q), ("#products-features" != e && "#products-structure" != e && "#products-technology" != e && "#products-printing_machine" != e && "#products-description" != e) || (n = (110 / 1440) * Q)), document.scrollingElement || document.documentElement || document.body.parentNode || document.body; console.log(n), gsap.to(window, { ease: "Power3.easeOut", duration: t, scrollTo: { y: o, offsetY: n }, onStart: function () { m = !0; }, onComplete: function () { m = !1; }, }); }), j = jQuery(".cover_area-element"), O = (jQuery(function () { var e, t, n = jQuery(".slidetxt__txt"), o = (jQuery(".nav-item").removeClass("current"), jQuery("#home")[0] ? (b = "HOME") : jQuery("#manufacture")[0] ? ((b = "MANUFACTURE"), jQuery(".nav-item.n1").addClass("current")) : jQuery("#products")[0] ? ((b = "PRODUCTS"), jQuery(".nav-item.n2").addClass("current")) : jQuery("#products-list")[0] ? ((b = "PRODUCTS-LIST"), jQuery(".nav-item.n2").addClass("current"), c.addClass("color_black")) : jQuery("#products-detail")[0] ? ((b = "PRODUCTS-DETAIL"), jQuery(".nav-item.n2").addClass("current"), c.addClass("color_black")) : jQuery("#possibility")[0] ? ((b = "POSSIBILITY"), jQuery(".nav-item.n3").addClass("current")) : jQuery("#about")[0] ? ((b = "ABOUT"), jQuery(".nav-item.n3").addClass("current")) : jQuery("#news.detail")[0] ? ((b = "NEWS_DETAIL"), jQuery(".nav-item.n4").addClass("current"), c.addClass("color_black")) : jQuery("#news")[0] ? (b = "NEWS") : jQuery("#event")[0] ? (b = "EVENT") : jQuery("#recruit")[0] ? (b = "RECRUIT") : jQuery("#recruit-new_graduates")[0] ? (b = "NEW_GRADUATES") : jQuery("#people")[0] ? ((b = "PEOPLE"), c.addClass("color_black")) : jQuery("#people_article")[0] ? ((b = "PEOPLE_ARTICLE"), c.addClass("color_black")) : jQuery("#recruit_data")[0] ? ((b = "RECRUIT_DATA"), c.addClass("color_black")) : jQuery("#recruit-hrd")[0] ? ((b = "RECRUIT_HRD"), c.addClass("color_black")) : jQuery("#faq")[0] ? (b = "FAQ") : jQuery("#contact")[0] ? ((b = "CONTACT"), c.addClass( "color_black", )) : jQuery("#parts")[0] ? ((b = "PARTS"), c.addClass( "color_black", )) : jQuery( "#parts_news", )[0] ? ((b = "PARTS-NEWS"), c.addClass( "color_black", )) : jQuery( "#network", )[0] ? (b = "NETWORK") : jQuery( "#clean_room", )[0] && ((b = "CLEAN-ROOM"), c.addClass( "color_black", )), (S.onResize = function () { var e; (Q = jQuery(window).width()), (w = jQuery(window).height()), 769 <= Q ? ((C = !1), "" == g ? (g = "PC") : "SP" === g && !0 === y && i(), (e = w / 790), n.length && (n.css("transform", ""), 0), j.css("transform", "scale(" + e + ")")) : ((C = !0), "" === g && (g = "SP"), j.css("transform", "scale(1)")); }), window.addEventListener("resize", function () { 0; var e = 0.01 * window.innerHeight; document.documentElement.style.setProperty( "--vh", "".concat(e, "px"), ), S.onResize(); }), jQuery("#c-menu")), r = jQuery(".p-container"), i = function () { o.hasClass("is-open") ? (C || l.pause(), (y = !1), o.removeClass("is-open"), o.addClass("is-close"), u.removeClass("is-open"), c.removeClass("is-open"), r.removeClass("fixed").css({ top: 0 }), window.scrollTo(0, s)) : (C || l.play(), (y = !0), (s = jQuery(window).scrollTop()), r.addClass("fixed").css({ top: -s }), window.scrollTo(0, 0), o.removeClass("is-close"), o.toggleClass("is-open"), u.addClass("is-open"), c.addClass("is-open"), setTimeout(function () { jQuery(".menu-btn_close").addClass("active"); }, 800)); }; (window.menuToggle = i), "RECRUIT_HRD" === b && ((e = jQuery("#modal_incentive")), (t = function () { console.log("modal"), e.hasClass("is-open") ? (e.removeClass("is-open"), e.addClass("is-close"), c.removeClass("is-open"), r.removeClass("fixed").css({ top: 0 }), window.scrollTo(0, s)) : ((s = jQuery(window).scrollTop()), r.addClass("fixed").css({ top: -s }), window.scrollTo(0, 0), e.removeClass("is-close"), e.toggleClass("is-open"), c.addClass("is-open"), setTimeout(function () {}, 800)); }), jQuery(".modal-bg").click(function () { t(); }), (window.modalToggle = t)), S.onResize(); }), !1), x = ((S.SmoothScroll = function (t, n, o) { t === document && (t = document.scrollingElement || document.documentElement || document.body.parentNode || document.body); var r = !1, i = 0, s = t === document.body && document.documentElement ? document.documentElement : t; function e(e) { e.preventDefault(), !y && A && ((e = (e = e).detail ? e.wheelDelta ? (e.wheelDelta / e.detail / 40) * (0 < e.detail ? 1 : -1) : -e.detail / 3 : e.wheelDelta / 120), (i += -e * n), (i = Math.max( 0, Math.min(i, t.scrollHeight - s.clientHeight), )), r || m || a()); } function a() { r = !0; var e = (i - t.scrollTop) / o; (t.scrollTop += e), 1 < Math.abs(e) ? c(a) : (r = !1); } t.addEventListener("mousewheel", e, { passive: !1 }), t.addEventListener("DOMMouseScroll", e, { passive: !1 }); var c = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (e) { window.setTimeout(e, 20); }; (S.SmoothScrollTargetY = function (e) { (i = e), (t.scrollTop = e); }), (S.SmoothScrollDelete = function () { t.removeEventListener("mousewheel", e, { passive: !1 }), t.removeEventListener("DOMMouseScroll", e, { passive: !1 }); }); }), {}), H = function (e) { return ( ("ArrowDown" !== e.code && "ArrowUp" !== e.code) || S.SmoothScrollTargetY(T), (x[e.code] = !0), ((x.MetaLeft && x.ArrowUp) || (x.MetaRight && x.ArrowUp)) && (T = 0), ((x.MetaLeft && x.ArrowDown) || (x.MetaRight && x.ArrowDown)) && (T = $(window).scrollTop()), !1 ); }, k = function (e) { (T = $(window).scrollTop()), ((x.MetaLeft && x.ArrowUp) || (x.MetaRight && x.ArrowUp)) && ((x.ArrowUp = !1), S.SmoothScrollTargetY(T)), ((x.MetaLeft && x.ArrowDown) || (x.MetaRight && x.ArrowDown)) && ((x.ArrowDown = !1), S.SmoothScrollTargetY(T)), (x[e.code] = !1); }, P = n(function e(t, n, o, r, i) { var s = this, a = 5 < arguments.length && void 0 !== arguments[5] ? arguments[5] : 0, c = 6 < arguments.length && void 0 !== arguments[6] && arguments[6], u = this, l = e; if (!(u instanceof l)) throw new TypeError("Cannot call a class as a function"); d(this, "onReize", function () { (s._win_width = jQuery(window).width()), (s._win_height = jQuery(window).height()), (s.secH = s._targetContainer.innerHeight()), (s.sec_top = s._targetContainer.offset().top), (s.sec_bottom = s.sec_top + s.secH), (s.ratio = s._range / s.secH), s._win_width <= 768 ? (s.switchFlg && ("x" == s._master_direction ? (s._direction = "y") : (s._direction = "x")), (s.ratio = s._range_sp / s.secH)) : ((s._direction = s._master_direction), (s.ratio = s._range / s.secH)); }), d(this, "render", function () { var e; (s._scroll_top = jQuery(window).scrollTop()), s._scroll_top + s._win_height > s.sec_top + s._offset && s._scroll_top < s.sec_bottom && ((e = s.ratio * (s._scroll_top - s.sec_top)), "x" == s._direction ? s._targerItem.css( "transform", "translate3d(" + e + "px,0,0)", ) : s._targerItem.css( "transform", "translate3d(0," + e + "px,0)", )); }), (this._targetContainer = $(t)), (this._targerItem = $(n)), (this._range = o), (this._range_sp = r), (this._master_direction = i), (this._direction = i), (this._offset = a), (this.secH = this._targetContainer.innerHeight()), (this.sec_top = this._targetContainer.offset().top), (this.sec_bottom = this.sec_top + this.secH), this.ratio, (this.switchFlg = c), this.onReize(), this.render(), window.addEventListener("scroll", function () { s.render(); }), window.addEventListener("resize", function () { s.onReize(), s.render(); }); }), U = ((t.ContantsHeightScroll = P), // WebFont.load({ // google: { families: ["Poppins"] }, // loading: function () {}, // active: function () { // var n; // (n = imagesLoaded(".cover_area-img", { background: !0 })).on( // "always", // function (e) {}, // ), // n.on("done", function (e) { // U(); // }), // n.on("fail", function () {}), // n.on("progress", function (e, t) { // n.images.length, 0; // t.isLoaded; // }), // jQuery("#home")[0] || jQuery("#notfound")[0]; // }, // inactive: function () {}, // fontloading: function (e, t) {}, // fontactive: function (e, t) {}, // fontinactive: function (e, t) {}, // }), function () { jQuery("body").removeClass("loading"), jQuery("body").addClass("loadcomplete"), (A = !0), C || (new E.HoverEvent().startEvent(), new E.HoverEvent("button").startEvent()), !O || C || R || (S.SmoothScroll(document, 16, 12), (T = jQuery(window).scrollTop()), S.SmoothScrollTargetY(T), document.addEventListener("keydown", H, !1), document.addEventListener("keyup", k, !1)), new E.ViewCheck(100).startEvent(); var e, n, o, t, r, i, s, a, c, u, l, d, p, f, h, m, w, v, y, g, _, j = location.hash; j && (jQuery("body,html").stop().scrollTop(0), setTimeout( gsap.to(window, { ease: "Circ.easeOut", duration: 1, scrollTo: { y: j, offsetY: 0 }, }), 300, )), ("NEWS_DETAIL" != b && "CONTACT" != b && "DOWNLOAD" != b && "PARTS" != b && "PRODUCTS-DETAIL" != b && "PEOPLE" != b && "CLEAN-ROOM" != b) || setTimeout(function () { jQuery("#p-cover-element").addClass("is-open"); }, 100), "CONTACT" == b && (jQuery("#catalog-value").length && ((j = jQuery("#catalog-value").text()), jQuery("#current_catalog").val(j)), (j = window.location.hash), jQuery("#contact").hasClass("en") ? "#screen" === j ? jQuery("select[name=form-select]").val("Screen Press") : "#offset" === j ? jQuery("select[name=form-select]").val("Offset Press") : "#others" === j && jQuery("select[name=form-select]").val("Peripherals") : "#screen" === j ? jQuery("select[name=form-select]").val( "スクリーン印刷機", ) : "#offset" === j ? jQuery("select[name=form-select]").val( "オフセット印刷機", ) : "#others" === j && jQuery("select[name=form-select]").val("周辺機器")), "CONTACT" == b && ((e = jQuery("input[type='submit'].wpcf7-submit")).click( function () { $(this).css({ pointerEvents: "none" }); }, ), document.addEventListener( "wpcf7invalid", function () { e.css({ pointerEvents: "auto" }); }, !1, ), L.hasClass("employee-interview")) && ((n = []), setTimeout(function () { jQuery('input[name="person[]"]').each(function () { jQuery(this).prop("checked") && n.push(jQuery(this).val()); }), console.log("a: " + n), jQuery('input[name="interviewer_checkbox"]').each( function () { (o = jQuery(this)).prop("checked", !1), $.each(n, function (e, t) { o.val() == n[e] && o.prop("checked", !0); }); }, ); }, 800), jQuery('input[name="interviewer_checkbox"]:checkbox').change( function () { (n = []), jQuery("input[name=interviewer_checkbox]:checked").each( function () { n.push(jQuery(this).val()); }, ), jQuery('input[name="person[]"]').each(function () { (o = jQuery(this)).prop("checked", !1), $.each(n, function (e, t) { o.val() == n[e] && o.prop("checked", !0); }); }); }, )), "ABOUT" === b && L.hasClass("top") && (new P( "#about-top_intro", "#about-top_intro-bgtxt", -400, -400, "x", ), jQuery("#about-swiper .swiper-slide").length, (t = new Swiper("#about-swiper .swiper-container", { setWrapperSize: !0, slidesPerView: "auto", spaceBetween: 0, slidesOffsetAfter: 0, disableOnInteraction: !1, loop: !1, speed: 300, breakpoints: { 768: { slidesPerView: "auto", spaceBetween: 0, slidesOffsetAfter: 0, }, }, pagination: { el: ".fraction", type: "fraction" }, navigation: { nextEl: "#about-swiper .c-pagination-nextbtn", prevEl: "#about-swiper .c-pagination-prevbtn", }, })), (a = jQuery(".swiper-pagination-total").text()), (c = jQuery("#about-swiper .current_line")), (u = 100 / a), t.on("slideChange", function () { (a = jQuery(".swiper-pagination-total").text()), (u = 100 / a), c.css("width", u + "%"), c.css("left", u * t.realIndex + "%"); }), c.css("width", u + "%")), "RECRUIT" === b && L.hasClass("article") && (jQuery("#people-swiper .swiper-slide").length, (r = new Swiper("#people-swiper .swiper-container", { setWrapperSize: !0, slidesPerView: "auto", spaceBetween: 0, slidesOffsetAfter: 0, disableOnInteraction: !1, loop: !1, speed: 300, breakpoints: { 768: { slidesPerView: "auto", spaceBetween: 0, slidesOffsetAfter: 0, }, }, pagination: { el: ".fraction", type: "fraction" }, navigation: { nextEl: "#people-swiper .c-pagination-nextbtn", prevEl: "#people-swiper .c-pagination-prevbtn", }, })), (a = jQuery(".swiper-pagination-total").text()), (c = jQuery("#people-swiper .current_line")), (u = 100 / a), r.on("slideChange", function () { (a = jQuery(".swiper-pagination-total").text()), (u = 100 / a), c.css("width", u + "%"), c.css("left", u * r.realIndex + "%"); }), c.css("width", u + "%")), "PEOPLE_ARTICLE" === b && L.hasClass("article") && ((i = jQuery(".career p span")).each(function (e) { 1 <= i.eq(e).children("br").length && jQuery(".career").addClass("multiple_lines"); }), jQuery("#schedule-swiper .swiper-slide").length, (j = new Swiper("#schedule-swiper .swiper-container", { setWrapperSize: !0, slidesPerView: "auto", spaceBetween: 0, slidesOffsetAfter: 0, disableOnInteraction: !1, loop: !1, speed: 300, breakpoints: { 768: { slidesPerView: "auto", spaceBetween: 0, slidesOffsetAfter: 0, }, }, pagination: { el: ".fraction", type: "fraction" }, navigation: { nextEl: "#schedule-swiper .c-pagination-nextbtn", prevEl: "#schedule-swiper .c-pagination-prevbtn", }, })), (s = jQuery(".swiper-pagination-current").text()), (a = jQuery(".swiper-pagination-total").text()), (c = jQuery("#schedule-swiper .current_line")), (u = 100 / a), j.on("transitionStart", function () { (s = jQuery(".swiper-pagination-current").text()), (a = jQuery(".swiper-pagination-total").text()), (u = 100 / a), c.css("width", u + "%"), c.css("left", u * (s - 1) + "%"); }), c.css("width", u + "%")), "PRODUCTS" === b && new P( "#products-features", "#products-features-bgtxt", -800, -500, "y", ), "MANUFACTURE" === b && (new P( "#manufacture-qa", "#manufacture-qa-bgtxt", -800, -500, "y", ), new P( "#manufacture-support_flow", "#manufacture-support_flow-bgtxt", -800, -800, "x", ), new P( "#manufacture-order_made", "#manufacture-order_made-bgtxt", -800, -500, "y", ), new P( "#manufacture-possibility", "#manufacture-possibility-bgtxt", 600, 600, "x", ), new P( "#manufacture-our_strength", "#manufacture-our_strength-bgtxt", -800, -1200, "x", ), new P( "#manufacture-new_product_flow", "#manufacture-new_product_flow-bgtxt", -700, -800, "y", 0, !0, )), "POSSIBILITY" === b && ((l = function () { for (var e = 0; e < _.length; e++) { var t = _.eq(e).attr("href"), n = jQuery(t).offset().top, t = n + jQuery(t).outerHeight(!0); y[e] = [n, t]; } }), (d = function () { if (!C) for (var e = 0; e < y.length; e++) y[e][0] <= T + 1 && y[e][1] >= T && (_.removeClass("current"), _.eq(e).addClass("current"), y.length); }), new P( "#industry_use", ".industry_use-bgtxt-wrap", -800, -2e3, "x", ), (y = []), (_ = jQuery(".cat-navi-list a")), window.addEventListener("scroll", function () { l(), d(); }), l(), d()), "NETWORK" === b && ((p = function () { for (var e = 0; e < _.length; e++) { var t = _.eq(e).attr("href"), n = jQuery(t).offset().top, t = n + jQuery(t).outerHeight(!0); y[e] = [n, t]; } }), (f = function () { if (!C) for (var e = 0; e < y.length; e++) y[e][0] <= T + 1 && y[e][1] >= T && (_.removeClass("current"), _.eq(e).addClass("current"), y.length); }), (y = []), (_ = jQuery(".cat-navi-list a")), window.addEventListener("scroll", function () { p(), f(); }), p(), f()), "NEW_GRADUATES" === b && new E.AccordionContent(".adc-wrapper"), "RECRUIT-NEW" === b && new P("#imagination", "#imagination-txt", -600, -600, "x"), "FAQ" === b && ((h = function () { for (var e = 0; e < _.length; e++) { var t = _.eq(e).attr("href"), n = jQuery(t).offset().top, t = n + jQuery(t).outerHeight(!0); y[e] = [n, t]; } }), (m = function () { if (!C) for (var e = 0; e < y.length; e++) y[e][0] <= T + 1 && y[e][1] >= T && (_.removeClass("current"), _.eq(e).addClass("current"), y.length); }), (y = []), (_ = jQuery(".cat-navi-list a")), window.addEventListener("scroll", function () { h(), m(); }), h(), m()), ("MANUFACTURE" !== b && "ABOUT" !== b && "PRODUCTS" !== b) || ((w = function () { var e = (115 / 1440) * Q; "ABOUT" === b && (e = (155 / 1440) * Q); for (var t = 0; t < _.length; t++) { var n = _.eq(t).attr("href"), o = jQuery(n).offset().top - e, n = o + jQuery(n).outerHeight(!0); y[t] = [o, n]; } }), (v = function () { if (!C) { y[0][0] > T && (_.removeClass("current"), (g = -1)); for (var e = 0; e < y.length; e++) y[e][0] <= T + 1 && y[e][1] >= T && g != e && (_.removeClass("current"), _.eq(e).addClass("current"), (g = e), console.log(e)); } }), (y = []), (g = -1), (_ = jQuery(".c-sub-navi a")), window.addEventListener("scroll", function () { w(), v(); }), w(), v()); }); jQuery(function () { var n, o, e, r, t, i, s, a, c, u = jQuery("#cover"), l = jQuery(".cover_area"), d = jQuery("#service"), p = (jQuery("#service .home-service-element"), jQuery("#products")), f = jQuery("#possibility_sphere"); if ("HOME" == b) { switch (location.host) { case "localhost:3000": case "192.168.1.10:3000": e = ""; break; case "sakurai.eggraphix.com": e = "/cms/wp-content/themes/sakurai23/"; break; case "www.sakurai-gs.co.jp": e = "https://www.sakurai-gs.co.jp/cms/wp-content/themes/sakurai23/"; } var h = function () { (Q = jQuery(window).width()), (w = jQuery(window).height()), u.css("height", w), 769 <= Q ? ((C = !1), "" == g ? (g = "PC") : "SP" === g && !0 === y && menuToggle()) : ((C = !0), "" === g && (g = "SP")); var e = Q / 1920; f.css("transform", "scale(" + e + ")"); }, m =(window.addEventListener("resize", function () { clearTimeout(v); var e = 0.01 * window.innerHeight; document.documentElement.style.setProperty( "--vh", "".concat(e, "px"), ), h(), (v = setTimeout(function () { 0; }, 500)); }), jQuery("#home-side_navi")); window.addEventListener("scroll", function () { var e = jQuery(window).scrollTop(), t = 0, // t = d.offset().top, n = (0, 0); t - w / 2 <= e && d.addClass("in-view"), n - w / 2 <= e && p.addClass("in-view"), 60 <= e ? m.addClass("color_black") : m.removeClass("color_black"); }); l.addClass("in-view"), ((r = new THREE.Scene()).background = new THREE.Color('#e9f3fc')), (n = new THREE.WebGLRenderer({ antialias: true, canvas: document.querySelector("#possibility_sphere"), })).setSize(1920, 800), (o = new THREE.PerspectiveCamera(45, 1.8, 1, 1e3)).position.set( 0, 260, 430, ), (l = new THREE.SphereGeometry(300, 300, 300)), ((t = new THREE.TextureLoader().load( "images/color_line2.png", )).minFilter = THREE.LinearFilter), (t = new THREE.MeshStandardMaterial({ map: t, opacity: 1, roughness: 0.6, transparent: !0, depthTest: !0, })), (i = new THREE.Mesh(l, t)).position.set(0, 20, 0), r.add(i), (i.rotation.x = 0.2), (l = new THREE.SphereGeometry(300, 300, 200)), ((t = new THREE.TextureLoader().load( "images/color_line3.png", )).minFilter = THREE.LinearFilter), (t = new THREE.MeshStandardMaterial({ map: t, opacity: 0.95, roughness: 0.6, transparent: !0, depthTest: !0, })), (s = new THREE.Mesh(l, t)).position.set(0, 20, 0.4), r.add(s), (s.rotation.x = 0.2), (l = new THREE.SphereGeometry(300, 300, 200)), ((t = new THREE.TextureLoader().load( "images/color_line1.png", )).minFilter = THREE.LinearFilter), (t = new THREE.MeshStandardMaterial({ map: t, opacity: 0.95, roughness: 0.6, transparent: !0, depthTest: !0, })), (a = new THREE.Mesh(l, t)).position.set(0, 20, 0.8), r.add(a), (a.rotation.x = 0.2), (l = new THREE.AmbientLight(16777215)), r.add(l), (c = 0), (function e() { if ( (requestAnimationFrame(e), "Android" == ((t = navigator.userAgent), /android/i.test(t) ? "Android" : "Other")) ) { if (++c % 2 == 0) return; (i.rotation.y += 0.002), (s.rotation.y += 0.006), (a.rotation.y += 0.01), n.render(r, o); } else (i.rotation.y += 0.002), (s.rotation.y += 0.006), (a.rotation.y += 0.01); var t; n.render(r, o); })(), h(); } }); }, { "./module": 2 }, ], 2: [ function (e, t, n) { "use strict"; function o(e) { return (o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; })(e); } function r(e, t, n) { (t = c(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = n); } function i(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function s(e, t) { for (var n = 0; n < t.length; n++) { var o = t[n]; (o.enumerable = o.enumerable || !1), (o.configurable = !0), "value" in o && (o.writable = !0), Object.defineProperty(e, c(o.key), o); } } function a(e, t, n) { return ( t && s(e.prototype, t), n && s(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e ); } function c(e) { e = (function (e, t) { if ("object" !== o(e) || null === e) return e; var n = e[Symbol.toPrimitive]; if (void 0 === n) return ("string" === t ? String : Number)(e); n = n.call(e, t || "default"); if ("object" !== o(n)) return n; throw new TypeError("@@toPrimitive must return a primitive value."); })(e, "string"); return "symbol" === o(e) ? e : String(e); } Object.defineProperty(n, "__esModule", { value: !0 }), (n.ViewCheck = n.HoverEvent = n.AccordionContent = void 0); n.AccordionContent = (function () { function r(e) { var t = this, n = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 0, o = 2 < arguments.length && void 0 !== arguments[2] && arguments[2]; i(this, r), (this._target = e), (this._$target = jQuery(e)), (this._$btn = $(e).find(".adc-btn")), this._$content, (this._$contentItem = $(this._target).find(".adc-content")), this._$inner, this._$innerHeight, (this._defaltHeight = n), (this._spMode = o), 0 != this._defaltHeight && this._$contentItem.each(function (e) { $(t._target) .eq(e) .find(".adc-content") .css("height", t._defaltHeight); }), this._$btn.each(function (e) { t._$btn[e].addEventListener("click", function (e) { (t._$content = jQuery(e.target) .parent() .find(".adc-content")), (t._$innerHeight = t._$content .find(".adc-inner") .outerHeight()), t._$content.hasClass("is-open") ? (jQuery(e.target).removeClass("is-open"), t._$content.removeClass("is-open"), 0 == t._defaltHeight ? t._$content.css("height", "") : t._$content.css("height", t._defaltHeight)) : (jQuery(e.target).addClass("is-open"), t._$content.addClass("is-open"), t._$content.css("height", t._$innerHeight)); }); }), window.addEventListener("resize", function () { t._$contentItem.each(function (e) { t._$contentItem.eq(e).hasClass("is-open") ? t._$contentItem .eq(e) .css( "height", t._$contentItem .eq(e) .find(".adc-inner") .outerHeight(), ) : 0 != t._defaltHeight && t._$contentItem.eq(e).css("height", t._defaltHeight); }); }); } return ( a(r, [ { key: "defaltHeight", set: function (e) { this._defaltHeight = e; }, }, ]), r ); })(); var u = (function () { function t(e) { i(this, t), (this.target = e), (this.class = "." + e); } return ( a(t, [ { key: "startEvent", value: function () { if (null != this.target) { var e = document.getElementsByClassName(this.target); console.log(this.target); for (var t = 0; t < e.length; t++) e[t].addEventListener("mouseenter", function () { this.classList.remove("is-out"), this.classList.add("is-hover"); }), e[t].addEventListener("mouseleave", function () { this.classList.remove("is-hover"), this.classList.add("is-out"); }), e[t].addEventListener( "touchstart", function () { this.classList.remove("is-out"), this.classList.add("is-hover"); }, { passive: !0 }, ), e[t].addEventListener("touchend", function () { this.classList.remove("is-hover"), this.classList.add("is-out"); }); document .getElementsByTagName("body")[0] .addEventListener("touchend", function () { jQuery(this.class).removeClass("is-hover"); }); } else { for ( e = document.getElementsByTagName("a"), t = 0; t < e.length; t++ ) e[t].addEventListener("mouseenter", function () { this.classList.remove("is-out"), this.classList.add("is-hover"); }), e[t].addEventListener("mouseleave", function () { this.classList.remove("is-hover"), this.classList.add("is-out"); }), e[t].addEventListener( "touchstart", function () { this.classList.remove("is-out"), this.classList.add("is-hover"); }, { passive: !0 }, ), e[t].addEventListener("touchend", function () { this.classList.remove("is-hover"), this.classList.add("is-out"); }); document .getElementsByTagName("body")[0] .addEventListener("touchend", function () { jQuery("a").removeClass("is-hover"); }); } }, }, ]), t ); })(), u = ((n.HoverEvent = u), a(function e() { var o = this, t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : 200; i(this, e), r(this, "viewCheck", function () { (o._scroll_top = jQuery(window).scrollTop()), (o._win_width = jQuery(window).width()), (o._win_height = jQuery(window).height()), o._section.each(function (e, t) { var t = jQuery(t), n = t.offset().top; t.height(); o._win_width < 768 && (o._offset = 50), o._scroll_top + o._win_height > n + o._offset && (t.hasClass("is-view") || (t.hasClass("is-hide") && t.removeClass("is-hide"), t.addClass("is-view"))); }); }), r(this, "startEvent", function () { o.viewCheck(), window.addEventListener( "scroll", function (e) { o.throttle(o.viewCheck); }, { passive: !0 }, ); }), r( this, "throttle", (function (e, t) { var n, o, r = 1 < arguments.length && void 0 !== t ? t : 256, i = Date.now(); return function (e) { (n = i + r - Date.now()) < 0 ? (e(), (i = Date.now())) : (clearTimeout(o), (o = setTimeout( function () { e(); }, r - n + 15, ))); }; })(), ), (this._scroll_top = jQuery(window).scrollTop()), (this._section = jQuery(".vc")), (this._offset = t); })); n.ViewCheck = u; }, {}, ], }, {}, [1], );