/* ========================================
   ピットドクターとは
   ======================================== */

/* MEDICAL STYLE：波の高さは画面幅に比例する（支給SVG 1920 × 282.7）。 */

.about-style {
  --about-wave: 14.7239583333vw;
  padding-top: max(2rem, calc(var(--about-wave) - 15.5rem));
  padding-bottom: var(--about-wave);
  background:
    url("../images/pages/about/wave-top.svg") center top / 100% auto no-repeat,
    url("../images/pages/about/wave-bottom.svg") center bottom / 100% auto no-repeat,
    linear-gradient(#f2f8fc, #f2f8fc) center / 100% calc(100% - var(--about-wave) * 2) no-repeat;
}

.about-style__rows {
  margin-top: 7rem;
}

.about-style__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.about-style__row:first-child .about-style__content {
  padding-bottom: 4.6rem;
}

.about-style__row:nth-child(odd) .about-style__content {
  padding-right: 5rem;
}

.about-style__row:nth-child(even) .about-style__content {
  padding-left: 3.4rem;
}

.about-style__row:nth-child(even) .about-style__photo {
  order: -1;
}

.about-style__label {
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  line-height: 2rem;
}

.about-style__title {
  margin: .4rem 0 0;
  color: #172c57;
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 4.8rem;
}

.about-style__text {
  margin-top: 1.3rem;
  font-size: 1.6rem;
  line-height: 3.2rem;
}

.about-style__photo img {
  width: 100%;
  aspect-ratio: 601 / 448;
  object-fit: cover;
  border-radius: 3rem;
}

/* RECOMMENDED */

.about-recommend {
  padding-block: 4.2rem 10rem;
}

.about-recommend__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4.1rem 3.3rem;
  margin: 7rem 0 0;
  padding: 0;
  list-style: none;
}

.about-recommend__card {
  display: flex;
  flex: 0 0 calc((100% - 6.6rem) / 3);
  flex-direction: column;
  align-items: center;
  min-height: 27rem;
  padding: 5rem 1rem 2.4rem;
  border: 1px solid #0281cd;
  border-radius: 1rem;
  text-align: center;
}

.about-recommend__card img {
  width: auto;
  height: 10rem;
}

.about-recommend__card p {
  margin-top: 3.4rem;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.8rem;
}

/* 中間幅：TOPのABOUTと同じく、ポイントはアイコン上・文言下にする。 */

@media (min-width: 768px) and (max-width: 1056.25px) {
  .about-style__title {
    font-size: 2.8rem;
    line-height: 4.2rem;
  }

  .about-style__row:nth-child(odd) .about-style__content {
    padding-right: 3.2rem;
  }

  .about-style__row:nth-child(even) .about-style__content {
    padding-left: 3.2rem;
  }

  .about-recommend__card {
    min-height: 0;
    padding: 3.6rem 1rem;
  }

  .about-recommend__card p {
    margin-top: 2.4rem;
    font-size: 1.5rem;
  }
}

/* SP：TOPのABOUTと同じく 見出し → 写真 → 本文 → ポイント の順。 */

@media (max-width: 767px) {
  .about-style {
    padding-top: calc(var(--about-wave) + 2rem);
    padding-bottom: calc(var(--about-wave) + 3rem);
  }

  .about-style__rows {
    margin-top: 3.2rem;
  }

  .about-style__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  .about-style__row + .about-style__row {
    margin-top: 5rem;
  }

  .about-style__row .about-style__photo,
  .about-style__row:nth-child(even) .about-style__photo {
    order: -1;
  }

  .about-style__row:first-child .about-style__content,
  .about-style__row:nth-child(odd) .about-style__content,
  .about-style__row:nth-child(even) .about-style__content {
    padding: 0;
  }

  .about-style__photo img {
    border-radius: 1.5rem;
  }

  .about-style__title {
    font-size: 2.4rem;
    line-height: 1.5;
  }

  .about-style__text {
    margin-top: 1.2rem;
    font-size: 1.5rem;
    line-height: 2;
  }

  .about-recommend {
    padding-block: 1rem 8rem;
  }

  .about-recommend__list {
    gap: 1.5rem;
    margin-top: 3.2rem;
  }

  .about-recommend__card {
    flex: 0 1 50rem;
    min-height: 0;
    padding: 2.8rem 1.5rem;
  }

  .about-recommend__card img {
    height: 8rem;
  }

  .about-recommend__card p {
    margin-top: 1.6rem;
    font-size: 1.5rem;
    line-height: 2.6rem;
  }
}

/* XDの指定 */
.about-style__row:first-child .about-style__text {
  color: #000;
}

@media (min-width: 1056.26px) {
  .about-recommend__card:nth-child(4) {
    margin-left: 9.6rem;
  }
}

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

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