/**
 * ANEXIS flow / steps cards
 * Used by: inventory.html（はじめ方）, index.html（導入までの流れ）
 */
.anexis-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.anexis-steps--5 {
  grid-template-columns: repeat(5, 1fr);
}
.anexis-step {
  background: #fff;
  border: 1px solid var(--anexis-step-line, #e5e7eb);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.anexis-step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--anexis-step-num, #4A7079);
  border: 1px solid var(--anexis-step-accent, #63959E);
  border-radius: 4px;
  padding: 1px 7px;
  align-self: flex-start;
  line-height: 1.4;
}
.anexis-step h3,
.anexis-step-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--anexis-step-ink, #1f2933);
  line-height: 1.45;
}
.anexis-step p,
.anexis-step-body {
  font-size: 14.5px;
  color: var(--anexis-step-ink-2, #4b5563);
  margin: 0;
  line-height: 1.7;
}
.anexis-step-illust {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--anexis-step-line, #e5e7eb);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.anexis-step-illust img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.anexis-step-inline-link {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--anexis-step-accent, #63959E);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.anexis-step-inline-link:hover {
  opacity: 0.85;
}

/* inventory: 4列 → 2列 → 1列 */
@media (max-width: 900px) {
  .anexis-steps:not(.anexis-steps--5) {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* index: 5列 → 3列（3+2）→ 1列 */
@media (max-width: 1024px) {
  .anexis-steps--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .anexis-steps,
  .anexis-steps--5 {
    grid-template-columns: 1fr;
  }
}
