import{w as i,p as e,t as d}from"./chunk-EPOLDU6W-DaMhR40e.js";import{p as n}from"./catalog-C5UzreQO.js";import{s as l,a as o}from"./site-Bpc5KNUu.js";function u({data:s}){return s?[{title:`${s.product.title} | ${l.brand}`},{name:"description",content:s.product.description},{property:"og:title",content:`${s.product.title} | ${l.brand}`},{property:"og:description",content:s.product.description},{property:"og:url",content:o(`/products/${s.product.slug}`)}]:[{title:`Not found | ${l.brand}`}]}const g=i(function({loaderData:c}){const{product:t}=c,a=n.filter(r=>r.slug!==t.slug).slice(0,2);return e.jsxs("div",{className:"grid gap-10 lg:grid-cols-[1.4fr_0.6fr]",children:[e.jsxs("article",{className:"rounded-[2rem] border border-black/10 bg-white/80 p-8 shadow-sm",children:[e.jsx("p",{className:"text-sm uppercase tracking-[0.3em] text-slate-500",children:t.category}),e.jsx("h1",{className:"mt-4 text-4xl font-semibold",children:t.title}),e.jsx("p",{className:"mt-5 max-w-3xl text-base leading-8 text-slate-700",children:t.description}),e.jsxs("dl",{className:"mt-8 grid gap-4 sm:grid-cols-3",children:[e.jsxs("div",{className:"rounded-2xl bg-slate-950 px-4 py-5 text-white",children:[e.jsx("dt",{className:"text-xs uppercase tracking-[0.3em] text-slate-300",children:"Access"}),e.jsx("dd",{className:"mt-3 text-lg font-medium",children:t.isFree?"Free":"Paid"})]}),e.jsxs("div",{className:"rounded-2xl bg-white px-4 py-5 ring-1 ring-black/10",children:[e.jsx("dt",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Duration"}),e.jsxs("dd",{className:"mt-3 text-lg font-medium",children:[t.durationMinutes," min"]})]}),e.jsxs("div",{className:"rounded-2xl bg-white px-4 py-5 ring-1 ring-black/10",children:[e.jsx("dt",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Updated"}),e.jsx("dd",{className:"mt-3 text-lg font-medium",children:t.updatedAt})]})]})]}),e.jsxs("aside",{className:"space-y-5",children:[e.jsxs("section",{className:"rounded-[1.75rem] border border-black/10 bg-white/80 p-6 shadow-sm",children:[e.jsx("p",{className:"text-sm uppercase tracking-[0.3em] text-slate-500",children:"SEO memo"}),e.jsxs("ul",{className:"mt-4 space-y-3 text-sm leading-7 text-slate-600",children:[e.jsx("li",{children:"このページは prerender 対象です。"}),e.jsx("li",{children:"`sitemap.xml` に自動追加されます。"}),e.jsx("li",{children:"作品一覧ページから内部リンクされます。"})]})]}),e.jsxs("section",{className:"rounded-[1.75rem] border border-black/10 bg-white/80 p-6 shadow-sm",children:[e.jsx("p",{className:"text-sm uppercase tracking-[0.3em] text-slate-500",children:"Related"}),e.jsx("div",{className:"mt-4 space-y-4",children:a.map(r=>e.jsxs(d,{className:"block rounded-2xl border border-black/10 px-4 py-4 hover:bg-slate-50",to:`/products/${r.slug}`,children:[e.jsx("p",{className:"font-medium",children:r.title}),e.jsx("p",{className:"mt-1 text-sm text-slate-600",children:r.category})]},r.slug))})]})]})]})});export{g as default,u as meta};
