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

TECHNOLOGY テクノロジー

------------------------------------------------------- */
.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;
  }
}

.technology {
  margin: clamp(3rem, 1.699rem + 5.55vw, 6rem) auto clamp(8rem, 6.266rem + 7.4vw, 12rem);
  padding: 0 1rem;

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

.technology_contents {
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;

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

  & + .technology_contents {
    margin-top: 8rem;

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

  .technology_content_heading,
  .technology_number_container,
  & > .primary_link {
    grid-column: 1 / 6;
    min-width: 0;

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

  .technology_content_heading {
    grid-row: 1;

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

  .technology_number_container {
    grid-row: 2;

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

  & > .primary_link {
    grid-row: 3;

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

  .technology_figure {
    grid-column: 6 / 13;
    grid-row: 1 / 5;
    min-width: 0;
    margin-top: 2rem;
    margin-right: 2rem;
    align-self: start;

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

  &:nth-of-type(even) .technology_content_heading,
  &:nth-of-type(even) .technology_number_container,
  &:nth-of-type(even) .primary_link {
    grid-column: 8 / 13;
    justify-self: end;
    text-align: right;

    @media (max-width: 1024px) {
      grid-column: 1 / -1;
      grid-row: auto;
      justify-self: start;
      text-align: left;
    }
  }

  &:nth-of-type(even) .technology_content_heading {
    grid-row: 1;

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

  &:nth-of-type(even) .technology_number_container {
    grid-row: 2;

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

  &:nth-of-type(even) .primary_link {
    grid-row: 3;

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

  &:nth-of-type(even) .technology_content_heading,
  &:nth-of-type(even) .technology_number_container {
    align-items: flex-end;

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

  &:nth-of-type(even) .technology_figure {
    grid-column: 1 / 8;
    grid-row: 1 / 5;
    min-width: 0;
    margin-top: 2rem;
    margin-left: 2rem;
    align-self: start;

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

    &::before {
      right: auto;
      left: -2rem;

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

.technology_content_heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

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

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

.technology_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;
  }
}

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

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

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

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

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

.technology_figure {
  position: relative;
  margin: 0;

  &::before {
    content: "";
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 50%;
    height: calc(100% + 4rem);
    background: var(--main_color-pale);
    z-index: 0;

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

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

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

TECHNOLOGY （技術力・品質管理・開発プロセス・設備一覧）

------------------------------------------------------- */
.technology_detail {
  width: 100%;
  max-width: 1280px;
  margin: clamp(3rem, 1.699rem + 5.55vw, 6rem) auto clamp(8rem, 6.266rem + 7.4vw, 12rem);
  padding: 0 1rem;

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

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

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

.technology_detail_header {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;

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

.technology_detail_header::after {
  content: "";
  position: absolute;
  bottom: -3rem;
  left: 0;
  width: 3rem;
  border-bottom: solid 1px var(--base_color-border);

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

.technology_detail_sidebar {
  grid-column: 1 / 4;
  grid-row: 2;
  position: sticky;
  top: 7rem;
  align-self: start;

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

.technology_detail_sidebar_inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.technology_detail_sidebar_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

dd.technology_detail_sidebar_item {
  list-style-type: disc;
  display: list-item;
  margin-left: 1.5rem;
  line-height: 1.2;
}

dd.technology_detail_sidebar_item::marker {
  color: var(--text_gray);
}

.technology_detail_sidebar_link {
  transition: color 0.2s ease;
}

dt.technology_detail_sidebar_item .technology_detail_sidebar_link {
  line-height: 1.2;
  color: var(--main_color);
  font-weight: var(--font_bold);
  font-size: var(--font_text-sm);
}

dt.technology_detail_sidebar_item .technology_detail_sidebar_link:hover {
  color: var(--main_color-hover);
}

dd.technology_detail_sidebar_item .technology_detail_sidebar_link {
  color: var(--text_gray);
  font-size: var(--font_text-sm);
}

dd.technology_detail_sidebar_item .technology_detail_sidebar_link:hover,
dd.technology_detail_sidebar_item .technology_detail_sidebar_link.is-current {
  color: var(--main_color);
}

dd.technology_detail_sidebar_item:has(.technology_detail_sidebar_link:hover)::marker,
dd.technology_detail_sidebar_item:has(.technology_detail_sidebar_link.is-current)::marker {
  color: var(--main_color);
}

.technology_detail_main {
  grid-column: 4 / 13;
  grid-row: 2;
  min-width: 0;

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

#proposal,
#iot,
#onestop,
#material,
#quality-01,
#quality-02,
#equipment-01,
#equipment-02,
#equipment-03,
#equipment-04,
#equipment-05,
.technology_detail_item,
.technology_detail_equipment_section {
  scroll-margin-top: 8rem;

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

.technology_detail_heading {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

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

.technology_detail_section + .technology_detail_section {
  margin-top: 10rem;

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

.technology_detail_section_heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 3rem;
  font-size: var(--font_h3title);
  font-weight: var(--font_bold);
  color: var(--main_color);
  word-break: keep-all;
  overflow-wrap: break-word;

  @media (max-width: 1024px) {
    margin-bottom: 2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  &::before {
    content: "";
    flex-shrink: 0;
    width: 3rem;
    height: 2px;
    background-color: var(--main_color);

    @media (max-width: 1024px) {
      width: 100%;
      height: 4px;
    }
  }
}

.technology_detail_item + .technology_detail_item {
  margin-top: 4rem;

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

.technology_detail_item_top {
  display: flex;
  justify-content: flex-end;
}

.technology_detail_item_number {
  margin: 0;
  font-weight: var(--font_bold);
  line-height: 1;
  font-size: var(--font_text-md);
}

.technology_detail_item_title {
  margin: .5rem 0 0;
  font-size: var(--font_text-xl);
  font-weight: var(--font_bold);
  padding: 1.5rem 0;
  border-top: solid 1px var(--text_black);
  border-bottom: solid 1px var(--text_black);
  word-break: keep-all;
  overflow-wrap: break-word;

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

.technology_detail_item_body {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2rem;
  align-items: start;

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

.technology_detail_item_text {
  grid-column: 1 / 7;
  font-size: var(--font_text-md);
  line-height: 1.8;

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

.technology_detail_item_figure {
  grid-column: 7/10;
  margin: 0;
  aspect-ratio: 3 / 2;
  background-color: #e5e5e5;

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

.technology_detail_item_figure--large {
  aspect-ratio: 2 / 3;

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

.technology_detail--process .technology_detail_item_text,
.technology_detail--process .technology_detail_item_figure {
  grid-column: 1 / -1;
}

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

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

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

.technology_detail_material_table_wrap {
  grid-column: 1 / 7;

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

.technology_detail_material_table_lead {
  font-size: var(--font_text-md);
  line-height: 1.8;
  margin-bottom: 2rem;

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

.technology_detail_material_table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font_text-sm);

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

.technology_detail_material_table thead th {
  padding: .5rem;
  background-color: var(--main_color);
  color: var(--text_white);
  font-weight: var(--font_bold);
  text-align: left;
  border: solid 1px var(--base_color-border);
}

.technology_detail_material_table tbody th,
.technology_detail_material_table tbody td {
  padding: .5rem;
  border: solid 1px var(--base_color-border);
  text-align: left;
  font-weight: var(--font_bold);
  width: 50%;
}

.technology_detail_material_figure {
  grid-column: 7 / 10;
  margin: 0;
  aspect-ratio: 3 / 2;
  background-color: #e5e5e5;

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

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

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

EQUIPMENT 設備一覧

------------------------------------------------------- */
.technology_detail--equipment .technology_detail_header {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2rem;
  align-items: start;

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

.technology_detail--equipment .technology_detail_heading {
  grid-column: 1 / 4;

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

.technology_detail--equipment .technology_detail_sidebar {
  position: static;
}

.technology_detail--equipment .technology_detail_main {
  grid-column: 1 / -1;
  grid-row: 3;

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

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

.technology_detail_introduction {
  grid-column: 7 / 13;
  grid-row: 1 /3;
  align-self: center;

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

.technology_detail_introduction_heading {
  font-size: var(--font_text-xl);
  font-weight: var(--font_bold);
}

.technology_detail_introduction_text {
  font-size: var(--font_base);
  margin-top: 1rem;
  line-height: 1.8;
}

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

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

.technology_detail--equipment .technology_detail_section_heading {
  padding: .5rem 1rem;
  border-left: 8px solid var(--main_color);
  color: var(--text_black);
  display: block;

  &::before {
    content: none;
  }
}

.technology_detail_equipment_lead {
  margin: 0 0 2rem;
  font-size: var(--font_text-md);
  line-height: 1.8;

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

.technology_detail_equipment_table_wrap {
  overflow-x: auto;
}

.technology_detail_equipment_table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font_text-sm);

  @media (max-width: 1024px) {
    min-width: 52rem;
  }
}

.technology_detail_equipment_table thead th:first-of-type {
  width: 35%;
}

.technology_detail_equipment_table thead th:nth-of-type(2) {
  width: 5%;
  text-align: right;
}

.technology_detail_equipment_table thead th:last-of-type {
  width: 60%;
}

.technology_detail_equipment_table thead th {
  padding: .75rem 1rem;
  background-color: var(--main_color);
  color: var(--text_white);
  font-weight: var(--font_bold);
  text-align: left;
  border: solid 1px var(--main_color);

  @media (max-width: 1024px) {
    padding: .5rem .75rem;
  }
}

.technology_detail_equipment_table thead th:not(:last-of-type) {
  border-right: solid 1px var(--base_color-border);
}

.technology_detail_equipment_table tbody th,
.technology_detail_equipment_table tbody td {
  padding: .75rem 1rem;
  border: solid 1px var(--base_color-border);
  vertical-align: top;

  @media (max-width: 1024px) {
    padding: .5rem .75rem;
  }
}

.technology_detail_equipment_table tbody th {
  font-weight: var(--font_bold);
  white-space: nowrap;
  text-align: left;
}

.technology_detail_equipment_table_qty {
  text-align: right;
  white-space: nowrap;
  width: 4rem;
}

.technology_detail_equipment_gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;

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

.technology_detail_equipment_gallery--cols4 .technology_detail_equipment_gallery_item {
  grid-column: span 3;

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

.technology_detail_equipment_gallery--cols3 .technology_detail_equipment_gallery_item {
  grid-column: span 4;

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

.technology_detail_equipment_figure {
  margin: 0;
}

.technology_detail_equipment_image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background-color: #e5e5e5;
}

.technology_detail_equipment_figure figcaption {
  margin-top: .5rem;
  font-size: var(--font_text-sm);
  line-height: 1.6;

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

.technology_detail_equipment_slider {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 2rem;

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

.technology_detail_equipment_slider .splide__track {
  order: 1;
}

.technology_detail_equipment_slider .splide__arrows {
  order: 2;
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: .5rem;
}

.technology_detail_equipment_slider .splide__arrow {
  position: static;
  transform: none;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--base_color-border);
  border-radius: 50%;
  background-color: var(--base_color);
  opacity: 1;
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.technology_detail_equipment_slider .splide__arrow svg {
  fill: var(--main_color);
}

.technology_detail_equipment_slider .splide__arrow:hover:not(:disabled) {
  background-color: var(--main_color-pale);
  border-color: var(--main_color-light);
}

.technology_detail_equipment_slider .splide__arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.technology_detail_equipment_slider_counter {
  min-width: 5rem;
  margin: 0;
  font-family: var(--font_en, "Montserrat", sans-serif);
  font-size: var(--font_text-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .05em;
  text-align: center;
  color: var(--main_color);
}