/* 「ご利用の流れ」ページ専用。カードの基本デザインは style.css を使用します。 */

.utk-flow-body {
  background: #e8f8fd;
}

.utk-flow-page {
  overflow: hidden;
  background: transparent;
}

.utk-flow-page .utk-flow {
  min-height: calc(100vh - 88px);
  padding-top: clamp(56px, 7vw, 88px);
}

.utk-flow-page .utk-flow__inner {
  border-color: rgb(8 127 167 / 14%);
  background: rgb(255 255 255 / 78%);
}

.utk-flow-page__wordmark {
  display: flex;
  margin: 0 0 14px;
  justify-content: center;
  font-family: var(--utk-font-rounded);
  font-size: clamp(2.8rem, 5.6vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.utk-flow-page__wordmark span:nth-child(7n + 1) { color: #3199df; }
.utk-flow-page__wordmark span:nth-child(7n + 2) { color: #5ebd36; }
.utk-flow-page__wordmark span:nth-child(7n + 3) { color: #8b50bd; }
.utk-flow-page__wordmark span:nth-child(7n + 4) { color: #ee4b9b; }
.utk-flow-page__wordmark span:nth-child(7n + 5) { color: #35bcae; }
.utk-flow-page__wordmark span:nth-child(7n + 6) { color: #f59a24; }
.utk-flow-page__wordmark span:nth-child(7n) { color: #ee4b9b; }

.utk-flow-page__wordmark .utk-flow-page__wordmark-space {
  width: .28em;
}

.utk-flow-page__lead {
  margin: 0 0 clamp(32px, 4vw, 50px);
  color: #30231f;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.8;
}

.utk-flow-page .utk-flow__list {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 54px;
}

.utk-flow-page .utk-flow__item {
  width: 100%;
  min-height: 320px;
}

.utk-flow-page .utk-flow__item:not(:last-child)::after {
  top: auto;
  right: auto;
  bottom: -47px;
  left: 50%;
  display: grid;
  transform: translateX(-50%) rotate(90deg);
}

.utk-flow-page .utk-flow__body h2 {
  margin: 0;
  color: #30231f;
  font-family: var(--utk-font-rounded);
  font-size: clamp(1.4rem, 1.8vw, 1.65rem);
  font-weight: 900;
  line-height: 1.5;
  word-break: auto-phrase;
  text-wrap: balance;
}

.utk-flow-page .utk-flow__body p {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 1.05rem;
  line-height: 1.8;
  word-break: auto-phrase;
  text-wrap: pretty;
}

@media (min-width: 601px) and (max-width: 900px) {
  .utk-flow-page__lead {
    font-size: 1.05rem;
  }

  .utk-flow-page .utk-flow__body h2 {
    font-size: 1.35rem;
  }

  .utk-flow-page .utk-flow__body p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .utk-flow-page .utk-flow {
    padding-top: 48px;
  }

  .utk-flow-page__lead {
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.7;
  }

  .utk-flow-page__wordmark {
    margin-bottom: 12px;
    font-size: clamp(2rem, 10vw, 2.65rem);
    letter-spacing: -.07em;
  }

  .utk-flow-page .utk-flow__list {
    gap: 42px;
  }

  .utk-flow-page .utk-flow__item {
    display: flex;
    min-height: 320px;
    padding: 26px 18px 24px;
    flex-direction: column;
    text-align: center;
  }

  .utk-flow-page .utk-flow__item:not(:last-child)::after {
    bottom: -39px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .utk-flow-page .utk-flow__step {
    position: static;
    transform: none;
  }

  .utk-flow-page .utk-flow__icon {
    width: 72px;
    height: 72px;
    margin: 20px auto 16px;
  }

  .utk-flow-page .utk-flow__icon svg {
    width: 42px;
    height: 42px;
  }

  .utk-flow-page .utk-flow__body {
    padding-top: 0;
  }

  .utk-flow-page .utk-flow__body h2 {
    font-size: clamp(1.15rem, 5.4vw, 1.3rem);
    line-height: 1.55;
  }

  .utk-flow-page .utk-flow__body p {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.7;
  }
}
