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

.first-page__intro {
  margin-top: 2.8rem;
  font-size: 1.6rem;
  line-height: 3.2rem;
}

/* CONSULTATION */

.first-consult__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6rem;
  margin-top: 7rem;
}

.first-consult__card {
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 25.3rem;
  padding: 3rem 2rem 3rem 4.3rem;
  border-radius: 3rem 0;
  color: #172c57;
}

.first-consult__card--alert {
  background: #fdf0f0;
}

.first-consult__card--phone {
  gap: 3.5rem;
  padding-left: 3rem;
  background: #dff1fd;
}

.first-consult__card > img {
  flex: 0 0 12rem;
  width: 12rem;
  height: 12rem;
}

.first-consult__title {
  margin: 0 0 1.2rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 3rem;
}

.first-consult__note {
  margin-top: .8rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 3.2rem;
}

.first-consult__text {
  font-size: 1.6rem;
  line-height: 3.2rem;
}

/* FLOW */

.first-flow {
  padding-top: 4.3rem;
}

.first-flow__list {
  display: grid;
  gap: 3rem;
  margin: 6rem 0 0;
  padding: 0;
  list-style: none;
}

.first-flow__card {
  display: grid;
  grid-template-columns: 10rem 63.5rem minmax(0, 1fr);
  gap: 0;
  align-items: start;
  padding: 2.9rem 5.9rem 2.9rem 3.2rem;
  border: 1px solid #349ad6;
  border-radius: 1rem;
  color: #172c57;
}

.first-flow__number {
  display: grid;
  place-items: center;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: #0281cd;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 5.5rem;
  line-height: 1;
}

.first-flow__body {
  max-width: 51.9rem;
  margin-left: 7rem;
  padding-top: .6rem;
}

.first-flow__title {
  margin: 0 0 1.2rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 3rem;
}

.first-flow__text {
  font-size: 1.6rem;
  line-height: 3.2rem;
}

.first-flow__image {
  width: auto;
  max-width: 100%;
  height: 23rem;
  margin-inline: auto;
}

.first-flow__app {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 39.8rem) minmax(0, 39rem);
  gap: 8.4rem;
  align-items: center;
  margin-top: 3rem;
  padding: 5rem 0 1.2rem 17rem;
  border-top: 1px solid #e4e4e4;
  font-size: 1.6rem;
  line-height: 3.2rem;
}

.first-flow__badges {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.4rem;
}

.first-flow__badges img {
  width: auto;
  height: 4.8rem;
}

.first-flow__app-photo {
  width: 100%;
  aspect-ratio: 390 / 260;
  object-fit: cover;
}

.first-flow__button {
  padding: 1rem 4.4rem 1rem 0;
  width: 33.7rem;
  margin: 5.3rem auto 0;
}

.first-flow__hours {
  display: table;
  margin: 2.8rem auto 0;
  color: #172c57;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 4.2rem;
}

/* CHECKLIST */

.first-check {
  padding-top: 9.6rem;
}

.first-check__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 6rem 0 0;
  padding: 0;
  list-style: none;
}

.first-check__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 28.5rem;
  padding: 4.9rem 1rem 2rem;
  border: 1px solid #0281cd;
  border-radius: 1rem;
  text-align: center;
}

.first-check__list img {
  width: 12rem;
  height: 12rem;
}

.first-check__list p {
  margin-top: 2.6rem;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.8rem;
}

@media (hover: hover) {
  .first-flow__badges a {
    transition: opacity .2s;
  }

  .first-flow__badges a:hover {
    opacity: .75;
  }
}

@media (min-width: 768px) and (max-width: 1056.25px) {
  .first-consult__cards {
    gap: 2rem;
  }

  .first-consult__card,
  .first-consult__card--phone {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 2.4rem;
  }

  .first-flow__card {
    grid-template-columns: 8rem minmax(0, 1fr) 26rem;
    gap: 0;
    padding: 2.4rem;
  }

  .first-flow__number {
    width: 8rem;
    height: 8rem;
    font-size: 4.4rem;
  }

  .first-flow__image {
    height: auto;
  }

  .first-flow__app {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    padding-left: 11rem;
  }

  .first-flow__hours {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .first-page__intro {
    margin-top: 1.6rem;
    font-size: 1.5rem;
    line-height: 2;
  }

  .first-consult__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 2.4rem;
  }

  .first-consult__card,
  .first-consult__card--phone {
    flex-direction: column;
    gap: 1.2rem;
    min-height: 0;
    padding: 2.4rem 2rem;
    border-radius: 2rem 0;
  }

  .first-consult__card > img {
    flex-basis: auto;
    width: 8rem;
    height: 8rem;
  }

  .first-consult__title {
    font-size: 2rem;
    line-height: 1.5;
    text-align: center;
  }

  .first-consult__note,
  .first-consult__text {
    font-size: 1.5rem;
    line-height: 2;
  }

  .first-flow {
    padding-top: 2rem;
  }

  .first-flow__list {
    gap: 1.5rem;
    margin-top: 2.4rem;
  }

  .first-flow__card {
    grid-template-columns: 5.6rem minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1.6rem;
  }

  .first-flow__number {
    width: 5.6rem;
    height: 5.6rem;
    font-size: 3rem;
  }

  .first-flow__body {
    display: contents;
  }

  .first-flow__title {
    align-self: center;
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.5;
  }

  .first-flow__text {
    grid-column: 1 / -1;
    font-size: 1.5rem;
    line-height: 2;
  }

  .first-flow__image {
    grid-column: 1 / -1;
    height: auto;
    max-height: 22rem;
    object-fit: contain;
  }

  .first-flow__app {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    margin-top: 0;
    padding: 1.6rem 0 0;
    font-size: 1.5rem;
    line-height: 2;
  }

  .first-flow__badges {
    justify-content: center;
    flex-wrap: wrap;
  }

  .first-flow__app-photo {
    order: -1;
  }

  .first-flow__button {
    width: 32rem;
    max-width: 100%;
    margin-top: 3.2rem;
  }

  .first-flow__hours {
    margin-top: 2rem;
    font-size: 1.5rem;
    line-height: 2;
    text-align: center;
  }

  .first-check {
    padding-top: 8rem;
  }

  .first-check__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.4rem;
  }

  .first-check__list li {
    min-height: 0;
    padding: 2rem .8rem;
  }

  .first-check__list img {
    width: 8rem;
    height: 8rem;
  }

  .first-check__list p {
    margin-top: 1.2rem;
    font-size: 1.4rem;
    line-height: 1.7;
  }
}

/* XDの指定 */
.first-page .sub-lead__text,
.first-check .sub-heading__en,
.first-check__list li:nth-child(4) p {
  color: #000;
}

@media (min-width: 768px) and (max-width: 1056.25px) {
  .first-flow__body {
    margin-left: 3rem;
  }
}

@media (max-width: 767px) {
  .first-flow__body {
    margin-left: 0;
  }
}

/* XDのドロップシャドウ（X0 Y0 ぼかし5px 黒16%） */
.first-check__list li {
  box-shadow: 0 0 5px rgb(0 0 0 / 16%);
}

/* XDでは白の塗り（背面の装飾が透けないようにする） */
.first-check__list li {
  background: #fff;
}
