/* ===== Product List Page ===== */

.p-productlist__section {
  padding: 120px 0;
  background: var(--color-bg-white);
}

/* FV lead text — PC only break */
.p-productlist__lead-br--sp {
  display: none;
}

/* FV lead text — SP only break */
.p-productlist__lead-br--pc {
  display: block;
}

/* Section heading */
.p-productlist__heading {
  margin-bottom: 72px;
}

/* Filter tabs */
.p-productlist__filter {
  margin-bottom: 32px;
}

.p-productlist__filter .c-tab-nav__btn {
  padding: 8px 16px 8px 0;
  margin-right: 16px;
  font-size: var(--font-size-lg);
  position: relative;
}

/* Note */
.p-productlist__note {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  margin: 0 0 48px;
}

.p-productlist__note--bottom {
  font-size: 18.29px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-dark);
  text-align: center;
  margin: 80px 0 0;
}

.p-productlist__note--bottom::before {
  content: "● ";
  color: var(--color-primary);
}

/* Product grid */
.p-productlist__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Card link style overrides for productlist */
.p-productlist__list .c-product-card__tags {
  font-weight: var(--font-weight-bold);
}

.p-productlist__list .c-product-card__desc {
  font-weight: var(--font-weight-bold);
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
}

.p-productlist__list .c-product-card__specs {
  font-weight: var(--font-weight-bold);
  padding-top: 16px;
}

/* Filter hidden state */
.p-productlist__item {
  display: block;
}

.p-productlist__item[hidden] {
  display: none;
}

/* =========================================
   TABLET (1024px)
   ========================================= */
@media (max-width: 1024px) {
  .p-productlist__heading {
    margin-bottom: 48px;
  }

  .p-productlist__section {
    padding: 48px 0 80px;
  }

  .p-productlist__list {
    gap: 32px 12px;
  }
}

/* =========================================
   TABLET (840px)
   ========================================= */
@media (max-width: 840px) {
  .p-productlist__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   SP (767px)
   ========================================= */
@media (max-width: 767px) {
  .p-productlist__lead-br--sp {
    display: block;
  }

  .p-productlist__lead-br--pc {
    display: none;
  }

  .p-productlist__heading {
    margin-bottom: 32px;
  }

  /* FAQタブと同じ折り返し方式 */
  .p-productlist__filter {
    justify-content: flex-start;
    margin-bottom: 24px;
  }

  .p-productlist__filter .c-tab-nav__list {
    width: 100%;
    overflow-x: visible;
  }

  .p-productlist__filter .c-tab-nav__item {
    min-width: 0;
    width: auto;
  }

  .p-productlist__filter .c-tab-nav__btn {
    width: auto;
    font-size: var(--font-size-sm);
    white-space: nowrap;
    padding: 8px 16px 8px 0;
    margin-right: 0;
  }

  .p-productlist__filter .c-tab-nav__item:first-child .c-tab-nav__btn {
    padding-left: 0;
  }

  .p-productlist__section {
    padding: 40px 0 64px;
  }

  .p-productlist__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 12px;
  }

  .p-productlist__list .c-product-card__desc br {
    display: none;
  }

  .p-productlist__note--bottom {
    margin-top: 40px;
  }
}

/* =========================================
   SP narrow (480px)
   ========================================= */
@media (max-width: 480px) {
  .p-productlist__list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
