/* ===================================================
   ヒーローセクション - 横長カード（視線が流れる）
   縦長化を防ぎ、LP向きの横長デザインを実現
   =================================================== */

/* 3カードグリッド */
.dx-flow-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 横長カード（縦積みをやめる） */
.dx-flow-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 20px 18px;
  display: flex; /* 横並びの決定打 */
  align-items: center; /* 縦方向中央揃え */
  gap: 14px;
  min-height: 96px; /* 横長の決定打 */
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

/* ホバー効果 */
.dx-flow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), 0 6px 16px rgba(15, 23, 42, 0.06);
  border-color: rgba(37, 99, 235, 0.3);
}

/* 背景グラデーション（微妙な差別化） */
.dx-flow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(96, 165, 250, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.dx-flow-card:hover::before {
  opacity: 1;
}

/* アイコン */
.dx-flow-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  flex-shrink: 0; /* 縮まない */
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.dx-flow-card:hover .dx-flow-icon {
  transform: scale(1.08);
}

/* 3枚目のカード（成長DX）だけ回転ループ */
.dx-flow-icon-rotate {
  animation: icon-rotate-loop 8s linear infinite;
}

@keyframes icon-rotate-loop {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* カード1のアイコン色（ブルー） */
.dx-flow-card:nth-child(1) .dx-flow-icon {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

/* カード2のアイコン色（エメラルド） */
.dx-flow-card:nth-child(2) .dx-flow-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
}

/* カード3のアイコン色（シアン・回転） */
.dx-flow-card:nth-child(3) .dx-flow-icon {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

/* テキスト */
.dx-flow-text {
  margin: 0;
  font-size: 14px; /* 抑える */
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}

.dx-flow-text br {
  display: block;
}

/* フェードアップアニメーション（左→右に順次表示） */
@keyframes dx-flow-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dx-flow-card {
  animation: dx-flow-fade-up 0.6s ease-out forwards;
  opacity: 0;
}

.dx-flow-card:nth-child(1) {
  animation-delay: 0.2s;
}

.dx-flow-card:nth-child(2) {
  animation-delay: 0.3s;
}

.dx-flow-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* レスポンシブ：タブレット以下 */
@media (max-width: 900px) {
  .dx-flow-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 600px;
  }

  .dx-flow-card {
    padding: 18px 16px;
    min-height: 88px;
  }

  .dx-flow-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .dx-flow-text {
    font-size: 13px;
  }
}

/* スマホ：さらに小さく */
@media (max-width: 480px) {
  .dx-flow-cards {
    gap: 12px;
    padding: 0 16px;
  }

  .dx-flow-card {
    padding: 16px 14px;
    min-height: 80px;
  }

  .dx-flow-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .dx-flow-text {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* 既存の .hero-features を上書き（互換性維持） */
.hero-features {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.hero-feature {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 18px !important;
  padding: 20px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 96px !important;
  flex-direction: row !important; /* 縦積みを強制的に横並びに */
}

.hero-feature h3 {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

.hero-feature .icon-badge {
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* 印刷・エクスポート最適化 */
@media print {
  .dx-flow-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    page-break-inside: avoid;
  }

  .dx-flow-icon-rotate {
    animation: none;
  }
}
