@charset "UTF-8";

/* =========================================================
   FLOW: vertical steps (PC + SP)
   ========================================================= */

/* ---------- Base ---------- */
#flow_part + div {
  --c: 170px;                          /* image size */
  --arrow: #e46262;
  background-color: var(--i_sub2_color, #fbf8f4) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#flow_part + div .content_wrapper {
  max-width: 640px !important;
  padding: 0 20px;
}

#flow_part + div .wrapper_item {
  display: block !important;
  overflow: visible !important;        /* never clip the number badge */
}

/* ---------- One step = image + heading ---------- */
#flow_part + div .inner_item {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 28px;
  width: 100% !important;
  margin: 0 !important;
  padding-bottom: 44px;                /* room for the arrow */
  overflow: visible !important;
}

/* image: no rounding, no cropping */
#flow_part + div .inner_item > a {
  flex: 0 0 var(--c) !important;
  width: var(--c) !important;
  max-width: var(--c) !important;
}
#flow_part + div .inner_item_img {
  width: var(--c) !important;
  height: var(--c) !important;
  margin: 0 !important;
  overflow: visible !important;
}
#flow_part + div .inner_item_img img {
  display: block;
  width: 100% !important;
  height: 100% !important;             /* overrides inline height */
  object-fit: contain !important;
  border-radius: 0 !important;
}

/* heading */
#flow_part + div .inner_item_txt {
  flex: 1 1 auto !important;
  max-width: none !important;
  min-width: 0;
  padding-left: 0 !important;
}
#flow_part + div .inner_item_txt .heading {
  margin: 0 !important;
}
#flow_part + div .inner_item_txt .h {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.5;
  letter-spacing: .05em !important;
  margin: 0 !important;
  color: var(--i_txt_color, #444) !important;
}

/* ---------- Arrow (SVG, centered under the circle) ---------- */
#flow_part + div .inner_item::before {
  content: none !important;
}
#flow_part + div .inner_item::after {
  content: "";
  position: absolute;
  left: calc(var(--c) * 0.55 - 8px);   /* circle center = 55% of image */
  bottom: 2px;
  width: 16px;
  height: 38px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 38'%3E%3Cpath d='M8 0V36M2 29L8 36L14 29' fill='none' stroke='%23e46262' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  border: 0;
  transform: none;
}

/* ---------- Top / bottom spacing ---------- */
/* block 1 (steps 01-05) */
#flow_part + div[id^="nbp20905634"] {
  padding-top: 60px !important;
  padding-bottom: 0 !important;
}
/* block 2 (steps 06-07) */
#flow_part + div[id^="nbp20905716"] {
  padding-top: 0 !important;
  padding-bottom: 60px !important;
}
/* last step (07): no arrow, no extra space */
#flow_part + div[id^="nbp20905716"] .inner_item:last-child {
  padding-bottom: 0 !important;
}
#flow_part + div[id^="nbp20905716"] .inner_item:last-child::before,
#flow_part + div[id^="nbp20905716"] .inner_item:last-child::after {
  display: none !important;
  content: none !important;
}

/* =========================================================
   Mobile (SP)
   ========================================================= */
@media screen and (max-width: 768px) {
  #flow_part + div {
    --c: 120px;
  }

  #flow_part + div .content_wrapper {
    max-width: 100% !important;
    padding: 0 16px !important;
  }

  /* every step has the same width and sits in the center,
     so all circles and arrows line up in one straight column */
  #flow_part + div .inner_item {
    gap: 16px;
    padding-bottom: 38px;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    justify-content: flex-start !important;
  }

  #flow_part + div .inner_item_txt .h {
    font-size: 17px !important;
  }
}