/* -------------------------------------------------------

PRODUCTS 製品一覧

------------------------------------------------------- */
.page_header_title {
  @media (max-width: 1024px) {
    grid-column: 1 / -1;
  }
}

.page_header_introduction {
  @media (max-width: 1024px) {
    grid-column: 1 / -1;
    padding: 0;
  }
}

.page_header_introduction_text {
  @media (max-width: 1024px) {
    line-height: 1.8;
  }
}

.page_header_image {
  @media (max-width: 1024px) {
    aspect-ratio: 3 / 2;
  }
}

.products {
  margin: clamp(3rem, 1.699rem + 5.55vw, 6rem) auto 0;
  padding: 0;

  @media (max-width: 1024px) {
    margin: 4rem auto 8rem;
    padding: 0;
  }
}

.products_contents + .products_contents {
  margin-top: 8rem;

  @media (max-width: 1024px) {
    margin-top: 3rem;
  }
}

.products_contents:nth-of-type(even) {
  background-color: var(--base_color-pale);
  padding-top: 6rem;
  padding-bottom: 6rem;

  @media (max-width: 1024px) {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .content_left_container {
    align-items: flex-end;
    grid-column: 7 / 13;

    @media (max-width: 1024px) {
      align-items: flex-start;
      grid-column: 1 / -1;
    }
  }

  .products_content_heading,
  .products_number_container {
    align-items: flex-end;
    text-align: right;

    @media (max-width: 1024px) {
      align-items: flex-start;
      text-align: left;
    }
  }

  .content_right_container {
    grid-column: 1 / 7;
    grid-row: 1;

    @media (max-width: 1024px) {
      grid-column: 1 / -1;
      grid-row: auto;
    }
  }

  .products_figure:nth-of-type(1) {
    justify-self: end;

    @media (max-width: 1024px) {
      justify-self: stretch;
    }

    &::before {
      right: auto;
      left: 0;
    }
  }

  .products_figure:nth-of-type(2) {
    grid-column: 1 / 5;
    justify-self: start;

    @media (max-width: 1024px) {
      grid-column: 1 / -1;
      justify-self: stretch;
    }

    &::before {
      left: auto;
      right: 0;
    }
  }
}

.products_contents:last-of-type {
  padding-bottom: 12rem;

  @media (max-width: 1024px) {
    padding-bottom: 0;
  }
}

.content_left_container {
  grid-column: 1 / 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;

  @media (max-width: 1024px) {
    gap: 1.5rem;
    grid-column: 1 / -1;
  }
}

.products_content_heading {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.products_content_heading_en {
  font-size: var(--font_text-xl);
  color: var(--main_color);
}

.products_content_heading_ja {
  font-size: var(--font_h2title);
  font-weight: var(--font_bold);
}

.products_number_container {
  padding-top: 2rem;
  border-top: solid 1px var(--text_black);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 180px;

  @media (max-width: 1024px) {
    padding-top: 1.5rem;
  }
}

.products_number_item_1 {
  font-size: 1.125rem;
  font-weight: var(--font_bold);
}

.products_number_item_2_1 {
  font-size: 2.5rem;
  font-weight: var(--font_bold);

  @media (max-width: 1024px) {
    font-size: 2rem;
  }
}

.products_number_item_2_2 {
  font-size: 1.25rem;
  font-weight: var(--font_bold);

  @media (max-width: 1024px) {
    font-size: 1rem;
  }
}

.products_content_description {
  font-size: var(--font_text-md);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 498px;

  @media (max-width: 1024px) {
    max-width: none;
    font-size: var(--font_base);
  }
}

.content_right_container {
  grid-column: 7 / 13;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);

  @media (max-width: 1024px) {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.products_figure {
  position: relative;
  margin: 0;
  padding: 2rem;

  @media (max-width: 1024px) {
    padding: 0;
  }

  &::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: url("/img/gradation.svg") no-repeat center center / cover;
    z-index: 0;

    @media (max-width: 1024px) {
      content: none;
    }
  }

  &:nth-of-type(1) {
    grid-column: 1 / -1;
  }

  &:nth-of-type(2) {
    grid-column: 2 / -1;

    @media (max-width: 1024px) {
      grid-column: 1 / -1;
    }

    &::before {
      bottom: 0;
      left: 0;
      top: auto;
      right: auto;
    }
  }
}

.products_figure_image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3/2;
}

/* -------------------------------------------------------

PRODUCTS 製品詳細（第三階層）

------------------------------------------------------- */
.products_detail {
  width: 100%;
  max-width: 1280px;
  margin: 6rem auto 0;
  padding: 6rem 1rem 0;
  border-top: solid 1px var(--base_color-border);

  @media (max-width: 1024px) {
    margin-top: 3rem;
    padding: 3rem var(--pad_side-sp) 0;
  }
}

.products_detail:first-of-type {
  padding-top: 0;
  border-top: none;
  scroll-margin-top: 18rem;

  @media (max-width: 1024px) {
    scroll-margin-top: 8rem;
  }
}

.products_detail:last-of-type {
  margin-bottom: 12rem;

  @media (max-width: 1024px) {
    margin-bottom: 8rem;
  }
}

.products_detail_header {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 4rem;
  align-items: start;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.products_detail_heading {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  line-height: 1.2;

  @media (max-width: 1024px) {
    grid-column: 1 / -1;
  }
}

.products_detail_heading_en {
  font-size: var(--font_text-xl);
  color: var(--main_color);
}

.products_detail_heading_ja {
  font-size: var(--font_h2title);
  font-weight: var(--font_bold);
}

.products_detail_description {
  grid-column: 2 / 3;
  font-size: var(--font_text-md);
  padding-top: 3rem;

  @media (max-width: 1024px) {
    grid-column: 1 / -1;
    padding-top: 0;
    font-size: var(--font_base);
  }
}

.products_detail_body {
  margin-top: 3rem;

  @media (max-width: 1024px) {
    margin-top: 2rem;
  }
}

.products_detail_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  list-style: none;
  padding: 0;
  margin: 0;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.products_detail_figure {
  margin: 0;
  aspect-ratio: 3/2;
  background-color: #e5e5e5;
}

.products_detail_image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products_detail_item_title {
  margin: 1rem 0 0;
  font-size: var(--font_text-lg);
  font-weight: var(--font_bold);
}

.products_detail_item_text {
  margin: .5rem 0 0;
  font-size: var(--font_text-sm);
  line-height: 1.8;

  @media (max-width: 1024px) {
    font-size: var(--font_base);
  }
}