/* ========================================
   夜間・休日外来
   ======================================== */
.night-page__lead {
  padding-bottom: 0;
}

.night-page__anchors {
  margin-top: 7.2rem;
  margin-bottom: 5.2rem;
}

/* SYMPTOMS */
.night-symptoms__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin: 7rem 0 0;
  padding: 0;
  list-style: none;
}

.night-symptoms__list li {
  display: flex;
  flex: 0 0 calc((100% - 6rem) / 3);
  flex-direction: column;
  align-items: center;
  min-height: 27.9rem;
  padding: 4.6rem 1rem 2rem;
  border: 1px solid #0281cd;
  border-radius: 1rem;
  background: #fff;
  text-align: center;
}

.night-symptoms__icon {
  display: grid;
  place-items: center;
  height: 11rem;
}

.night-symptoms__icon img {
  width: auto;
  height: 11rem;
}

.night-symptoms__list p {
  margin-top: 4rem;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.5;
}

/* 共通の余白 */
.night-section {
  padding-top: 4.2rem;
}

.night-section + .night-section {
  padding-top: 10rem;
}

/* アイコンと説明の2列カード（検査・支払い） */
.night-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.night-info--spaced {
  margin-top: 7rem;
}

.night-info--price {
  gap: 3.6rem;
  margin-top: 4.8rem;
}

.night-info li {
  display: flex;
  align-items: center;
  gap: 4.4rem;
  min-height: 10.5rem;
  padding: 1rem 2rem 1rem 4.4rem;
  border: 1px solid #0281cd;
  border-radius: 1rem;
  background: #fff;
}

.night-info img {
  flex: 0 0 7rem;
  width: 7rem;
  height: 7rem;
  object-fit: contain;
}

.night-info h3 {
  margin: 0;
  color: #0281cd;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.5;
}

.night-info p {
  font-size: 1.6rem;
  line-height: 2rem;
}

/* GUIDANCE */
.night-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 7rem;
}

.night-guide__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 49.4rem;
  padding: 2.7rem 2rem 2.4rem;
  border-radius: 3rem 0;
  background: #f2f8fc;
  color: #172c57;
}

.night-guide__card--alert {
  background: #fdf0f0;
}

.night-guide__image {
  width: 12rem;
  height: 12rem;
}

.night-guide__image--small {
  width: 8.7rem;
  height: 8.7rem;
  margin-block: 1.7rem;
}

.night-guide__title {
  margin: 1.8rem 0 1.2rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 3rem;
  text-align: center;
}

.night-guide__card--alert .night-guide__title,
.night-guide__note {
  color: #fb0b09;
}

.night-guide__note {
  margin-top: .8rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 3.2rem;
  text-align: center;
}

.night-guide__contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 2rem;
  margin-top: 2.6rem;
  text-align: center;
}

.night-guide__contact-title {
  color: #172c57;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 4.2rem;
}

.night-guide__button {
  width: 33.7rem;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 1rem 1.9rem;
}

/* PRICE */
.night-price {
  padding-top: 10rem;
}

.night-price__intro {
  margin-top: 1.6rem;
  font-size: 1.6rem;
  line-height: 3.2rem;
}

.night-price__cards {
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.6rem;
  margin-top: 7.4rem;
  padding-top: 7.9rem;
}

.night-price__card {
  position: relative;
  min-height: 36.2rem;
  padding: 10.2rem 4.1rem 2rem;
  border-radius: 3rem;
  background: #fff;
  box-shadow: 0 0 5px rgb(0 0 0 / 16%);
}

/* XDでは円をカードの上に重ねる（ラベルは後続要素なので円より前面になる） */
.night-price__card::before {
  content: "";
  position: absolute;
  top: -7.9rem;
  left: 50%;
  width: 15.9rem;
  height: 15.9rem;
  border-radius: 50%;
  background: #0281cd;
  transform: translateX(-50%);
}

.night-price__label {
  position: absolute;
  top: -1.4rem;
  left: 0;
  width: 100%;
  margin: 0;
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 3rem;
  text-align: center;
}

.night-price__table thead th {
  width: auto;
  background: none;
  border-top: 0;
  font-weight: 500;
}

.night-price__table td {
  padding-left: 0;
  text-align: center;
}

.night-price__card--child {
  text-align: center;
}

.night-price__child-title {
  color: #0281cd;
  font-size: 3rem;
  font-weight: 700;
  line-height: 4rem;
}

.night-price__child-text {
  margin-top: 2.4rem;
  color: #0281cd;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 3.6rem;
}

.night-price__note {
  margin-top: 2rem;
  font-size: 1.5rem;
  line-height: 2.8rem;
}

.night-price__note--block {
  margin-top: 4.4rem;
  padding-left: 4.1rem;
}

.night-faq {
  padding-top: 21.1rem;
}

.night-faq__group {
  margin-top: 2.7rem;
}

.night-faq__group:first-of-type {
  margin-top: 1.5rem;
}

.night-faq__heading {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  margin: 0 0 3.3rem 4rem;
  color: #0281cd;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.5;
}

.night-faq__heading img {
  width: 6rem;
  height: 6rem;
}

@media (min-width: 768px) and (max-width: 1056.25px) {
  .night-info li {
    gap: 2rem;
    padding-left: 2rem;
  }

  .night-guide__card {
    min-height: 0;
  }

  .night-price__card {
    padding-inline: 2rem;
  }
}

@media (max-width: 767px) {
  .night-page__anchors {
    margin-block: 2.4rem 3rem;
  }

  .night-symptoms__list {
    gap: 1rem;
    margin-top: 2.4rem;
  }

  .night-symptoms__list li {
    flex-basis: calc((100% - 1rem) / 2);
    min-height: 0;
    padding: 2rem .8rem;
  }

  .night-symptoms__icon,
  .night-symptoms__icon img {
    height: 7rem;
  }

  .night-symptoms__list p {
    margin-top: 1.2rem;
    font-size: 1.5rem;
  }

  .night-section,
  .night-section + .night-section {
    padding-top: 6rem;
  }

  .night-info,
  .night-info--price,
  .night-guide,
  .night-guide__contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .night-info {
    gap: 1rem;
  }

  .night-info--spaced {
    margin-top: 2.4rem;
  }

  .night-info--price {
    gap: 1rem;
    margin-top: 2.4rem;
  }

  .night-info li {
    gap: 1.6rem;
    padding: 1.2rem 1.6rem;
  }

  .night-info img {
    flex-basis: 5.6rem;
    width: 5.6rem;
    height: 5.6rem;
  }

  .night-info h3 {
    font-size: 1.7rem;
  }

  .night-info p {
    font-size: 1.4rem;
    line-height: 1.6;
  }

  .night-guide {
    gap: 1.5rem;
    margin-top: 2.4rem;
  }

  .night-guide__card {
    min-height: 0;
    padding: 2.4rem 1.6rem;
    border-radius: 2rem 0;
  }

  .night-guide__image {
    width: 8rem;
    height: 8rem;
  }

  .night-guide__image--small {
    margin-block: 0;
  }

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

  .night-guide__note {
    font-size: 1.5rem;
  }

  .night-guide__contact {
    margin-top: 3.2rem;
  }

  .night-guide__contact-title {
    font-size: 2rem;
  }

  .night-guide__button {
    width: 32rem;
  }

  .night-price {
    padding-top: 6rem;
  }

  .night-price__intro {
    font-size: 1.5rem;
    line-height: 2;
  }

  .night-price__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 9rem;
    margin-top: 2.4rem;
  }

  .night-price__card {
    min-height: 0;
    padding: 9.4rem 1.6rem 2.4rem;
  }

  .night-price__child-title {
    font-size: 2.2rem;
    line-height: 1.5;
  }

  .night-price__child-text {
    margin-top: 1.2rem;
    font-size: 1.7rem;
    line-height: 1.6;
  }

  .night-price__note {
    font-size: 1.4rem;
    line-height: 1.8;
  }

  .night-price__note--block {
    padding-left: 0;
  }

  .night-faq {
    padding-top: 8rem;
  }

  .night-faq__group {
    margin-top: 3.2rem;
  }

  .night-faq__group:first-of-type {
    margin-top: 2.4rem;
  }

  .night-faq__heading {
    gap: 1rem;
    margin-left: 0;
    font-size: 1.8rem;
  }

  .night-faq__heading img {
    width: 4rem;
    height: 4rem;
  }
}

/* XDの指定 */
.night-page .sub-lead__text,
.night-price .sub-heading__en {
  color: #000;
}

.night-guide .sub-check {
  align-self: flex-start;
  margin-left: 7.9rem;
}

.night-guide .sub-check li {
  padding-left: 3.1rem;
}

.night-price__card--child .night-price__note {
  text-align: left;
}

.night-info--price li:nth-child(2) {
  padding-left: 3.6rem;
}

.night-info--spaced li:nth-child(n+2) img {
  flex-basis: 6rem;
  width: 6rem;
  height: 6rem;
  margin-inline: .5rem;
}

@media (max-width: 767px) {
  .night-guide .sub-check {
    align-self: auto;
    margin-left: 0;
  }
  .night-guide .sub-check li {
    padding-left: 3rem;
  }
  .night-info--price li:nth-child(2) {
    padding-left: 1.6rem;
  }
}

@media (min-width: 768px) {
  .night-info p {
    margin-top: 1.1rem;
  }
  .night-info--price + .night-price__note--block {
    margin-top: 3.3rem;
  }
  .night-price__child-title {
    margin-top: 1.7rem;
  }
  .night-price__card--child .night-price__note {
    margin-top: 2.9rem;
  }
}

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