/* News and topics list */
.news-content {
  width: calc(100% - 128px);
  margin: 0 auto;
  padding: 64px 0 120px;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 32px;
  align-items: start;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dedbd4;
}

.news-list__item {
  border-bottom: 1px solid #dedbd4;
}

.news-list__link {
  display: grid;
  grid-template-columns: 132px 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 16px 0;
  color: #2b2b2f;
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.news-list__link:hover,
.news-list__link:focus-visible {
  background: #f4f1eb;
  box-shadow: 0 8px 20px rgba(19, 42, 70, 0.1);
  transform: translateX(4px);
}

.news-list__date {
  color: #42444a;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  white-space: nowrap;
}

.news-list__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-height: 32px;
  padding: 3px 12px;
  color: #fff;
  background: #08bdb8;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
}

.news-list__label--product { background: #f9ad00; }
.news-list__label--ir { background: #172b45; }
.news-list__label--recruit { background: #08bdb8; }
.news-list__label--notice { background: #70727b; }

.news-list__title {
  min-width: 0;
  margin: 0;
  font-size: var(--font-body);
  line-height: var(--line-body);
  overflow-wrap: anywhere;
  transition: color .25s ease;
}

.news-list__link:hover .news-list__title,
.news-list__link:focus-visible .news-list__title {
  color: #f9ad00;
}

@media (prefers-reduced-motion: reduce) {
  .news-list__link,
  .news-list__title {
    transition: none;
  }
}


.news-list__arrow {
  color: #62656c;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  line-height: 1;
  text-align: right;
}

.news-filter {
  border-top: 1px solid #dedbd4;
}

.news-filter__link {
  display: flex;
  align-items: center;
  min-height: 61px;
  padding: 0 22px;
  border-bottom: 1px solid #dedbd4;
  color: #2b2b2f;
  font-size: 15px;
  transition: background-color .2s ease, color .2s ease;
}

.news-filter__link:hover,
.news-filter__link.is-current {
  background: #f4f1eb;
  color: #172b45;
  font-weight: 700;
}

.news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.news-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dedbd4;
  background: #fff;
  color: #2b2b2f;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}

.news-pagination a:hover,
.news-pagination a.is-current {
  border-color: #f9ad00;
  background: #f9ad00;
  color: #fff;
}

/* Match the pagination used by the product information archives. */
.pagination {
  padding-top: var(--sp-5n);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-1n);
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: #fff;
  color: #6b6d75;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.pagination .page-numbers.current {
  border-color: var(--color-navy);
  background: var(--color-navy-dark);
  color: #fff;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  width: auto;
  min-width: 36px;
  padding-right: 12px;
  padding-left: 12px;
  white-space: nowrap;
}

.news-detail {
  min-width: 0;
}

.news-detail__header {
  margin-bottom: 40px;
}

.news-detail__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  color: #42444a;
}

.news-detail__date {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.news-detail__label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 16px;
  background: #08bdb8;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.news-detail__title {
  position: relative;
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #dedbd4;
  color: #172b45;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 700;
  line-height: 1.6;
}

.news-detail__title::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 64px;
  height: 3px;
  background: var(--color-primary);
  content: "";
}

.news-detail__body {
  padding-top: 32px;
  color: #2b2b2f;
  font-size: var(--font-body);
  line-height: var(--line-body);
}

.news-detail__body p {
  margin: 0 0 24px;
}

.news-detail__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1500px) {
  .news-content {
    width: calc(100% - 80px);
  }

  .news-list__link {
    grid-template-columns: 120px 120px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-filter {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #dedbd4;
  }

  .news-filter__link {
    justify-content: center;
    min-height: 48px;
    padding: 0 8px;
    border-right: 1px solid #dedbd4;
    text-align: center;
    font-size: var(--font-body);
  }
}

@media (max-width: 767px) {
  .news-content {
    width: calc(100% - 32px);
    padding: 48px 0 72px;
  }

  .news-list__link {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    min-height: 74px;
    padding: 12px 8px;
  }

  .news-list__date {
    font-size: 12px;
  }

  .news-list__label {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    width: auto;
    min-height: 22px;
    padding: 2px 8px;
    font-size: 11px;
  }

  .news-list__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
  }

  .news-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-filter__link {
    min-height: 44px;
    font-size: 12px;
  }

  .news-pagination {
    margin-top: 32px;
  }

  .news-detail__meta {
    gap: 10px;
    margin-bottom: 18px;
  }

  .news-detail__date {
    font-size: 12px;
  }

  .news-detail__label {
    min-height: 24px;
    padding: 2px 10px;
    font-size: 12px;
  }

  .news-detail__header {
    margin-bottom: 28px;
  }

  .news-detail__title {
    padding-bottom: 16px;
    font-size: 19px;
  }

  .news-detail__body {
    padding-top: 24px;
    font-size: var(--font-body);
    line-height: var(--line-body);
  }
}

/* Category title above the news list (same look as product category pages) */
.news-category-title {
  padding: 48px var(--sp-8n) 40px;
  background: transparent;
}

.news-category-title + .news-content {
  padding-top: 0;
}

.news-category-title .products-section-heading {
  width: 424px;
  max-width: 100%;
  margin-bottom: 0;
}

.news-category-title .products-section-heading h2 {
  margin: 0;
  color: var(--color-navy-dark);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.news-category-title .products-section-heading::after {
  display: block;
  width: 304px;
  height: 4px;
  margin-top: var(--sp-2n);
  background: linear-gradient(to right, var(--color-primary) 0 64px, var(--color-border) 64px 100%);
  content: "";
}

@media (max-width: 767px) {
  .news-category-title {
    padding: 32px 16px 28px;
  }
}

/* Article body follows the article header width on wide screens */
.news-detail .entry-content {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

/* Remove the gap between paragraphs in the article body */
.news-detail .entry-content p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Tables in an article: size to the longest text in each column instead of stretching to the full width.
   WordPress's "fixed layout" table style (width: 100%; table-layout: fixed) is turned off here. */
.news-detail .entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

.news-detail .entry-content .wp-block-table table {
  width: auto;
  max-width: 100%;
  table-layout: auto;
}
