/* Asia/Tokyo, 2025-10-10 09:16(UTC+09:00) - css/gokeyakunonagare.css */
.flow-detail {
  background: #fff;
  padding: 1rem 0 3rem;
}

.flow-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem 1.2rem;
  border: 2px solid #bcd8ef;
  border-radius: 24px;
  padding: 1.2rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  margin: 0 0 1.6rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
}
.flow-card.in {
  opacity: 1;
  transform: none;
}
.flow-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .8rem;
  background: #e8f5ff;
  border-left: 6px solid var(--accent-green,#0075c9);
  border-radius: 8px;
  padding: .6rem .8rem;
}
.flow-head img {
  width: 40px;
  height: 40px;
}
.flow-head h3 {
  font-size: 2.2rem;
  margin: 0;
}
.flow-card p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .flow-card {
    grid-template-columns: 1fr;
    gap: .8rem;
    border-radius: 12px;    
  }
  .flow-head img {
    width: 36px;
    height: 36px;
  }
  .flow-head h3 {
    font-size: 2rem;
  }
}

@media (max-width: 600px){
  .floating-cta{ --cta-halo: 0; }
}

#flow-detail .flow-card {
  position: relative;
}

#flow-detail .flow-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  /* Align with common.css rem scale (1rem = 10px) */
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: #6B7280;
}

#flow-detail .flow-card:nth-of-type(1)::before { content: "①"; }
#flow-detail .flow-card:nth-of-type(2)::before { content: "②"; }
#flow-detail .flow-card:nth-of-type(3)::before { content: "③"; }
#flow-detail .flow-card:nth-of-type(4)::before { content: "④"; }
#flow-detail .flow-card::before { display: none; content: none; }

#flow-detail .flow-head { display: inline-flex; align-items: center; gap: 12px; }
#flow-detail .step-no { display: inline-block; font-size: 2.8rem; line-height: 1; font-weight: 700; }

#flow-detail .flow-head svg { width: 40px; height: 40px; flex: 0 0 auto; }
@media (max-width: 600px){
  #flow-detail .flow-head svg { width: 36px; height: 36px; }
}

#flow-detail .flow-body {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
#flow-detail .flow-body img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  flex: 0 0 auto;
}

/* モバイル：画像の右＆下に本文が回り込む */
@media (max-width: 600px){
  #flow-detail .flow-body { display: flow-root; gap: .8rem; }
  #flow-detail .flow-body img {
    width: 96px;
    float: left;
    margin: 0 .8rem 0.2rem 0;
  }
}

/* カード間の下向き三角（デコレーション） */
#flow-detail .flow-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: .25rem 0 1.1rem;
}
#flow-detail .flow-arrow svg {
  width: 28px;
  height: 16px;
  fill: #bcd8ef;
}
@media (max-width: 600px){
  #flow-detail .flow-arrow svg {
    width: 24px;
    height: 14px;
  }
}
