// Shared SiteHeader — routes to separate pages function SiteHeader() { const [scrolled, setScrolled] = React.useState(false); const [open, setOpen] = React.useState(false); React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 40); window.addEventListener('scroll', onScroll); return () => window.removeEventListener('scroll', onScroll); }, []); const parts = location.pathname.split('/').filter(Boolean); const pageFromConfig = window.ALLIN_MUSIC_CONFIG && window.ALLIN_MUSIC_CONFIG.page; const here = (pageFromConfig || parts.pop() || 'index').toLowerCase(); const navs = [ { href:'voice.html', label:'ボイトレ', match:['voice.html', 'voice'] }, { href:'guitar.html', label:'弾き語り', match:['guitar.html', 'guitar'] }, { href:'dtm.html', label:'DTM', match:['dtm.html', 'dtm'] }, { href:'flow.html', label:'流れ', match:['flow.html', 'flow'] }, { href:'pricing.html', label:'料金', match:['pricing.html', 'pricing'] }, { href:'teachers.html', label:'講師', match:['teachers.html', 'teachers'] }, { href:'voices.html', label:'生徒の声', match:['voices.html', 'voices'] }, { href:'faq.html', label:'FAQ', match:['faq.html', 'faq'] }, { href:'column.html', label:'コラム', match:['column.html', 'column'] }, ]; const routeTo = (href) => { const routes = (window.ALLIN_MUSIC_CONFIG && window.ALLIN_MUSIC_CONFIG.routes) || {}; return routes[href] || href; }; return (
All in Music EST. 2010 / TOKYO 体験レッスン ¥0
); } window.SiteHeader = SiteHeader;