@charset "UTF-8";

/* ===== STEP section : base ===== */
#steps_section + div {
  --step-main: #294e34;   /* card color */
  --step-cyan: #8db184;   /* accent color */
  --step-gap-x: 48px;
  --step-gap-y: 28px;
}

/* ===== Heading ===== */
#steps_section + div .content_wrapper > .heading.block_header_6 {
  position: relative;
  margin-bottom: 60px;
  padding-top: 40px;
}
#steps_section + div .content_wrapper > .heading.block_header_6 .h::before {
  display: none !important;
  content: none !important;
}
#steps_section + div .content_wrapper > .heading.block_header_6::before {
  content: "STEP";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 110px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--step-cyan);
  z-index: 0;
  pointer-events: none;
}
#steps_section + div .content_wrapper > .heading.block_header_6 .h,
#steps_section + div .content_wrapper > .heading.block_header_6 p {
  position: relative;
  z-index: 1;
}
#steps_section + div .content_wrapper > .heading.block_header_6 .h {
  color: #1a1a1a;
  background: none;
  font-weight: 700;
}
#steps_section + div .content_wrapper > .heading.block_header_6 p {
  color: var(--step-cyan);
  font-size: 13px;
  letter-spacing: 0.15em;
}

/* ===== Grid (PC: 3 columns x 2 rows) ===== */
#steps_section + div .wrapper_item {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--step-gap-x);
  row-gap: var(--step-gap-y);
  overflow: visible;
}

/* ===== Card ===== */
#steps_section + div .wrapper_item .inner_item {
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  padding: 24px 16px 26px;
  background: var(--step-main);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* STEP 0X label */
#steps_section + div .wrapper_item .inner_item .heading.block_header_4 {
  margin-bottom: 18px !important;
  width: 100%;
}
#steps_section + div .wrapper_item .inner_item .heading.block_header_4 .h {
  color: var(--step-cyan);
  font-size: 22px;
  letter-spacing: 0.05em;
}

/* Icon circle */
#steps_section + div .wrapper_item .inner_item > a {
  width: auto;
  display: block;
}
#steps_section + div .wrapper_item .inner_item .inner_item_img {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px !important;
  background: #fff;
  border-radius: 50%;
  padding: 28px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#steps_section + div .wrapper_item .inner_item .inner_item_img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

/* Label text */
#steps_section + div .wrapper_item .inner_item .inner_item_txt {
  margin-top: 0 !important;
  width: 100%;
}
#steps_section + div .wrapper_item .inner_item .inner_item_txt p {
  color: #fff;
  font-weight: 700;
  font-size: 12px;        /* small note line (※お見積り無料です) */
  line-height: 1.5;
}
#steps_section + div .wrapper_item .inner_item .inner_item_txt p::first-line {
  font-size: 18px;        /* main label */
}

/* ===== Arrow between cards ===== */
#steps_section + div .wrapper_item .inner_item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--step-gap-x) / -2 - 11px);
  width: 22px;
  height: 26px;
  transform: translateY(-50%);
  background: var(--step-cyan);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
/* no arrow after the last card of each row (PC) */
#steps_section + div .wrapper_item .inner_item:nth-child(3n)::after {
  display: none;
}

/* ===== SP: 2 columns x 3 rows ===== */
@media screen and (max-width: 767px) {
  #steps_section + div {
    --step-gap-x: 32px;
    --step-gap-y: 16px;
  }
  #steps_section + div .content_wrapper > .heading.block_header_6 {
    margin-bottom: 36px;
    padding-top: 28px;
  }
  #steps_section + div .content_wrapper > .heading.block_header_6::before {
    font-size: 64px;
    top: -4px;
  }
  #steps_section + div .wrapper_item {
    grid-template-columns: repeat(2, 1fr);
  }
  #steps_section + div .wrapper_item .inner_item {
    padding: 16px 8px 18px;
  }
  #steps_section + div .wrapper_item .inner_item .heading.block_header_4 {
    margin-bottom: 12px !important;
  }
  #steps_section + div .wrapper_item .inner_item .heading.block_header_4 .h {
    font-size: 16px;
  }
  #steps_section + div .wrapper_item .inner_item .inner_item_img {
    width: 96px;
    height: 96px;
    padding: 18px;
    margin-bottom: 12px !important;
  }
  #steps_section + div .wrapper_item .inner_item .inner_item_txt p {
    font-size: 10px;
  }
  #steps_section + div .wrapper_item .inner_item .inner_item_txt p::first-line {
    font-size: 14px;
  }
  /* arrows: reset PC rule, then hide after even cards */
  #steps_section + div .wrapper_item .inner_item:nth-child(3n)::after {
    display: block;
  }
  #steps_section + div .wrapper_item .inner_item:nth-child(2n)::after {
    display: none;
  }
  #steps_section + div .wrapper_item .inner_item::after {
    width: 16px;
    height: 20px;
    right: calc(var(--step-gap-x) / -2 - 8px);
  }
}