(function (d, w, $) { 'use strict'; var _ua = window.navigator.userAgent.toLowerCase(); let _ms = false; // --------------------------------------------- // IE11の場合bodyにクラスを付与 // --------------------------------------------- if (_ua.indexOf('trident') > -1) { document.body.classList.add('ie11'); _ms = true; } else if (_ua.indexOf('edge') > -1) { _ms = true; } // --------------------------------------------- // viewportの切り替え // --------------------------------------------- $('#viewport').remove(); if ((_ua.indexOf('iphone') > 0) || _ua.indexOf('ipod') > 0 || (_ua.indexOf('android') > 0 && _ua.indexOf('mobile') > 0)) { // console.log( 'mobile' ); if (w.innerWidth < 768) { $('head').prepend(''); } else { $('head').prepend(''); } } else { $('head').prepend(''); } var _hash = location.hash; $(function () { // --------------------------------------------- // matchHeight // --------------------------------------------- $('.mh').matchHeight(); // --------------------------------------------- // Magnificpopup // --------------------------------------------- $('.mfp-image').magnificPopup({ type: 'image' }); $('.mfp-inline').magnificPopup({ type: 'inline' }); // --------------------------------------------- //responsive Imagemap link // --------------------------------------------- $('img[usemap]').rwdImageMaps(); //move2hash var _m2h = new move2hash(); _m2h.init(); $(w).on('load', function () { _m2h.start(); }); // --------------------------------------------- // ページ内ナビのレスポンシブ対応 // --------------------------------------------- $('.pageanchor').each(function (i, elm) { var _select = $('
'); $(this).find('.nav-item').each(function (i, elm) { let _anchor = $(this).find('.nav-link').data('anchor'); let _type = "scroll"; if (!_anchor) { _anchor = $(this).find('.nav-link').attr('href'); _type = "link"; if ($(this).find('.nav-link').attr('target') === "_blank") { _type = "blank"; } } var _option = $('