.page-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  overflow: hidden;
}
@media (max-width: 767px) {
  .page-hero {
    height: 200px;
  }
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.2);
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1152px, 100% - 48px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  text-shadow: 0 0 12px rgba(34, 34, 34, 0.8);
}
@media (max-width: 767px) {
  .page-hero__inner {
    width: min(1152px, 100% - 48px);
    gap: 20px;
  }
}
.page-hero__crumb {
  position: absolute;
  top: 40px;
  left: 0;
  font-size: 13px;
}
.page-hero__crumb a:hover {
  text-decoration: underline;
}
@media (max-width: 767px) {
  .page-hero__crumb {
    top: 24px;
  }
}
.page-hero__jp {
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 2.8px;
  line-height: 1;
}
@media (max-width: 767px) {
  .page-hero__jp {
    font-size: 22px;
    letter-spacing: 2.2px;
  }
}
.page-hero__sub {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1.4px;
  line-height: 1;
}
@media (max-width: 767px) {
  .page-hero__sub {
    font-size: 12px;
    letter-spacing: 1.2px;
  }
}

.intro {
  text-align: center;
  padding: 80px 0 40px;
}
.intro__ttl {
  font-weight: 500;
  font-size: 24px;
  color: #222222;
  margin-bottom: 32px;
}
.intro__body {
  font-weight: 400;
  font-size: 14px;
  line-height: 2.2;
  color: #222222;
}

.cblock {
  padding: 60px 0;
}
.cblock__ttl {
  font-weight: 500;
  font-size: 32px;
  color: #222222;
  margin-bottom: 48px;
}
@media (max-width: 767px) {
  .cblock__ttl {
    font-size: 24px;
    margin-bottom: 24px;
  }
}
.cblock__row {
  display: flex;
  gap: 64px;
  align-items: center;
}
@media (max-width: 767px) {
  .cblock__row {
    flex-direction: column;
    gap: 24px;
  }
}
.cblock__img {
  flex: 0 0 62%;
  align-self: stretch;
  min-height: 500px;
  background: #d9d9d9;
  background-size: cover;
  background-position: center;
}
@media (max-width: 767px) {
  .cblock__img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4/3;
  }
}
.cblock__text {
  flex: 1;
  font-weight: 400;
  font-size: 14px;
  line-height: 2;
  color: #222222;
}
.cblock__text p {
  white-space: pre-line;
}
.cblock__text .viewmore {
  float: none;
  margin: 32px 0 0;
}
.cblock--rev .cblock__row {
  flex-direction: row-reverse;
}
@media (max-width: 767px) {
  .cblock--rev .cblock__row {
    flex-direction: column;
  }
}

.page-hero--flow {
  background-image: url("../img/flow-hero.jpg");
}
@media (max-width: 767px) {
  .page-hero--flow {
    background-image: url("../img/flow-hero-sp.jpg");
  }
}

.flow {
  width: min(960px, 100% - 48px);
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 144px;
}
@media (max-width: 767px) {
  .flow {
    padding-top: 64px;
    padding-bottom: 80px;
  }
}

.flow-intro {
  font-weight: 400;
  font-size: 16px;
  line-height: 40px;
  color: #222222;
  padding-bottom: 80px;
}
@media (max-width: 767px) {
  .flow-intro {
    font-size: 14px;
    line-height: 35px;
    padding-bottom: 64px;
  }
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
@media (max-width: 767px) {
  .flow-steps {
    gap: 40px;
  }
}

.flow-step__head {
  display: grid;
  grid-template-columns: max-content;
  grid-template-rows: max-content;
  place-items: start;
}
.flow-step__numbox {
  grid-area: 1/1;
  font-weight: 500;
  color: #165e83;
  opacity: 0.1;
}
.flow-step__step {
  display: block;
  font-size: 40px;
  line-height: 57px;
  margin-bottom: -16px;
}
.flow-step__no {
  display: block;
  font-size: 120px;
  line-height: 120px;
}
.flow-step__title {
  grid-area: 1/1;
  margin: 96px 0 0 80px;
  font-weight: 500;
  font-size: 28px;
  line-height: 40px;
  letter-spacing: 1.4px;
  color: #165e83;
  white-space: nowrap;
}
.flow-step__body {
  display: flex;
  align-items: flex-end;
  gap: 64px;
}
.flow-step__text {
  flex: 1;
  min-width: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 35px;
  color: #222222;
}
.flow-step__icon {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
}
.flow-step__icon img {
  width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .flow-step__head {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    margin-bottom: 16px;
  }
  .flow-step__step {
    font-size: 32px;
    line-height: 46px;
    margin-bottom: -10px;
  }
  .flow-step__no {
    font-size: 80px;
    line-height: 80px;
    letter-spacing: 4px;
  }
  .flow-step__title {
    margin: 72px 0 0 48px;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 1px;
    white-space: normal;
  }
  .flow-step__body {
    flex-direction: column-reverse;
    align-items: center;
    gap: 24px;
  }
  .flow-step__text {
    width: 100%;
    font-size: 14px;
    line-height: 35px;
  }
  .flow-step__icon {
    align-self: center;
    width: 120px;
    height: 120px;
  }
  .flow-step:last-child .flow-step__icon {
    width: 140px;
    height: 140px;
  }
}
