PageSourceSearch

https://www.toshibatec.co.jp/common/js/script.js

js toshibatec.co.jp collected 2026-10-01 10:17:03 UTC 61,656 bytes, 1 lines download raw bytes

1function linkOff(){let e=location.href;function t(e){const t=document.createElement("span"),r=e.attributes;for(let e=0;e<r.length;e++)t.setAttribute(r[e].name,r[e].value);for(t.removeAttribute("href"),t.removeAttribute("rel"),t.removeAttribute("target"),t.removeAttribute("title"),t.setAttribute("aria-current","page"),t.setAttribute("data-linkoffed-href",`${e.href}`);e.firstChild;)t.appendChild(e.firstChild);e.replaceWith(t)}e=e.split("#")[0].split("?")[0],e.endsWith("/index.html")&&(e=e.replace("index.html",""));document.querySelectorAll("body [href]").forEach((r=>{let a=r.getAttribute("href");""!==a&&"#"!==a&&(a=r.href,a.includes("/index.html")&&(a=a.replace("index.html","")));let n=a.split("?")[0].split("#")[0];if(e===n)if(-1!==a.indexOf("?")){const e=a.substr(a.indexOf("?")+1);r.setAttribute("href","?"+e)}else if(-1!==a.indexOf("#")){const e=a.substr(a.indexOf("#")+1);r.setAttribute("href","#"+e);const n=a.substr(a.indexOf("#")+1);document.getElementById(n)||t(r)}else t(r)}))}!function(){const e=document.documentElement;window.addEventListener("resize",(function(){e.setAttribute("data-init",""),setTimeout((()=>{e.removeAttribute("data-init")}),0)}))}(),function(){const e=document.querySelector('meta[name="viewport"]');if(e){function t(){const t=window.outerWidth>360?"width=device-width,initial-scale=1":"width=360";e.getAttribute("content")!==t&&e.setAttribute("content",t)}addEventListener("resize",t,!1),t()}}(),linkOff(),window.addEventListener("scroll",(()=>{html.setAttribute("data-scrolling","true")})),window.addEventListener("scrollend",(()=>{html.removeAttribute("data-scrolling")})),document.addEventListener("load",(()=>{document.body.addEventListener("click",(e=>{const t=e.target;if(t.matches('[href^="#"]')){document.documentElement.style.scrollBehavior="smooth";const e=t.getAttribute("href").slice(1),r=document.getElementById(e);r&&(r.scrollIntoView(),setTimeout((()=>{document.documentElement.style.scrollBehavior=""}),500))}}))}));let lastScrollY=window.scrollY||window.pageYOffset;const updateScrollDirection=()=>{const e=window.scrollY||window.pageYOffset,t=document.documentElement;e>lastScrollY?t.setAttribute("data-scroll","bottom"):e<lastScrollY&&t.setAttribute("data-scroll","top"),lastScrollY=e};window.addEventListener("load",(()=>{updateScrollDirection();let e=!1;window.addEventListener("scroll",(()=>{e||(updateScrollDirection(),e=!0),clearTimeout(window.scrollTimer),window.scrollTimer=setTimeout((()=>{e=!1}),100)})),window.addEventListener("scrollend",updateScrollDirection)}));const scrollZero=()=>{window.scrollY<=10?(html.setAttribute("data-scroll","top"),html.setAttribute("data-scroll-zero","true")):html.removeAttribute("data-scroll-zero")};function fileSize(){document.querySelector("body").querySelectorAll('[download], [href*=".pdf"], [href*=".doc"], [href*=".xlsx"], [href*=".ppt"], [href*=".zip"], [href*=".exe"], [href*=".EXE"]').forEach((e=>{if(!e.querySelector("[data-filesize]")){const t=e.getAttribute("href")||e.getAttribute("data-linkoffed-href");if(t){const r=t.split(".").pop().toUpperCase(),a=new XMLHttpRequest;a.onload=function(){if(200===a.status){const t=a.getResponseHeader("Content-Length"),n=Math.floor(t/1024);let o=document.createElement("span");if(o.setAttribute("data-filesize",""),o){const t=1024,a=1048576;let i,l;n>=a?(i=(n/a).toFixed(2),l="GB"):n>=t?(i=(n/t).toFixed(2),l="MB"):(i=n,l="KB"),o.setAttribute("data-filesize",`${i}${l}`),o.textContent="",o.textContent=` (${r} : ${i}${l})`,e.append(o)}}},a.onerror=function(){},a.open("HEAD",t),a.send()}}}))}window.addEventListener("load",scrollZero),window.addEventListener("scroll",scrollZero),fileSize(),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll('[data-modal="this"]').forEach(((e,t)=>{const r=e.cloneNode(!0),a=e.cloneNode(!0),n=document.createElement("button");n.appendChild(r),n.className="modal__trigger",n.setAttribute("id","modal__trigger--img-"+t),n.setAttribute("tabindex","0"),n.setAttribute("role","button"),n.setAttribute("aria-labelledby","modal--img--"+t),n.setAttribute("aria-expanded","false"),n.setAttribute("aria-pressed","fal
1se"),e.replaceWith(n);const o=document.createElement("div");o.appendChild(a),o.className="modal",o.setAttribute("id","modal--img--"+t),o.setAttribute("aria-labelledby","modal__trigger--img-"+t),o.setAttribute("aria-hidden","true"),o.hidden=!0,n.insertAdjacentElement("afterend",o);const i=document.createElement("button");i.setAttribute("aria-label","モーダルを閉じる"),i.classList.add("modal__close"),o.appendChild(i);const l=()=>{n.setAttribute("aria-expanded","false"),n.setAttribute("aria-pressed","false"),o.hidden=!0,o.setAttribute("aria-hidden","true")};n.addEventListener("click",(()=>{o.hidden?(()=>{n.setAttribute("aria-expanded","true"),n.setAttribute("aria-pressed","true"),o.hidden=!1,o.setAttribute("aria-hidden","false"),i.addEventListener("click",l);const e=t=>{"Escape"!==t.key||o.hidden||(l(),document.removeEventListener("keydown",e))};document.addEventListener("keydown",e)})():l()}))}))})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll('[data-modal="next"]').forEach(((e,t)=>{e.classList.add("modal__trigger"),e.setAttribute("id","modal__trigger--"+t),e.setAttribute("tabindex","0"),e.setAttribute("role","button"),e.setAttribute("aria-labelledby","modal--"+t),e.setAttribute("aria-expanded","false"),e.setAttribute("aria-pressed","false");const r=document.createElement("button");for(;e.firstChild;)r.appendChild(e.firstChild);r.className=e.className,r.setAttribute("data-tab-button",e.getAttribute("data-tab-button")),r.id=e.id,r.setAttribute("tabindex",e.getAttribute("tabindex")),r.setAttribute("role",e.getAttribute("role")),r.setAttribute("aria-labelledby",e.getAttribute("aria-labelledby")),r.setAttribute("aria-expanded",e.getAttribute("aria-expanded")),r.setAttribute("aria-pressed",e.getAttribute("aria-pressed")),e.replaceWith(r);const a=(e=r).nextElementSibling;a.setAttribute("id","modal--"+t),a.setAttribute("aria-labelledby","modal__trigger--"+t),a.setAttribute("aria-hidden","true"),a.hidden=!0;const n=a.querySelector("iframe");if(n){const e=n.getAttribute("src");n.setAttribute("src",""),n.setAttribute("data-src",e)}let o=null;o=document.createElement("button"),o.setAttribute("aria-label","モーダルを閉じる"),o.classList.add("modal__close"),a.appendChild(o);const i=()=>{e.setAttribute("aria-expanded","false"),e.setAttribute("aria-pressed","false"),a.hidden=!0,a.setAttribute("aria-hidden","true");const t=a.querySelector("iframe");if(t){const e=t.getAttribute("src");t.setAttribute("src",""),t.setAttribute("data-src",e)}o&&(o=null)};e.addEventListener("click",(()=>{a.hidden?(()=>{e.setAttribute("aria-expanded","true"),e.setAttribute("aria-pressed","true"),a.hidden=!1,a.setAttribute("aria-hidden","false");const t=a.querySelector("iframe");if(t){const e=t.getAttribute("src")||t.getAttribute("data-src");t.setAttribute("data-src",""),t.setAttribute("src",e)}o.addEventListener("click",i);const r=e=>{"Escape"!==e.key||a.hidden||(i(),document.removeEventListener("keydown",r))};document.addEventListener("keydown",r)})():i()}))}))})),document.addEventListener("DOMContentLoaded",(()=>{setTimeout((()=>{document.querySelectorAll('[data-modal^="#"]').forEach(((e,t)=>{const r=e.getAttribute("data-modal").substring(1),a=document.getElementById(r);if(!a)return void console.warn(`Element with ID "${r}" not found.`);const n=document.createElement("button");for(n.className=e.className,n.style.cssText=e.style.cssText;e.firstChild;)n.appendChild(e.firstChild);if(setTimeout((()=>{const t=e.getAttribute("data-filesize-text"),r=e.getAttribute("data-filesize-type"),a=e.getAttribute("href");if(null!==t){const e=document.createElement("span");e.setAttribute("data-filesize",""),e.textContent=t,n.appendChild(e)}null!==r&&n.setAttribute("data-filesize-type",r),null!==a&&n.setAttribute("data-linkoffed-href",a)}),1),Array.from(e.attributes).forEach((e=>{e.name.startsWith("data-")&&n.setAttribute(e.name,e.value)})),n.classList.add("modal__trigger"),n.setAttribute("id","modal__trigger--"+r+"-"+t),n.setAttribute("tabindex","0"),n.setAttribute("role","button"),n.setAttribute("aria-labelledby",r),n.setAttribute("aria-expanded","fal
1se"),n.setAttribute("aria-pressed","false"),e.replaceWith(n),!a.querySelector(".modal__close")){let e=null;e=document.createElement("button"),e.setAttribute("aria-label","モーダルを閉じる"),e.classList.add("modal__close"),a.appendChild(e)}const o=()=>{n.setAttribute("aria-expanded","false"),n.setAttribute("aria-pressed","false"),a.hidden=!0,a.setAttribute("aria-hidden","true")};n.addEventListener("click",(()=>{a.hidden?(()=>{n.setAttribute("aria-expanded","true"),n.setAttribute("aria-pressed","true"),a.hidden=!1,a.setAttribute("aria-hidden","false");const e=a.offsetHeight;setTimeout((()=>{a.style.setProperty("--modal-h",`${e}px`)}),1);const t=a.querySelector(".modal__close");t&&t.addEventListener("click",o);const r=e=>{"Escape"!==e.key||a.hidden||(o(),document.removeEventListener("keydown",r))};document.addEventListener("keydown",r)})():o()}))}))}),300)}));const updateModalHeight=()=>{document.querySelectorAll(".modal").forEach((e=>{const t=e.offsetHeight;setTimeout((()=>{e.style.setProperty("--modal-h",`${t}px`)}),1)}))};window.addEventListener("resize",updateModalHeight),document.addEventListener("DOMContentLoaded",updateModalHeight);const modals=document.querySelectorAll(".modal");modals.forEach((e=>{new ResizeObserver((()=>{updateModalHeight()})).observe(e)})),setTimeout((()=>{document.querySelectorAll('[data-permission][data-modal^="#"]').forEach((e=>{setTimeout((()=>{e.addEventListener("click",(()=>{const t=e.getAttribute("href")||e.getAttribute("data-linkoffed-href");t&&e.setAttribute("href",t);const r=document.querySelector(".permission");r.scrollTop=0;const a=document.querySelector("[data-permission-download][download]");if(a){a.querySelectorAll("span").forEach((e=>e.remove())),a.setAttribute("href",t);const r=e.querySelector("[data-filesize]");if(r){const e=r.getAttribute("data-filesize");if(e){const t=document.createElement("span");t.setAttribute("data-filesize",""),t.textContent=` (${e})`,a.appendChild(t)}}}const n=document.querySelector("[data-permission-visible]");n&&n.remove();const o=document.createElement("div");o.setAttribute("data-permission-visible",""),r.appendChild(o);const i=document.querySelector("[data-permission-visible]"),l=new IntersectionObserver((e=>{e.forEach((e=>{const t=document.querySelector("[data-permission-download][download]");t&&(e.isIntersecting?(t.classList.remove("button--disabled"),t.classList.add("button--primary")):(t.classList.remove("button--primary"),t.classList.add("button--disabled")))}))}));l.observe(i)}))}))}),1)}),350),$("img[usemap]").rwdImageMaps(),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll("[data-gallery]").forEach(((e,t)=>{const r=`gallery--${t+1}`;e.setAttribute("data-gallery",r);const a=document.createElement("div");a.classList.add("gallery__caption"),e.after(a);const n=document.createElement("div");n.classList.add("modal"),n.classList.add("modal--gallery"),n.setAttribute("hidden",""),n.setAttribute("id",`${r}`);const o=document.createElement("div");o.classList.add("modal__head"),n.appendChild(o);const i=document.createElement("div");i.classList.add("modal__body"),n.appendChild(i);const l=document.createElement("div");l.classList.add("modal__carousel"),l.setAttribute("data-slick","");const d=document.createElement("button");d.classList.add("modal__close"),d.setAttribute("aria-label","モーダルを閉じる"),o.appendChild(d),i.appendChild(l),e.after(n);e.querySelectorAll("img").forEach(((e,t)=>{const r=document.createElement("button");r.setAttribute("aria-pressed","false"),r.setAttribute("data-target",t),r.classList.add("modal__trigger"),r.appendChild(e.cloneNode(!0)),r.addEventListener("click",(()=>{let e=r.getAttribute("data-target");$(l).slick("slickGoTo",e);if(!n.hasAttribute("hidden"))r.setAttribute("aria-pressed","false"),n.setAttribute("hidden","");else{r.setAttribute("aria-pressed","true"),n.removeAttribute("hidden"),setTimeout((()=>{const e=n.offsetHeight;n.style.setProperty("--modal-h",`${e}px`)}),1);const e=t=>{"Escape"===t.key&&(n.setAttribute("hidden",""),r.setAttribute("aria-pressed","false"),document.removeEventListener("keydown",e))};document.addEventListener("keydown",e)}})),e.replaceWith(r);const a=e.cloneNode(!0);l.appendChild(a),d.addEventListener("click",(()=>
1{n.setAttribute("hidden",""),r.setAttribute("aria-pressed","false")}))}))})),document.querySelectorAll(".modal__carousel").forEach((e=>{$(e).slick({infinite:!0,slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!0})}))}));const _reveal=document.querySelectorAll("[data-reveal]"),_revealDelay=200,_revealOptions={root:null,rootMargin:"-40px 0px",threshold:0},_revalObserver=new IntersectionObserver(_revealObserverCallBack,_revealOptions);function _revealObserverCallBack(e){let t=0;e.forEach((e=>{if(e.isIntersecting){const r=e.target;t+=1;r.getAttribute("data-reveal");setTimeout((()=>{r.setAttribute("data-reveal-true","")}),t*_revealDelay),r.addEventListener("transitionend",(()=>{r.removeAttribute("data-reveal"),r.removeAttribute("data-reveal-true")})),_revalObserver.unobserve(r)}}))}_reveal.forEach((function(e){_revalObserver.observe(e)})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll("[data-tab]").forEach((e=>{const t=e.querySelectorAll("[data-tab-button]");t.forEach(((e,r)=>{const a=e.getAttribute("data-tab-button"),n=document.querySelector(a);0===r?(e.setAttribute("aria-expanded","true"),e.setAttribute("aria-pressed","true"),e.setAttribute("aria-labelledby",a.replace("#","")),n.hidden=!1,n.setAttribute("aria-hidden","false")):(e.setAttribute("aria-expanded","false"),e.setAttribute("aria-pressed","false"),e.setAttribute("aria-labelledby",a.replace("#","")),n.hidden=!0,n.setAttribute("aria-hidden","true")),n.setAttribute("aria-labelledby",e.getAttribute("aria-labelledby")),e.addEventListener("click",(r=>{r.preventDefault(),t.forEach((e=>{const t=e.getAttribute("data-tab-button"),r=document.querySelector(t);e.setAttribute("aria-expanded","false"),e.setAttribute("aria-pressed","false"),r.hidden=!0,r.setAttribute("aria-hidden","true")})),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-pressed","true"),n.hidden=!1,n.setAttribute("aria-hidden","false")}))}))}))}));const html=document.documentElement;html.setAttribute("data-scroll","top");const updateHeaderAndScrollVars=()=>{const e=document.querySelector("body > .header"),t=e?e.offsetHeight:0;document.documentElement.style.setProperty("--header-h",`${t}px`);const r=document.querySelector(".header__logo"),a=r?r.offsetHeight:0;document.documentElement.style.setProperty("--header-h--logo",`${a}px`);const n=document.querySelector('.header__nav:not([aria-hidden="true"]) .header__nav-global'),o=n?n.offsetHeight:0;document.documentElement.style.setProperty("--header-h--global",`${o}px`);const i=document.querySelector('.header__nav:not([aria-hidden="true"]) .header__nav-local'),l=i?i.offsetHeight:0;document.documentElement.style.setProperty("--header-h--local",`${l}px`);const d=document.querySelector(".localnav[data-sticky]:not(.modal .localnav)"),s=d?d.offsetHeight:0;document.documentElement.style.setProperty("--localnav-h",`${s}px`);let c=document.querySelector(".anchorarea[data-sticky]");c||(c=document.querySelector("[data-sticky] > .anchorarea"));const u=c?c.offsetHeight:0;document.documentElement.style.setProperty("--anchorarea-h",`${u}px`);const m=window.scrollY||window.pageYOffset;document.documentElement.style.setProperty("--body-scroll--y",`${m}px`),document.body.clientHeight-window.innerHeight<=window.pageYOffset?html.setAttribute("data-scroll-end","true"):html.setAttribute("data-scroll-end","false")};setTimeout((()=>{updateHeaderAndScrollVars(),window.addEventListener("resize",updateHeaderAndScrollVars);let e=!1;window.addEventListener("scroll",(()=>{e||(updateHeaderAndScrollVars(),e=!0),clearTimeout(window.scrollTimer),window.scrollTimer=setTimeout((()=>{e=!1}),100)})),window.addEventListener("scrollend",updateHeaderAndScrollVars)}),1);const updateAriaForResponsiveNav=()=>{const e=document.querySelector("#header__check"),t=document.querySelector("#header__nav");if(window.innerWidth<769){if(e&&t){const r=()=>{const r=e.checked;t.setAttribute("aria-hidden",!r),e.setAttribute("aria-expanded",r)};e.setAttribute("aria-controls","header__nav"),t.setAttribute("aria-labelledby","header__check"),r(),e.addEventListener("change",r)}}else t&&(t.removeAttribute("aria-hidden"),t.removeAttribute("aria-labelledby")),e&&(e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls"))};function headerNavigationGlobalLoad1(){document.querySelectorAll(".header__nav-global").forEach(((e,t)=>{e.setAttribute("id",`header__nav-global-${t}`);let r=e.getAttribute("aria-label"),a=document.createElement("button");a.classList.add("header__nav-global-collapse"),a.setAttribute("id",`header__nav-global-collapse-${t}`),a.textContent=r,e.before(a),a.setAttribute("aria-expanded","true"),a.setAttribute("aria-pressed","true"),e.setAttribute("aria-hidden","false")}))}function headerNavigationGlobalClicked(){document.querySelectorAll(".header__nav-global-collapse").forEach(((e,t)=>{let r=e.cloneNode(!0);e.parentNode.replaceChild(r,e),r.addEventListener("click",(()=>{let e=r.nextElementSibling;e.clientHeight>0&&(e.removeAttribute("style"),e.style.setProperty("--header__nav-global-height",e.clientHeight+"px"),e.addEventListener("transitionend",(()=>{})));let t=r.getAttribute("aria-pressed");null!==e&&(r.style.pointerEvents="none","true"===t?(r.setAttribute("aria-expanded","fal
1se"),r.setAttribute("aria-pressed","false"),e.style.height=e.clientHeight+"px",e.setAttribute("aria-hidden","true"),e.style.height=0,e.style.removeProperty("height")):(r.setAttribute("aria-expanded","true"),r.setAttribute("aria-pressed","true"),e.setAttribute("aria-hidden","false")),e.addEventListener("transitionend",(()=>{r.style.removeProperty("pointer-events")})))}))}))}updateAriaForResponsiveNav(),window.addEventListener("resize",updateAriaForResponsiveNav),headerNavigationGlobalLoad1(),headerNavigationGlobalClicked(),window.addEventListener("resize",(()=>{headerNavigationGlobalClicked()})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".header__nav-global-item").forEach(((e,t)=>{const r=e.nextElementSibling;let a=e.querySelector("span");if(r&&r.classList.contains("header__dropdown-global")){const n=document.createElement("p");n.className="header__dropdown-global-title";const o=document.createElement(a.parentNode.tagName.toLowerCase());o.href=a.parentNode.getAttribute("data-current"),"span"===a.parentNode.tagName.toLowerCase()&&o.setAttribute("aria-current",a.parentNode.getAttribute("aria-current")),o.textContent=`${a.textContent}トップ`,n.appendChild(o);const i=document.createElement("button");i.className="header__dropdown-global-close",i.setAttribute("aria-hidden","true"),i.setAttribute("title","メニューを閉じる"),i.addEventListener("click",(()=>{const e=document.querySelector('.header__nav-global-item[aria-pressed="true"]');e&&e.click()})),r.appendChild(i),r.insertBefore(n,r.firstChild);const l=()=>{"true"===r.getAttribute("aria-hidden")?(r.setAttribute("aria-hidden","false"),r.style.removeProperty("--dropdown-h"),r.style.setProperty("--dropdown-h",`${r.offsetHeight}px`),r.setAttribute("aria-hidden","true"),setTimeout((()=>{}),0)):r.style.setProperty("--dropdown-h",`${r.offsetHeight}px`)};l(),window.addEventListener("resize",l);const d=`header-item-global-${t}`,s=`header-dropdown-global-${t}`,c=document.createElement("button");for(;e.firstChild;)c.appendChild(e.firstChild);c.className=e.className,e.hasAttribute("data-current")&&c.setAttribute("data-current",e.getAttribute("data-current")),c.id=d,c.setAttribute("aria-pressed","false"),c.setAttribute("aria-expanded","false"),c.setAttribute("aria-controls",s);window.location.pathname.split("/")[1]===e.getAttribute("data-current").split("/")[1]&&c.setAttribute("data-current","true"),r.id=s,r.setAttribute("role","region"),r.setAttribute("aria-hidden","true"),r.setAttribute("aria-labelledby",d),c.addEventListener("click",(()=>{document.querySelector(".header__nav-global").style.removeProperty("--header__nav-global-height"),document.querySelectorAll(".header__dropdown-global[aria-hidden]").forEach((e=>{e!==c.nextElementSibling&&e.setAttribute("aria-hidden","true")})),document.querySelectorAll('.header__nav-local-item[aria-pressed="true"]').forEach((e=>{r!==e.nextElementSibling&&(e.setAttribute("aria-pressed","false"),e.setAttribute("aria-expanded","false"),e.nextElementSibling.setAttribute("aria-hidden","true"))})),document.querySelectorAll(".header__nav-global-item[aria-expanded]").forEach((e=>{e!==c&&(e.setAttribute("aria-pressed","false"),e.setAttribute("aria-expanded","false"))}));const e="true"===c.getAttribute("aria-expanded");c.setAttribute("aria-pressed",!e),c.setAttribute("aria-expanded",!e),r.setAttribute("aria-hidden",e?"true":"false")})),e.parentNode.replaceChild(c,e),window.addEventListener("resize",(()=>{document.querySelectorAll(".header__dropdown-global[aria-hidden]").forEach((e=>{e.setAttribute("aria-hidden","true")})),document.querySelectorAll(".header__nav-global-item[aria-expanded]").forEach((e=>{e.setAttribute("aria-pressed","false"),e.setAttribute("aria-expanded","false")}))}))}}))})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".header__nav-local-item").forEach(((e,t)=>{const r=e.nextElementSibling;let a=e.querySelector("span");if(r&&r.classList.contains("header__dropdown-local")){const n=document.createElement("p");if(n.className="header__dropdown-local-title",a.parentNode.hasAttribute("data-current")||a.parentNode.hasAttribute("href")){const e=document.createElement("a");e.href=a.parentNode.hasAttribute("data-current")?a.parentNode.getAttribute("data-current"):a.parentNode.getAttribute("href"),e.textContent=`${a.textContent}トップ`,n.appendChild(e)}else{const e=document.createElement("span");e.setAttribute("aria-current","page"),e.textContent=`${a.textContent}トップ`,n.appendChild(e)}const o=document.createElement("button");o.className="header__dropdown-local-close",o.setAttribute("aria-hidden","true"),o.setAttribute("title","メニューを閉じる"),o.addEventListener("click",(()=>{const e=document.querySelector('.header__nav-local-item[aria-pressed="true"]');e&&e.click()})),r.appendChild(o),r.insertBefore(n,r.firstChild);const i=()=>{"true"===r.getAttribute("aria-hidden")?(r.setAttribute("aria-hidden","false"),r.style.removeProperty("--dropdown-h"),r.style.setProperty("--dropdown-h",`${r.offsetHeight}px`),r.setAttribute("aria-hidden","true"),setTimeout((()=>{}),0)):r.style.setProperty("--dropdown-h",`${r.offsetHeight}px`)};i(),window.addEventListener("resize",i);const l=`header-item-local-${t}`,d=`header-dropdown-local-${t}`,s=document.createElement("button");for(;e.firstChild;)s.appendChild(e.firstChild);s.className=e.className,e.hasAttribute("data-current")&&s.setAttribute("data-current",e.getAttribute("data-current")),s.id=l,s.setAttribute("aria-pressed","fal
1se"),s.setAttribute("aria-expanded","false"),s.setAttribute("aria-controls",d),r.id=d,r.setAttribute("role","region"),r.setAttribute("aria-hidden","true"),r.setAttribute("aria-labelledby",l),s.addEventListener("click",(()=>{document.querySelectorAll(".header__dropdown-local[aria-hidden]").forEach((e=>{e!==s.nextElementSibling&&e.setAttribute("aria-hidden","true")})),document.querySelectorAll('.header__nav-global-item[aria-pressed="true"]').forEach((e=>{r!==e.nextElementSibling&&(e.setAttribute("aria-pressed","false"),e.setAttribute("aria-expanded","false"),e.nextElementSibling.setAttribute("aria-hidden","true"))})),document.querySelectorAll(".header__nav-local-item[aria-expanded]").forEach((e=>{e!==s&&(e.setAttribute("aria-pressed","false"),e.setAttribute("aria-expanded","false"))}));const e="true"===s.getAttribute("aria-expanded");s.setAttribute("aria-pressed",!e),s.setAttribute("aria-expanded",!e),r.setAttribute("aria-hidden",e?"true":"false")})),e.parentNode.replaceChild(s,e),window.addEventListener("resize",(()=>{document.querySelectorAll(".header__dropdown-local[aria-hidden]").forEach((e=>{e.setAttribute("aria-hidden","true")})),document.querySelectorAll(".header__nav-local-item[aria-expanded]").forEach((e=>{e.setAttribute("aria-pressed","false"),e.setAttribute("aria-expanded","false")}))}))}}))})),document.addEventListener("keydown",(e=>{"Tab"===e.key&&setTimeout((()=>{const e=window.matchMedia("(min-width: 769px)").matches,t=document.activeElement,r=document.querySelector(".header__nav-local");e&&r&&r.contains(t)&&window.scrollTo(0,0)}),1)})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".footer__backlink"),t=document.querySelector(".footer"),r=document.querySelector(".footer-copy"),a=document.documentElement;if(e){const n=()=>{const e=t.getBoundingClientRect();let n=Math.max(0,window.innerHeight-e.top);const o=window.innerWidth>=796?150:100;if(n>e.height&&(n=e.height),r){const e=r.getBoundingClientRect();let t=Math.max(0,window.innerHeight-e.top);t>e.height&&(t=e.height),a.style.setProperty("--footer-h--visible",n+t-o+"px")}else a.style.setProperty("--footer-h--visible",`${n}px`)},o=()=>{window.scrollY>0?e.removeAttribute("hidden"):e.setAttribute("hidden",""),n()};window.addEventListener("resize",n),o(),n();window.addEventListener("scroll",(()=>{o()})),e.addEventListener("click",(e=>{e.preventDefault(),e.stopImmediatePropagation(),window.scrollTo({top:0,behavior:"smooth"})}))}})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".breadcrumb"),t=document.documentElement;if(e){const r=()=>{const r=e.getBoundingClientRect();t.style.setProperty("--breadcrumb-h",`${r.height}px`);const a=e.getBoundingClientRect();if(a.top<window.innerHeight&&a.bottom>0){const e=Math.min(a.bottom,window.innerHeight)-Math.max(a.top,0);t.style.setProperty("--breadcrumb-h--visible",`${e}px`)}else t.style.setProperty("--breadcrumb-h--visible","0px")};window.addEventListener("resize",r);let a=!1;window.addEventListener("scroll",(()=>{a||(r(),a=!0),clearTimeout(window.scrollTimer),window.scrollTimer=setTimeout((()=>{a=!1}),100)})),window.addEventListener("scrollend",r),r()}else t.style.setProperty("--breadcrumb-h","0px"),t.style.setProperty("--breadcrumb-h--visible","0px")}));const buttons=document.querySelectorAll(".button[href][data-disabled-date]");buttons.forEach((e=>{const t=e.getAttribute("data-disabled-date"),r=e.getAttribute("data-disabled-text");if(t<(new Date).toISOString().slice(0,16).replace("T","-").replace(":","-")){const t=document.createElement("span");if(t.className=e.className.replace("button--primary","button--disabled"),t.style.cssText=e.style.cssText,t.textContent=e.textContent,e.parentNode.replaceChild(t,e),r){const e=document.createElement("p");e.className="conversion-form__link-note",e.textContent=r,t.parentNode.insertBefore(e,t.nextSibling)}}})),document.addEventListener("DOMContentLoaded",(()=>{const e=()=>{document.querySelectorAll(".table--scrollable > table").forEach((e=>{const t=e.parentElement;if(e.offsetWidth>t.offsetWidth){new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(t.removeAttribute("data-table-scrollable"),t.setAttribute("data-table-scrollable","true"))}))})).observe(t)}else t.removeAttribute("data-table-scrollable")}))};e(),window.addEventListener("resize",e)})),$(document).ready((function(){$(".carousel-custom")&&$(".carousel-custom").slick({dots:!0,customPaging:function(e,t){return'<button type="button"><img src="'+$(e.$slides[t]).find("img").attr("src")+'" alt="'+$(e.$slides[t]).find("img").attr("alt")+'" /></button>'},infinite:!0,slidesToShow:1,slidesToScroll:1,arrows:!1}
1)})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".anchorarea:empty").forEach(((e,t)=>{const r=e.getAttribute("data-index");if(!r)return;const a=document.querySelector(r);if(!a)return;const n=a.querySelectorAll(".accordion:has(.h2) > .accordion__head, *:not(.modal):not(.accordion) .h2:not(:has(.h2__main--related)), h2.conversion-main__title");n.length>1&&n.forEach(((t,a)=>{const n=t.id||`${r.replace("#","")}-${a+1}`;t.classList.contains("accordion__head")?t.closest(".accordion").id=n:t.id=n;const o=document.createElement("li"),i=document.createElement("a");if(i.classList.add("anchorarea__item"),i.href=`#${n}`,t.querySelector(".h2__attention")){let e=t.querySelector(".h2__attention"),r=Array.from(e.childNodes).map((e=>e.nodeType===Node.TEXT_NODE?e.textContent:e.outerHTML)).join("");const a=document.createElement("span");a.classList.add("index__item-attention");let n=t.querySelector(".h2__attention").nextElementSibling,l=Array.from(n.childNodes).map((e=>e.outerHTML||e.textContent)).join("");for(;a.firstChild;)a.removeChild(a.firstChild);const d=document.createElement("span"),s=(new DOMParser).parseFromString(r,"text/html");Array.from(s.body.childNodes).forEach((e=>{d.appendChild(e)})),Array.from(d.childNodes).forEach((e=>{a.appendChild(e)}));document.createElement("span").textContent=l,i.appendChild(a),i.after(l),i.append(l),o.appendChild(i)}else{if(t.querySelector(".h2__main--rich")){const e=t.querySelector(".h2__sub");i.textContent=e?e.textContent.trim():t.textContent.trim()}else i.textContent=t.textContent.trim();o.appendChild(i)}e.appendChild(o)}))}));document.querySelectorAll(".anchorarea:empty").forEach((e=>{const t=e.parentElement?.parentElement;if(t){0===Array.from(t.children).filter((e=>!["data-sticky-position","data-sticky-margin","data-sticky"].some((t=>e.hasAttribute(t))))).length&&t.remove()}}))})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".anchorarea[data-title]").forEach((e=>{let t=e.outerHTML;const r=e.children.length;function a(){const a=window.innerWidth<769,n=document.querySelector("[data-accordion]");if(a){if(!n&&r>3){const r=document.createElement("details");r.classList.add("accordion"),r.setAttribute("data-accordion","");const a=document.createElement("summary");a.classList.add("accordion__head"),a.textContent=e.getAttribute("data-title");const n=document.createElement("div");n.classList.add("accordion__body"),n.innerHTML=t,r.appendChild(a),r.appendChild(n),e.after(r),e.remove(),n.querySelectorAll('[href^="#"]').forEach((e=>{e.addEventListener("click",(()=>{r.removeAttribute("open")}))}))}}else n&&(n.after(e),n.remove())}a();let n=window.innerWidth;window.addEventListener("resize",(()=>{const e=window.innerWidth;n!==e&&a(),n=e}))}))})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".index:empty").forEach(((e,t)=>{let r=e.getAttribute("data-index-title");if(r){const t=document.createElement("p");t.classList.add("index__title"),t.textContent=r,e.prepend(t)}const a=e.getAttribute("data-index");if(!a)return;const n=document.createElement("ol");n.classList.add("index__list"),e.append(n);const o=document.querySelector(a);if(!o)return void e.remove();const i=o.querySelectorAll("*:not(.modal__head) > .h2, h2.conversion-main__title");i.length>1&&i.forEach(((e,t)=>{const r=`${a.replace("#","")}-${t+1}`;e.id=r;const o=document.createElement("li"),i=document.createElement("a");if(i.classList.add("index__item"),i.href=`#${r}`,e.querySelector(".h2__attention")){let t=e.querySelector(".h2__attention"),r=Array.from(t.childNodes).map((e=>e.outerHTML||e.textContent)).join("");r=r.replace("h2__","index__item-");const a=document.createElement("span");a.classList.add("index__item-attention");let n=e.querySelector(".h2__attention").nextElementSibling,l=Array.from(n.childNodes).map((e=>e.outerHTML||e.textContent)).join("");for(;a.firstChild;)a.removeChild(a.firstChild);const d=document.createElement("span"),s=(new DOMParser).parseFromString(r,"text/html");Array.from(s.body.childNodes).forEach((e=>{d.appendChild(e)}
1)),Array.from(d.childNodes).forEach((e=>{a.appendChild(e)}));const c=document.createElement("span"),u=document.createElement("span"),m=(new DOMParser).parseFromString(l,"text/html");Array.from(m.body.childNodes).forEach((e=>{u.appendChild(e)})),c.appendChild(u),i.appendChild(a),i.appendChild(c),o.appendChild(i)}else{if(e.querySelector(".h2__main--rich")){const t=e.querySelector(".h2__sub");i.textContent=t?t.textContent.trim():e.textContent.trim()}else i.textContent=e.textContent.trim();o.appendChild(i)}n.appendChild(o)}))}))})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".step:empty").forEach(((e,t)=>{const r=e.getAttribute("data-index");if(!r)return;const a=document.querySelector(r);if(!a)return void indexElement.remove();a.querySelectorAll("*:not(.modal__head) > .h2, h2.conversion-main__title").forEach(((t,a)=>{const n=`${r.replace("#","")}-${a+1}`;t.id=n;const o=document.createElement("li"),i=document.createElement("a");if(i.classList.add("step__item"),i.href=`#${n}`,t.querySelector(".h2__attention")){let e=t.querySelector(".h2__attention"),r=Array.from(e.childNodes).map((e=>e.nodeType===Node.TEXT_NODE?e.textContent:e.outerHTML)).join("");r=r.replace("h2__","step__item-");const a=document.createElement("span");a.classList.add("step__item-attention");let n=t.querySelector(".h2__attention").nextElementSibling,l=Array.from(n.childNodes).map((e=>e.outerHTML||e.textContent)).join("");for(;a.firstChild;)a.removeChild(a.firstChild);const d=document.createElement("span"),s=(new DOMParser).parseFromString(r,"text/html");Array.from(s.body.childNodes).forEach((e=>{d.appendChild(e)})),Array.from(d.childNodes).forEach((e=>{a.appendChild(e)}));const c=document.createElement("span");c.textContent=l,i.appendChild(a),i.appendChild(c),o.appendChild(i)}else{const e=document.createElement("span");e.textContent=t.textContent.trim(),i.appendChild(e),o.appendChild(i)}e.appendChild(o)}))}))})),document.addEventListener("change",(e=>{const t=e.target.closest(".select__item");if(!t)return;const r=t.querySelector("option[selected]");if(!r)return;const a=r.textContent;e.target.options[e.target.selectedIndex].textContent!==a?t.classList.add("select__item--selected"):t.classList.remove("select__item--selected")}));const selectElement=document.querySelector("select[data-filter-subject]");selectElement&&selectElement.addEventListener("change",(e=>{const t=e.target.value,r=new URL(window.location.href);""===t||"*"===t?r.searchParams.delete("c"):r.searchParams.set("c",t),window.location.href=r.toString()})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".event-list__item[data-delete-date]"),t=new Date;e.forEach((e=>{const r=e.getAttribute("data-delete-date"),a=new Date(r);if(!isNaN(a)){(t-a)/864e5>=183&&e.remove()}}));document.querySelectorAll(".event-list[data-null]").forEach((e=>{if(0===e.children.length){let t=e.getAttribute("data-null");e.setAttribute("aria-label",t)}}))})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll('[href^="#"]').forEach((e=>{e.addEventListener("click",(t=>{const r=e.getAttribute("href").substring(1),a=document.getElementById(r);if(a&&"details"===a.tagName.toLowerCase()&&!a.hasAttribute("open")){a.setAttribute("open","");const e="accordion",t=localStorage.getItem(e),r=location.pathname.endsWith("/index.html")?location.pathname.replace("index.html",""):location.pathname;let n=t?JSON.parse(t):{};n[r]||(n[r]={});const o=a.getAttribute("data-session-accordion");n[r][o]=!0,localStorage.setItem(e,JSON.stringify(n))}}))}))}));var _details=document.querySelectorAll("details.accordion"),_location=location.pathname;_location.endsWith("/index.html")&&(_location=_location.replace("index.html",""));for(let e=0;e<_details.length;e++)if(_details[e].setAttribute("data-session-accordion",+e),window.localStorage.getItem("accordion")){var _accordionStorage=localStorage.getItem("accordion"),_accordionStorageJSON=JSON.parse(_accordionStorage);_location in _accordionStorageJSON&&(e in _accordionStorageJSON[_location]?_details[e].setAttribute("open",""):_details[e].removeAttribute("open"))}class accordion{constructor(e){this.el=e,this.summary=e.querySelector("summary"),this.content=e.querySelector("summary").nextElementSibling,this.summary.addEventListener("click",(e=>this.onClick(e)))}onClick(e){var t=location.pathname;t.endsWith("/index.html")&&(t=t.replace("index.html",""));
1var r=this.el.getAttribute("data-session-accordion");if(this.isClosing||!this.el.open)if(window.localStorage.getItem("accordion")){var a=localStorage.getItem("accordion");if(t in(o=JSON.parse(a)))o[t][r]=!0,localStorage.setItem("accordion",JSON.stringify(o));else{var n={[r]:!0};o[t]=n,localStorage.setItem("accordion",JSON.stringify(o))}}else{n={[t]:{[r]:!0}};window.localStorage.setItem("accordion",JSON.stringify(n))}else if((this.isExpanding||this.el.open)&&window.localStorage.getItem("accordion")){var o;a=localStorage.getItem("accordion");t in(o=JSON.parse(a))&&(delete o[t][r],localStorage.setItem("accordion",JSON.stringify(o)))}}}function download__flow(e,t){fetch(e).then((e=>{if(!e.ok)throw new Error("Network response was not ok "+e.statusText);return e.json()})).then((e=>{t.getAttribute("data-download-flow").split(",").forEach((t=>{const r=document.querySelector(`.download__flow-select[data-filter-now="${t}"]`);if(r){r.innerHTML="";const t=r.getAttribute("data-filter-before").split(","),a=t.every((e=>null!==document.querySelector(`input[type="radio"][name="${e}"]:checked`)));if(r.setAttribute("aria-disabled",!a),a){const a=t.map((e=>{const t=document.querySelector(`input[type="radio"][name="${e}"]:checked`);return{name:e,value:t?t.value:null}})),n=e.filter((e=>a.every((({name:t,value:r})=>"*"===r||e[t]===r)))).filter(((e,t,a)=>t===a.findIndex((t=>t[r.getAttribute("data-filter-now")]===e[r.getAttribute("data-filter-now")]))));n.forEach((e=>{const t=document.createElement("li"),a=document.createElement("label"),n=document.createElement("input");n.type="radio",n.name=r.getAttribute("data-filter-now"),n.setAttribute("data-download-flow",r.getAttribute("data-filter-after")||""),n.value=e[r.getAttribute("data-filter-now")],void 0!==e[r.getAttribute("data-filter-now")]&&(a.appendChild(n),a.appendChild(document.createTextNode(e[r.getAttribute("data-filter-now")])),t.appendChild(a),r.appendChild(t))}))}}if(r){const e=r.nextElementSibling;e&&e.classList.contains("select")&&e.remove();const t=document.createElement("div");t.className="select d-n--pc";const a=document.createElement("select");if(a.className="select__item",a.style.setProperty("--mt","10px"),"true"===r.getAttribute("aria-disabled")){const e=document.createElement("option");e.disabled=!0,e.setAttribute("selected","selected"),e.selected=!0,e.textContent=r.getAttribute("data-disabled")||"選択不可",a.appendChild(e),a.disabled=!0,a.setAttribute("aria-disabled","true")}else{r.querySelectorAll("li").forEach((e=>{const t=e.querySelector('input[type="radio"]'),r=document.createElement("option");r.value=t.value,r.textContent=t.nextSibling.textContent,a.appendChild(r)}));const e=document.createElement("option");e.disabled=!0,e.setAttribute("selected","selected"),e.selected=!0,e.textContent=r.getAttribute("data-title")||"選択してください",a.appendChild(e)}t.appendChild(a),r.after(t)}}))})).catch((e=>{console.error("データ取得中にエラーが発生しました: ",e)}))}_details.forEach((e=>{new accordion(e)})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".card__item-head[data-card-date]"),t=new Date;e.forEach((e=>{const r=e.getAttribute("data-card-date"),a=new Date(r);if(!isNaN(a)){const r=(t-a)/864e5;r>0&&r<=30&&e.setAttribute("data-card-date","true")}}))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".card__item[data-delete-date]"),t=new Date;e.forEach((e=>{const r=e.getAttribute("data-delete-date"),a=new Date(r);if(!isNaN(a)){(t-a)/864e5>=183&&e.remove()}}));document.querySelectorAll(".card[data-null]").forEach((e=>{if(0===e.children.length){let t=e.getAttribute("data-null");e.setAttribute("aria-label",t)}}))})),$(document).ready((function(){if($(".carousel:not(.carousel--single)")){let t=!1;function e(){let e=$(window).width(),r=3;e<769&&(r=1),t&&$(".carousel:not(.carousel--single)").slick("unslick"),$(".carousel:not(.carousel--single)").slick({arrows:!0,dots:!0,slidesToShow:r,slidesToScroll:1,infinite:!0,arrows:e>=769}),t=!0}e(),$(window).resize((function(){e()}))}})),$(document).ready((function(){if($(".carousel--single")){let t=!1;function e(){let e=$(window).width();t&&$(".carousel--single").slick("unslick"),$(".carousel--single").slick({arrows:!0,dots:!0,slidesToShow:1,slidesToScroll:1,infinite:!0,arrows:e>=769}),t=!0}e(),$(window).resize((function(){e()}))}})),document.addEventListener("DOMContentLoaded",(()=>{if(/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)){document.querySelectorAll(".conversion-form__tel > span").forEach((e=>{const t=e.textContent.trim();if(t){const r=document.createElement("a");r.href=`tel:${t}`,r.rel="noopener noreferrer",r.textContent=t,e.replaceWith(r)}}))}})),document.addEventListener("DOMContentLoaded",(()=>{if(/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)){document.querySelectorAll(".tel__number > span").forEach((e=>{const t=e.textContent.trim();if(t){const r=document.createElement("a");r.href=`tel:${t}`,r.rel="noopener noreferrer",r.textContent=t,e.replaceWith(r)}}))}})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll("[data-filter-select]:not(:has([data-filter-select-date]))").forEach((e=>{const t=e.querySelector("[data-filter-select-submit]"),r=e.querySelector("[data-filter-select-cancel]");if(!e||!t||!r)return;const a=()=>{const t=e.querySelectorAll('input:checked[data-filter-select-type="c1"]'),a=Array.from(t).map((e=>e.parentElement.textContent.trim())),n=e.querySelectorAll('input:checked[data-filter-select-type="c2"]'),o=Array.from(n).map((e=>e.parentElement.textContent.trim())),i=document.querySelector('input[type="hidden"][name="c1"]'),l=document.querySelector('input[type="hidden"][name="c2"]');a.length>0?i&&(i.value=a.join(",")):i.value="",o.length>0?l&&(l.value=o.join(",")):l.value="";const d=document.querySelector("[data-filter-count]");let s=e.getAttribute("data-filter-select");if(s&&!s.startsWith("http")){s=`${window.location.protocol}//${window.location.host}`+s}s&&fetch(s).then((e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return e.json()})).then((t=>{let a=0;if(t.forEach((e=>{let t={};if(document.querySelectorAll('input[type="hidden"]:not([value=""])').forEach((e=>{t[e.value]=e.value})),Object.keys(t).length>0){let t=document.querySelector('input[type="hidden"][name="c1"]')?.value.split(",").filter((e=>""!==e))||null,r=document.querySelector('input[type="hidden"][name="c2"]')?.value.split(",").filter((e=>""!==e))||null,n=document.querySelector('input[type="hidden"][name="a"]')?.value.split(",").filter((e=>""!==e))||null;const o=e.tag1.split(","),i=e.tag2.split(","),l=o.some((e=>t.includes(e))),d=i.some((e=>r.includes(e))),s=e.category,c=null===n||0===n.length||n.some((e=>s.includes(e)));c&&0!==t.length&&0!==r.length?l&&d&&a++:c&&0!==t.length&&0===r.length?l&&a++:c&&0===t.length&&0!==r.length&&d&&a++}})),d){document.querySelectorAll(".filter-modal__label").forEach((e=>{e.setAttribute("hidden","")})),d.textContent=a;let e={};document.querySelectorAll('input[type="hidden"][name*="c"]').forEach((t=>{e[t.name]=t.value}));const t=document.querySelector('input[type="hidden"][name="c1"]'),r=document.querySelector('input[type="hidden"][name="c2"]');""===t?.value&&""===r?.value?document.querySelectorAll(".filter-modal__label:not(:has(>.filter-modal__label-num))").forEach((e=>{e.removeAttribute("hidden")})):document.querySelectorAll(".filter-modal__label:has(>.filter-modal__label-num)").forEach((e=>{e.removeAttribute("hidden")}))}e.querySelectorAll('input[type="checkbox"][data-filter-select-type]:checked').length>0?(r.classList.remove("button--disabled"),r.setAttribute("tabindex","0"),r.setAttribute("aria-disabled","false"),"button"===r.tagName.toLowerCase()&&r.removeAttribute("disabled")):(r.classList.add("button--disabled"),r.setAttribute("tabindex","-1"),r.setAttribute("aria-disabled","true"),"button"===r.tagName.toLowerCase()&&r.setAttribute("disabled","true"))})).catch((e=>{console.error("Error fetching JSON:",e)}))},n=()=>{e.querySelectorAll('input[type="checkbox"][data-filter-select-type]:checked').length};e.addEventListener("change",(()=>{a(),setTimeout((()=>{n()}),1)})),r.addEventListener("click",(t=>{t.preventDefault(),e.querySelectorAll("input").forEach((e=>{e.checked=!1}
1)),e.querySelectorAll("select").forEach((e=>{e.value=e.querySelector("option[hidden]").value,e.classList.remove("select__item--selected")})),a(),setTimeout((()=>{n()}),1)})),a(),setTimeout((()=>{const t=new URLSearchParams(window.location.search),r=t.get("c1"),o=t.get("c2");if(r){r.split(",").forEach((t=>{const r=e.querySelector(`input[type="checkbox"][data-filter-select-type="c1"][value="${t}"]`);r&&(r.checked=!0)}))}if(o){o.split(",").forEach((t=>{const r=e.querySelector(`input[type="checkbox"][data-filter-select-type="c2"][value="${t}"]`);r&&(r.checked=!0)}))}a(),n()}),1)}))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector("[data-search-input]"),t=document.querySelector("[data-search-submit]");if(e&&t){e.addEventListener("input",(()=>{e.value.trim(),document.querySelector('input[type="hidden"][name="q"]')}));const r=new URLSearchParams(window.location.search).get("q");if(r){const e=document.querySelector('input[type="hidden"][name="q"]');e&&(e.value=r),t.disabled=!1,t.classList.remove("button--disabled"),t.classList.add("button--primary"),t.setAttribute("tabindex","0"),t.setAttribute("aria-disabled","false"),"button"===t.tagName.toLowerCase()&&t.removeAttribute("disabled")}}})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll("[data-filter-select]:has([data-filter-select-date])");e.forEach((t=>{const r=t.querySelector("[data-filter-select-submit]"),a=t.querySelector("[data-filter-select-cancel]");if(!t||!r||!a)return;const n=()=>{const e=t.querySelectorAll("input:checked"),r=Array.from(e).map((e=>e.parentElement.textContent.trim())),a=t.querySelectorAll('[data-filter-select-date="from"] .select__item'),n=t.querySelectorAll('[data-filter-select-date="to"] .select__item'),o=e=>{const t=e[0]?.value||"",r=e[1]?.value||"";return t&&r?`${t}-${r}`:t?`${t}`:""},i=o(a),l=o(n);if(i){const[e,t]=i.split("-").map((e=>parseInt(e,10)));n[0]?.querySelectorAll("option").forEach((t=>{const r=parseInt(t.value,10);isNaN(r)||(t.disabled=r<e)})),t&&n[1]&&n[1]?.querySelectorAll("option").forEach((r=>{const a=parseInt(r.value,10);isNaN(a)||(r.disabled=e===parseInt(n[0]?.value,10)&&a<t)}))}else n.forEach((e=>{e.querySelectorAll("option").forEach((e=>{e.disabled=!1}))}));if(l){const[e,t]=l.split("-").map((e=>parseInt(e,10)));a[0]?.querySelectorAll("option").forEach((t=>{const r=parseInt(t.value,10);isNaN(r)||(t.disabled=r>e)})),t&&a[1]&&a[1]?.querySelectorAll("option").forEach((r=>{const n=parseInt(r.value,10);isNaN(n)||(r.disabled=e===parseInt(a[0]?.value,10)&&n>t)}))}else a.forEach((e=>{e.querySelectorAll("option").forEach((e=>{e.disabled=!1}))}));const d=document.querySelector('input[type="hidden"][name="c"]');if(r.length>0?d.value=r.join(","):d.value="",i){const e=document.querySelector('input[type="hidden"][name="d1"]');e&&(e.value=i)}if(l){const e=document.querySelector('input[type="hidden"][name="d2"]');e&&(e.value=l)}const s=document.querySelector("[data-filter-count]");let c=t.getAttribute("data-filter-select");if(c&&!c.startsWith("http")){c=`${window.location.protocol}//${window.location.host}`+c}c&&fetch(c).then((e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return e.json()})).then((e=>{let t=0;if(e.forEach((e=>{let r={};if(document.querySelectorAll('input[type="hidden"]:not([value=""])').forEach((e=>{r[e.value]=e.value})),Object.keys(r).length>0){let r=document.querySelector('input[type="hidden"][name="c"]')?.value.trim()?document.querySelector('input[type="hidden"][name="c"]').value.split(","):null,a=document.querySelector('input[type="hidden"][name="a"]')?.value.trim()?document.querySelector('input[type="hidden"][name="a"]').value.split(","):null,n=document.querySelector('input[type="hidden"][name="d1"]')?.value?`${document.querySelector('input[type="hidden"][name="d1"]').value}`:null;null!==n&&(n=n&&!n.includes("-")?`${n}0101`:`${n}01`.replace(/-/g,""));let o=document.querySelector('input[type="hidden"][name="d2"]')?.value?`${document.querySelector('input[type="hidden"][name="d2"]').value}`:null;null!==o&&(o=o&&!o.includes("-")?`${o}1231`:`${o}31`.replace(/-/g,""));const i=e.datePublished.replace(/-/g,""),l=e.category,d=null===a||0===a.length||a.some((e=>l.includes(e))),s=e.type.split(","),c=null===r||0===r.length||r.some((e=>s.includes(e)));d&&c&&(null===n&&null!==o&&i<=o||null!==n&&null===o&&i>=n||null!==n&&null!==o&&i>=n&&i<=o||null===n&&null===o)&&t++}})),s){document.querySelectorAll(".filter__count").forEach((e=>{e.setAttribute("hidden","")})),s.textContent=t;let e={};document.querySelectorAll('input[type="hidden"]:not([value=""])').forEach((t=>{e[t.name]=t.value}));const r=document.querySelector('input[type="hidden"][name="c"]').value,a=document.querySelector('input[type="hidden"][name="d1"]').value,
1n=document.querySelector('input[type="hidden"][name="d2"]').value;""!==r||""!==a||""!==n?document.querySelectorAll(".filter__count:has(>.filter__count__num)").forEach((e=>{e.removeAttribute("hidden")})):document.querySelectorAll(".filter__count:not(:has(>.filter__count__num))").forEach((e=>{e.removeAttribute("hidden")}))}})).catch((e=>{console.error("Error fetching JSON:",e)}))},o=()=>{const e=t.querySelectorAll("input:checked"),r=t.querySelectorAll('[data-filter-select-date="from"] .select__item'),n=t.querySelectorAll('[data-filter-select-date="to"] .select__item'),o=""!==r[0]?.value,i=""!==n[0]?.value,l=o||i,d=e.length>0||l;setTimeout((()=>{d?(a.classList.remove("button--disabled"),a.setAttribute("tabindex","0"),a.setAttribute("aria-disabled","false"),"button"===a.tagName.toLowerCase()&&a.removeAttribute("disabled")):(a.classList.add("button--disabled"),a.setAttribute("tabindex","-1"),a.setAttribute("aria-disabled","true"),"button"===a.tagName.toLowerCase()&&a.setAttribute("disabled","true"))}),1)};t.addEventListener("change",(()=>{n(),e&&setTimeout((()=>{o()}),1)})),a.addEventListener("click",(r=>{r.preventDefault(),t.querySelectorAll("input").forEach((e=>{e.checked=!1})),t.querySelectorAll("select").forEach((e=>{e.value=e.querySelector("option[hidden]").value,e.classList.remove("select__item--selected");const t=document.querySelector('input[type="hidden"][name="d1"]'),r=document.querySelector('input[type="hidden"][name="d2"]');t&&(t.value=""),r&&(r.value="")}
1)),n(),e&&setTimeout((()=>{o()}),1)})),e&&setTimeout((()=>{(e=>{const r=new URLSearchParams(window.location.search).get("c"),a=new URLSearchParams(window.location.search).get("d1"),n=new URLSearchParams(window.location.search).get("d2");r&&r.split(",").forEach((e=>{const r=t.querySelector(`input[type="checkbox"][value="${e}"]`);r&&(r.checked=!0)}));if(a){const[e,r]=a.split("-");if(e){const r=t.querySelector('[data-filter-select-date="from"] .select:nth-child(1) > .select__item');r&&(r.value=e,r.classList.add("select__item--selected"))}if(r){const e=t.querySelector('[data-filter-select-date="from"] .select:nth-child(2) > .select__item');e&&(e.value=r,e.classList.add("select__item--selected"))}}if(n){const[e,r]=n.split("-");if(e){const r=t.querySelector('[data-filter-select-date="to"] .select:nth-child(1) > .select__item');r&&(r.value=e,r.classList.add("select__item--selected"))}if(r){const e=t.querySelector('[data-filter-select-date="to"] .select:nth-child(2) > .select__item');e&&(e.value=r,e.classList.add("select__item--selected"))}}})(),setTimeout((()=>{o(),n()}),1)}),1)}));const t=document.querySelector("[data-search-input]"),r=document.querySelector("[data-search-submit]");t&&r&&t.addEventListener("input",(()=>{const e=t.value.trim(),r=document.querySelector('input[type="hidden"][name="q"]');r&&(r.value=e)}))})),window.addEventListener("load",(()=>{const e=document.querySelector('.download[data-filter-select] input[type="radio"][data-download-flow]:checked');if(e){const t=e.closest("[data-filter-select]").getAttribute("data-filter-select");t&&download__flow(t,e)}})),document.addEventListener("change",(e=>{const t=e.target;if(t.matches('.download[data-filter-select] input[type="radio"][data-download-flow]')&&t.checked||t.matches(".download[data-filter-select] select[data-download-flow]")){const e=t.closest("[data-filter-select]").getAttribute("data-filter-select");e&&download__flow(e,t)}})),document.addEventListener("change",(e=>{if(e.target.matches('input[type="radio"]')){const e=document.querySelector("form.download[data-filter-select][data-filter-before][data-download-now]");e&&setTimeout((()=>{const t=e.getAttribute("data-filter-before").split(",");if(t.every((e=>null!==document.querySelector(`input[type="radio"][name="${e}"]:checked`)))){const r=t.map((e=>{const t=document.querySelector(`input[type="radio"][name="${e}"]:checked`);return{name:e,value:t?t.value:null}}));fetch(e.getAttribute("data-filter-select")).then((e=>{if(!e.ok)throw new Error("Network response was not ok "+e.statusText);return e.json()})).then((t=>{const a=t.find((e=>r.every((({name:t,value:r})=>"*"===r||e[t]===r))));if(a){const t=e.getAttribute("data-download-now");if(a[t]){e.setAttribute("action",a[t]);const r=e.querySelector('button[type="submit"]');r&&(r.removeAttribute("disabled"),r.removeAttribute("aria-disabled")),r.addEventListener("click",(t=>{t.preventDefault(),window.location.href=e.getAttribute("action")}))}}})).catch((e=>{console.error("データ取得中にエラーが発生しました: ",e)}))}else{e.removeAttribute("action");const t=e.querySelector('button[type="submit"]');t&&(t.setAttribute("disabled","disabled"),t.setAttribute("aria-disabled","true"))}}),100)}}));let isProcessingChangeEvent=!1;document.addEventListener("change",(e=>{if(isProcessingChangeEvent)return;isProcessingChangeEvent=!0;const t=e.target;if(t.matches("[data-filter-now] + .select > select.select__item")){const e=t.options[t.selectedIndex],r=t.closest(".select").previousElementSibling.getAttribute("data-filter-now");if(r){const t=document.querySelector(`.download__flow-select input[type="radio"][name="${r}"][value="${e.value}"]`);t&&(t.checked=!0,t.dispatchEvent(new Event("change",{bubbles:!0})))}}isProcessingChangeEvent=!1})),document.addEventListener("change",(e=>{if(isProcessingChangeEvent)return;isProcessingChangeEvent=!0;const t=e.target;if(t.matches('.download__flow-select input[type="radio"]')){const e=t.closest(".download__flow-select").nextElementSibling?.querySelector("select.select__item");if(e){const r=Array.from(e.options).find((e=>e.value===t.value));r&&(e.value=r.value,e.dispatchEvent(new Event("change",{bubbles:!0})))}}isProcessingChangeEvent=!1})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll("[data-filter-select]").forEach((e=>{const t=e.querySelector("[data-filter-select-submit]"),r=e.querySelector("[data-filter-select-cancel]");if(!e||!t||!r)return;const a=()=>{const t=e.querySelectorAll("input:checked"),r=Array.from(t).map((e=>e.parentElement.textContent.trim())),a=e.querySelectorAll('[data-filter-select-date="from"] .select__item'),n=e.querySelectorAll('[data-filter-select-date="to"] .select__item'),o=e=>{const t=e[0]?.value||"",r=e[1]?.value||"";return t&&r?`${t}-${r}`:t?`${t}`:""},i=o(a),l=o(n),d=new URLSearchParams;r.length>0&&d.set("c",r.join(",")),i&&d.set("d1",i),l&&d.set("d2",l)},n=()=>{const t=e.querySelectorAll("input:checked"),a=e.querySelectorAll('[data-filter-select-date="from"] .select__item'),n=e.querySelectorAll('[data-filter-select-date="to"] .select__item'),o=""!==a[0]?.value,i=""!==n[0]?.value,l=o||i;t.length>0||l||r.classList.add("button--disabled")};e.addEventListener("change",(()=>{a(),n()})),r.addEventListener("click",(t=>{t.preventDefault(),e.querySelectorAll("input").forEach((e=>{e.checked=!1}
1)),e.querySelectorAll("select").forEach((e=>{e.value=e.querySelector("option[hidden]").value,e.classList.remove("select__item--selected")})),a(),n()})),a(),n()}))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".mf-search");if(e){const r=new URL(window.location.href);function t(){e.querySelectorAll(".mf-search-results_body_result_image").forEach((e=>{e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true")}));e.querySelectorAll(".mf-search-results_spellcheck, .mf-search-results_header, .mf-pagination").forEach((e=>{e.setAttribute("tabindex","-1")}))}r.href=r.href.replace("&pm=10","&pm=15"),window.history.replaceState({},"",r),e.addEventListener("click",(e=>{t()})),e.addEventListener("keydown",(e=>{t()}))}})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".top__kv-video *:has(>video:not([controls]))").forEach((e=>{const t=e.querySelector("video:not([controls])");if(!t)return;const r=document.createElement("button");r.className="top__kv-video-control",r.classList.add("top__kv-video-control--pause"),r.addEventListener("click",(()=>{t.paused?(t.play(),r.classList.add("top__kv-video-control--pause"),r.classList.remove("top__kv-video-control--play")):(t.pause(),r.classList.add("top__kv-video-control--play"),r.classList.remove("top__kv-video-control--pause"))})),e.appendChild(r)}))})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".cvc__more[data-target]").forEach((e=>{const t=e.getAttribute("aria-label"),r=e.getAttribute("data-hidden-label");e.addEventListener("click",(()=>{const a=e.getAttribute("data-target");document.querySelectorAll(a).forEach((a=>{"true"!==e.getAttribute("aria-hidden")?(a.querySelectorAll("[hidden]").forEach((e=>{e.removeAttribute("hidden"),e.setAttribute("aria-hidden","false")})),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-label",r)):(a.querySelectorAll("[aria-hidden]").forEach((e=>{e.removeAttribute("aria-hidden"),e.setAttribute("hidden","")})),e.setAttribute("aria-hidden","false"),e.setAttribute("aria-label",t))}))}))}))})),$(".company-carousel").slick({dots:!0,arrows:!0,infinite:!0,autoplay:!0,autoplaySpeed:5e3,speed:2e3,fade:!0}),$(".slick-dots").after('<button class="slick-control slick-control--play"></button'),$(".slick-control").on("click",(function(){const e=$(this),t=$(".company-carousel");e.hasClass("slick-control--play")?(t.slick("slickPause"),e.removeClass("slick-control--play"),e.addClass("slick-control--pause")):(t.slick("slickPlay"),e.removeClass("slick-control--pause"),e.addClass("slick-control--play"))})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll("[data-recruit-voice-more]").forEach((e=>{e.addEventListener("click",(()=>{document.querySelectorAll(".recruit-voice__item[hidden]").forEach((e=>{e.removeAttribute("hidden")})),e.remove()}))}))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll("[data-sticky]"),t=()=>{e.forEach((e=>{let t=document.querySelector("[data-sticky-margin]");t&&t.remove();let r=document.querySelector("[data-sticky-position]");r&&r.remove()})),setTimeout((()=>{e.forEach((e=>{let t=e.offsetHeight,r=e.nextElementSibling;r&&r.hasAttribute("data-sticky-margin")||(r=document.createElement("div"),r.setAttribute("data-sticky-margin",""),e.parentNode.insertBefore(r,e.nextSibling)),r.style.setProperty("--sticky-h",`${t}px`);let a=e.previousElementSibling;a&&a.hasAttribute("data-sticky-position")||(a=document.createElement("div"),a.setAttribute("data-sticky-position",""),e.parentNode.insertBefore(a,e));let n=e.offsetTop;if(e.parentNode.classList.contains("accordion__body")){const t=e.parentNode.closest(".accordion");t&&(n-=t.offsetHeight)}a.setAttribute("data-sticky-position",`${n}`);const o=()=>{(window.scrollY||window.pageYOffset)>parseInt(a.getAttribute("data-sticky-position"),10)-((parseInt(getComputedStyle(document.documentElement).getPropertyValue("--header-h--global"),10)||0)+(parseInt(getComputedStyle(document.documentElement).getPropertyValue("--header-h--local"),10)||0))?e.setAttribute("data-sticky","true"):e.setAttribute("data-sticky","fal
1se")};o(),window.addEventListener("scroll",o)}))}),1)};setTimeout((()=>{t()}),1);let r=window.matchMedia("(max-width: 768.999px)").matches;window.addEventListener("resize",(()=>{const e=window.matchMedia("(max-width: 768.999px)").matches;e!==r&&(r=e,t())}))})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll("[data-trigger]").forEach((e=>{e.addEventListener("click",(()=>{const t=e.getAttribute("data-trigger"),r=document.querySelector(t);r&&r.click()}))}))}));const observeDOM=(e,t)=>{new MutationObserver((r=>{r.forEach((r=>{"childList"!==r.type&&"subtree"!==r.type||document.querySelector(e)&&t()}))})).observe(document.body,{childList:!0,subtree:!0})};observeDOM('.mf_finder_header a[target="_blank"]',(()=>{document.querySelectorAll('.mf_finder_header a[target="_blank"]').forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault(),window.location.href=e.href}))}))})),observeDOM(".mf_finder_header",(()=>{const e=document.querySelector(".mf_finder_header");e&&e.addEventListener("focusout",(e=>{if(e.target.classList.contains("mf-search-bar_input")){const e=document.querySelector(".mf-search-bar_realtime-results");e&&(e.hidden=!0)}}))}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.