/* kodomo ページ専用CSS（本番Brizy埋め込みコードのCSSを移植） */
:where(.fs-main) ul {
  list-style: none;
}
/* 全体構造 */
.flow_box {
  margin: 20px 0 75px;
}
.flow_box:nth-child(2) {
  background: #fdfaef;
  padding: 50px 20px;
}
.flow_box:nth-child(3) {
  background: #fffbff;
  padding: 50px 20px;
}
.flow_box:nth-child(4) {
  background: #f5fffe;
  padding: 50px 20px;
}
/* タイトル */
.flow_box h3 {
  color: #9a845c;
  border-bottom: 1px solid #d2c3a1;
  font-size: 1.7rem;
  margin-bottom: 20px;
  padding: 10px 0;
}
/* 縦フロー構造 */
ul.flow_vertical.com_btm_100 {
  padding-bottom: 60px;
}
.flow_vertical > li {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding-left: 100px;
  padding-bottom: 60px;
}
.flow_vertical li:last-of-type {
  padding-bottom: 0;
}
/* 番号アイコン */
.flow_vertical > li::before,
.flow_vertical > li::after {
  content: "";
  position: absolute;
  top: 0;
  font-weight: 100;
  text-align: center;
  color: #956f38;
  font-size: 220%;
  line-height: 1em;
}
.flow_vertical > li::before {
  z-index: 1;
  content: "1";
  width: 1.5em;
  line-height: 1.5em;
  background: #fff;
  border: 1px solid #956f38;
  border-radius: 50%;
  left: 0;
}
.flow_vertical > li:nth-child(2)::before { content: "2"; }
.flow_vertical > li:nth-child(3)::before { content: "3"; }
.flow_vertical > li:nth-child(4)::before { content: "4"; }
.flow_vertical > li:nth-child(5)::before { content: "5"; }
.flow_vertical > li:nth-child(6)::before { content: "6"; }
.flow_vertical > li::after {
  z-index: 0;
  width: 1px;
  height: 100%;
  left: 0.75em;
  background-color: #c6c2bf;
}
.flow_vertical li:last-of-type::after {
  display: none;
}
/* 各項目レイアウト */
.flow_item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.flow_text {
  flex: 3;
  padding: 0 15px;
}
.flow_title {
  font-size: 1.5rem;
  padding-top: 0.6em;
  color: #956f38;
}
/* 画像サイズ調整 */
.flow_image img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  object-fit: cover;
}
.flow_style dd {
  margin:0;
}
/* 小さめ画面対応 */
@media (max-width: 768px) {
  .flow_item {
    flex-direction: column;
    align-items: center;
  }
  .flow_image img {
    width: 80%;
    max-width: 240px;
    margin-top: 15px;
  }
  .flow_vertical > li {
    padding:0 0 0 30px;
  }
  ul.flow_vertical.com_btm_100 {
    padding:10px;
  }
  .flow_vertical > li::after {
    left: 0.5em;
  }
.flow_vertical > li::before {
    left: -10px;
}
  .flow_image img {
    margin-left: 30px;
}
}

/* --- 本番の見え方に合わせる補正（移行時に追加） ---
   本番では後続のCSSに上書きされて .flow_image img の max-width:300px が効いておらず、
   画像は原寸（490px）で表示されている。またリスト余白はテーマ側のリセットで消えるため戻す。 */
.flow_image img { max-width: 100%; }
ul.flow_vertical { padding-left: 40px; margin: 16px 0; }
