const map = "./map-full.svg" // Or "./map-mobile.svg" const container = document.querySelector( '#map' ) const res = await fetch( map ) if ( res.ok ) { const svg = await res.text() container.innerHTML = svg const prefs = document.querySelectorAll( '.geolonia-svg-map .prefecture' ) prefs.forEach( ( pref ) => { // マウスオーバーで色を変える pref.addEventListener( 'mouseover', ( event ) => { event.currentTarget.s