/* ==================================================
   初めての方へ
================================================== */

.first-flow {
  padding-top: 0;
}

.first-flow > .content-inner > .content-section__lead {
  margin-top: 0;
  padding-top: 40px;
}

.first-flow__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 50px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.first-flow__item {
  position: relative;
  min-height: 330px;
  padding: 42px 38px;
  background: #fff;
  border: 1px solid #e2eaf2;
  border-radius: 24px;
  box-shadow: 0 5px 16px rgba(31, 54, 86, .07);
}

.first-flow__item:not(:nth-child(3n))::after {
  content: "›";
  position: absolute;
  top: 45%;
  right: -39px;
  color: #c6a86a;
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
}

.first-flow__head {
  display: grid;
  grid-template-columns: auto 1fr 60px;
  gap: 14px;
  align-items: center;
}

.first-flow__number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: #4f8fd4;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.first-flow__head h3 {
  color: #2e5ea7;
  font-size: 24px;
}

.first-flow__head img {
  width: 60px;
  height: 54px;
  object-fit: contain;
  border-radius: 0;
}

.first-flow__item > p {
  margin-top: 34px;
  font-size: 16px;
  line-height: 1.9;
}

.first-visit-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 110px;
}

.first-visit-info__panel {
  padding: 54px 60px;
  border-radius: 24px;
}

.first-visit-info__panel--blue {
  background: #edf6ff;
}

.first-visit-info__panel--cream {
  background: #fffaf1;
}

.first-visit-info__title {
  display: flex;
  gap: 24px;
  align-items: center;
  color: #0c3d7d;
}

.first-visit-info__title img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 0;
}

.first-visit-info__title h2 {
  font-size: 28px;
  line-height: 1.5;
}

.first-visit-info__box,
.first-visit-info__notice {
  margin-top: 34px;
  padding: 28px 32px;
  background: #fff;
  border: 2px solid #86b4e5;
  border-radius: 20px;
}

.first-visit-info__box h3 {
  color: #2e5ea7;
  font-size: 18px;
}

.first-visit-info__box h3:not(:first-child) {
  margin-top: 22px;
}

.first-visit-info ul {
  margin: 10px 0 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.8;
  list-style: none;
}

.first-visit-info li {
  position: relative;
  padding-left: 22px;
}

.first-visit-info li::before {
  content: "";
  position: absolute;
  top: .7em;
  left: 0;
  width: 10px;
  height: 10px;
  background-image: var(--first-circle);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.first-visit-info li + li {
  margin-top: 3px;
}

.first-visit-info__panel > p {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.8;
}

.first-visit-info__notice {
  color: #2e5ea7;
  border-color: #c6a86a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.first-visit-info__phone,
.first-visit-info__web {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 360px;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 14px 24px;
  border-radius: 18px;
  text-align: center;
}

.first-visit-info__phone {
  margin-top: 28px;
  color: #2e5ea7;
  background: #fff;
  border: 2px solid #4f8fd4;
}

.first-visit-info__web {
  margin-top: 18px;
  color: #fff;
  background: #f6a530;
}

.first-visit-info__phone strong,
.first-visit-info__web strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 24px;
  line-height: 1.3;
}

.first-visit-info__phone strong img,
.first-visit-info__web strong img {
  display: block;
  width: auto;
  height: 28px;
  border-radius: 0;
  object-fit: contain;
}

.first-visit-info__web strong img {
  height: 30px;
}

.first-visit-info__phone small,
.first-visit-info__web small {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
}

.first-visit-info__note {
  text-align: center;
}

.first-check {
  padding-top: 120px;
  padding-bottom: 120px;
  background-image: var(--first-texture);
  background-position: center;
  background-size: cover;
}

.first-check__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 60px;
}

.first-check__grid article {
  padding: 42px 38px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 5px 16px rgba(31, 54, 86, .05);
}

.first-check__grid h3 {
  color: #c6a86a;
  font-size: 21px;
}

.first-check__grid p {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.9;
}

.first-check__grid p + p {
  margin-top: 14px;
}

.first-check__grid strong {
  color: #2e5ea7;
}

.first-generic__body {
  width: 1000px;
  max-width: 100%;
  margin: 50px auto 0;
}

.first-generic__body p + p {
  margin-top: 24px;
}


/* ==================================================
   Tablet
================================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

  .first-flow__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .first-flow__item:not(:nth-child(3n))::after {
    content: none;
  }

  .first-visit-info {
    gap: 28px;
    margin-top: 80px;
  }

  .first-visit-info__panel {
    padding: 42px 32px;
  }

  .first-check {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .first-check__grid {
    gap: 22px;
  }

}


/* ==================================================
   Smartphone
================================================== */

@media screen and (max-width: 767px) {

  .first-flow__list {
    display: block;
    margin-top: 38px;
  }

  .first-flow__item {
    min-height: 0;
    padding: 30px 0 36px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #dbe5ee;
    border-radius: 0;
    box-shadow: none;
  }

  .first-flow__item + .first-flow__item {
    margin-top: 0;
  }

  .first-flow__item::after {
    content: none;
  }

  .first-flow__head {
    grid-template-columns: auto 1fr 52px;
  }

  .first-flow__head h3 {
    font-size: 21px;
  }

  .first-flow__head img {
    width: 52px;
    height: 48px;
  }

  .first-flow__item > p {
    margin-top: 22px;
    font-size: 16px;
  }

  .first-visit-info {
    display: block;
    margin-top: 80px;
  }

  .first-visit-info__panel {
    padding: 36px 22px;
  }

  .first-visit-info__panel + .first-visit-info__panel {
    margin-top: 28px;
  }

  .first-visit-info__title {
    gap: 16px;
  }

  .first-visit-info__title img {
    width: 48px;
    height: 48px;
  }

  .first-visit-info__title h2 {
    font-size: 23px;
  }

  .first-visit-info__box,
  .first-visit-info__notice {
    padding: 24px 20px;
  }

  .first-visit-info__phone strong,
  .first-visit-info__web strong {
    font-size: 20px;
  }

  .first-check {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .first-check__grid {
    display: block;
    margin-top: 40px;
  }

  .first-check__grid article {
    padding: 32px 24px;
  }

  .first-check__grid article + article {
    margin-top: 22px;
  }

  .first-check__grid h3 {
    font-size: 19px;
  }

  .first-check__grid p {
    font-size: 16px;
  }

  .first-generic__body {
    margin-top: 36px;
  }

}


/* ==================================================
   Small Smartphone
================================================== */

@media screen and (max-width: 374px) {

  .first-flow__head {
    grid-template-columns: auto 1fr 44px;
    gap: 10px;
  }

  .first-flow__head img {
    width: 44px;
    height: 42px;
  }

  .first-visit-info__panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .first-visit-info__phone,
  .first-visit-info__web {
    padding-right: 12px;
    padding-left: 12px;
  }

}
