/* =========================================================================
   AI Native Law Firm — Visualization
   弁護士 × AI Agent = AI Native Law Firm の数式表示
   ========================================================================= */

.ainv {
  margin-top: 56px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 24px 70px -54px rgba(17, 19, 18, 0.36);
}

.viz-eq {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  min-height: 360px;
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(17,19,18,0.04) 47px 48px),
    #FAF9F4;
  position: relative;
}
.viz-eq__row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  flex-wrap: wrap;
  justify-content: center;
}
.viz-eq__term {
  position: relative;
  padding: 22px 26px;
  min-width: 150px;
  text-align: center;
  background: transparent;
  animation: vizEqPop 6s ease-out infinite;
}
.viz-eq__term--a { animation-delay: 0.2s; }
.viz-eq__term--b { animation-delay: 1.0s; }
.viz-eq__term--c { animation-delay: 1.8s; }
.viz-eq__term strong {
  display: block;
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  color: #111312;
}
.viz-eq__term em {
  display: block;
  margin-top: 6px;
  font-style: italic;
  font-family: "Times New Roman", serif;
  font-size: 13px;
  color: rgba(17,19,18,0.55);
}
.viz-eq__term--c strong { color: #C84A5F; white-space: nowrap; }
.viz-eq__underline {
  display: block;
  height: 6px;
  margin: 10px auto 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(58,57,53,0.72) 12%, rgba(58,57,53,0.72) 88%, transparent);
  border-radius: 3px;
  transform: skewX(-8deg);
  animation: vizEqHighlight 6s ease-out infinite;
  animation-delay: 2.4s;
  transform-origin: left;
}
.viz-eq__op {
  font-family: "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  color: rgba(17,19,18,0.65);
  line-height: 1;
  animation: vizEqOp 6s ease-out infinite;
}
.viz-eq__op--mul { animation-delay: 0.6s; }
.viz-eq__op--eq  { animation-delay: 1.4s; color: #C84A5F; }

@keyframes vizEqPop {
  0%, 8%   { opacity: 0; transform: translateY(8px); }
  16%, 95% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; }
}
@keyframes vizEqOp {
  0%, 8%   { opacity: 0; transform: scale(0.7); }
  16%, 95% { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; }
}
@keyframes vizEqHighlight {
  0%, 38%  { transform: scaleX(0) skewX(-8deg); opacity: 0; }
  44%      { opacity: 1; }
  60%, 95% { transform: scaleX(1) skewX(-8deg); opacity: 1; }
  100%     { opacity: 0; }
}
