

#workflow {
  position: relative;
  padding: 4rem 2rem;
  overflow-x: hidden;
  background: #fcfcfc;
  z-index: var(--z-bg);

}

.workflow-bg-wrapper {
  position: relative;

}




/* --- コンテナ --- */
.workflow-container {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  z-index: var(--z-base);
  position: relative;  
}

/* --- 各ステップ --- */
.step-container {
  background: #fff;
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  opacity: 1;
  transform: scale(0.8) translateY(80px);
  transition: all 1.5s ease-out;
  z-index: var(--z-base);
  position: relative;
}

.step-container.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* --- アイコン画像エリア --- */
.workflow-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* --- テキストコンテンツ --- */
.workflow-content h3 {
  font-size: 1.3em;
  margin-bottom: 6px;
}

.workflow-content p {
  font-size: 0.95em;
  margin: 4px 0;
}

.workflow-note {
  font-size: 0.85em;
  color: #666;
}

/* --- セクションタイトル調整 --- */
#workflow .section-title {
  margin-bottom: 80px;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
  .step-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .workflow-icon img {
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 768px) {
  .step-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 0px;
    border: 1px solid #00aaff;
    box-shadow: none;
  }

  .workflow-icon img {
    margin-bottom: 12px;
  }
}

.step-arrow {
  display: block;
  margin: 40px auto 16px;
  width: 50px;
  height: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.8s; /* ← ステップより遅らせる */
  z-index: var(--z-bg);
  animation: arrowDownFlow 1.5s ease-in-out infinite;
  pointer-events: none;
}

.step-container + .step-arrow.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes arrowDownFlow {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(30px);
    opacity: 0;
  }
}

/* デフォルト：PCでは改行しない */
.workflow-description {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* スマホだけ \n を改行として扱う */
@media screen and (max-width: 600px) {
  .workflow-description {
    white-space: pre-line;
  }
}

.animate-title {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.animate-title.title-visible {
  opacity: 1;
  transform: translateY(0);
}


