// source --> https://j-eps.net/wp-content/uploads/hm_custom_css_js/custom.js?ver=1779881539 
(function(){try{var path=window.location.pathname||'';var params=new URLSearchParams(window.location.search||'');var isZhPage=path.indexOf('/zh-hant')===0||path.indexOf('/zh-TW')===0||path.indexOf('/introduce/zh-hant-')===0;if(!isZhPage&&params.get('jeps_lang')==='zh-hant'){params.delete('jeps_lang');var query=params.toString();window.location.replace(path+(query?'?'+query:'')+window.location.hash);return}
if(!isZhPage)return;document.documentElement.lang='zh-Hant';var exact=[['\u30db\u30fc\u30e0','\u9996\u9801'],['\u7d39\u4ecb\u30da\u30fc\u30b8','\u4ecb\u7d39\u9801\u9762'],['\u7d39\u4ecb\u30da\u30fc\u30b8\u4e00\u89a7','\u4ecb\u7d39\u9801\u9762\u5217\u8868'],['\u30d5\u30a3\u30fc\u30c9','\u8a02\u95b1'],['\u30b3\u30e1\u30f3\u30c8\u30d5\u30a3\u30fc\u30c9','\u7559\u8a00\u8a02\u95b1'],['\u65bd\u8a2d\u63b2\u8f09\u3092\u3054\u5e0c\u671b\u306e\u65b9\u3078','\u5e0c\u671b\u520a\u767b\u8a2d\u65bd\u8cc7\u8a0a'],['\u5468\u908a\u89c0\u5149\u30da\u30fc\u30b8\u3092\u898b\u308b','\u67e5\u770b\u5468\u908a\u89c0\u5149'],['\u5468\u908a\u30b9\u30dd\u30c3\u30c8','\u5468\u908a\u666f\u9ede'],['\u3053\u306e\u65bd\u8a2d\u304b\u3089\u884c\u304d\u3084\u3059\u3044\u5468\u908a\u30b9\u30dd\u30c3\u30c8','\u5f9e\u9019\u500b\u8a2d\u65bd\u5bb9\u6613\u524d\u5f80\u7684\u5468\u908a\u666f\u9ede'],['\u4f11\u9592\u30fb\u89b3\u5149','\u4f11\u9592\u30fb\u89c0\u5149'],['\u89b3\u5149','\u89c0\u5149'],['\u30da\u30fc\u30b8\u3092\u898b\u308b','\u67e5\u770b\u9801\u9762'],['\u8a73\u7d30\u30da\u30fc\u30b8\u3092\u898b\u308b','\u67e5\u770b\u8a73\u7d30\u9801\u9762'],['\u9928\u5185\u30a4\u30e1\u30fc\u30b8','\u9928\u5167\u7167\u7247'],['\u9928\u5185\u65bd\u8a2d','\u9928\u5167\u8a2d\u65bd'],['\u5916\u89c0\u30fb\u9928\u5185\u65bd\u8a2d','\u5916\u89c0\u30fb\u9928\u5167\u8a2d\u65bd'],['\u304a\u98a8\u5442','\u6d74\u6c60'],['\u3054\u5915\u98df','\u665a\u9910'],['\u3054\u671d\u98df','\u65e9\u9910'],['\u671d\u30fb\u5915\u9644\u65e9\u665a\u9910\u65b9\u6848','\u9644\u65e9\u665a\u9910\u65b9\u6848'],['\u4e0d\u542b\u9910\u4f4f\u5bbf\u65b9\u6848','\u7d14\u4f4f\u5bbf\u65b9\u6848'],['\u81ea\u7531\u6c17\u307e\u307e\u306b\u5c4b\u4e45\u5cf6\u89b3\u5149\uff01\uff01','\u81ea\u7531\u5b89\u6392\u5c4b\u4e45\u5cf6\u89c0\u5149'],['\u5c4b\u4e45\u5cf6\u306e\u65ec\u306a\u98df\u6750\u3092\u4f7f\u3063\u305f\u81ea\u6162\u306e\u6599\u7406\u3067\u304a\u3082\u3066\u306a\u3057','\u4ee5\u5c4b\u4e45\u5cf6\u6642\u4ee4\u98df\u6750\u88fd\u4f5c\u6599\u7406\u6b3e\u5f85\u65c5\u5ba2'],['\u30e9\u30f3\u30c9\u30ea\u30fc','\u6d17\u8863\u5340'],['\u7e04\u6587\u6749','\u7e69\u6587\u6749'],['\u30a6\u30a3\u30eb\u30bd\u30f3\u682a','\u5a01\u723e\u905c\u6a39\u6a01'],['Pension\u3068\u3082','Pension Tomo'],['\u30da\u30f3\u30b7\u30e7\u30f3\u3068\u3082','Pension Tomo'],['\u8fb2\u5712\u6c11\u5bbf\u304b\u304b\u3057','Farm Inn Kakashi'],['\u304b\u304b\u3057','Kakashi'],['\u91ce\u83dc\uff0f\u63a1\u679c\u9ad4\u9a57\u308a','\u852c\u83dc\uff0f\u63a1\u679c\u9ad4\u9a57'],['\u30dc\u30fc\u30c9\u30b2\u30fc\u30e0','\u684c\u904a'],['\u30d6\u30ca\u306e\u68ee','\u5c71\u6bdb\u6af8\u68ee\u6797'],['\u30ab\u30bf\u30ab\u30ca','\u7247\u5047\u540d'],['\u30db\u30c6\u30eb','\u98ef\u5e97'],['\u65c5\u9928','\u65c5\u9928'],['\u6c11\u5bbf','\u6c11\u5bbf'],['\u30da\u30f3\u30b7\u30e7\u30f3','Pension'],['\u30b3\u30c6\u30fc\u30b8','\u5c0f\u6728\u5c4b'],['\u30ed\u30b0\u30cf\u30a6\u30b9','\u6728\u5c4b'],['\u30ad\u30e3\u30f3\u30d7','\u9732\u71df'],['\u30b0\u30e9\u30f3\u30d4\u30f3\u30b0','\u8c6a\u83ef\u9732\u71df'],['\u30b5\u30a6\u30ca','\u6851\u62ff'],['\u30d0\u30fc\u30d9\u30ad\u30e5\u30fc','BBQ'],['\u30b9\u30ad\u30fc','\u6ed1\u96ea'],['\u30b9\u30ce\u30fc\u30dc\u30fc\u30c9','\u55ae\u677f\u6ed1\u96ea'],['\u30c0\u30a4\u30d3\u30f3\u30b0','\u6f5b\u6c34'],['\u30b7\u30e5\u30ce\u30fc\u30b1\u30ea\u30f3\u30b0','\u6d6e\u6f5b'],['\u30a4\u30eb\u30ab','\u6d77\u8c5a'],['\u30ec\u30f3\u30bf\u30eb','\u79df\u501f'],['\u30c1\u30a7\u30c3\u30af\u30a4\u30f3','\u5165\u4f4f'],['\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8','\u9000\u623f'],['\u99d0\u8eca\u5834','\u505c\u8eca\u5834'],['\u30a2\u30af\u30bb\u30b9','\u4ea4\u901a'],['\u304a\u554f\u3044\u5408\u308f\u305b','\u6d3d\u8a62'],['\u3054\u5e0c\u671b\u306e\u65b9','\u6709\u9700\u8981\u7684\u65c5\u5ba2'],['\u304a\u5ba2\u69d8','\u65c5\u5ba2'],['\u30d5\u30ed\u30f3\u30c8','\u6ac3\u53f0'],['\u30ed\u30d3\u30fc','\u5927\u5ef3'],['\u30ec\u30b9\u30c8\u30e9\u30f3','\u9910\u5ef3'],['\u30ab\u30d5\u30a7','\u5496\u5561\u5ef3'],['\u58f2\u5e97','\u5546\u5e97'],['\u5ba2\u5ba4','\u5ba2\u623f'],['\u548c\u5ba4','\u548c\u5ba4'],['\u6d0b\u5ba4','\u897f\u5f0f\u5ba2\u623f'],['\u9732\u5929\u98a8\u5442','\u9732\u5929\u6d74\u6c60'],['\u6e29\u6cc9','\u6eab\u6cc9'],['\u5927\u6d74\u5834','\u5927\u6d74\u5834'],['\u671d\u98df','\u65e9\u9910'],['\u5915\u98df','\u665a\u9910'],['\u6599\u7406','\u6599\u7406'],['\u30d7\u30e9\u30f3','\u65b9\u6848'],['\u30b3\u30fc\u30b9','\u8ab2\u7a0b'],['\u30a4\u30e1\u30fc\u30b8','\u793a\u610f'],['\u5199\u771f','\u7167\u7247']];var mojibakeRe=/\u7e3a|\u8b41|\u8b5b|\u873f|\u87b3|\u9b1f|\u8c6c|\u7e5d|\u83a0|\u8389|\u83f4|\u8373|\u879f|\u9027|\u87fe|\u9a65|\u8b4c|\u8711|\u86f9|\u9aef|\u8375|\u9015|\u8b0c|\u96dc|\u9068|\u9695|\u90e2|\u9b2e/;var kanaRe=/[\u3041-\u3096\u30a1-\u30fa\u30fc]/;var questionRe=/\?{3,}/;var kanjiJaHintRe=/[\u3041-\u3093\u30a1-\u30f6]|\u89b3\u5149|\u98a8\u5442|\u5199\u771f|\u30da\u30fc\u30b8|\u65bd\u8a2d|\u5bbf\u6cca|\u5ba2\u5ba4|\u6599\u7406|\u671d\u98df|\u5915\u98df|\u99d0\u8eca\u5834|\u304a\u554f\u3044\u5408\u308f\u305b|\u3054\u5e0c\u671b|\u304a\u5ba2\u69d8|\u9928\u5185|\u5468\u8fba|\u7d39\u4ecb/;function replaceExact(value){exact.forEach(function(pair){value=value.split(pair[0]).join(pair[1])});value=value.replace(/\u4ea4\u901a\u65b9\u5f0f(?:\u65b9\u5f0f)+/g,'\u4ea4\u901a').replace(/(?:\u65b9\u5f0f){2,}/g,'\u65b9\u5f0f').replace(/\s*\/\s*\u65e5\u672c\u306e\u30db\u30c6\u30eb\u30fb\u5bbf\u6cca\u65bd\u8a2d\u5199\u771f/g,'\u4f4f\u5bbf\u8a2d\u65bd\u7167\u7247').replace(/\u9e7f\u5150\u5cf6/g,'\u9e7f\u5152\u5cf6').replace(/\u5ca9\u56fd/g,'\u5ca9\u570b').replace(/\u89b3\u5c71/g,'\u89c0\u5c71').replace(/\u56fd\u969b/g,'\u570b\u969b').replace(/\u702c\u6ce2/g,'\u7028\u6ce2').replace(/\u9ed2\u5ddd/g,'\u9ed1\u5ddd').replace(/\u8535\u738b/g,'\u85cf\u738b');return value}
function fallback(value){var compact=value.replace(/\s+/g,'');if(compact.length<18)return value;if(!kanaRe.test(value)&&!mojibakeRe.test(value))return value;if(value.indexOf(' / ')!==-1&&compact.length<45)return replaceExact(value);if(/\u6d74|\u6e6f|\u6eab\u6cc9|\u6e29\u6cc9|\u98a8\u5442|\u9732\u5929|\u5927\u6d74\u5834|\u30b5\u30a6\u30ca|\u5ca9\u76e4\u6d74|\u6cf3\u6c60|\u6c34/.test(value)){return '\u53ef\u5728\u6eab\u6cc9\u3001\u6d74\u6c60\u6216\u9928\u5167\u653e\u9b06\u7a7a\u9593\u4e2d\u4f11\u606f\uff0c\u9069\u5408\u65c5\u884c\u9014\u4e2d\u8212\u7de9\u8eab\u5fc3\u3002'}
if(/\u6599\u7406|\u98df|\u671d\u98df|\u5915\u98df|\u665a\u9910|\u65e9\u9910|\u9910|\u81b3|\u4f1a\u5e2d|\u6703\u5e2d|\u725b|\u87f9|\u9b5a|\u523a\u8eab|\u934b|\u5496\u5561|\u9152|\u30d3\u30fc\u30eb|BBQ|\u30d0\u30fc\u30d9\u30ad\u30e5\u30fc/.test(value)){return '\u53ef\u54c1\u5473\u4ee5\u7576\u5730\u98df\u6750\u8207\u5b63\u7bc0\u98a8\u5473\u70ba\u4e3b\u7684\u9910\u9ede\uff0c\u4eab\u53d7\u65e5\u672c\u65c5\u9014\u4e2d\u7684\u7f8e\u5473\u3002'}
if(/\u5ba2\u5ba4|\u5ba2\u623f|\u90e8\u5c4b|\u548c\u5ba4|\u6d0b\u5ba4|\u30d9\u30c3\u30c9|\u5e8a|\u5bbf\u6cca|\u30d7\u30e9\u30f3|\u65b9\u6848|\u30c1\u30a7\u30c3\u30af\u30a4\u30f3|\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8/.test(value)){return '\u63d0\u4f9b\u9069\u5408\u89c0\u5149\u8207\u4f4f\u5bbf\u7684\u5ba2\u623f\u8207\u65b9\u6848\uff0c\u53ef\u4f9d\u65c5\u7a0b\u76ee\u7684\u9078\u64c7\u5408\u9069\u7684\u505c\u7559\u65b9\u5f0f\u3002'}
if(/\u89b3\u5149|\u666f\u9ede|\u516c\u5712|\u5c71|\u6d77|\u5cf6|\u68ee\u6797|\u7267\u5834|\u5bfa|\u795e\u793e|\u4f53\u9a13|\u9ad4\u9a57|\u30b9\u30ad\u30fc|\u30c0\u30a4\u30d3\u30f3\u30b0|SUP|\u30ab\u30cc\u30fc|\u30a4\u30eb\u30ab|\u6563\u7b56/.test(value)){return '\u53ef\u4f9d\u5b63\u7bc0\u8207\u65c5\u7a0b\u5b89\u6392\u5468\u908a\u89c0\u5149\u6216\u9ad4\u9a57\u6d3b\u52d5\uff0c\u9069\u5408\u60f3\u6df1\u5165\u611f\u53d7\u65e5\u672c\u5730\u65b9\u9b45\u529b\u7684\u65c5\u5ba2\u3002'}
if(/\u9928\u5185|\u65bd\u8a2d|\u30ed\u30d3\u30fc|\u30d5\u30ed\u30f3\u30c8|\u58f2\u5e97|\u30e9\u30f3\u30c9\u30ea\u30fc|\u30ec\u30f3\u30bf\u30eb|\u99d0\u8eca\u5834|\u8a2d\u5099|Wi-Fi/.test(value)){return '\u9928\u5167\u5099\u6709\u65c5\u9014\u4e2d\u65b9\u4fbf\u4f7f\u7528\u7684\u8a2d\u65bd\u8207\u670d\u52d9\uff0c\u5165\u4f4f\u6216\u505c\u7559\u6642\u53ef\u5b89\u5fc3\u5229\u7528\u3002'}
return '\u9019\u88e1\u4ecb\u7d39\u8a2d\u65bd\u7279\u8272\u3001\u9ad4\u9a57\u5167\u5bb9\u8207\u65c5\u884c\u6642\u53ef\u53c3\u8003\u7684\u91cd\u9ede\u3002'}
function cleanText(value){var next=replaceExact(value);next=fallback(next);next=next.replace(/\u9054\u9054\u9054\u9054|\u9054\u9054\u9054|\u9054\u9054|\u963f\u9054/g,'').replace(/\?{3,}/g,'\u63d0\u4f9b\u4ee5\u7576\u5730\u852c\u83dc\u8207\u81ea\u7136\u74b0\u5883\u70ba\u7279\u8272\u7684\u4f4f\u5bbf\u9ad4\u9a57\u3002').replace(/\s{2,}/g,' ');return next}
function textOf(selector){var el=document.querySelector(selector);return el?(el.textContent||'').replace(/\s+/g,' ').trim():''}
function buildFacilityDisplay(){if(window.__jepsZhFacilityDisplay)return window.__jepsZhFacilityDisplay;var main=textOf('.h2_ttl');var info=textOf('.intro_info .shop_name');var decodedPath=path;try{decodedPath=decodeURIComponent(path)}catch(e){}
var facilityDisplayByPath={'/zh-hant-\u8fb2\u5712\u6c11\u5bbf\u304b\u304b\u3057/':'Farm Inn Kakashi / \u8fb2\u5712\u6c11\u5bbf\u304b\u304b\u3057','/zh-hant-hiraisokan/':'Hiraisokan / \u5e73\u78ef\u9928','/zh-hant-rikyu/':'Matsushima Rikyu / \u5bae\u57ce\u7e23\u677e\u5cf6\u96e2\u5bae'};var known='';Object.keys(facilityDisplayByPath).some(function(slug){if(path.indexOf(slug)!==-1||decodedPath.indexOf(slug)!==-1){known=facilityDisplayByPath[slug];return !0}
return !1});if(known){window.__jepsZhFacilityDisplay=known;return window.__jepsZhFacilityDisplay}
if(main&&info&&main!==info&&main.indexOf("'+")===-1&&info.indexOf("'+")===-1){window.__jepsZhFacilityDisplay=main+' / '+info}else{window.__jepsZhFacilityDisplay=main||info||''}
return window.__jepsZhFacilityDisplay}
function forceBilingualFacilityName(){var display=buildFacilityDisplay();if(!display)return;document.querySelectorAll('.h2_ttl, .intro_info .shop_name').forEach(function(el){el.textContent=display});var title=document.title||'';var firstPipe=title.indexOf('|');if(firstPipe>-1&&title.indexOf(display)===-1){document.title=display+' '+title.slice(firstPipe)}}
function cleanAttributes(root){var nodes=(root||document).querySelectorAll('[title],[alt],[aria-label]');nodes.forEach(function(el){['title','alt','aria-label'].forEach(function(name){if(!el.hasAttribute(name))return;var value=el.getAttribute(name);if(kanjiJaHintRe.test(value)||kanaRe.test(value)||mojibakeRe.test(value)||questionRe.test(value)){el.setAttribute(name,cleanText(value))}})})}
function cleanDuplicateSectionHeadings(){document.querySelectorAll('.ttlArea').forEach(function(area){var richTitle=area.querySelector('.jeps-zh-section-title');var heading=area.querySelector('h2');if(!richTitle||!heading)return;var strong=richTitle.querySelector('strong');var richText=(strong?strong.textContent:richTitle.textContent||'').replace(/\s+/g,'').trim();var headingText=(heading.textContent||'').replace(/\s+/g,'').trim();if(richText&&headingText&&richText===headingText){heading.style.display='none';heading.setAttribute('aria-hidden','true')}})}
function cleanBody(){if(!document.body)return;forceBilingualFacilityName();cleanDuplicateSectionHeadings();var walker=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,{acceptNode:function(node){if(!node.nodeValue||!node.nodeValue.trim())return NodeFilter.FILTER_REJECT;var parent=node.parentElement;if(!parent||/^(SCRIPT|STYLE|TEXTAREA|INPUT|SELECT|OPTION|CODE|PRE)$/i.test(parent.tagName)){return NodeFilter.FILTER_REJECT}
return NodeFilter.FILTER_ACCEPT}});var nodes=[];while(walker.nextNode())nodes.push(walker.currentNode);nodes.forEach(function(node){var value=node.nodeValue;if(kanjiJaHintRe.test(value)||kanaRe.test(value)||mojibakeRe.test(value)||questionRe.test(value)){node.nodeValue=cleanText(value)}});cleanAttributes(document);forceBilingualFacilityName();cleanDuplicateSectionHeadings()}
if(document.readyState!=='loading')cleanBody();else document.addEventListener('DOMContentLoaded',cleanBody);[250,900,1800,3500,6500,10000,15000].forEach(function(delay){setTimeout(cleanBody,delay)});if(window.MutationObserver){var timer=0;new MutationObserver(function(){clearTimeout(timer);timer=setTimeout(cleanBody,120)}).observe(document.documentElement,{childList:!0,subtree:!0,characterData:!0})}}catch(e){}})();(function(){try{var seen=0;function isPriorityImage(img){return img.closest&&img.closest('#header_slider, .swiper-wrapper, .swiper-slide, #header, .logo')}
function tuneImage(img){if(!img||img.tagName!=='IMG')return;seen++;if(!img.hasAttribute('decoding'))img.setAttribute('decoding','async');if(seen>5&&!isPriorityImage(img)&&!img.hasAttribute('loading'))img.setAttribute('loading','lazy');if(seen>5&&!isPriorityImage(img)&&img.getAttribute('fetchpriority')==='high')img.setAttribute('fetchpriority','low')}
function tuneImages(root){var imgs=(root||document).querySelectorAll?(root||document).querySelectorAll('img'):[];for(var i=0;i<imgs.length;i++){var img=imgs[i];if(!img.hasAttribute('decoding'))img.setAttribute('decoding','async');tuneImage(img)}}
if(window.MutationObserver){new MutationObserver(function(muts){muts.forEach(function(mut){mut.addedNodes&&mut.addedNodes.forEach(function(node){if(node.tagName==='IMG')tuneImage(node);else tuneImages(node)})})}).observe(document.documentElement,{childList:!0,subtree:!0})}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',tuneImages);else tuneImages();window.addEventListener('load',tuneImages)}catch(e){}})();(function(){try{var styleId='jeps-top-instagram-feed-fix';var css=['.instagram-guide #sb_instagram{width:100%!important;max-width:1200px!important;margin:0 auto!important;}','.instagram-guide #sb_instagram .sb_instagram_header{display:none!important;}','.instagram-guide #sb_instagram #sbi_images{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;width:100%!important;}','.instagram-guide #sb_instagram .sbi_item{float:none!important;display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box!important;}','.instagram-guide #sb_instagram .sbi_photo_wrap{display:block!important;width:100%!important;}','.instagram-guide #sb_instagram .sbi_photo{position:relative!important;display:block!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;overflow:hidden!important;background-size:cover!important;background-position:center!important;}','.instagram-guide #sb_instagram .sbi_photo img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;}','.instagram-guide #sb_instagram .sbi_photo svg{position:absolute!important;top:10px!important;right:10px!important;width:18px!important;height:18px!important;z-index:2!important;color:#fff!important;}','.instagram-guide #sb_instagram .sbi-screenreader{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;}','.instagram-guide #sb_instagram #sbi_load{display:flex!important;justify-content:center!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important;margin:18px 0 0!important;min-height:0!important;}','.instagram-guide #sb_instagram .sbi_load_btn,.instagram-guide #sb_instagram .sbi_follow_btn a{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-height:42px!important;height:auto!important;padding:10px 18px!important;border-radius:999px!important;text-decoration:none!important;line-height:1.2!important;}','.instagram-guide #sb_instagram .sbi_follow_btn svg{position:static!important;width:16px!important;height:16px!important;margin-right:8px!important;}','@media(max-width:900px){.instagram-guide #sb_instagram #sbi_images{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}}'].join('');function apply(){if(!document.querySelector('.instagram-guide #sb_instagram'))return;var style=document.getElementById(styleId);if(!style){style=document.createElement('style');style.id=styleId;document.head.appendChild(style)}
if(style.textContent!==css)style.textContent=css}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',apply);else apply();window.addEventListener('load',apply)}catch(e){}})();(function(){try{var styleId='jeps-facility-listing-gallery-sample-style';var galleryClass='jeps-partner-price-final__gallery';var images=[{src:'https://j-eps.net/wp-content/uploads/2026/05/zh-page-crop-kinosaki-pickup-20260519.jpg',label:'\u7cbe\u9078\u65b9\u6848',alt:'Actual Traditional Chinese facility page plan section screenshot'},{src:'https://j-eps.net/wp-content/uploads/2026/05/zh-page-crop-kinosaki-location-20260519.jpg',label:'\u5730\u9ede',alt:'Actual Traditional Chinese facility page location section screenshot'}];function addStyle(){var css=['body.page-id-27526 .jeps-partner-hero h1{font-size:clamp(30px,3.4vw,46px)!important;line-height:1.18!important;max-width:860px!important;}','body.page-id-27526 .jeps-partner-price-final__body{grid-template-columns:.85fr 1.15fr!important;}','body.page-id-27526 .jeps-partner-price-final__visual{min-height:390px!important;padding:26px!important;background:linear-gradient(135deg,#eef7ff,#f8fbff)!important;display:grid!important;align-content:center!important;gap:16px!important;}','body.page-id-27526 .'+galleryClass+'{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;margin:0!important;padding:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}','body.page-id-27526 .'+galleryClass+' figure{position:relative!important;overflow:hidden!important;margin:0!important;border-radius:16px!important;background:#dfeaf2!important;box-shadow:0 14px 34px rgba(15,35,52,.16)!important;}','body.page-id-27526 .'+galleryClass+' img{display:block!important;width:100%!important;height:auto!important;max-height:360px!important;object-fit:contain!important;object-position:top center!important;background:#fff!important;}','body.page-id-27526 .'+galleryClass+' figcaption{position:absolute!important;left:10px!important;bottom:10px!important;padding:5px 9px!important;border-radius:999px!important;background:rgba(16,34,53,.82)!important;color:#fff!important;font-size:11px!important;font-weight:900!important;line-height:1.2!important;}','body.page-id-27526 .jeps-partner-price-final__visual>div:not(.'+galleryClass+'){margin:0!important;}','@media(max-width:900px){body.page-id-27526 .jeps-partner-price-final__body{grid-template-columns:1fr!important;}body.page-id-27526 .jeps-partner-hero h1{font-size:clamp(28px,8vw,38px)!important;}body.page-id-27526 .'+galleryClass+' img{max-height:none!important;}}'].join('');var style=document.getElementById(styleId);if(!style){style=document.createElement('style');style.id=styleId;document.head.appendChild(style)}
if(style.textContent!==css)style.textContent=css}
function addGallery(){var visual=document.querySelector('body.page-id-27526 .jeps-partner-price-final__visual');if(!visual||visual.querySelector('.'+galleryClass))return;var copy=visual.querySelector('div');var gallery=document.createElement('div');gallery.className=galleryClass;gallery.setAttribute('aria-label','Traditional Chinese page photo gallery sample');images.forEach(function(item){var fig=document.createElement('figure');var img=document.createElement('img');img.loading='lazy';img.decoding='async';img.width=1200;img.height=515;img.src=item.src;img.alt=item.alt;var cap=document.createElement('figcaption');cap.textContent=item.label;fig.appendChild(img);fig.appendChild(cap);gallery.appendChild(fig)});visual.insertBefore(gallery,copy||null)}
function run(){addStyle();addGallery()}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',run);else run();window.addEventListener('load',run)}catch(e){}})();(function(){try{var missing='jeps-facility-listing-premium-hero.png';var styleId='jeps-facility-listing-broken-image-fix-style';function addStyle(){var css=['body.page-id-27526 .jeps-partner-diag-card{display:grid!important;align-content:center!important;height:154px!important;padding:16px!important;background:linear-gradient(135deg,#f7fbff,#e8f4ff)!important;border-bottom:1px solid #e2edf4!important;}','body.page-id-27526 .jeps-partner-diag-card b{display:block!important;margin:0 0 10px!important;color:#102235!important;font-size:18px!important;line-height:1.2!important;}','body.page-id-27526 .jeps-partner-diag-card span{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:6px 0!important;color:#536475!important;font-size:12px!important;font-weight:900!important;}','body.page-id-27526 .jeps-partner-diag-card i{display:block!important;width:54%!important;height:7px!important;border-radius:999px!important;background:#cfe4f6!important;overflow:hidden!important;}','body.page-id-27526 .jeps-partner-diag-card i:before{content:""!important;display:block!important;height:100%!important;width:76%!important;background:#2f8fd3!important;border-radius:999px!important;}','body.page-id-27526 .jeps-partner-page-mock__hero{background-image:linear-gradient(180deg,rgba(4,19,31,.05),rgba(4,19,31,.36)),url("https://j-eps.net/wp-content/uploads/2026/05/zh-page-crop-kinosaki-location-20260519.jpg")!important;background-position:center top!important;background-size:cover!important;}','body.page-id-27526 .jeps-partner-price-v3 .jeps-partner-visual img[src*="'+missing+'"]{content:url("https://j-eps.net/wp-content/uploads/2026/05/zh-page-crop-kinosaki-pickup-20260519.jpg")!important;object-position:top center!important;}','@media(max-width:760px){body.page-id-27526 .jeps-partner-diag-card{height:140px!important;}}'].join('');var style=document.getElementById(styleId);if(!style){style=document.createElement('style');style.id=styleId;document.head.appendChild(style)}
if(style.textContent!==css)style.textContent=css}
function replaceHeroDiagnostic(){var img=document.querySelector('body.page-id-27526 .jeps-partner-hero__visuals img[src*="'+missing+'"]');if(!img)return;var figure=img.closest('figure');if(!figure||figure.querySelector('.jeps-partner-diag-card'))return;var card=document.createElement('div');card.className='jeps-partner-diag-card';card.setAttribute('aria-label','SEO and GEO diagnostic sample');card.innerHTML='<b>SEO / GEO Diagnostic</b><span>Search visibility<i></i></span><span>AI citation readiness<i></i></span><span>Inbound page quality<i></i></span>';img.replaceWith(card)}
function replaceOtherMissingImages(){document.querySelectorAll('body.page-id-27526 img[src*="'+missing+'"]').forEach(function(img){if(img.closest('.jeps-partner-hero__visuals'))return;img.src='https://j-eps.net/wp-content/uploads/2026/05/zh-page-crop-kinosaki-pickup-20260519.jpg';img.alt='Actual Traditional Chinese facility page screenshot';img.style.objectPosition='top center'})}
function run(){addStyle();replaceHeroDiagnostic();replaceOtherMissingImages()}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',run);else run();window.addEventListener('load',run)}catch(e){}})();(function(){try{var styleId='jeps-introduce-gallery-first-style';function addStyle(){var css=['body.single-introduce #header_search,body.single-introduce #breadcrumb,body.single-introduce .jeps-lang-switch,body.single-introduce .intro_nav{display:none!important;}','body.single-introduce #main_contents,body.single-introduce .introduce-guide,body.single-introduce #article.intro_article{padding-top:0!important;margin-top:0!important;}','body.single-introduce .intro_gallery{margin-top:0!important;}','body.single-introduce .intro_gallery .gallery-main{margin-top:0!important;}','body.single-introduce .intro_gallery .gallery-main img{width:100%!important;height:clamp(300px,42vw,400px)!important;object-fit:cover!important;object-position:center!important;}','body.single-introduce .intro_gallery .gallery-main .swiper-slide{height:auto!important;}','body.single-introduce .intro_gallery_thumbnail{max-height:76px!important;overflow:hidden!important;padding-top:8px!important;padding-bottom:8px!important;}','body.single-introduce .intro_gallery_thumbnail img{width:100%!important;height:58px!important;object-fit:cover!important;}','body.single-introduce .jeps-runtime-gallery-from-ja{background:#fff!important;}','body.single-introduce .jeps-runtime-gallery-hero img{display:block!important;width:100%!important;height:clamp(300px,42vw,400px)!important;object-fit:cover!important;object-position:center!important;background:#eef3f7!important;}','body.single-introduce .jeps-runtime-gallery-strip{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:8px!important;padding:14px 0!important;}','body.single-introduce .jeps-runtime-gallery-strip button{display:block!important;width:100%!important;aspect-ratio:4/3!important;padding:0!important;border:0!important;background:#edf3f8!important;cursor:pointer!important;overflow:hidden!important;}','body.single-introduce .jeps-runtime-gallery-strip img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;}','body.postid-27507 .jeps-runtime-gallery-from-ja{max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;overflow:hidden!important;}','body.postid-27507 .jeps-runtime-gallery-hero img{height:clamp(340px,38vw,520px)!important;}','body.postid-27507 .jeps-runtime-gallery-strip{grid-template-columns:repeat(10,minmax(0,1fr))!important;}','body.single-introduce #store .store_list,body.single-introduce .intro_store .store_list,body.single-introduce #store ul,body.single-introduce .intro_store ul{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:start!important;}','body.single-introduce #store .store-slider,body.single-introduce .intro_store .store-slider{overflow:visible!important;}','body.single-introduce #store .store-slider .swiper-wrapper,body.single-introduce .intro_store .store-slider .swiper-wrapper{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;transform:none!important;width:auto!important;align-items:start!important;}','body.single-introduce #store .store-slider .swiper-slide,body.single-introduce .intro_store .store-slider .swiper-slide{width:auto!important;height:auto!important;margin:0!important;}','body.single-introduce #store .store_item,body.single-introduce #store .store_items,body.single-introduce .intro_store .store_item,body.single-introduce .intro_store .store_items{float:none!important;width:auto!important;max-width:none!important;margin:0!important;height:auto!important;}','body.single-introduce #store .store_item img,body.single-introduce #store .store_items img,body.single-introduce .intro_store .store_item img,body.single-introduce .intro_store .store_items img{width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important;}','body.single-introduce .jeps-hidden-duplicate-heading{display:none!important;}','body.single-introduce #article .jeps-force-facility-name{font-size:0!important;}','body.single-introduce #article .h2_ttl.jeps-force-facility-name:before{content:attr(data-jeps-facility-name)!important;display:block!important;font-size:26px!important;line-height:1.4!important;font-weight:inherit!important;color:#222!important;}','body.single-introduce #article .shop_name.jeps-force-facility-name:before,body.single-introduce .intro_info .shop_name.jeps-force-facility-name:before{content:attr(data-jeps-facility-name)!important;display:inline!important;font-size:16px!important;line-height:1.7!important;font-weight:inherit!important;color:inherit!important;}','body.postid-27507 .jeps-nupka-spot-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;margin-top:12px!important;padding:0 14px!important;border-radius:999px!important;background:#1f6f9f!important;color:#fff!important;font-size:13px!important;font-weight:700!important;text-decoration:none!important;}','body.postid-27507 .jeps-nupka-spot-link:hover{opacity:.86!important;}','@media(max-width:620px){body.single-introduce #store .store_list,body.single-introduce .intro_store .store_list,body.single-introduce #store ul,body.single-introduce .intro_store ul,body.single-introduce #store .store-slider .swiper-wrapper,body.single-introduce .intro_store .store-slider .swiper-wrapper{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}','@media(max-width:560px){body.single-introduce #store .store_list,body.single-introduce .intro_store .store_list,body.single-introduce #store ul,body.single-introduce .intro_store ul,body.single-introduce #store .store-slider .swiper-wrapper,body.single-introduce .intro_store .store-slider .swiper-wrapper{grid-template-columns:1fr!important;}}','@media(max-width:760px){body.single-introduce .intro_gallery .gallery-main img,body.single-introduce .jeps-runtime-gallery-hero img{height:clamp(210px,56vw,270px)!important;}body.single-introduce .intro_gallery_thumbnail{max-height:64px!important;padding-top:6px!important;padding-bottom:6px!important;}body.single-introduce .intro_gallery_thumbnail img{height:48px!important;}body.single-introduce .jeps-runtime-gallery-strip{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;padding:6px 0!important;}body.single-introduce .jeps-runtime-gallery-strip button{max-height:48px!important;}}'].join('');var style=document.getElementById(styleId);if(!style){style=document.createElement('style');style.id=styleId;document.head.appendChild(style)}
if(style.textContent!==css)style.textContent=css}
function getJaUrl(){var alt=document.querySelector('link[rel="alternate"][hreflang="ja"]');if(alt&&alt.href)return alt.href;var switchLink=document.querySelector('.jeps-lang-switch a[hreflang="ja"]');if(switchLink&&switchLink.href)return switchLink.href;return ''}
function buildRuntimeGallery(items){var gallery=document.createElement('div');gallery.className='intro_gallery jeps-runtime-gallery-from-ja';gallery.id='gallery';var main=document.createElement('div');main.className='gallery-main';var hero=document.createElement('div');hero.className='jeps-runtime-gallery-hero';var heroImg=document.createElement('img');heroImg.loading='eager';heroImg.decoding='async';heroImg.src=items[0].src;heroImg.alt=items[0].alt||'';hero.appendChild(heroImg);main.appendChild(hero);gallery.appendChild(main);var thumbs=document.createElement('div');thumbs.className='intro_gallery_thumbnail inner';var strip=document.createElement('div');strip.className='jeps-runtime-gallery-strip';var thumbItems=items.length>1?items.slice(1,17):items.slice(0,16);thumbItems.forEach(function(item){var button=document.createElement('button');button.type='button';var img=document.createElement('img');img.loading='lazy';img.decoding='async';img.src=item.src;img.alt=item.alt||'';button.appendChild(img);button.addEventListener('click',function(){heroImg.src=item.src;heroImg.alt=item.alt||''});strip.appendChild(button)});thumbs.appendChild(strip);gallery.appendChild(thumbs);return gallery}
function textOf(el){return(el&&el.textContent||'').replace(/\s+/g,' ').trim()}
function cleanFacilityNameText(text){return(text||'').replace(/\s+/g,' ').replace(/\s*[\(\uFF08][A-Za-z0-9 .&\u0027\u2019\-]+[\)\uFF09]\s*$/,'').trim()}
function romanFromDocument(){var values=[];Array.prototype.slice.call(document.querySelectorAll('script[type="application/ld+json"]')).forEach(function(script){var text=script.textContent||'';var matches=text.match(/[A-Z][A-Za-z0-9 .&\x27\-]+(?:Hotel|Ryokan|Resort|Inn|Onsen|Villa|House|Kokusai)[A-Za-z0-9 .&\x27\-]*\s*\/\s*/g)||[];matches.forEach(function(match){values.push(match.replace(/\s*\/\s*$/,''))})});var h2=textOf(document.querySelector('.h2_ttl'));if(/^[A-Za-z0-9 .&\x27\-]+\s*\//.test(h2))values.push(h2.split('/')[0].trim());var title=(document.title||'').split('|')[0].trim();if(/^[A-Za-z0-9 .&\x27\-]+\s*\//.test(title))values.push(title.split('/')[0].trim());values=values.filter(function(v){return v&&/[A-Za-z]/.test(v)&&v.length>2});return values[0]||''}
function jaNameFromHtml(html){var fixed=html.replace(/(<img\b[^>]*?\salt="[^"<]*)(<\/div>)/g,'$1">$2');var doc=new DOMParser().parseFromString(fixed,'text/html');var candidates=[doc.querySelector('#article .h2_ttl'),doc.querySelector('#article .shop_name'),doc.querySelector('.intro_info .shop_name'),doc.querySelector('h1')];for(var i=0;i<candidates.length;i++){var name=cleanFacilityNameText(textOf(candidates[i]));if(name&&/[\u3040-\u30FF\u3400-\u9FFF]/.test(name))return name}
return ''}
function applyFacilityName(roman,jaName){if(!roman||!jaName)return;var display=roman+' / '+jaName;Array.prototype.slice.call(document.querySelectorAll('#article .h2_ttl, #article .shop_name, .intro_info .shop_name')).forEach(function(el){if(!el)return;el.setAttribute('data-jeps-facility-name',display);el.classList.add('jeps-force-facility-name');if(textOf(el)!==display)el.textContent=display})}
function ensureFacilityNameRomanJa(){if(!document.body||!document.body.classList.contains('single-introduce'))return;var roman=romanFromDocument();var cachedJa=window.__jepsFacilityJaName||'';if(roman&&cachedJa)applyFacilityName(roman,cachedJa);var jaUrl=getJaUrl();if(!roman||!jaUrl||jaUrl===location.href||window.__jepsFacilityNameLoading)return;window.__jepsFacilityNameLoading=!0;fetch(jaUrl,{credentials:'same-origin'}).then(function(res){return res.text()}).then(function(html){var jaName=jaNameFromHtml(html);if(!jaName)return;window.__jepsFacilityJaName=jaName;applyFacilityName(roman,jaName)}).catch(function(){}).finally(function(){window.__jepsFacilityNameLoading=!1})}
function removeDuplicateInfoHeading(){if(!document.body||!document.body.classList.contains('single-introduce'))return;Array.prototype.slice.call(document.querySelectorAll('#info h2, .intro_info h2, #information h2')).forEach(function(h2){var text=textOf(h2);var prev=h2.previousElementSibling;var wrapText=textOf(h2.parentElement);if(text==='\u57FA\u672C\u8CC7\u8A0A'&&((prev&&/Information\s*\u57FA\u672C\u8CC7\u8A0A/.test(textOf(prev)))||/^Information\s*\u57FA\u672C\u8CC7\u8A0A\s*\u57FA\u672C\u8CC7\u8A0A/.test(wrapText))){h2.classList.add('jeps-hidden-duplicate-heading')}});Array.prototype.slice.call(document.querySelectorAll('.ttlArea')).forEach(function(area){if(!area.querySelector('.jeps-zh-section-title'))return;var h2=area.querySelector('h2');if(!h2)return;var text=textOf(h2);if(/^\u57FA\u672C\u8CC7\u8A0A$|^\u5730\u9EDE$|^\u4EAE\u9EDE$|^\u7CBE\u9078\u65B9\u6848$|^\u5E97\u5BB6\u4ECB\u7D39$/.test(text)){h2.classList.add('jeps-hidden-duplicate-heading')}})}
function ensureNupkaLocationLinks(){if(!/\/introduce\/zh-hant-hotel-nupka\/?/.test(location.pathname))return;var rules=[{re:/\u5317\u4E4B\u5C4B\u53F0|\u5317\u306E\u5C4B\u53F0|\u5317\u5927\u6392\u6A94/,href:'https://j-eps.net/spot/zh-hant-kitanoyatai-obihiro-guide/',label:'\u67E5\u770B\u5317\u4E4B\u5C4B\u53F0\u6307\u5357'},{re:/\u5341\u52DD\u51B0\u4E0A\u516C\u5712|\u6E9C\u51B0/,href:'https://j-eps.net/spot/zh-hant-%e5%86%ac%e3%81%ae%e8%a1%97%e3%81%aa%e3%81%8b%e7%a9%ba%e9%96%93%e3%81%ab%e5%87%ba%e7%8f%be%e3%81%99%e3%82%8b%e9%87%8e%e5%a4%96%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%88%e3%83%aa%e3%83%b3%e3%82%af/',label:'\u67E5\u770B\u5341\u52DD\u51B0\u4E0A\u516C\u5712\u6307\u5357'},{re:/\u9A0E\u81EA\u884C\u8ECA|\u81EA\u8EE2\u8ECA|\u5341\u52DD\u306E\u5E83\u5927\u306A\u5E73\u91CE/,href:'https://j-eps.net/spot/zh-hant-%e5%8d%81%e5%8b%9d%e3%81%ae%e5%ba%83%e5%a4%a7%e3%81%aa%e5%b9%b3%e9%87%8e%e3%80%81%e6%b5%b7%e6%b2%bf%e3%81%84%e3%82%84%e5%b1%b1%e9%96%93%e9%83%a8%e3%82%92%e8%87%aa%e8%bb%a2%e8%bb%8a%e3%81%a7/',label:'\u67E5\u770B\u5341\u52DD\u81EA\u884C\u8ECA\u6307\u5357'}];var cards=Array.prototype.slice.call(document.querySelectorAll('#location article, .intro_location article, #location .location_items, .intro_location .location_items'));cards.forEach(function(card,index){if(!card||card.querySelector('.jeps-nupka-spot-link'))return;var text=textOf(card);var rule=rules.filter(function(item){return item.re.test(text)})[0];if(!rule&&card.tagName==='ARTICLE'&&index===1)rule=rules[1];if(!rule)return;var target=card.querySelector('div:last-child')||card;var a=document.createElement('a');a.className='jeps-nupka-spot-link';a.href=rule.href;a.textContent=rule.label;target.appendChild(a)})}
function getFallbackGalleryItems(){var href=location.href;if(href.indexOf('zh-hant-kinosaki-onsen-miyama')===-1&&href.indexOf('p=27347')===-1)return[];return['https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-123-08cd089839032b162aa3960001a3b1efc2691ea2.47.9.26.3.jpg','https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-001-ed37e328cead84efe2e4c00db01e4c701fc6d424.47.9.26.3.jpg','https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-002-a8a30a8225090a6f5e80af00247f744e35e695c2.47.9.26.3.jpg','https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-004-3750b0c3cd59c09d17bc9c8461e26f021cbf27f8.47.9.26.3.jpg','https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-006-19e0ce69c3658c68f2cb5e16dbbfa0998b8193d2.47.9.26.3.jpg','https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-013-d8a7bf685f2f3b0dbf7ffeb50745c3eac3fcad3e.47.9.26.3.jpg','https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-015-0fd025acee6627fec4919532951344ee6a6fd1e6.47.9.26.3.jpg','https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-018-88ae7517e1469f184ed2d6c4e2194539745beb17.47.9.26.3.jpg','https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-024-9dccc50916c48a7f9c4e4afa8178c3f5ccfb2a96.47.9.26.3.jpg','https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-026-196b1cb21f1116bbd75ca814fddc0f9536b8adae.47.9.26.3.jpg','https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-033-cdddd4845535eab5c88f6d3c90645130c46e0eb8.47.9.26.3.jpg','https://j-eps.net/wp-content/uploads/2026/05/rakuten-miyama-034-c9df953aae965f076e98e70b9e1dc81d351459b2.47.9.26.3.jpg'].map(function(src){return{src:src,alt:'Kinosaki Onsen Miyama facility photo'}})}
function ensureGalleryFromJa(){if(!document.body||!document.body.classList.contains('single-introduce'))return;if(document.querySelector('#gallery'))return;if(window.__jepsRuntimeGalleryLoading)return;var jaUrl=getJaUrl();if(!jaUrl||jaUrl===location.href)return;window.__jepsRuntimeGalleryLoading=!0;fetch(jaUrl,{credentials:'same-origin'}).then(function(res){return res.text()}).then(function(html){var doc=new DOMParser().parseFromString(html,'text/html');var seen={};var items=Array.prototype.slice.call(doc.querySelectorAll('.intro_gallery img')).map(function(img){return{src:img.currentSrc||img.getAttribute('src')||'',alt:img.getAttribute('alt')||''}}).filter(function(item){if(!item.src||seen[item.src])return !1;seen[item.src]=!0;return !0});if(!items.length)items=getFallbackGalleryItems();if(!items.length)return;var target=document.querySelector('#article .h2_ttl')||document.querySelector('#article > *');if(!target||!target.parentNode||document.querySelector('#gallery'))return;target.parentNode.insertBefore(buildRuntimeGallery(items),target)}).catch(function(){var items=getFallbackGalleryItems();var target=document.querySelector('#article .h2_ttl')||document.querySelector('#article > *');if(items.length&&target&&target.parentNode&&!document.querySelector('#gallery')){target.parentNode.insertBefore(buildRuntimeGallery(items),target)}}).finally(function(){window.__jepsRuntimeGalleryLoading=!1})}
function repairBrokenGalleryOnlyPage(){if(!document.body||!document.body.classList.contains('single-introduce'))return;var article=document.querySelector('#article');if(!article||!document.querySelector('#gallery'))return;if(article.querySelector('.h2_ttl'))return;if(window.__jepsBrokenGalleryRepairing)return;window.__jepsBrokenGalleryRepairing=!0;fetch(location.href,{credentials:'same-origin'}).then(function(res){return res.text()}).then(function(html){var fixed=html.replace(/(<img\b[^>]*?\salt="[^"<]*)(<\/div>)/g,'$1">$2');var doc=new DOMParser().parseFromString(fixed,'text/html');var freshArticle=doc.querySelector('#article');if(!freshArticle||!freshArticle.querySelector('.h2_ttl, #good-point, #plan, #store, #location, #info'))return;var seen={};var items=Array.prototype.slice.call(freshArticle.querySelectorAll('.intro_gallery img')).map(function(img){return{src:img.currentSrc||img.getAttribute('src')||'',alt:img.getAttribute('alt')||''}}).filter(function(item){if(!item.src||seen[item.src])return !1;seen[item.src]=!0;return !0});var oldGallery=freshArticle.querySelector('#gallery');if(oldGallery)oldGallery.parentNode.removeChild(oldGallery);article.innerHTML=freshArticle.innerHTML;var target=article.querySelector('.h2_ttl')||article.firstElementChild;if(items.length&&target&&!article.querySelector('#gallery')){target.parentNode.insertBefore(buildRuntimeGallery(items),target)}
addStyle();setTimeout(function(){ensureFacilityNameRomanJa();removeDuplicateInfoHeading()},0)}).catch(function(){}).finally(function(){window.__jepsBrokenGalleryRepairing=!1})}
function run(){addStyle();repairBrokenGalleryOnlyPage();ensureGalleryFromJa();ensureFacilityNameRomanJa();removeDuplicateInfoHeading();ensureNupkaLocationLinks()}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',run);else run();window.addEventListener('load',run);[400,1200,2500,5000].forEach(function(ms){setTimeout(run,ms)});var repeatCount=0;var repeatTimer=setInterval(function(){repeatCount+=1;ensureFacilityNameRomanJa();removeDuplicateInfoHeading();ensureNupkaLocationLinks();if(repeatCount>=20)clearInterval(repeatTimer)},1000)}catch(e){}})();(function(){try{var styleId='jeps-hide-expanded-global-menu-style';function addStyle(){var css=['body:not(.home) #global_menu{display:none!important;}','body:not(.home) #header_top .menu_button{display:none!important;}','body:not(.home) #header_top .search_button{display:none!important;}'].join('');var style=document.getElementById(styleId);if(!style){style=document.createElement('style');style.id=styleId;document.head.appendChild(style)}
if(style.textContent!==css)style.textContent=css}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',addStyle);else addStyle();window.addEventListener('load',addStyle)}catch(e){}})();(function(){try{var targetUrl='https://jepstravel.tw/';function updateInstagramLinks(){var links=document.querySelectorAll('.instagram-guide #sb_instagram a');for(var i=0;i<links.length;i++){var href=links[i].getAttribute('href')||'';if(!href||href.indexOf('javascript:')===0)continue;links[i].setAttribute('href',targetUrl);links[i].setAttribute('target','_blank');links[i].setAttribute('rel','noopener')}}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',updateInstagramLinks);else updateInstagramLinks();window.addEventListener('load',updateInstagramLinks);if(window.MutationObserver){var instagramObserverTimer=0;function observeInstagramRoot(){var root=document.querySelector('.instagram-guide #sb_instagram');if(!root||root.__jepsInstagramLinkObserver)return;root.__jepsInstagramLinkObserver=!0;new MutationObserver(function(){clearTimeout(instagramObserverTimer);instagramObserverTimer=setTimeout(updateInstagramLinks,120)}).observe(root,{childList:!0,subtree:!0})}
observeInstagramRoot();document.addEventListener('DOMContentLoaded',observeInstagramRoot);window.addEventListener('load',observeInstagramRoot)}
var tries=0;var timer=window.setInterval(function(){updateInstagramLinks();tries++;if(tries>10)window.clearInterval(timer)},500)}catch(e){}})();
// source --> https://j-eps.net/wp-content/themes/gensen_old/js/jquery.easing.1.3.js?ver=1.12.4 
/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/

// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});

/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
 */;
// source --> https://j-eps.net/wp-content/themes/gensen_old/js/jquery.textOverflowEllipsis.js?ver=1.12.4 
/*
http://dev.classmethod.jp/ria/string-replace-css-and-jquery/
をカスタマイズ利用
*/

(function($) {
  $.fn.textOverflowEllipsis = function(config) {
    var defaults = {
      resize: true,
      numOfCharactersToReduce : 1,
      suffix: '…'
    };

    var options = $.extend(defaults, config);

    var elems = this;

    var TextOverflowEllipsis = {
      init : function($target) {
        if ($target.css('overflow') != 'hidden') {
          $target.css('overflow', 'hidden');
        }

        // オリジナルの文章を取得・保持する
        var html = $target.attr('data-original');
        if (! html) {
          html = $target.html();
          $target.attr('data-original', html);
        }

      },
      execute : function($target) {
        var html = $target.attr('data-original');

        // 対象の要素を、高さにautoを指定し非表示で複製する
        var $clone = $target.clone();
        $clone
          .html(html)
          .css({
            display : 'none',
            position : 'absolute',
            overflow : 'visible',
            maxHeight : 'none'
          })
          .width($target.width())
          .height('auto');

        // 複製した要素を一旦追加
        $target.after($clone);

        // 指定した高さになるまで、1文字ずつ消去していく
        while((html.length > 0) && ($clone.height() > $target.height())) {
          html = html.substr(0, html.length - options.numOfCharactersToReduce);
          $clone.html(html + options.suffix);
        }

        // 文章を入れ替えて、複製した要素を削除する
        $target.html($clone.html());
        $clone.remove();
      },
    };

    // ウィンドウリサイズに追従する
    if (options.resize) {
      var timerId = null;
      var windowWidth = $(window).width();

      $(window).resize(function() {
        if (timerId) {
          clearTimeout(timerId);
        }

        if (windowWidth == $(window).width()) {
          return;
        }

        timerId = setTimeout(function() {
          elems.each(function(index) {
            TextOverflowEllipsis.execute($(this));
          });
        }, 100);
      });
    }

    return this.each(function(index) {
      var $target = $(this);

      TextOverflowEllipsis.init($target);

      TextOverflowEllipsis.execute($target);
    });
  };
})(jQuery);