* {
  margin: 0;
  padding: 0;
}

.page_jidoutenko-b .gallry-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rem;
}

.kouseihikaku-img {
  max-width: 61.7rem;
}

.procedure {
  padding-block: 4rem;
}

.procedure__grid {
  display: grid;
  grid-template-areas:
    "step1 step2 step3 step4"
    "step5 step6 step7 step8"
    "step9 step10 step11 step11";
  grid-template-columns: repeat(4, 1fr);
  column-gap: 1.4rem;
  row-gap: 4rem;
}

.procedure__step {
  text-align: center;
  min-height: 31.6rem;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  position: relative;
}

.procedure__step:not(:nth-child(4n)):not(:nth-child(10)):not(:nth-child(11))::before {
  content: "";
  position: absolute;
  background-image: url(../img/jidoutenko-b/flow-arrow.png);
  background-size: contain;
  background-repeat: no-repeat;
  bottom: 1rem;
  right: -2.5rem;
  width: 4rem;
  height: 1.5rem;
}

.procedure__step--1 {
  grid-area: step1;
}
.procedure__step--2 {
  grid-area: step2;
}
.procedure__step--3 {
  grid-area: step3;
}
.procedure__step--4 {
  grid-area: step4;
}
.procedure__step--5 {
  grid-area: step5;
}
.procedure__step--6 {
  grid-area: step6;
}
.procedure__step--7 {
  grid-area: step7;
}
.procedure__step--8 {
  grid-area: step8;
}
.procedure__step--9 {
  grid-area: step9;
}
.procedure__step--10 {
  grid-area: step10;
}
.procedure__step--11 {
  grid-area: step11;
}

.procedure__image {
  padding: 1.8rem 1.3rem;
  border-radius: 0.8rem;
  border: 0.4rem solid #cbd9e4;
}

.procedure__image img {
  width: 100%;
  aspect-ratio: 237 / 140;
  max-width: 23.7rem;
  height: auto;
  object-fit: contain;
}

.procedure__number {
  font-weight: bold;
  font-size: 2.2rem;
  margin-block: 2rem 0;
  background-color: var(--color-blue);
  color: #fff;
  border-radius: 50%;
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  margin-inline: auto;
}

.procedure__text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1.5;
  margin-top: 2rem;
  margin-bottom: 0;
}

.procedure__text--small {
  font-size: 1.4rem;
  font-weight: 400;
}

.notice {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  background-color: #dbeaf5;
  border-radius: 2rem;
  padding: 3.4rem 4rem;
}

.notice__content {
  flex: 1;
  display: grid;
  gap: 1.6rem;
}

.notice__text {
  font-size: 1.6rem;
  color: #004b87;
  line-height: 1.6;
  font-weight: 700;
  text-align: left;
}

.notice__step-number {
  display: inline-block;
  background-color: var(--color-blue);
  color: #fff;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.4rem;
  margin-right: 0.5rem;
  line-height: 1.1lh;
}

.notice__arrow {
  display: block;
  margin-inline: auto;
  width: 16.4rem;
}

.notice__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.notice__image {
  flex-shrink: 0;
  width: 19.5rem;
}

/* 要件24項目 */
.requirement-items {
  display: grid;
  gap: 3.2em;
}
.requirement-item dt {
  font-weight: 700;
}

.numbered-terms__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.numbered-terms__label {
  flex-shrink: 0;
  width: 2.4rem;
  font-size: 1.6rem;
}

.numbered-terms__text {
  font-size: 1.6rem;
  line-height: 1.8;
  flex: 1;
}

.requirement-item__image {
  margin-top: 3.2rem;
  margin-inline: auto;
  width: 100%;
}

.requirement-item__image img {
  width: 100%;
}
@media screen and (max-width: 767px) {
  .page_jidoutenko-b .gallry-box {
    flex-direction: column;
    gap: 4rem;
  }
  .kouseihikaku-img {
    max-width: 100%;
  }
  .procedure__grid {
    grid-template-areas:
      "step1"
      "step2"
      "step3"
      "step4"
      "step5"
      "step6"
      "step7"
      "step8"
      "step9"
      "step10"
      "step11"
      "step11";
    row-gap: 5rem;
    grid-template-columns: 1fr;
    max-width: 30rem;
    margin-inline: auto;
  }
  .procedure__step {
    min-height: initial;
    grid-template-columns: initial;
  }
  .procedure__step:not(:nth-child(10)):not(:nth-child(11))::before {
    content: "";
    position: absolute;
    background-image: url(../img/jidoutenko-b/flow-arrow.png);
    background-size: contain;
    background-repeat: no-repeat;
    bottom: -2.5rem !important;
    right: 50% !important;
    transform: translateX(50%) rotate(90deg);
    width: 2rem !important;
    height: 1rem !important;
  }
  .procedure__text {
    font-size: 1.6rem;
    margin-top: 1rem;
  }
  
  .procedure__text--small {
    font-size: 1.4rem;
    font-weight: 400;
  }

  .procedure__number {
    font-size: 1.6rem;
    margin-block: 1rem 0;
    width: 3.2rem;
    height: 3.2rem;
}

  .notice {
    flex-direction: column;
    align-items: flex-start;
  }

  .notice__arrow {
    width: 9rem;
  }

  .notice__image {
    width: 100%;
    text-align: center;
  }

  .notice__image img {
    max-width: 12rem;
    margin: 0 auto;
  }
.numbered-terms__label {
  width: 10%;
	font-size: 1.3rem;
}
	.numbered-terms__text {
		font-size: 1.3rem;
	}
}
