@charset "utf-8";
/* CSS Document */

.flow_steps > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* 点線を枠ではなくブロック間に表示 */
.flow_steps > ul > li {
  width: 24%;
  box-sizing: border-box;
  padding: 10px;
  border-right: 1px dotted #694526;
}

/* 最後のボックスは点線を消す */
.flow_steps > ul > li:last-child {
  border-right: none;
}

/* 中身のボックスは点線なし・背景のみ */
.flow_box {
  background: #fff;
  padding: 0;
}

.flow_title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
color: #694526!important;
}

.flow_num {
  display: inline-flex;/* 中央揃えのためにflexを使う */
  justify-content: center; /* 横方向中央揃え */
  align-items: center; /* 縦方向中央揃え */
  background: #96dcf6; /* 水色の背景 */
  border-radius: 50%;  /* 真円にする */
  color: #694526!important;
  font-weight: bold;
  width: 30px; /* 円のサイズ */
  height: 30px;
  font-size: 15px;
  font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", 'Noto Serif JP', serif;
  margin-right: 5px;               /* 文字との間隔 */
}

.flow_illust {
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.flow_illust img {
  height: 180px; /* 高さを固定 */
  width: auto;
  object-fit: contain; /* or cover, depending on your preference */
  display: block;
  margin: 0 auto;
}

.flow_text {
  font-size: 14px;
  color:#694526!important;
  line-height: 1.5;
}

/* 横2列 × 縦2列（スマホ〜タブレット） */
@media screen and (max-width: 900px) {
/* 共通スタイル */
.flow_steps > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0; /* gapなしでボーダーで仕切る */
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow_steps > ul > li {
  width: 50%;
  box-sizing: border-box;
  padding: 12px;
  border-right: 1px dotted #694526;
  border-bottom: 1px dotted #694526;
}

/* 右列（2番・4番）は右線を消す */
.flow_steps > ul > li:nth-child(2),
.flow_steps > ul > li:nth-child(4) {
  border-right: none;
}

/* 下段（3番・4番）は下線を消す */
.flow_steps > ul > li:nth-child(3),
.flow_steps > ul > li:nth-child(4) {
  border-bottom: none;
}
}

/* スマホ：1列表示 */
@media screen and (max-width: 600px) {
  .flow_steps > ul > li {
    width: 100%;
  }
	
/* 右列（2番・4番）は右線を消す */
.flow_steps > ul > li:nth-child(1),
.flow_steps > ul > li:nth-child(2),
.flow_steps > ul > li:nth-child(3),
.flow_steps > ul > li:nth-child(4){
  border-right: none;
}

/* 下段（3番・4番）は下線を消す */
.flow_steps > ul > li:nth-child(3),
.flow_steps > ul > li:nth-child(4){
  box-sizing: border-box;
  border-bottom: 1px dotted #694526;
	}
}
