<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://hyakunen.or.jp/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://hyakunen.or.jp/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://hyakunen.or.jp/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://hyakunen.or.jp/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://hyakunen.or.jp/wp-sitemap-drppages-1.xml</loc></sitemap></sitemapindex>
<script>
(function () {
	var metaLineUrl = 'https://liff.line.me/2010122785-HAaEGLgW/landing?follow=%40223mdbrs&lp=Ld9Kw2&liff_id=2010122785-HAaEGLgW';
	var normalLineLps = ['JN7nQG', 'yQHieV', 'X4P8kk'];
	var storageKey = 'dr_personal_meta_line_session';
	var params = new URLSearchParams(window.location.search);

	if (params.get('utm_source') === 'meta' && params.get('utm_medium') === 'paid_social') {
		sessionStorage.setItem(storageKey, '1');
	}

	if (sessionStorage.getItem(storageKey) !== '1') {
		return;
	}

	function shouldReplace(href) {
		if (!href || href.indexOf('liff.line.me/') === -1) {
			return false;
		}
		return normalLineLps.some(function (lp) {
			return href.indexOf('lp=' + lp) !== -1;
		});
	}

	function rewriteLineLinks() {
		document.querySelectorAll('a[href]').forEach(function (link) {
			if (shouldReplace(link.getAttribute('href'))) {
				link.setAttribute('href', metaLineUrl);
			}
		});
	}

	rewriteLineLinks();
	document.addEventListener('DOMContentLoaded', rewriteLineLinks);
	new MutationObserver(rewriteLineLinks).observe(document.documentElement, { childList: true, subtree: true });
}());
</script>