/* TEN GROW — Services (事業内容) — strategic, dark, data-driven.
   5 blocks: Intro / Our Position / How We Drive Growth / Our Services / Why TEN GROW. */
const DS_Services = window.TENGROWDesignSystem_8927da;

function TG_Services() {
  const { Breadcrumb, Accordion } = DS_Services;
  const { Container, Reveal } = window;

  const jpHead = { fontFamily: "var(--font-jp-heading)", fontWeight: 800, letterSpacing: "-0.02em", lineHeight: 1.3 };
  const enLabel = { fontFamily: "var(--font-en-ui)", fontWeight: 800, textTransform: "uppercase", letterSpacing: ".2em" };
  const FLAME = "var(--flame-to)";
  const cardBg = "#191512";
  const cardLine = "1px solid rgba(255,255,255,0.12)";

  const Flame = ({ children }) => <span style={{ background: "var(--gradient-brand)", WebkitBackgroundClip: "text", backgroundClip: "text", WebkitTextFillColor: "transparent" }}>{children}</span>;

  // ---- section header (English kicker + JP heading) ----
  const Head = ({ en, jp, sub, center, light }) => (
    <div style={{ textAlign: center ? "center" : "left", marginBottom: "var(--space-8)" }}>
      <div style={{ display: "inline-flex", alignItems: "center", gap: "0.7rem", marginBottom: "var(--space-4)" }}>
        <span style={{ width: 26, height: 2, background: "var(--gradient-brand)" }} />
        <span style={{ ...enLabel, fontSize: "0.8125rem", color: FLAME }}>{en}</span>
      </div>
      {jp && <h2 style={{ ...jpHead, color: light ? "var(--ink-900)" : "#fff", fontSize: "clamp(1.75rem,1.2rem + 2.4vw,2.75rem)", margin: 0 }}>{jp}</h2>}
      {sub && <p style={{ maxWidth: center ? "40em" : "34em", margin: `var(--space-4) ${center ? "auto" : "0"} 0`, color: light ? "var(--color-text-secondary)" : "rgba(251,246,238,0.66)", fontSize: "var(--fs-body)", lineHeight: "var(--lh-body)" }}>{sub}</p>}
    </div>
  );

  // ---- tiny line-art icons (stroke, orange) ----
  const Ic = ({ d, size = 26, fill }) => (
    <svg width={size} height={size} viewBox="0 0 24 24" fill="none" style={{ color: FLAME, flexShrink: 0 }}>
      {d.map((p, i) => (typeof p === "string"
        ? <path key={i} d={p} stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round" fill={fill || "none"} />
        : p))}
    </svg>
  );
  const icons = {
    megaphone: ["M3 11v2a1 1 0 001 1h2l3.5 3.5V6.5L6 10H4a1 1 0 00-1 1z", "M14 8a4 4 0 010 8", "M9.5 17.5l1 3"],
    spark: ["M12 3v3M12 18v3M4.2 7l2 1.7M17.8 15.3l2 1.2M3 12h3M18 12h3", <circle key="c" cx="12" cy="12" r="3.4" stroke="currentColor" strokeWidth="1.7"/>],
    browser: ["M3 5h18v14H3z", "M3 9h18", <circle key="a" cx="6" cy="7" r="0.6" fill="currentColor"/>, <circle key="b" cx="8" cy="7" r="0.6" fill="currentColor"/>],
    handshake: ["M6 12l3-3 3 3 3-3 3 3", "M4 10l5 5 3-2 3 2 5-5", "M3 8h4M17 8h4"],
    growth: ["M4 19V5M4 19h16", "M7 15l3-3 3 2 5-6", "M18 8h3v3"],
    target: [<circle key="a" cx="12" cy="12" r="8.5" stroke="currentColor" strokeWidth="1.7"/>, <circle key="b" cx="12" cy="12" r="4.5" stroke="currentColor" strokeWidth="1.7"/>, <circle key="c" cx="12" cy="12" r="1.3" fill="currentColor"/>],
    funnel: ["M4 5h16l-6 7v5l-4 2v-7L4 5z"],
    sns: [<rect key="r" x="5" y="3" width="14" height="18" rx="2" stroke="currentColor" strokeWidth="1.7"/>, "M9 7h6", <circle key="c" cx="12" cy="13" r="2.4" stroke="currentColor" strokeWidth="1.7"/>, "M11 17.5h2"],
    chain: ["M9 12a3 3 0 013-3h2a3 3 0 010 6h-1", "M15 12a3 3 0 01-3 3h-2a3 3 0 010-6h1"],
    partner: [<circle key="c" cx="9" cy="8" r="2.6" stroke="currentColor" strokeWidth="1.7"/>, <circle key="d" cx="16" cy="9" r="2.2" stroke="currentColor" strokeWidth="1.7"/>, "M4 19c0-2.8 2.2-5 5-5s5 2.2 5 5", "M14.5 19c0-2 1-3.6 2.5-4.3"],
  };

  const ArrowRight = ({ vertical }) => (
    <div aria-hidden="true" style={{ display: "flex", alignItems: "center", justifyContent: "center", color: FLAME }}>
      <svg width="30" height="30" viewBox="0 0 24 24" fill="none" style={{ transform: vertical ? "rotate(90deg)" : "none" }}>
        <path d="M4 12h15M13 6l7 6-7 6" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"/>
      </svg>
    </div>
  );

  // growth line-chart graphic (block 1)
  const GrowthGraphic = () => (
    <div style={{ position: "relative", width: "100%", aspectRatio: "1 / 1", maxWidth: 460, marginLeft: "auto" }}>
      <div aria-hidden="true" style={{ position: "absolute", inset: 0, background: "radial-gradient(circle at 70% 30%, rgba(255,42,10,0.18), transparent 60%)", filter: "blur(20px)" }} />
      <svg viewBox="0 0 400 400" style={{ position: "relative", width: "100%", height: "100%" }}>
        <defs>
          <linearGradient id="tgFlame" x1="0" y1="1" x2="1" y2="0"><stop offset="0" stopColor="#FFAB00"/><stop offset="1" stopColor="#FF2A0A"/></linearGradient>
          <linearGradient id="tgFill" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stopColor="rgba(255,120,20,0.28)"/><stop offset="1" stopColor="rgba(255,42,10,0)"/></linearGradient>
        </defs>
        {[80, 150, 220, 290, 360].map((y) => <line key={y} x1="40" y1={y} x2="380" y2={y} stroke="rgba(255,255,255,0.07)" strokeWidth="1"/>)}
        {[40, 125, 210, 295, 380].map((x) => <line key={x} x1={x} y1="40" x2={x} y2="360" stroke="rgba(255,255,255,0.07)" strokeWidth="1"/>)}
        {[[125, 300, 40], [210, 250, 90], [295, 190, 140], [365, 120, 210]].map(([x, y, h], i) => (
          <rect key={i} x={x - 16} y={y} width="32" height={h} fill={i === 3 ? "url(#tgFlame)" : "rgba(255,255,255,0.1)"} />
        ))}
        <path d="M40 330 L125 300 L210 250 L295 190 L380 90" fill="none" stroke="url(#tgFlame)" strokeWidth="3" strokeLinecap="round"/>
        <path d="M40 330 L125 300 L210 250 L295 190 L380 90 L380 360 L40 360 Z" fill="url(#tgFill)"/>
        {[[40, 330], [125, 300], [210, 250], [295, 190], [380, 90]].map(([x, y], i) => <circle key={i} cx={x} cy={y} r="4.5" fill="#fff"/>)}
        <g transform="translate(300 60)"><path d="M0 20 L14 0 L28 20" fill="none" stroke="url(#tgFlame)" strokeWidth="3" strokeLinecap="round" strokeLinejoin="round"/></g>
      </svg>
    </div>
  );

  // simple line-art building (client) & bar-growth (growth) for the position map
  const Building = () => (
    <svg width="72" height="72" viewBox="0 0 48 48" fill="none" style={{ color: "rgba(255,255,255,0.85)" }}>
      <rect x="10" y="8" width="18" height="34" stroke="currentColor" strokeWidth="1.6"/>
      <rect x="28" y="18" width="12" height="24" stroke="currentColor" strokeWidth="1.6"/>
      {[14, 20, 26, 32].map((y) => [13, 18, 23].map((x) => <rect key={`${x}-${y}`} x={x} y={y} width="2.4" height="2.4" fill="currentColor"/>))}
      {[24, 30, 36].map((y) => [31, 35].map((x) => <rect key={`${x}-${y}`} x={x} y={y} width="2" height="2" fill="currentColor"/>))}
    </svg>
  );

  const services = [
    { en: "Performance Marketing", jp: "成果報酬型マーケティング支援", featured: true, icon: "target",
      body: "広告を運用するだけではなく、事業の利益構造から逆算して戦略を設計。成果に連動した支援体制で、継続的な売上成長を目指します。",
      points: ["広告戦略設計", "Web広告運用", "KPI管理", "レポーティング", "継続的な改善提案"] },
    { en: "Sales Funnel Design", jp: "集客・販売導線構築", icon: "funnel",
      body: "集客して終わるのではなく、問い合わせ・商談・成約につながる導線を構築します。",
      points: ["LP制作", "Webサイト制作", "フォーム改善", "LINE導線設計", "CVR改善"] },
    { en: "Brand / SNS Growth", jp: "SNS・ブランド成長支援", icon: "sns",
      body: "企業や経営者の価値を言語化し、認知・採用・集客につながるブランドを育てます。",
      points: ["SNS戦略設計", "投稿企画", "運用支援", "採用広報", "ブランド発信"] },
  ];

  const steps = [
    { no: "01", jp: "認知獲得", sub: "広告・SNS・クリエイティブ", icon: "megaphone" },
    { no: "02", jp: "興味喚起", sub: "訴求設計・コンセプト設計", icon: "spark" },
    { no: "03", jp: "獲得導線構築", sub: "LP・Web・LINE導線", icon: "browser" },
    { no: "04", jp: "商談・成約", sub: "CV改善・営業導線", icon: "handshake" },
    { no: "05", jp: "売上・利益成長", sub: "LTV・継続改善", icon: "growth" },
  ];

  const reasons = [
    { k: "A", jp: "成果起点", icon: "growth", body: "広告出稿や制作納品ではなく、売上・利益につながるかを起点に設計します。" },
    { k: "B", jp: "一気通貫", icon: "chain", body: "戦略、集客、制作、運用、改善までを分断せず、ひとつの導線として最適化します。" },
    { k: "C", jp: "伴走型支援", icon: "partner", body: "外注先ではなく、クライアントと同じ目線で事業成長に向き合います。" },
  ];

  const ServiceCard = ({ s, featured, light }) => {
    const bg = light ? "var(--warm-white)" : cardBg;
    const line = light ? "1px solid var(--line)" : cardLine;
    const titleCol = light ? "var(--ink-900)" : "#fff";
    const bodyCol = light ? "var(--color-text-secondary)" : "rgba(251,246,238,0.66)";
    const enCol = light ? "var(--ink-500)" : "rgba(251,246,238,0.5)";
    const pointCol = light ? "var(--color-text)" : "rgba(255,255,255,0.9)";
    const pointLine = light ? "1px solid var(--line)" : "1px solid rgba(255,255,255,0.08)";
    const gridCol = light ? "rgba(25,22,19,0.045)" : "rgba(255,255,255,0.04)";
    return (
    <Reveal style={{ height: "100%" }}>
      <div className="tg-svc-card" style={{ position: "relative", overflow: "hidden", height: "100%", background: bg, border: line, borderRadius: "10px", padding: featured ? "clamp(1.75rem,3vw,2.75rem)" : "clamp(1.5rem,2.4vw,2rem)", display: featured ? "grid" : "block", gridTemplateColumns: featured ? "1.15fr 1fr" : undefined, gap: "clamp(1.5rem,3vw,3rem)", alignItems: "center", boxShadow: light ? "var(--shadow-sm)" : "none" }}>
        <div aria-hidden="true" style={{ position: "absolute", inset: 0, backgroundImage: `linear-gradient(${gridCol} 1px, transparent 1px), linear-gradient(90deg, ${gridCol} 1px, transparent 1px)`, backgroundSize: "34px 34px", opacity: 0.6, pointerEvents: "none" }} />
        <div style={{ position: "relative" }}>
          <div style={{ display: "flex", alignItems: "center", gap: "0.9rem", marginBottom: "var(--space-4)" }}>
            <span style={{ width: featured ? 56 : 48, height: featured ? 56 : 48, borderRadius: "10px", background: "rgba(255,42,10,0.1)", border: "1px solid rgba(255,42,10,0.3)", display: "flex", alignItems: "center", justifyContent: "center" }}><Ic d={icons[s.icon]} size={featured ? 28 : 24} /></span>
            {featured && <span style={{ ...enLabel, fontSize: "0.625rem", color: FLAME, border: "1px solid rgba(255,42,10,0.4)", borderRadius: "999px", padding: "0.35rem 0.75rem" }}>Main Business</span>}
          </div>
          <div style={{ ...enLabel, fontSize: "0.6875rem", color: enCol, marginBottom: "0.5rem" }}>{s.en}</div>
          <h3 style={{ ...jpHead, color: titleCol, fontSize: featured ? "clamp(1.4rem,1.1rem + 1.2vw,1.9rem)" : "1.3rem", margin: "0 0 var(--space-3)" }}>{s.jp}</h3>
          <p style={{ color: bodyCol, fontSize: "var(--fs-body-sm)", lineHeight: "var(--lh-body)", margin: 0, maxWidth: "28em" }}>{s.body}</p>
        </div>
        <div style={{ position: "relative" }}>
          <ul style={{ listStyle: "none", margin: 0, padding: 0, display: "flex", flexDirection: "column", gap: "0.55rem" }}>
            {s.points.map((p) => (
              <li key={p} style={{ display: "flex", alignItems: "center", gap: "0.6rem", fontSize: "var(--fs-body-sm)", fontWeight: 500, color: pointCol, borderBottom: pointLine, padding: "0.5rem 0" }}>
                <span style={{ width: 5, height: 5, background: "var(--gradient-brand)", flexShrink: 0 }} />{p}
              </li>
            ))}
          </ul>
        </div>
      </div>
    </Reveal>
    );
  };

  return (
    <div style={{ background: "var(--ink-900)", color: "#fff" }}>
      {/* ========== 1. INTRO ========== */}
      <section style={{ position: "relative", overflow: "hidden", background: "var(--ink-900)", minHeight: "88vh", display: "flex", flexDirection: "column" }}>
        <span aria-hidden="true" style={{ position: "absolute", bottom: "-0.16em", left: "-0.03em", ...enLabel, fontFamily: "var(--font-en-display)", letterSpacing: "-0.02em", fontSize: "clamp(5rem, 3rem + 18vw, 20rem)", lineHeight: 0.8, color: "#fff", opacity: 0.05, whiteSpace: "nowrap", pointerEvents: "none" }}>Business</span>
        <div aria-hidden="true" style={{ position: "absolute", top: "-15%", right: "-8%", width: "48%", height: "70%", background: "var(--gradient-brand)", filter: "blur(130px)", opacity: 0.16, pointerEvents: "none" }} />
        <Container size="wide" style={{ position: "relative", zIndex: 1, paddingTop: "var(--space-7)" }}>
          <div style={{ opacity: 0.85 }}><Breadcrumb items={[{ label: "HOME", href: "#home" }, { label: "Business" }]} style={{ ["--color-text-muted"]: "rgba(251,246,238,0.6)" }} /></div>
        </Container>
        <Container size="wide" className="tg-intro" style={{ position: "relative", zIndex: 1, flex: 1, display: "grid", gridTemplateColumns: "1.1fr 0.9fr", gap: "clamp(2rem,4vw,4rem)", alignItems: "center", paddingTop: "var(--space-7)", paddingBottom: "var(--space-9)" }}>
          <div className="tg-intro-copy">
            <Reveal><span style={{ ...enLabel, fontSize: "clamp(1rem,0.8rem + 1vw,1.5rem)", color: FLAME }}>Business</span></Reveal>
            <Reveal delay={80}><h1 style={{ ...jpHead, color: "#fff", fontSize: "clamp(2.5rem,1.5rem + 5vw,5rem)", margin: "0.1em 0 var(--space-6)" }}>事業内容</h1></Reveal>
            <Reveal delay={140}>
              <p style={{ ...jpHead, fontWeight: 700, fontSize: "clamp(1.4rem,1.05rem + 1.7vw,2.35rem)", lineHeight: 1.5, margin: "0 0 var(--space-5)", textWrap: "balance" }}>
                広告代理店という枠を超え、<br />クライアントの<Flame>利益創出</Flame>に伴走する。
              </p>
            </Reveal>
            <Reveal delay={200}>
              <p style={{ color: "rgba(251,246,238,0.66)", fontSize: "var(--fs-body)", lineHeight: "var(--lh-body)", maxWidth: "34em" }}>
                TEN GROWは、広告運用や制作を請け負うだけの会社ではありません。クライアントの事業課題を理解し、戦略設計から集客、販売導線の構築、実行、改善までを一気通貫で支援します。
              </p>
            </Reveal>
          </div>
          <Reveal delay={160} className="tg-intro-graphic"><GrowthGraphic /></Reveal>
        </Container>
        <Container size="wide" style={{ position: "relative", zIndex: 1, paddingBottom: "var(--space-7)" }}>
          <div style={{ display: "flex", alignItems: "center", gap: "0.8rem", color: "rgba(251,246,238,0.5)", ...enLabel, fontSize: "0.6875rem" }}>SCROLL<span style={{ width: 46, height: 1, background: "rgba(251,246,238,0.4)" }} /></div>
        </Container>
      </section>

      {/* ========== 2. OUR POSITION ========== */}
      <section style={{ position: "relative", overflow: "hidden", background: "#14110E", padding: "var(--section-y) 0", borderTop: "1px solid rgba(255,255,255,0.08)" }}>
        <Container size="wide">
          <Reveal><Head en="Our Position" jp="TEN GROWの立ち位置" /></Reveal>
          <div className="tg-position" style={{ display: "grid", gridTemplateColumns: "1fr auto 1.3fr auto 1fr", alignItems: "center", gap: "clamp(0.75rem,1.5vw,1.5rem)" }}>
            {/* CLIENT */}
            <Reveal>
              <div style={{ background: cardBg, border: cardLine, borderRadius: "10px", padding: "clamp(1.5rem,2.4vw,2rem)", textAlign: "center" }}>
                <div style={{ display: "flex", justifyContent: "center", marginBottom: "var(--space-4)" }}><Building /></div>
                <div style={{ ...enLabel, fontSize: "0.75rem", color: "rgba(251,246,238,0.55)", marginBottom: "var(--space-4)" }}>Client</div>
                <ul style={{ listStyle: "none", margin: 0, padding: 0, display: "flex", flexDirection: "column", gap: "0.5rem" }}>
                  {["集客課題", "売上課題", "採用課題", "ブランド課題"].map((t) => <li key={t} style={{ fontFamily: "var(--font-jp-heading)", fontWeight: 700, fontSize: "0.9375rem", color: "rgba(255,255,255,0.82)" }}>{t}</li>)}
                </ul>
              </div>
            </Reveal>
            <div className="tg-pos-arrow"><ArrowRight /></div>
            {/* TEN GROW HUB */}
            <Reveal delay={120}>
              <div style={{ position: "relative", background: "linear-gradient(180deg, rgba(255,42,10,0.12), rgba(255,42,10,0.03))", border: "1px solid rgba(255,42,10,0.5)", borderRadius: "12px", padding: "clamp(1.75rem,3vw,2.5rem)", textAlign: "center", boxShadow: "0 0 60px rgba(255,42,10,0.18)" }}>
                <div style={{ ...enLabel, fontSize: "0.625rem", color: FLAME, marginBottom: "0.5rem" }}>The Hub</div>
                <img src="./assets/logo-horizontal-white.png" alt="TEN GROW" style={{ height: "clamp(24px,2.4vw,34px)", width: "auto", margin: "0 auto var(--space-5)", display: "block" }} />
                <div style={{ display: "flex", flexWrap: "wrap", justifyContent: "center", gap: "0.5rem" }}>
                  {["Ads", "SNS", "LP", "Website", "Creative", "Analytics"].map((t) => (
                    <span key={t} style={{ ...enLabel, fontSize: "0.6875rem", letterSpacing: ".1em", color: "#fff", background: "rgba(255,255,255,0.06)", border: "1px solid rgba(255,255,255,0.16)", borderRadius: "999px", padding: "0.4rem 0.85rem" }}>{t}</span>
                  ))}
                </div>
                <div style={{ marginTop: "var(--space-5)", fontFamily: "var(--font-jp-heading)", fontWeight: 700, fontSize: "0.875rem", color: "rgba(251,246,238,0.7)" }}>複数の手段を統合し、成果を設計</div>
              </div>
            </Reveal>
            <div className="tg-pos-arrow"><ArrowRight /></div>
            {/* GROWTH */}
            <Reveal delay={240}>
              <div style={{ background: cardBg, border: cardLine, borderRadius: "10px", padding: "clamp(1.5rem,2.4vw,2rem)", textAlign: "center" }}>
                <div style={{ display: "flex", justifyContent: "center", marginBottom: "var(--space-4)" }}><Ic d={icons.growth} size={64} /></div>
                <div style={{ ...enLabel, fontSize: "0.75rem", color: FLAME, marginBottom: "var(--space-4)" }}>Growth</div>
                <ul style={{ listStyle: "none", margin: 0, padding: 0, display: "flex", flexDirection: "column", gap: "0.5rem" }}>
                  {["問い合わせ増加", "商談創出", "売上向上", "利益最大化"].map((t) => <li key={t} style={{ fontFamily: "var(--font-jp-heading)", fontWeight: 700, fontSize: "0.9375rem", color: "rgba(255,255,255,0.82)" }}>{t}</li>)}
                </ul>
              </div>
            </Reveal>
          </div>
          <Reveal delay={200}>
            <p style={{ textAlign: "center", marginTop: "var(--space-9)", ...jpHead, fontWeight: 700, fontSize: "clamp(1.3rem,1rem + 1.5vw,2.1rem)", lineHeight: 1.5 }}>
              課題と成果の間に立ち、<br className="tg-br-sm" />戦略と実行で<Flame>成長を設計する</Flame>。
            </p>
          </Reveal>
        </Container>
      </section>

      {/* ========== 3. HOW WE DRIVE GROWTH ========== */}
      <section style={{ position: "relative", overflow: "hidden", background: "var(--color-bg)", color: "var(--color-text)", padding: "var(--section-y) 0" }}>
        <Container size="wide">
          <Reveal><Head light en="How We Drive Growth" jp="成長を生み出す仕組み" sub="認知から売上・利益成長まで。5つのステップを一つの導線として設計します。" /></Reveal>
          <div className="tg-flow" style={{ display: "grid", gridTemplateColumns: "repeat(5, 1fr)", gap: "0.5rem", alignItems: "stretch" }}>
            {steps.map((s, i) => (
              <React.Fragment key={s.no}>
                <Reveal delay={i * 80} style={{ height: "100%" }}>
                  <div style={{ position: "relative", height: "100%", background: "var(--warm-white)", border: "1px solid var(--line)", borderRadius: "8px", padding: "clamp(1.25rem,2vw,1.75rem)", display: "flex", flexDirection: "column", gap: "var(--space-3)", boxShadow: "var(--shadow-sm)" }}>
                    <div style={{ display: "flex", alignItems: "center", justifyContent: "space-between" }}>
                      <span style={{ ...enLabel, fontSize: "0.6875rem", color: "var(--ink-500)" }}>Step</span>
                      <span style={{ fontFamily: "var(--font-en-ui)", fontWeight: 800, fontSize: "1.5rem", lineHeight: 1 }}><Flame>{s.no}</Flame></span>
                    </div>
                    <span style={{ width: 46, height: 46, borderRadius: "8px", background: "rgba(255,42,10,0.08)", border: "1px solid rgba(255,42,10,0.25)", display: "flex", alignItems: "center", justifyContent: "center" }}><Ic d={icons[s.icon]} size={24} /></span>
                    <div style={{ fontFamily: "var(--font-jp-heading)", fontWeight: 800, fontSize: "1.0625rem", color: "var(--ink-900)", letterSpacing: "-0.01em" }}>{s.jp}</div>
                    <p style={{ margin: 0, color: "var(--color-text-secondary)", fontSize: "0.8125rem", lineHeight: 1.7 }}>{s.sub}</p>
                  </div>
                </Reveal>
                {i < steps.length - 1 && <div className="tg-flow-arrow" aria-hidden="true" style={{ display: "none" }}><ArrowRight /></div>}
              </React.Fragment>
            ))}
          </div>
        </Container>
      </section>

      {/* ========== 4. OUR SERVICES ========== */}
      <section style={{ position: "relative", overflow: "hidden", background: "var(--warm-sand)", color: "var(--color-text)", padding: "var(--section-y) 0" }}>
        <Container size="wide">
          <Reveal><Head light en="Our Services" jp="具体的な事業内容" /></Reveal>
          <div style={{ display: "flex", flexDirection: "column", gap: "var(--space-5)" }}>
            <ServiceCard s={services[0]} featured light />
            <div className="tg-svc-2col" style={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: "var(--space-5)" }}>
              <ServiceCard s={services[1]} light />
              <ServiceCard s={services[2]} light />
            </div>
          </div>
        </Container>
      </section>

      {/* ========== 5. WHY TEN GROW ========== */}
      <section style={{ position: "relative", overflow: "hidden", background: "var(--ink-900)", padding: "var(--section-y) 0" }}>
        <Container size="wide">
          <Reveal><Head en="Why TEN GROW" jp="選ばれる理由" /></Reveal>
          <div className="tg-reasons" style={{ display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "var(--space-5)" }}>
            {reasons.map((r, i) => (
              <Reveal key={r.k} delay={i * 100} style={{ height: "100%" }}>
                <div style={{ position: "relative", overflow: "hidden", height: "100%", background: cardBg, border: cardLine, borderRadius: "10px", padding: "clamp(1.75rem,3vw,2.5rem)" }}>
                  <span aria-hidden="true" style={{ position: "absolute", top: "-0.3em", right: "0.1em", fontFamily: "var(--font-en-ui)", fontWeight: 800, fontSize: "7rem", lineHeight: 1, color: "rgba(255,42,10,0.08)" }}>{r.k}</span>
                  <span style={{ width: 56, height: 56, borderRadius: "10px", background: "rgba(255,42,10,0.1)", border: "1px solid rgba(255,42,10,0.3)", display: "flex", alignItems: "center", justifyContent: "center", marginBottom: "var(--space-5)" }}><Ic d={icons[r.icon]} size={28} /></span>
                  <h3 style={{ ...jpHead, fontWeight: 800, color: "#fff", fontSize: "clamp(1.4rem,1.1rem + 1vw,1.75rem)", margin: "0 0 var(--space-3)" }}>{r.jp}</h3>
                  <p style={{ margin: 0, color: "rgba(251,246,238,0.66)", fontSize: "var(--fs-body-sm)", lineHeight: "var(--lh-body)" }}>{r.body}</p>
                </div>
              </Reveal>
            ))}
          </div>
        </Container>
      </section>

      {/* ========== FAQ ========== */}
      <section style={{ background: "var(--color-bg)", color: "var(--color-text)", padding: "var(--section-y) 0" }}>
        <Container size="wide">
          <div style={{ maxWidth: "var(--container-narrow)", margin: "0 auto" }}>
            <Reveal>
              <div style={{ display: "flex", alignItems: "center", gap: "var(--space-4)", marginBottom: "var(--space-7)" }}>
                <span style={{ ...enLabel, fontSize: "0.8125rem", color: "var(--ink-500)" }}>FAQ</span>
                <h2 style={{ ...jpHead, fontSize: "clamp(1.6rem,1.2rem + 1.8vw,2.25rem)", margin: 0 }}>よくあるご質問</h2>
              </div>
            </Reveal>
            <Accordion items={[
              { q: "成果報酬型とはどんな仕組みですか？", a: "あらかじめ定めた成果（獲得・売上など）に応じて費用をいただくモデルです。内容により固定費との組み合わせもご提案します。" },
              { q: "戦略設計だけの相談もできますか？", a: "はい。現状分析と戦略設計だけのご支援も可能です。まずは課題の整理からご一緒します。" },
              { q: "最短どのくらいで開始できますか？", a: "内容によりますが、ご契約後、最短2週間で施策を開始できます。" },
            ]} />
            <div style={{ textAlign: "center", marginTop: "var(--space-8)" }}>
              <CTA href="#contact">成長のご相談はこちら</CTA>
            </div>
          </div>
        </Container>
      </section>
    </div>
  );

  function CTA({ children, href }) {
    const [h, setH] = React.useState(false);
    return (
      <a href={href} onMouseEnter={() => setH(true)} onMouseLeave={() => setH(false)} style={{ display: "inline-flex", alignItems: "center", gap: "0.7rem", background: "var(--gradient-brand)", color: "var(--ink-900)", textDecoration: "none", fontFamily: "var(--font-jp-heading)", fontWeight: 700, fontSize: "1rem", letterSpacing: ".04em", padding: "1rem 1.9rem", borderRadius: "var(--radius-pill)", boxShadow: h ? "var(--shadow-md)" : "var(--shadow-sm)", transition: "box-shadow var(--dur) var(--ease-out)" }}>
        {children}
        <svg width="17" height="17" viewBox="0 0 24 24" fill="none" style={{ transform: h ? "translateX(4px)" : "translateX(0)", transition: "transform var(--dur) var(--ease-out)" }}><path d="M5 12h14M13 6l6 6-6 6" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round"/></svg>
      </a>
    );
  }
}
window.TG_Services = TG_Services;
