// Top page sections for kashinoya — real positioning, no fabricated figures/cases/tel

const { useState, useEffect, useRef } = React;

// ============ Split Hero (Tech × Touch) ============
function SplitHero() {
  const [hovered, setHovered] = useState(null); // 'tech' | 'touch' | null
  const [isWide, setIsWide] = useState(window.innerWidth >= 980);
  useEffect(() => {
    const onResize = () => setIsWide(window.innerWidth >= 980);
    window.addEventListener("resize", onResize);
    return () => window.removeEventListener("resize", onResize);
  }, []);

  // Use flex-grow instead of explicit widths so flex: 1 1 0 works
  const techFlex = !isWide ? "1 1 100%" : hovered === "tech" ? "1.16 1 0" : hovered === "touch" ? "0.84 1 0" : "1 1 0";
  const touchFlex = !isWide ? "1 1 100%" : hovered === "touch" ? "1.16 1 0" : hovered === "tech" ? "0.84 1 0" : "1 1 0";

  return (
    <section className="split-hero" data-screen-label="01 Hero">
      {/* SVG clip-path definitions — used to curve the touch (right) side's left edge */}
      <svg className="sh-clip-defs" aria-hidden="true">
        <defs>
          <clipPath id="sh-curve-clip" clipPathUnits="objectBoundingBox">
            {/* Two gentle waves — smaller amplitude so content has more room */}
            <path d="M 0.06 0
                     C 0.12 0.20, -0.02 0.40, 0.06 0.50
                     C 0.14 0.60, 0.00 0.80, 0.06 1
                     L 1 1 L 1 0 Z" />
          </clipPath>
        </defs>
      </svg>
      <div
        className={`sh-side sh-tech ${hovered === "tech" ? "is-hover" : ""} ${hovered === "touch" ? "is-dim" : ""}`}
        style={{ flex: techFlex }}
        onMouseEnter={() => setHovered("tech")}
        onMouseLeave={() => setHovered(null)}
      >
        <div className="sh-tech-grid" />
        <div className="sh-tech-glow" />
        <div className="sh-tech-orb sh-tech-orb-1" />
        <div className="sh-tech-orb sh-tech-orb-2" />
        <div className="sh-content sh-content-left">
          <div className="sh-eyebrow sh-eyebrow-tech">
            <span className="sh-eb-dot" />
            <svg width="14" height="14" viewBox="0 0 24 24" fill="none">
              <path d="M12 3l2 5 5 2-5 2-2 5-2-5-5-2 5-2zM19 15l1 2 2 1-2 1-1 2-1-2-2-1 2-1z" stroke="currentColor" strokeWidth="1.6" strokeLinejoin="round" />
            </svg>
            <span>AI &amp; DX SOLUTIONS</span>
          </div>
          <h1 className="sh-title">
            テクノロジーで、<br />
            <span className="sh-title-grad">組織の限界を<br />突破する。</span>
          </h1>
          <p className="sh-desc">
            生成AI導入コンサルティングから、IT・DXシステムの開発・実装まで。
            最先端の技術で、企業の生産性を劇的に向上させます。
          </p>
          <div className="sh-actions">
            <a href="about.html#services" className="sh-btn sh-btn-tech">
              <svg width="18" height="18" viewBox="0 0 24 24" fill="none">
                <rect x="4" y="6" width="16" height="14" rx="2" stroke="currentColor" strokeWidth="1.6"/>
                <circle cx="9" cy="13" r="1.5" fill="currentColor"/>
                <circle cx="15" cy="13" r="1.5" fill="currentColor"/>
                <path d="M12 6V3M9 3h6" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round"/>
              </svg>
              AI導入コンサルティング
              <svg width="14" height="14" viewBox="0 0 14 14" fill="none">
                <path d="M3 7h8M7 3l4 4-4 4" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round"/>
              </svg>
            </a>
            <a href="about.html#services" className="sh-btn sh-btn-tech-ghost">
              <svg width="18" height="18" viewBox="0 0 24 24" fill="none">
                <rect x="4" y="4" width="16" height="16" rx="2" stroke="currentColor" strokeWidth="1.6"/>
                <rect x="9" y="9" width="6" height="6" stroke="currentColor" strokeWidth="1.6"/>
                <path d="M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round"/>
              </svg>
              IT・DX支援について
            </a>
          </div>
        </div>
      </div>

      <div
        className={`sh-side sh-touch ${hovered === "touch" ? "is-hover" : ""} ${hovered === "tech" ? "is-dim" : ""}`}
        style={{ flex: touchFlex }}
        onMouseEnter={() => setHovered("touch")}
        onMouseLeave={() => setHovered(null)}
      >
        <div className="sh-touch-blob" />
        <div className="sh-touch-blob sh-touch-blob-2" />
        <div className="sh-content sh-content-right">
          <div className="sh-eyebrow sh-eyebrow-touch">
            <svg width="14" height="14" viewBox="0 0 24 24" fill="none">
              <path d="M9 11l-2 9 5-3 5 3-2-9M12 3l3 6 6 1-4 4 1 6-6-3-6 3 1-6-4-4 6-1z" stroke="currentColor" strokeWidth="1.5" strokeLinejoin="round"/>
            </svg>
            <span>PROFESSIONAL SUPPORT</span>
          </div>
          <h2 className="sh-title sh-title-serif">
            プロフェッショナルが、<br/>
            <span className="sh-title-grad-warm">事業の成長を<br/>伴走する。</span>
          </h2>
          <p className="sh-desc sh-desc-touch">
            補助金、経営支援、そして行政との連携。
            「人」による手厚いサポートで、持続可能な成長を実現します。
          </p>
          <div className="sh-pillars">
            <a href="subsidies.html" className="shp shp-amber">
              <svg width="22" height="22" viewBox="0 0 24 24" fill="none">
                <rect x="5" y="3" width="14" height="18" rx="2" stroke="currentColor" strokeWidth="1.6"/>
                <path d="M9 8h6M9 12h6M9 16h4" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round"/>
              </svg>
              <div className="shp-text">
                <div className="shp-jp">補助金・<br/>資金調達</div>
              </div>
            </a>
            <a href="subsidies.html" className="shp shp-amber">
              <svg width="22" height="22" viewBox="0 0 24 24" fill="none">
                <path d="M3 17l6-6 4 4 8-9" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"/>
                <path d="M14 6h7v7" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"/>
              </svg>
              <div className="shp-text">
                <div className="shp-jp">経営・<br/>ビジネス支援</div>
              </div>
            </a>
            <a href="subsidies.html" className="shp shp-emerald">
              <svg width="22" height="22" viewBox="0 0 24 24" fill="none">
                <path d="M3 21h18M5 21V11M19 21V11M9 21V11M15 21V11M2 11h20L12 3z" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round"/>
              </svg>
              <div className="shp-text">
                <div className="shp-jp">自治体・<br/>官公庁支援</div>
              </div>
            </a>
          </div>
          <a href="about.html#services" className="sh-btn sh-btn-touch">
            サポート内容を見る
            <svg width="14" height="14" viewBox="0 0 14 14" fill="none">
              <path d="M3 7h8M7 3l4 4-4 4" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round"/>
            </svg>
          </a>
        </div>
      </div>

      {isWide && (
        <div className="sh-curve-overlay" aria-hidden="true">
          <svg viewBox="0 0 200 1000" preserveAspectRatio="none">
            <defs>
              <linearGradient id="curveStroke" x1="0" y1="0" x2="0" y2="1">
                <stop offset="0%" stopColor="rgba(6,182,212,0.4)"/>
                <stop offset="50%" stopColor="rgba(255,255,255,0.5)"/>
                <stop offset="100%" stopColor="rgba(217,119,6,0.4)"/>
              </linearGradient>
            </defs>
            <path
              d="M 80 0
                 C 160 200, -24 400, 80 500
                 C 184 600, 0 800, 80 1000"
              stroke="url(#curveStroke)" strokeWidth="1.5" fill="none"
            />
          </svg>
        </div>
      )}

      <div className="sh-scroll-cue">
        <span>SCROLL</span>
        <div className="shsc-line" />
      </div>
    </section>
  );
}

// ============ Concept Bridge ============
function ConceptBridge() {
  return (
    <section className="concept" data-screen-label="02 Concept">
      {/* decorative bg */}
      <div className="concept-bg-grid" aria-hidden="true" />
      <div className="concept-bg-blob concept-bg-blob-tech" aria-hidden="true" />
      <div className="concept-bg-blob concept-bg-blob-touch" aria-hidden="true" />

      <div className="concept-inner">
        <div className="concept-eyebrow">
          <span className="line-deco" />
          OUR CONCEPT
          <span className="line-deco" />
        </div>
        <h2 className="concept-title">
          <span className="ct-tech">Tech</span>
          <span className="ct-x" aria-hidden="true">
            <svg viewBox="0 0 60 60" width="56" height="56">
              <defs>
                <linearGradient id="ctxGrad" x1="0" y1="0" x2="1" y2="1">
                  <stop offset="0%" stopColor="#06b6d4"/>
                  <stop offset="100%" stopColor="#d97706"/>
                </linearGradient>
              </defs>
              <circle cx="30" cy="30" r="22" fill="none" stroke="url(#ctxGrad)" strokeWidth="1.2" opacity="0.5"/>
              <circle cx="30" cy="30" r="14" fill="none" stroke="url(#ctxGrad)" strokeWidth="1.2"/>
              <path d="M22 22 L38 38 M38 22 L22 38" stroke="url(#ctxGrad)" strokeWidth="2" strokeLinecap="round"/>
            </svg>
          </span>
          <span className="ct-touch">Touch</span>
        </h2>
        <p className="concept-jp">技術と、人の支援を、ひとつに。</p>
        <p className="concept-lead">
          樫乃屋は、AI・DXの「技術」と、補助金・経営コンサルの「人による支援」、
          その<em>両方</em>を一社で提供できる稀有な存在です。
          技術を導入したいが資金が足りない、補助金を取ったが活用しきれない――
          そんな分断を、シームレスに繋ぎます。
        </p>

        <div className="concept-flow">
          {/* TECH side */}
          <div className="cf-card cf-tech">
            <div className="cf-card-header">
              <div className="cf-icon cf-icon-tech">
                <svg width="26" height="26" viewBox="0 0 24 24" fill="none">
                  <path d="M12 3l2 5 5 2-5 2-2 5-2-5-5-2 5-2z" stroke="currentColor" strokeWidth="1.6" strokeLinejoin="round"/>
                </svg>
              </div>
              <div>
                <div className="cf-label">TECH</div>
                <div className="cf-jp">技術</div>
              </div>
            </div>
            <div className="cf-tagline">先端技術で、業務を変える</div>
            <ul className="cf-list">
              <li>
                <span className="cf-li-icon">
                  <svg width="14" height="14" viewBox="0 0 24 24" fill="none">
                    <rect x="4" y="6" width="16" height="14" rx="2" stroke="currentColor" strokeWidth="1.6"/>
                    <circle cx="9" cy="13" r="1.5" fill="currentColor"/>
                    <circle cx="15" cy="13" r="1.5" fill="currentColor"/>
                  </svg>
                </span>
                <span>生成AI導入・プロンプト設計</span>
              </li>
              <li>
                <span className="cf-li-icon">
                  <svg width="14" height="14" viewBox="0 0 24 24" fill="none">
                    <rect x="4" y="4" width="16" height="16" rx="2" stroke="currentColor" strokeWidth="1.6"/>
                    <rect x="9" y="9" width="6" height="6" stroke="currentColor" strokeWidth="1.6"/>
                  </svg>
                </span>
                <span>DXシステム開発・実装</span>
              </li>
              <li>
                <span className="cf-li-icon">
                  <svg width="14" height="14" viewBox="0 0 24 24" fill="none">
                    <path d="M4 12a8 8 0 0 1 16 0M20 12a8 8 0 0 1-16 0" stroke="currentColor" strokeWidth="1.6"/>
                    <path d="M12 8v4l3 2" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round"/>
                  </svg>
                </span>
                <span>業務自動化・RPA</span>
              </li>
            </ul>
          </div>

          {/* CENTER fusion */}
          <div className="cf-fusion" aria-hidden="true">
            <div className="cff-rings">
              <div className="cff-ring cff-ring-1" />
              <div className="cff-ring cff-ring-2" />
              <div className="cff-ring cff-ring-3" />
            </div>
            <div className="cff-core">
              <span className="cff-x">×</span>
            </div>
            <svg className="cff-arrow cff-arrow-l" viewBox="0 0 80 24" preserveAspectRatio="none">
              <defs>
                <linearGradient id="arrowL" x1="0" y1="0" x2="1" y2="0">
                  <stop offset="0%" stopColor="#06b6d4" stopOpacity="0.1"/>
                  <stop offset="100%" stopColor="#06b6d4" stopOpacity="0.9"/>
                </linearGradient>
              </defs>
              <path d="M0 12 L70 12 M62 6 L72 12 L62 18" stroke="url(#arrowL)" strokeWidth="1.8" fill="none" strokeLinecap="round" strokeLinejoin="round"/>
            </svg>
            <svg className="cff-arrow cff-arrow-r" viewBox="0 0 80 24" preserveAspectRatio="none">
              <defs>
                <linearGradient id="arrowR" x1="1" y1="0" x2="0" y2="0">
                  <stop offset="0%" stopColor="#d97706" stopOpacity="0.1"/>
                  <stop offset="100%" stopColor="#d97706" stopOpacity="0.9"/>
                </linearGradient>
              </defs>
              <path d="M80 12 L10 12 M18 6 L8 12 L18 18" stroke="url(#arrowR)" strokeWidth="1.8" fill="none" strokeLinecap="round" strokeLinejoin="round"/>
            </svg>
            <div className="cff-label">
              <span className="cff-en">SYNERGY</span>
              <span className="cff-jp">融合</span>
            </div>
          </div>

          {/* TOUCH side */}
          <div className="cf-card cf-touch">
            <div className="cf-card-header">
              <div className="cf-icon cf-icon-touch">
                <svg width="26" height="26" viewBox="0 0 24 24" fill="none">
                  <path d="M9 11l-2 9 5-3 5 3-2-9M12 3l3 6 6 1-4 4 1 6-6-3-6 3 1-6-4-4 6-1z" stroke="currentColor" strokeWidth="1.6" strokeLinejoin="round"/>
                </svg>
              </div>
              <div>
                <div className="cf-label">TOUCH</div>
                <div className="cf-jp">支援</div>
              </div>
            </div>
            <div className="cf-tagline">人の力で、事業を伸ばす</div>
            <ul className="cf-list">
              <li>
                <span className="cf-li-icon">
                  <svg width="14" height="14" viewBox="0 0 24 24" fill="none">
                    <rect x="5" y="3" width="14" height="18" rx="2" stroke="currentColor" strokeWidth="1.6"/>
                    <path d="M9 8h6M9 12h6M9 16h4" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round"/>
                  </svg>
                </span>
                <span>補助金・資金調達支援</span>
              </li>
              <li>
                <span className="cf-li-icon">
                  <svg width="14" height="14" viewBox="0 0 24 24" fill="none">
                    <path d="M3 17l6-6 4 4 8-9M14 6h7v7" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"/>
                  </svg>
                </span>
                <span>経営戦略・ビジネス支援</span>
              </li>
              <li>
                <span className="cf-li-icon">
                  <svg width="14" height="14" viewBox="0 0 24 24" fill="none">
                    <path d="M3 21h18M5 21V11M19 21V11M9 21V11M15 21V11M2 11h20L12 3z" stroke="currentColor" strokeWidth="1.6" strokeLinejoin="round"/>
                  </svg>
                </span>
                <span>自治体・官公庁連携</span>
              </li>
            </ul>
          </div>
        </div>

        {/* Outcome row */}
        <div className="concept-outcomes">
          <div className="co-item">
            <div className="co-num">01</div>
            <div className="co-text">
              <div className="co-jp">技術導入のコスト課題を解決</div>
              <div className="co-en">Cost barriers, removed.</div>
            </div>
          </div>
          <div className="co-divider" />
          <div className="co-item">
            <div className="co-num">02</div>
            <div className="co-text">
              <div className="co-jp">補助金を「取って終わり」にしない</div>
              <div className="co-en">Beyond approval — to outcome.</div>
            </div>
          </div>
          <div className="co-divider" />
          <div className="co-item">
            <div className="co-num">03</div>
            <div className="co-text">
              <div className="co-jp">一社完結で、対応スピードが速い</div>
              <div className="co-en">One partner, full velocity.</div>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}

// ============ Solutions Detail ============
function SolutionsDetail() {
  return (
    <section className="solutions" id="support" data-screen-label="03 Solutions">
      <div className="solutions-bg-deco" aria-hidden="true">
        <div className="sbd-blob sbd-blob-1" />
        <div className="sbd-blob sbd-blob-2" />
      </div>
      <div className="solutions-inner">
        <div className="sol-head">
          <div className="sol-eyebrow">
            <span className="line-deco" />SOLUTIONS<span className="line-deco" />
          </div>
          <h2 className="sol-title">Total Business Solutions</h2>
          <p className="sol-lead">
            技術（Tech）と支援（Touch）の融合により、
            企業のフェーズに合わせた最適な解決策を提供します。
          </p>
        </div>

        <div className="sol-grid">
          {/* Tech Column */}
          <div className="sol-col sol-col-tech">
            <div className="sol-col-head">
              <div className="sch-badge sch-badge-tech">
                <div className="sch-icon sch-icon-tech">
                  <svg width="22" height="22" viewBox="0 0 24 24" fill="none">
                    <path d="M12 3l2 5 5 2-5 2-2 5-2-5-5-2 5-2z" stroke="currentColor" strokeWidth="1.6" strokeLinejoin="round"/>
                  </svg>
                </div>
                <div>
                  <div className="sch-en">AI &amp; DX Solutions</div>
                  <div className="sch-jp">技術で、業務を変える。</div>
                </div>
              </div>
              <div className="sch-rule sch-rule-tech" />
            </div>
            <SolCard
              theme="cyan"
              num="01"
              icon={
                <svg width="22" height="22" viewBox="0 0 24 24" fill="none">
                  <rect x="4" y="6" width="16" height="14" rx="2" stroke="currentColor" strokeWidth="1.6"/>
                  <circle cx="9" cy="13" r="1.5" fill="currentColor"/>
                  <circle cx="15" cy="13" r="1.5" fill="currentColor"/>
                  <path d="M12 6V3M9 3h6" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round"/>
                </svg>
              }
              title="AI導入・業務活用支援"
              desc="ChatGPTなどの生成AIを業務に取り入れ、文書作成・資料作成・調査業務の効率化を支援します。業務フローへのAI組み込みまで伴走します。"
              tags={["文書作成の効率化", "調査業務の自動化", "業務フロー組込"]}
            />
            <SolCard
              theme="blue"
              num="02"
              icon={
                <svg width="22" height="22" viewBox="0 0 24 24" fill="none">
                  <rect x="4" y="4" width="16" height="16" rx="2" stroke="currentColor" strokeWidth="1.6"/>
                  <rect x="9" y="9" width="6" height="6" stroke="currentColor" strokeWidth="1.6"/>
                  <path d="M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round"/>
                </svg>
              }
              title="AI研修・社内定着サポート"
              desc="AIが初めての方でも安心。社員向け研修と運用ルール作りで、AI活用を社内に定着させます。"
              tags={["プロンプト研修", "管理職向けリテラシー", "運用ルール策定"]}
            />
          </div>

          {/* Support Column */}
          <div className="sol-col sol-col-touch">
            <div className="sol-col-head">
              <div className="sch-badge sch-badge-touch">
                <div className="sch-icon sch-icon-touch">
                  <svg width="22" height="22" viewBox="0 0 24 24" fill="none">
                    <path d="M9 11l-2 9 5-3 5 3-2-9M12 3l3 6 6 1-4 4 1 6-6-3-6 3 1-6-4-4 6-1z" stroke="currentColor" strokeWidth="1.6" strokeLinejoin="round"/>
                  </svg>
                </div>
                <div>
                  <div className="sch-en">Professional Support</div>
                  <div className="sch-jp">人で、事業を伸ばす。</div>
                </div>
              </div>
              <div className="sch-rule sch-rule-touch" />
            </div>
            <SolCard
              theme="amber"
              num="03"
              icon={
                <svg width="22" height="22" viewBox="0 0 24 24" fill="none">
                  <rect x="5" y="3" width="14" height="18" rx="2" stroke="currentColor" strokeWidth="1.6"/>
                  <path d="M9 8h6M9 12h6M9 16h4" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round"/>
                </svg>
              }
              title="補助金申請サポート"
              desc="補助金・助成金の選定から申請書類の作成、採択後の報告までトータルでサポートします。事業計画策定から実績報告まで一貫対応。"
              tags={["IT導入・ものづくり", "持続化補助金", "事業計画〜実績報告"]}
            />
          </div>
        </div>
      </div>
    </section>
  );
}

function SolCard({ theme, icon, title, desc, tags, num, metric }) {
  return (
    <a className={`sol-card sol-card-${theme}`} href="about.html#services">
      {num && <div className="solc-num">{num}</div>}
      <div className="solc-top">
        <div className="solc-icon">{icon}</div>
        <div className="solc-arrow">
          <svg width="20" height="20" viewBox="0 0 20 20" fill="none">
            <path d="M5 10h10M10 5l5 5-5 5" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round"/>
          </svg>
        </div>
      </div>
      <h4 className="solc-title">{title}</h4>
      <p className="solc-desc">{desc}</p>
      {metric && (
        <div className="solc-metric">
          <span className="solc-metric-val">{metric.value}</span>
          <span className="solc-metric-lbl">{metric.label}</span>
        </div>
      )}
      <div className="solc-tags">
        {tags.map((t, i) => (
          <span key={i} className="solc-tag">
            <svg width="11" height="11" viewBox="0 0 12 12" fill="none">
              <circle cx="6" cy="6" r="5.5" stroke="currentColor" strokeOpacity="0.5"/>
              <path d="M3.5 6l1.8 1.8L8.5 4.5" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" strokeLinejoin="round"/>
            </svg>
            {t}
          </span>
        ))}
      </div>
    </a>
  );
}

// ============ Cross-Sell Section ============
function CrossSell() {
  return (
    <section className="cross-sell" data-screen-label="04 CrossSell">
      <div className="cs-grid-bg" />
      <div className="cs-glow" />
      <div className="cs-inner">
        <div className="cs-left">
          <div className="cs-eyebrow">
            <span className="cs-eb-dot"/> THE KASHINOYA EDGE
          </div>
          <h2 className="cs-title">
            AI導入のコスト課題を、<br/>
            <span className="cs-amber">補助金活用</span>で解決しませんか？
          </h2>
          <p className="cs-lead">
            「技術」と「資金調達」の両方に精通した樫乃屋だからこそできる提案があります。
            IT導入補助金を活用し、実質負担を抑えて AI を導入可能です。
          </p>
          <div className="cs-actions">
            <a href="contact.html" className="cs-btn-primary">
              補助金×DX導入について相談する
              <svg width="14" height="14" viewBox="0 0 14 14" fill="none">
                <path d="M3 7h8M7 3l4 4-4 4" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round"/>
              </svg>
            </a>
          </div>
        </div>
        <div className="cs-right">
          <div className="synergy-orbit">
            <div className="so-ring so-ring-1" />
            <div className="so-ring so-ring-2" />
            <div className="so-orb so-orb-tech">
              <span className="so-orb-en">TECH</span>
              <span className="so-orb-jp">技術</span>
            </div>
            <div className="so-orb so-orb-touch">
              <span className="so-orb-en">SUPPORT</span>
              <span className="so-orb-jp">支援</span>
            </div>
            <div className="so-center">
              <div className="so-x">×</div>
            </div>
            <div className="so-particle so-particle-1" />
            <div className="so-particle so-particle-2" />
            <div className="so-particle so-particle-3" />
          </div>
        </div>
      </div>
    </section>
  );
}

// ============ News + Contact CTA ============
function NewsAndCTA() {
  const items = [
    { date: "2026.05.02", tag: "補助金活用", title: "【第18回】小規模事業者持続化補助金 実績報告ガイド" },
    { date: "2026.04.23", tag: "補助金活用", title: "【第18回】小規模事業者持続化補助金 採択後の交付申請・事業実施ガイド" },
    { date: "2026.01.06", tag: "お知らせ", title: "【2026年度予定】デジタル化・AI導入補助金とは？2025年度との違い" },
    { date: "2026.01.05", tag: "補助金活用", title: "5分で理解！持続化補助金とは？事例でポイント解説" },
  ];
  return (
    <section className="news-cta" data-screen-label="06 News">
      <div className="nc-inner">
        <div className="nc-news">
          <div className="nc-head">
            <div>
              <div className="sol-eyebrow" style={{ color: "var(--ink-mute)" }}>NEWS &amp; INSIGHTS</div>
              <h2 className="nc-title">最新の知見を、お届け。</h2>
            </div>
            <a href="articles.html" className="link-arrow">一覧を見る
              <svg width="14" height="14" viewBox="0 0 14 14" fill="none">
                <path d="M3 7h8M7 3l4 4-4 4" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" strokeLinejoin="round"/>
              </svg>
            </a>
          </div>
          <div className="nc-list">
            {items.map((n, i) => (
              <a className="nc-item" key={i} href="articles.html">
                <div className="nci-date">{n.date}</div>
                <div className="nci-tag">{n.tag}</div>
                <div className="nci-title">{n.title}</div>
                <div className="nci-arrow">
                  <svg width="14" height="14" viewBox="0 0 14 14" fill="none">
                    <path d="M3 7h8M7 3l4 4-4 4" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" strokeLinejoin="round"/>
                  </svg>
                </div>
              </a>
            ))}
          </div>
        </div>
      </div>
    </section>
  );
}

// ============ Contact Block ============
function ContactBlock() {
  return (
    <section className="contact-sec" id="contact" data-screen-label="07 Contact">
      <div className="contact-card">
        <div className="contact-bg" />
        <div className="contact-grid-bg" />
        <div className="contact-glow" />
        <div className="contact-inner">
          <div className="contact-en">CONTACT</div>
          <h2 className="contact-title">
            まずは、<em>無料相談</em>から。
          </h2>
          <p className="contact-lead">
            技術の話も、補助金の話も、まずは現状をお聞かせください。<br/>
            樫乃屋がフィットするかどうか、一緒に確かめましょう。
          </p>
          <div className="contact-actions">
            <a href="contact.html" className="contact-form-btn">
              フォームから相談する
              <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
                <path d="M3 8h10M8 3l5 5-5 5" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round"/>
              </svg>
            </a>
          </div>
          <div className="contact-bullets">
            <span>初回相談無料</span>
            <span className="bullet-sep">·</span>
            <span>3営業日以内に返信</span>
            <span className="bullet-sep">·</span>
            <span>全国オンライン対応</span>
          </div>
        </div>
      </div>
    </section>
  );
}

Object.assign(window, {
  SplitHero, ConceptBridge, SolutionsDetail, CrossSell, NewsAndCTA, ContactBlock
});
