/* トップ専用: 共通指定 / スマホ〜767px / タブレット768〜1023px / PC1024px〜。 */

body.p-home .p-top-flow {
  background-color: var(--top-color-bg);
  padding: 80px 0;
  color: var(--top-color-text);
  font-family: var(--top-font-ja);
}

body.p-home .p-top-flow__inner {
  width: min(1128px, 100% - 80px);
  margin: 0 auto;
}

body.p-home .p-top-flow__lead {
  margin-top: 32px;
  font-size: 16px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.p-home .p-top-flow__steps {
  width: min(1128px, 100% - 80px);
  margin: 44px auto 0;
  padding-top: 44px;
}

body.p-home .p-top-flow__list {
  display: flex;
  justify-content: center;
  gap: 47px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.p-home .p-top-flow__item {
  position: relative;
  flex: 0 0 300px;
  width: 300px;
  min-height: 414px;
  padding: 52px 30px 36px;
  background-color: var(--top-color-bg-gray);
}

body.p-home .p-top-flow__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 1;
  width: calc(100% + 47px);
  height: 12px;
  background-color: var(--top-color-accent);
}

body.p-home .p-top-flow__badge {
  position: absolute;
  top: -44px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color: var(--top-color-accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  font-family: var(--top-font-en);
  letter-spacing: 0.56px;
}

body.p-home .p-top-flow__badge .pre {
  font-size: 12px;
  line-height: 10px;
  font-weight: 400;
}

body.p-home .p-top-flow__badge .num {
  font-size: 36px;
  line-height: 28px;
  font-weight: 600;
}

body.p-home .p-top-flow__figure {
  position: relative;
  height: 146px;
  margin: 0;
  padding: 0;
}

body.p-home .p-top-flow__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.p-home .p-top-flow__icon img {
  display: block;
  width: 308px;
  height: auto;
  max-width: none;
  flex: none;
}

body.p-home .p-top-flow__title {
  margin-top: 16px;
  font-size: 22px;
  line-height: 31.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

body.p-home .p-top-flow__desc {
  margin-top: 8.5px;
  font-size: 16px;
  line-height: 24.5px;
  font-weight: 500;
  letter-spacing: normal;
}

body.p-home .p-top-flow__note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  letter-spacing: normal;
}

@media screen and (max-width: 767px) {
  body.p-home .p-top-flow {
    padding: 40px 0;
  }

  body.p-home .p-top-flow__inner {
    padding: 0 24px;
    width: var(--top-sp-content);
    padding-inline: 0;
  }

  body.p-home .p-top-flow__steps {
    margin: 15px 0 0;
    padding: 40px 0 0 24px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-left: max(24px, calc((100% - 560px) / 2));
  }

  body.p-home .p-top-flow__list {
    justify-content: flex-start;
    gap: 16px;
    width: max-content;
    padding-right: 24px;
  }

  body.p-home .p-top-flow__item {
    flex: 0 0 266px;
    width: 266px;
    min-height: 398px;
    padding: 44px 24px 28px;
  }

  body.p-home .p-top-flow__item:not(:last-child)::before {
    width: calc(100% + 16px);
  }

  body.p-home .p-top-flow__badge {
    top: -36px;
    width: 60px;
    height: 60px;
    gap: 4.4px;
  }

  body.p-home .p-top-flow__badge .pre {
    font-size: 10px;
  }

  body.p-home .p-top-flow__badge .num {
    font-size: 28px;
  }

  body.p-home .p-top-flow__title {
    margin-top: 18px;
    font-size: 18px;
  }

  body.p-home .p-top-flow__desc {
    margin-right: -1px;
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  body.p-home .p-top-flow__note {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  body.p-home .p-top-flow__lead {
    margin-top: 26px;
    font-size: 14px;
    line-height: 24.5px;
  }

  body.p-home .p-top-flow__inner .c-title__main {
    font-size: 24px;
    line-height: 36px;
    text-wrap: balance;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  body.p-home .p-top-flow {
    padding: 60px 0;
  }

  body.p-home .p-top-flow__inner {
    width: 100%;
    padding: 0 32px;
  }

  body.p-home .p-top-flow__steps {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: calc(100% - 64px);
    margin: 24px auto 0;
    padding: 40px 0 0;
    overflow: visible;
  }

  body.p-home .p-top-flow__list {
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    padding-right: 0;
  }

  body.p-home .p-top-flow__item {
    flex: 0 0 266px;
    width: auto;
    min-width: 0;
    min-height: 360px;
    padding: 40px 16px 24px;
  }

  body.p-home .p-top-flow__item:not(:last-child)::before {
    width: calc(100% + 16px);
  }

  body.p-home .p-top-flow__badge {
    top: -36px;
    width: 60px;
    height: 60px;
    gap: 4.4px;
  }

  body.p-home .p-top-flow__badge .pre {
    font-size: 10px;
  }

  body.p-home .p-top-flow__badge .num {
    font-size: 28px;
  }

  body.p-home .p-top-flow__title {
    margin-top: 18px;
    font-size: 16px;
  }

  body.p-home .p-top-flow__desc {
    margin-right: -1px;
    letter-spacing: 0.04em;
    font-size: 14px;
  }

  body.p-home .p-top-flow__note {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  body.p-home .p-top-flow__inner .c-title__main {
    font-size: 24px;
    line-height: 1.5;
  }
}
