/* ===== FLOW セクション（トップページ・各ページ共通） ===== */
.flow-section {
  background: var(--orange-pale);
  position: relative;
  overflow: hidden;
}
.flow-section::before {
  content: 'FLOW';
  position: absolute;
  right: -8px; bottom: -16px;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(68px, 16vw, 160px);
  font-weight: 700;
  color: rgba(255,255,255,0.10);
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* ===== ステップ一覧 ===== */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

/* ===== 各ステップ ===== */
.flow-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 20px;
  align-items: stretch;
  animation: fadeUp 0.6s ease both;
}
.flow-step:nth-child(1) { animation-delay: 0.15s; }
.flow-step:nth-child(2) { animation-delay: 0.25s; }
.flow-step:nth-child(3) { animation-delay: 0.35s; }
.flow-step:nth-child(4) { animation-delay: 0.45s; }
.flow-step:nth-child(5) { animation-delay: 0.55s; }

/* ===== 左：番号コラム ===== */
.flow-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px; /* STEPラベル分の余白 */
}

.flow-num {
  width: 52px;
  height: 52px;
  border-radius: 6px;           /* 角丸正方形 */
  background: #FF9900;           /* 単色 */
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 16px rgba(255,153,0,0.28);
}
/* STEP ラベル */
.flow-num::before {
  content: 'STEP';
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange-medium);
  white-space: nowrap;
}

/* 縦コネクター（点線） */
.flow-step:not(:last-child) .flow-num-col::after {
  content: '';
  flex: 1;
  width: 2px;
  min-height: 20px;
  margin-top: 6px;
  background: repeating-linear-gradient(
    to bottom,
    #FF9900 0px, #FF9900 5px,
    transparent 5px, transparent 12px
  );
  opacity: 0.30;
  border-radius: 2px;
}

/* ===== 右：コンテンツカード ===== */
.flow-content-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 12px;
  border-left: 3px solid #FF9900;
  box-shadow: 0 2px 10px rgba(122,41,0,0.07);
  transition: transform .2s, box-shadow .2s;
}
.flow-content-wrap:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 18px rgba(122,41,0,0.13);
}

.flow-content .flow-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--orange-deep);
  margin-bottom: 4px;
  line-height: 1.4;
}
.flow-content .flow-desc {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.85;
}

/* ===== FLOW ページリンクボタン ===== */
.flow-section .section-more {
  justify-content: flex-start;
  margin-top: 32px;
}
.btn-flow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--orange-deep);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--orange-medium);
  transition: gap 0.3s, color 0.2s;
}
.btn-flow:hover { color: var(--orange-medium); gap: 16px; }
.btn-flow::after {
  content: '→';
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px; font-weight: 300;
  color: var(--orange-medium);
  transition: transform 0.3s;
}
.btn-flow:hover::after { transform: translateX(4px); }

/* ===== 旧HTML構造との互換（.flow-num-col なしの場合） ===== */
/* 旧: <div class="flow-step"><div class="flow-num">01</div><div class="flow-content">... */
.flow-step:not(:has(.flow-num-col)) {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 0;
  margin-bottom: 12px;
}
.flow-step:not(:has(.flow-num-col)) > .flow-num {
  width: 52px; height: 52px;
  border-radius: 6px;
  background: #FF9900;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 16px rgba(255,153,0,0.28);
  margin-top: 20px;
}
.flow-step:not(:has(.flow-num-col)) > .flow-num::before {
  content: 'STEP';
  position: absolute;
  top: -17px; left: 50%; transform: translateX(-50%);
  font-size: 8px; font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; letter-spacing: 0.18em;
  color: var(--orange-medium); white-space: nowrap;
}
.flow-step:not(:has(.flow-num-col)) > .flow-content {
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 0;
  border-left: 3px solid #FF9900;
  box-shadow: 0 2px 10px rgba(122,41,0,0.07);
  flex: 1;
  transition: transform .2s, box-shadow .2s;
}
.flow-step:not(:has(.flow-num-col)):hover > .flow-content {
  transform: translateX(4px);
  box-shadow: 0 4px 18px rgba(122,41,0,0.13);
}
/* コネクター（旧構造） */
.flow-step:not(:has(.flow-num-col)):not(:last-child)::after {
  content: '';
  position: absolute;
  left: 25px; top: 76px;
  width: 2px;
  height: calc(100% - 76px);
  background: repeating-linear-gradient(
    to bottom,
    #FF9900 0px, #FF9900 5px,
    transparent 5px, transparent 12px
  );
  opacity: 0.30;
  border-radius: 2px;
}
