/* ============================================================
   Quick Digital Media – style.css  v2.0
   White base + Blue accent (#1D4ED8 / #2563EB / #0EA5E9)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --blue-950: #0c1e5e;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --sky-500:  #0ea5e9;
  --sky-400:  #38bdf8;

  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white: #ffffff;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:   0 24px 64px rgba(0,0,0,.14);
  --shadow-blue: 0 8px 32px rgba(37,99,235,.22);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition:      0.25s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.45s cubic-bezier(.4,0,.2,1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-jp:   'Noto Sans JP', 'Inter', sans-serif;

  --container: 1160px;
  --header-h:  72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-jp);
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.sp-only { display: none; }

/* ---------- Container ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Section Base ---------- */
.section { padding: 100px 0; }
.section__header { text-align: center; margin-bottom: 64px; }
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 100px; padding: 4px 14px; margin-bottom: 16px;
}
.section__eyebrow--white {
  color: var(--blue-300); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2);
}
.section__eyebrow--ai {
  color: var(--blue-700); background: var(--blue-50); border-color: var(--blue-200);
  font-size: 0.82rem;
}
.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700;
  color: var(--gray-900); line-height: 1.25; margin-bottom: 16px;
}
.section__title--left { text-align: left; }
.section__desc {
  font-size: 1.05rem; color: var(--gray-500);
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-jp); font-size: 0.95rem; font-weight: 600;
  padding: 14px 28px; border-radius: 100px; transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue-600); color: var(--white); box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  background: var(--blue-700); box-shadow: 0 12px 40px rgba(37,99,235,.32); transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.25); backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); transform: translateY(-2px);
}
.btn--white {
  background: var(--white); color: var(--blue-700); box-shadow: var(--shadow-md);
}
.btn--white:hover { background: var(--blue-50); transform: translateY(-2px); }
.btn--sm { padding: 10px 22px; font-size: 0.88rem; }
.btn--full { width: 100%; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 100px; padding: 6px 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.badge--location { color: var(--gray-700); }
.badge--new { color: var(--blue-700); background: var(--blue-50); border-color: var(--blue-200); }

/* ==========================================
   HEADER
   ========================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 200;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(29,78,216,.35);
  transition: box-shadow 0.25s, transform 0.25s;
}
.logo:hover .logo__icon {
  box-shadow: 0 6px 20px rgba(29,78,216,.45);
  transform: translateY(-1px);
}
.logo--white .logo__icon {
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-sans); font-size: 0.88rem; font-weight: 700; color: var(--gray-900); letter-spacing: -0.01em; }
.logo__sub  { font-size: 0.68rem; font-weight: 500; color: var(--gray-400); letter-spacing: 0.04em; margin-top: 2px; }
.logo--white .logo__name { color: var(--white); }
.logo--white .logo__sub  { color: rgba(255,255,255,.55); }

/* Nav */
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 0.9rem; font-weight: 500; color: var(--gray-600);
  padding: 8px 14px; border-radius: 8px; transition: var(--transition);
}
.nav__link:hover, .nav__link.active:not(.nav__cta) { color: var(--blue-600); background: var(--blue-50); }
.nav__cta {
  background: var(--blue-600); color: var(--white) !important;
  border-radius: 100px; padding: 8px 20px; box-shadow: var(--shadow-blue);
}
.nav__cta:hover { background: var(--blue-700) !important; }

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--gray-200);
}
.lang-btn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1.5px solid var(--gray-200);
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.lang-btn:hover {
  border-color: var(--blue-400);
  color: var(--blue-600);
  background: var(--blue-50);
}
.lang-btn--active {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: var(--white);
}
.lang-btn--active:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: linear-gradient(170deg, #0a1628 0%, #0f2255 35%, #0e1e4a 60%, #0a1628 100%);
}

/* 背景 */
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__grid-layer {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.10) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 0%, transparent 80%);
}
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none;
}
.hero__orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  top: -150px; right: -150px;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,.12) 0%, transparent 70%);
  bottom: -50px; left: 100px;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,.10) 0%, transparent 70%);
  top: 30%; right: 30%;
}

/* Hero 2カラムレイアウト */
.hero__layout {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding-top: 80px; padding-bottom: 80px;
  min-height: calc(100vh - var(--header-h));
}
.hero__left { max-width: 560px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero__title {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem); font-weight: 700;
  line-height: 1.22; color: var(--white); margin-bottom: 24px; letter-spacing: -0.02em;
}
.hero__highlight {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__desc {
  font-size: 1rem; line-height: 1.85; color: rgba(255,255,255,.7); margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__trust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trust-item { font-size: 0.82rem; color: rgba(255,255,255,.6); }
.trust-sep  { color: rgba(255,255,255,.2); }

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.4); font-size: 0.7rem;
  font-family: var(--font-sans); letter-spacing: 0.1em;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100%{opacity:1; transform:scaleY(1)} 50%{opacity:.3; transform:scaleY(.6)}
}

/* ==========================================
   AGENT DIAGRAM (Hero右側)
   ========================================== */
.hero__right {
  position: relative; display: flex; align-items: center; justify-content: center;
}

.agent-diagram {
  position: relative;
  width: 520px; height: 520px;
  flex-shrink: 0;
}

/* SVGオーバーレイ */
.agent-diagram__svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

/* ---- AI Agent Core (中心) ---- */
.adc-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
}
.adc-core__ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(59,130,246,.35);
  pointer-events: none;
}
.adc-core__ring--1 {
  width: 100px; height: 100px;
  animation: ringPulse 3s ease-in-out infinite;
}
.adc-core__ring--2 {
  width: 130px; height: 130px;
  border-color: rgba(59,130,246,.18);
  animation: ringPulse 3s ease-in-out infinite 0.8s;
}
@keyframes ringPulse {
  0%,100%{ transform:scale(1); opacity:1; }
  50%    { transform:scale(1.06); opacity:.5; }
}

.adc-core__inner {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8, #0ea5e9);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  box-shadow: 0 0 40px rgba(37,99,235,.5), 0 0 80px rgba(37,99,235,.2), inset 0 1px 0 rgba(255,255,255,.2);
}
.adc-core__icon { line-height: 0; }
.adc-core__name {
  font-family: var(--font-sans); font-size: 0.65rem; font-weight: 700;
  color: white; letter-spacing: 0.08em;
}
.adc-core__status {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.6rem; color: rgba(255,255,255,.8);
}
.adc-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ---- Agent Nodes ---- */
.adc-node {
  position: absolute; z-index: 5;
  background: rgba(15,33,85,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  min-width: 160px;
  transition: border-color 0.3s, box-shadow 0.3s;
  animation: nodeFloat 4s ease-in-out infinite;
}
.adc-node:hover {
  border-color: rgba(59,130,246,.6);
  box-shadow: 0 12px 40px rgba(37,99,235,.3), 0 0 0 1px rgba(59,130,246,.2);
}
/* ノード配置 */
.adc-node--top         { top: 12px;  left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.adc-node--top-right   { top: 88px;  right: 0;  animation-delay: 0.5s; }
.adc-node--bottom-right{ bottom: 88px; right: 0; animation-delay: 1.0s; }
.adc-node--bottom      { bottom: 12px; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.adc-node--bottom-left { bottom: 88px; left: 0; animation-delay: 2.0s; }
.adc-node--top-left    { top: 88px; left: 0; animation-delay: 2.5s; }

@keyframes nodeFloat {
  0%,100%{ transform: translateX(-50%) translateY(0); }
  50%    { transform: translateX(-50%) translateY(-5px); }
}
.adc-node--top-right,
.adc-node--bottom-right,
.adc-node--bottom-left,
.adc-node--top-left {
  animation-name: nodeFloatSide;
}
@keyframes nodeFloatSide {
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-5px); }
}

.adc-node__icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.adc-node__text { display: flex; flex-direction: column; gap: 2px; }
.adc-node__label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,.95); line-height: 1.2; }
.adc-node__sub   { font-size: 0.65rem; color: rgba(255,255,255,.5); }

.adc-node__badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 0.6rem; font-weight: 600;
  padding: 3px 8px; border-radius: 100px;
}
.adc-node__badge--run   { background: rgba(34,197,94,.15);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.adc-node__badge--think { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); animation: thinkPulse 1.5s ease-in-out infinite; }
.adc-node__badge--done  { background: rgba(99,102,241,.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,.3); }
.adc-node__badge--queue { background: rgba(156,163,175,.1); color: #9ca3af; border: 1px solid rgba(156,163,175,.2); }
@keyframes thinkPulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* SVG ライン */
.svg-line { animation: lineDash 2s linear infinite; }
@keyframes lineDash {
  from{ stroke-dashoffset: 18; } to{ stroke-dashoffset: 0; }
}

/* ---- Activity Log ---- */
.adc-log {
  position: absolute;
  bottom: -10px; right: -10px;
  z-index: 20;
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: var(--radius-md);
  width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  overflow: hidden;
}
.adc-log__header {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: rgba(37,99,235,.12);
  border-bottom: 1px solid rgba(59,130,246,.15);
  font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,.8);
}
.adc-log__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 6px #4ade80;
  animation: blink 1.8s ease-in-out infinite;
}
.adc-log__live {
  margin-left: auto;
  font-size: 0.6rem; font-weight: 700;
  color: #4ade80; letter-spacing: 0.08em;
}
.adc-log__body { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.adc-log-item {
  font-size: 0.68rem; line-height: 1.4;
  padding: 4px 8px; border-radius: 6px;
}
.adc-log-item--done  { color: #86efac; background: rgba(34,197,94,.08); }
.adc-log-item--run   { color: #93c5fd; background: rgba(59,130,246,.1); animation: logRunPulse 1.5s ease-in-out infinite; }
.adc-log-item--queue { color: rgba(255,255,255,.4); }
@keyframes logRunPulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ==========================================
   STATS
   ========================================== */
.stats { background: var(--gray-950); padding: 60px 0; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stats__item {
  padding: 40px 24px; background: var(--gray-950);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.stats__num {
  font-family: var(--font-sans); font-size: 3rem; font-weight: 800; color: var(--white); line-height: 1;
}
.stats__unit { font-size: 1rem; font-weight: 600; color: var(--blue-400); margin: 6px 0 4px; }
.stats__label { font-size: 0.82rem; color: var(--gray-500); }

/* ==========================================
   SERVICES (統合版) – AI主軸 4カテゴリ
   ========================================== */
.services { background: var(--white); }
.services .section__desc br { display: none; }
@media (min-width: 768px) { .services .section__desc br { display: inline; } }

/* ==========================================
   CATEGORY BLOCK (AI Development)
   ========================================== */
.svc-category {
  background: linear-gradient(160deg, #07102a 0%, #0c1e5e 45%, #0a1a4a 100%);
  border-radius: var(--radius-xl);
  padding: 48px 48px 40px;
  margin-bottom: 32px;
  position: relative; overflow: hidden;
}
/* 背景装飾 */
.svc-category::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.2) 0%, transparent 70%);
  pointer-events: none;
}

/* ヘッダー部（番号 + テキスト + テックタグ 横並び） */
.svc-category__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px; align-items: start;
  margin-bottom: 40px;
}
.svc-category__num {
  font-family: var(--font-sans);
  font-size: 4rem; font-weight: 800;
  color: rgba(255,255,255,.08);
  line-height: 1; letter-spacing: -0.04em;
  flex-shrink: 0; align-self: center;
}
.svc-category__meta { display: flex; flex-direction: column; gap: 8px; }
.svc-category__label {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-300);
}
.svc-category__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; color: var(--white);
  line-height: 1.2;
}
.svc-category__desc {
  font-size: 0.95rem; line-height: 1.8; color: rgba(255,255,255,.7);
}
.svc-category__tech {
  display: flex; flex-wrap: wrap; gap: 6px; align-self: center;
  max-width: 220px; justify-content: flex-end;
}
.svc-category__tech span {
  font-size: 0.7rem; font-weight: 600;
  background: rgba(59,130,246,.2); color: var(--blue-200);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 100px; padding: 3px 10px;
}

/* ==========================================
   AI 3メニュー カード
   ========================================== */
.ai-menu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 36px;
}
.ai-menu-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.ai-menu-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.ai-menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
}
.ai-menu-card--bot {
  background: rgba(37,99,235,.12);
}
.ai-menu-card--bot::before { background: linear-gradient(90deg, #3b82f6, #0ea5e9); }

.ai-menu-card--rpa {
  background: rgba(14,165,233,.1);
}
.ai-menu-card--rpa::before { background: linear-gradient(90deg, #0ea5e9, #06b6d4); }

.ai-menu-card--data {
  background: rgba(99,102,241,.1);
}
.ai-menu-card--data::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }

.ai-menu-card__icon {
  width: 40px; height: 40px; flex-shrink: 0;
}
.ai-menu-card__num {
  font-family: var(--font-sans);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-300);
}
.ai-menu-card__title {
  font-size: 1.08rem; font-weight: 700; color: var(--white); line-height: 1.3;
}
.ai-menu-card__desc {
  font-size: 0.88rem; line-height: 1.75; color: rgba(255,255,255,.75); flex-grow: 1;
}
.ai-menu-card__points {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
}
.ai-menu-card__points li {
  font-size: 0.82rem; color: rgba(255,255,255,.85);
  padding-left: 16px; position: relative; line-height: 1.5;
}
.ai-menu-card__points li::before {
  content: '✓';
  position: absolute; left: 0;
  color: #4ade80; font-weight: 700; font-size: 0.78rem;
}
.ai-menu-card__tag {
  font-size: 0.7rem; font-weight: 500;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 5px 10px;
  align-self: flex-start;
}

/* CTA */
.svc-category__cta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.svc-category__cta-note {
  font-size: 0.82rem; color: rgba(255,255,255,.5);
}

/* ==========================================
   CATEGORY 2〜4 (横並び3カラム)
   ========================================== */
.svc-other-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-other-card {
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
}
.svc-other-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* カラーヘッダー */
.svc-other-card__header {
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.svc-other-card__num {
  font-family: var(--font-sans);
  font-size: 2.2rem; font-weight: 800;
  color: rgba(255,255,255,.25); line-height: 1;
}
.svc-other-card__icon { opacity: 0.9; }

/* ボディ */
.svc-other-card__body {
  padding: 24px 28px; display: flex; flex-direction: column; gap: 12px;
}
.svc-other-card__category {
  font-family: var(--font-sans);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-500);
}
.svc-other-card__title {
  font-size: 1rem; font-weight: 700; color: var(--gray-900); line-height: 1.4;
}
.svc-other-card__desc {
  font-size: 0.875rem; line-height: 1.75; color: var(--gray-600);
}
.svc-other-card__list {
  list-style: none; display: flex; flex-direction: column; gap: 5px;
}
.svc-other-card__list li {
  font-size: 0.82rem; color: var(--gray-700);
  padding-left: 14px; position: relative; line-height: 1.5;
}
.svc-other-card__list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--blue-500); font-size: 0.75rem;
}
.svc-other-card__tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px;
}
.svc-other-card__tags span {
  font-size: 0.68rem; font-weight: 500;
  background: var(--blue-50); color: var(--blue-700);
  border: 1px solid var(--blue-100);
  border-radius: 100px; padding: 2px 9px;
}

/* ==========================================
   DEVELOPMENT FLOW
   ========================================== */
.flow { background: var(--gray-50); }
.flow__steps {
  display: flex; align-items: flex-start; gap: 0;
}
.flow__step {
  flex: 1; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 32px 24px; position: relative;
  text-align: center; transition: var(--transition);
}
.flow__step:hover {
  border-color: var(--blue-200); box-shadow: var(--shadow-md); transform: translateY(-4px);
}
.flow__num {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 800;
  color: var(--blue-400); letter-spacing: 0.1em; margin-bottom: 12px;
}
.flow__icon { font-size: 2rem; margin-bottom: 14px; }
.flow__step h4 { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.flow__step p  { font-size: 0.83rem; line-height: 1.65; color: var(--gray-500); }
.flow__arrow {
  font-size: 1.4rem; color: var(--blue-300); align-self: center;
  padding: 0 8px; flex-shrink: 0;
}

/* ==========================================
   WHY US
   ========================================== */
.whyus { background: var(--white); }
.whyus__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.whyus__list  { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.whyus__item  { display: flex; gap: 16px; align-items: flex-start; }
.whyus__icon  {
  font-size: 1.5rem; width: 46px; height: 46px; flex-shrink: 0;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
}
.whyus__item h4 { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 5px; }
.whyus__item p  { font-size: 0.85rem; line-height: 1.7; color: var(--gray-500); }
/* WhyUs Visual */
.whyus__visual { position: relative; padding-bottom: 40px; }
.whyus__map-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
}
.whyus__map-header {
  display: flex; align-items: center; gap: 8px; padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.85rem; font-weight: 600; color: var(--gray-700);
}
.whyus__map-body { background: #f0f7ff; }
.whyus__map-svg { width: 100%; display: block; }
.whyus__map-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid var(--gray-100); }
.tag { font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 100px; }
.tag--blue   { background: var(--blue-50);  color: var(--blue-700); border: 1px solid var(--blue-100); }
.tag--sky    { background: #f0f9ff; color: var(--sky-500); border: 1px solid #bae6fd; }
.tag--outline{ background: var(--gray-50); color: var(--gray-600); border: 1px solid var(--gray-200); }
.whyus__founded-card {
  position: absolute; bottom: -10px; right: -10px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: white; border-radius: var(--radius-lg); padding: 20px 24px;
  text-align: center; box-shadow: var(--shadow-blue);
}
.whyus__founded-year { font-family: var(--font-sans); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.whyus__founded-text { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,.8); margin-top: 4px; }

/* ==========================================
   WORKS
   ========================================== */
.works { background: var(--gray-50); }
.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.work-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.work-card__img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.work-card__img--ai {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}
.work-card__img--ai .work-card__inner-icon { filter: drop-shadow(0 0 12px rgba(96,165,250,.6)); }
.work-card__img-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(37,99,235,.25) 0%, transparent 70%);
}
.work-card__img--web    { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.work-card__img--ecom   { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.work-card__img--app    { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.work-card__img--map    { background: linear-gradient(135deg, #fdf4ff, #f3e8ff); }
.work-card__img--reserve{ background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.work-card__inner-icon { font-size: 3rem; position: relative; z-index: 1; }
.work-card__body { padding: 22px; }
.work-card__tag {
  font-size: 0.72rem; font-weight: 600; color: var(--blue-600);
  background: var(--blue-50); border-radius: 100px; padding: 3px 10px;
  border: 1px solid var(--blue-100);
}
.work-card__tag--ai {
  color: white; background: var(--blue-700); border-color: var(--blue-600);
}
.work-card__title { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin: 10px 0 7px; }
.work-card__desc  { font-size: 0.83rem; line-height: 1.65; color: var(--gray-500); }
.work-card--cta {
  background: linear-gradient(145deg, var(--blue-800), var(--blue-600));
  border: none; display: flex; align-items: center; justify-content: center;
}
.work-card--cta:hover { transform: translateY(-4px); box-shadow: var(--shadow-blue); }
.work-card__cta-content {
  text-align: center; padding: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.work-card__cta-icon { font-size: 2.5rem; }
.work-card--cta h3 { font-size: 1rem; font-weight: 700; color: var(--white); line-height: 1.5; }

/* ==========================================
   ABOUT
   ========================================== */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about__table { width: 100%; border-collapse: collapse; }
.about__table tr { border-bottom: 1px solid var(--gray-200); }
.about__table th {
  text-align: left; padding: 18px 0; font-size: 0.83rem; font-weight: 600;
  color: var(--gray-500); width: 120px; vertical-align: top; padding-right: 16px;
}
.about__table td { padding: 18px 0; font-size: 0.92rem; line-height: 1.6; color: var(--gray-700); }
.about__table td a { color: var(--blue-600); }
.about__table td a:hover { text-decoration: underline; }
.about__table td small { font-size: 0.8rem; color: var(--gray-400); }
/* About Map */
.about__map-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md);
}
.about__map-header {
  display: flex; align-items: center; gap: 8px; padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.85rem; font-weight: 600; color: var(--gray-700);
}
.about__map-placeholder {
  height: 220px; background: var(--blue-50); position: relative; overflow: hidden;
}
.street { position: absolute; background: var(--blue-200); opacity: .5; }
.street--h { height: 2px; left: 0; right: 0; }
.street--v { width: 2px; top: 0; bottom: 0; }
.street--h1 { top: 30%; }
.street--h2 { top: 55%; background: var(--blue-300); opacity: .7; height: 3px; }
.street--h3 { top: 75%; }
.street--v1 { left: 25%; }
.street--v2 { left: 55%; background: var(--blue-300); opacity: .7; width: 3px; }
.street--v3 { left: 78%; }
.about__map-pin { position: absolute; top: 50%; left: 53%; transform: translate(-50%,-50%); }
.pin__pulse {
  width: 40px; height: 40px; background: rgba(37,99,235,.15); border-radius: 50%;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: pulse 2s ease-in-out infinite;
}
.pin__dot {
  width: 16px; height: 16px; background: var(--blue-600);
  border: 3px solid white; border-radius: 50%; position: relative; z-index: 1;
  box-shadow: 0 2px 8px rgba(37,99,235,.4);
}
@keyframes pulse {
  0%,100%{transform:translate(-50%,-50%) scale(1); opacity:.5}
  50%{transform:translate(-50%,-50%) scale(1.6); opacity:0}
}
.about__map-address {
  padding: 16px 20px; font-size: 0.85rem; line-height: 1.6; color: var(--gray-600);
  border-top: 1px solid var(--gray-100);
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
  background: linear-gradient(160deg, var(--blue-950) 0%, var(--blue-800) 100%);
  position: relative; overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.contact__inner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.contact__title {
  font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--white); margin-bottom: 20px; line-height: 1.3;
}
.contact__desc { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,.65); margin-bottom: 40px; }
.contact__info { display: flex; flex-direction: column; gap: 20px; }
.contact__info-item { display: flex; align-items: flex-start; gap: 14px; }
.contact__info-icon {
  font-size: 1.3rem; width: 44px; height: 44px;
  background: rgba(255,255,255,.1); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact__info-label {
  font-size: 0.72rem; font-weight: 600; color: var(--blue-300);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;
}
.contact__info-val { font-size: 0.92rem; color: rgba(255,255,255,.8); }
a.contact__info-val:hover { color: white; text-decoration: underline; }
/* Form */
.contact__form {
  background: var(--white); border-radius: var(--radius-xl); padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 18px;
}
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 0.83rem; font-weight: 600; color: var(--gray-700); }
.form__required { color: var(--blue-500); }
.form__input,
.form__textarea {
  font-family: var(--font-jp); font-size: 0.9rem; color: var(--gray-800);
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 11px 16px; transition: var(--transition); resize: vertical;
}
.form__input:focus, .form__textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form__note { font-size: 0.75rem; color: var(--gray-400); text-align: center; }

/* ==========================================
   FOOTER
   ========================================== */
.footer { background: var(--gray-950); padding: 64px 0 0; }
.footer__inner {
  display: flex; gap: 80px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer__brand { flex: 1.5; }
.footer__tagline { margin-top: 16px; font-size: 0.88rem; line-height: 1.7; color: var(--gray-500); max-width: 280px; }
.footer__nav { display: flex; gap: 60px; flex: 1; justify-content: flex-end; }
.footer__nav-group h4 {
  font-size: 0.78rem; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer__nav-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav-group a { font-size: 0.88rem; color: var(--gray-400); transition: var(--transition); }
.footer__nav-group a:hover { color: var(--white); }
.footer__bottom {
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--gray-600);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeUp   { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeLeft { from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:translateX(0)} }
.animate-fade-up   { opacity:0; animation: fadeUp   0.7s ease forwards; }
.animate-fade-left { opacity:0; animation: fadeLeft 0.7s ease forwards; }
.animate-fade-up.is-hidden,
.animate-fade-left.is-hidden { opacity:0; animation:none; }
.animate-fade-up.is-visible  { animation: fadeUp   0.7s ease forwards; }
.animate-fade-left.is-visible{ animation: fadeLeft 0.7s ease forwards; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1100px) {
  .float-card--chat,
  .float-card--code  { right: 20px; }
  .float-card--badge,
  .float-card--tech  { left: 20px; }
  .services__featured{ grid-template-columns: 1fr; }
  .services__grid    { grid-template-columns: repeat(2,1fr); }
  .works__grid       { grid-template-columns: repeat(2,1fr); }
  .stats__grid       { grid-template-columns: repeat(2,1fr); }
  .ai-dev__inner     { gap: 48px; }
  .whyus__inner      { gap: 48px; }
  .about__grid       { gap: 40px; }
  .contact__inner    { gap: 48px; }
  .footer__inner     { gap: 48px; }
}

@media (max-width: 900px) {
  .flow__steps  { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .flow__arrow  { display: none; }
  .flow__step   { min-width: 200px; flex: 1; }
  /* Services 統合版 レスポンシブ */
  .svc-category__head { grid-template-columns: auto 1fr; gap: 20px; }
  .svc-category__tech { grid-column: 1 / -1; max-width: 100%; justify-content: flex-start; }
  .ai-menu-grid       { grid-template-columns: 1fr; }
  .svc-other-grid     { grid-template-columns: 1fr; }
  .whyus__inner { grid-template-columns: 1fr; }
  .whyus__founded-card { position: static; margin-top: 16px; display: inline-block; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 72px 0; }
  .sp-only { display: inline; }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg); padding: 20px 24px;
    transform: translateY(-110%); transition: transform var(--transition); z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { padding: 12px 16px; font-size: 1rem; }
  .nav__cta  { text-align: center; margin-top: 8px; }
  .hamburger { display: flex; }
  .lang-switcher {
    border-left: none;
    border-top: 1px solid var(--gray-200);
    margin-left: 0;
    padding-left: 0;
    padding-top: 12px;
    margin-top: 4px;
    justify-content: center;
  }

  /* Hero レスポンシブ */
  .hero__layout {
    grid-template-columns: 1fr;
    padding-top: 40px; padding-bottom: 100px;
    gap: 40px;
  }
  .hero__left { max-width: 100%; }
  .hero__right { justify-content: center; }
  .agent-diagram { width: 360px; height: 360px; }
  .adc-core__inner { width: 70px; height: 70px; }
  .adc-core__ring--1 { width: 80px; height: 80px; }
  .adc-core__ring--2 { width: 105px; height: 105px; }
  .adc-core__icon svg { width: 28px; height: 28px; }
  .adc-node { min-width: 130px; padding: 8px 10px; gap: 7px; }
  .adc-node__icon { width: 28px; height: 28px; border-radius: 8px; }
  .adc-node__icon svg { width: 15px; height: 15px; }
  .adc-node__label { font-size: 0.72rem; }
  .adc-node__sub { display: none; }
  .adc-node__badge { font-size: 0.55rem; padding: 2px 6px; }
  .adc-log { width: 160px; }
  .adc-log__header, .adc-log__body { padding: 6px 8px; }
  .adc-log-item { font-size: 0.62rem; }
  .hero__title { font-size: 2rem; }
  .hero__desc  { font-size: 0.95rem; }
  .hero__actions { flex-direction: column; }
  .btn { justify-content: center; }

  .services__featured { grid-template-columns: 1fr; }
  .services__grid     { grid-template-columns: 1fr 1fr; }
  .services__cta      { flex-direction: column; text-align: center; }
  .works__grid       { grid-template-columns: 1fr; }

  .svc-category        { padding: 32px 24px; }
  .svc-category__head  { grid-template-columns: 1fr; gap: 16px; }
  .svc-category__num   { font-size: 2.5rem; }
  .svc-category__tech  { max-width: 100%; justify-content: flex-start; }
  .ai-menu-grid        { grid-template-columns: 1fr; }
  .svc-other-grid      { grid-template-columns: 1fr; }  .about__grid       { grid-template-columns: 1fr; gap: 32px; }
  .contact__inner    { grid-template-columns: 1fr; gap: 40px; }
  .contact__form     { padding: 28px 20px; }
  .footer__inner     { flex-direction: column; gap: 40px; }
  .footer__nav       { flex-direction: column; gap: 32px; justify-content: flex-start; }
  .footer__bottom    { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 1.6rem; }
  .agent-diagram { width: 300px; height: 300px; }
  .adc-node--top-right, .adc-node--top-left,
  .adc-node--bottom-right, .adc-node--bottom-left { min-width: 110px; }
  .adc-log { display: none; }
  .section__title { font-size: 1.6rem; }
  .ai-menu-grid { gap: 16px; }
  .svc-category { padding: 24px 20px; }
    .contact__form { padding: 24px 16px; }
  .float-card--chat, .float-card--tech { display: none; }
}
