/**
 * File: subp.css
 * Usage: トップページ以外の共通スタイルを定義します。
 * Example: サブページ共通のヘッダーなど
*/

.ly_introBanner {
  background: url(../img/intro/intro.webp);
  background-size: cover;
  background-position: center;
  aspect-ratio: 15 / 4;
  display: flex;
  align-items: center;
  position: relative;
  letter-spacing: 0.04em;
}

.ly_introBanner::after {
  content: '';
  background: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ly_introBanner h2 {
  color: var(--color-white);
  padding-inline: 20px;
  z-index: 100;
  font-size: 20px;
}

.bl_pagination {
  padding-top: 64px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  width: 100%;
}

.wp-pagenavi a,
.wp-pagenavi span {
  border: none;
  background: none;
  margin: 0;
  padding: 0;
}

.wp-pagenavi span.current {
  opacity: 20%;
}

.wp-pagenavi {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.wp-pagenavi .nextpostslink,
.wp-pagenavi .previouspostslink {
  border-radius: 50%;
  background: #008dda;
  width: 24px;
  height: 24px;
  background-image: url('../img/icons/pagenavi-arrow.svg');
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

.wp-pagenavi .nextpostslink {
  transform: rotate(180deg);
}

/* ============================
  症状ピックアップ
 ============================ */

.ly_symptomsPickup {
  background: #e9f0f4;
  padding-block: 80px 40px;
}

.ly_symptomsPickup h2 {
  font-size: 32px;
  font-weight: 700;
  color: #00527e;
  text-align: center;
  margin-bottom: 40px;
}

.bl_symptomsPickup .swiper-slide {
  width: min(48vw, 560px);
  flex-shrink: 0;
}

.bl_symptomsPickup_img {
  position: relative;
}

.bl_symptomsPickup_item h3 {
  color: #fff;
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 20px;
  z-index: 1;
}

.bl_symptomsPickup_img {
  aspect-ratio: 18 / 10;
  overflow: hidden;
  position: relative;
}

.bl_symptomsPickup_txt.sm_only {
  margin-top: 4px;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bl_symptomsPickup_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bl_symptomsPickup_img::after {
  content: '';
  background: rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bl_symptomsPickup .swiper-pagination {
  position: static;
  width: fit-content;
  margin-inline: auto 40px;
  margin-top: 16px;
}

.bl_symptomsPickup .swiper-pagination-bullet {
  background: #fff;
  opacity: 1;
  width: 10px;
  height: 10px;
}

.bl_symptomsPickup .swiper-pagination-bullet-active {
  background: #d9d9d9;
}

.bl_symptomsPickup .swiper-button-container {
  display: flex;
  gap: 10px;
  width: fit-content;
  margin-inline: auto 40px;
  height: auto;
  margin-top: 16px;
}

.bl_symptomsPickup .swiper-button-next,
.bl_symptomsPickup .swiper-button-prev {
  width: 40px;
  height: 40px;
  background: #008dda;
  border-radius: 50%;
  color: #fff;
  position: static;
  margin-top: 0;
}

.bl_symptomsPickup .swiper-button-next svg,
.bl_symptomsPickup .swiper-button-prev svg {
  width: 13px;
  height: 13px;
}

/* 
  セックションの前にプラネットの背景画像を追加
*/

.ly_planetTop {
  margin-top: 100px;
  background: #f2f9fd;
  position: relative;
}

.ly_planetTop::before {
  aspect-ratio: 378 / 50;
  position: absolute;
  content: '';
  background: url(../img/clinic/info-top.svg) no-repeat center;
  background-size: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(calc(-100% + 1px));
}

.ly_symptomsList h2 {
  font-size: 24px;
}

.ly_symptomsList {
  padding-block: 80px;
}

.bl_symptoms {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.bl_symptomsCategory_title {
  color: var(--text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.bl_symptomsCategory_title::after {
  content: '';
  width: 100%;
  height: 1px;
  background: #e5e5e5;
}

.bl_symptomsList_item h4 {
  font-size: 18px;
}

@media screen and (min-width: 768px) {
  .ly_introBanner {
    aspect-ratio: 144 / 25;
  }

  .ly_introBanner h2 {
    font-size: 40px;
    padding-inline: 80px;
  }

  .ly_symptomsList h2 {
    font-size: 32px;
    padding-bottom: 20px;
  }

  /* ============================
  症状ピックアップ
 ============================ */
  .ly_planetTop::before {
    top: 4px;
    background: url(../img/clinic/info-top-pc.svg) no-repeat center;
    background-size: cover;
  }

  .bl_symptomsPickup_item h3 {
    position: static;
    transform: none;
  }

  .bl_symptomsPickup_txt.sm_only {
    display: none !important;
  }

  .bl_symptomsPickup_text {
    position: absolute;
    bottom: 10px;
    left: 20px;
    z-index: 1;
    color: #fff;
  }

  .bl_symptomsPickup_text h3 {
    font-size: 32px;
  }

  .bl_symptomsPickup_text p {
    max-width: 280px;
  }

  .bl_symptomsPickup .swiper-button-container {
    gap: 32px;
  }

  .bl_symptomsPickup .swiper-pagination,
  .bl_symptomsPickup .swiper-button-container {
    display: flex;
    align-items: center;
    max-width: 1040px;
    margin-inline: auto;
    width: 100%;
    justify-content: flex-end;
  }

  .bl_symptomsPickup .swiper-button-next,
  .bl_symptomsPickup .swiper-button-prev {
    width: 70px;
    height: 70px;
  }

  .bl_symptomsPickup .swiper-button-next svg,
  .bl_symptomsPickup .swiper-button-prev svg {
    width: 24px;
    height: 24px;
  }
}