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 { Roboto } from "next/font/google";



export const metadata: Metadata = {
  title: '古民家カフェ京 | 京都の隠れ家カフェ',
  description: '京都の風情ある古民家を改装したカフェ。こだわりの珈琲と季節の甘味、心安らぐ空間で特別なひとときをお過ごしください。',
  keywords: ["京都, 古民家カフェ, カフェ, 珈琲, 和菓子, 抹茶, 京都カフェ, 隠れ家"],
  openGraph: {
    "title": "古民家カフェ京 | 京都の隠れ家カフェ",
    "description": "京都の風情ある古民家を改装したカフェ。こだわりの珈琲と季節の甘味、心安らぐ空間で特別なひとときをお過ごしください。",
    "url": "https://kominkacafe-kyo.com",
    "siteName": "古民家カフェ京",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/medium-shot-woman-taking-food-photos_23-2149294502.jpg",
        "alt": "古民家カフェ京の美しい店内"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "古民家カフェ京 | 京都の隠れ家カフェ",
    "description": "京都の風情ある古民家を改装したカフェ。こだわりの珈琲と季節の甘味、心安らぐ空間で特別なひとときをお過ごしください。",
    "images": [
      "http://img.b2bpic.net/free-photo/medium-shot-woman-taking-food-photos_23-2149294502.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const roboto = Roboto({
  variable: "--font-roboto",
  subsets: ["latin"],
  weight: ["100", "300", "400", "500", "700", "900"],
});

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