import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";
import { Noto_Serif_JP, Noto_Sans_JP } from "next/font/google";



export const metadata: Metadata = {
  title: 'サンキューロックサービス｜中野区鷺ノ宮の鍵・防犯プロ',
  description: '創業1998年。中野区鷺ノ宮で信頼と実績を誇る鍵と防犯の専門店。合鍵から防犯カメラ、電気錠まで、鍵のお困りごとはプロにお任せください。',
  openGraph: {
    "title": "サンキューロックサービス",
    "description": "中野区鷺ノ宮の鍵・防犯プロ。",
    "siteName": "サンキューロックサービス",
    "type": "website"
  },
};

const notoSerif = Noto_Serif_JP({ variable: "--font-noto-serif", subsets: ["latin"] });
const notoSans = Noto_Sans_JP({ variable: "--font-noto-sans", subsets: ["latin"] });

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${notoSerif.variable} ${notoSans.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
