/* =========================================================
   ISHIBASHI NEWS UI
   ========================================================= */
.news-ui {
  --news-red: #c90016;
  --news-text: #171717;
  --news-subtext: #555;
  --news-line: #d5d5d5;
  --news-white: #fff;
  width: 100%;
  color: var(--news-text);
  font-family: inherit;
}

.news-ui,
.news-ui * {
  box-sizing: border-box;
}

.news-ui__link:focus-visible,
.news-ui__more:focus-visible {
  outline: 2px solid var(--news-red);
  outline-offset: 4px;
}

.news-ui__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-ui__item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--news-line);
}

.news-ui__item[hidden] {
  display: none !important;
}

.news-ui__link {
  display: grid;
  grid-template-columns: 100px 100% minmax(0, 1fr) 24px;
  align-items: center;
  column-gap: 22px;
  min-height: 10px;
  padding: 8px;
  color: inherit;
  text-decoration: none;
  transition: background-color .18s ease;
}

.news-ui__link:hover {
  background-color: #f7f7f7;
}

.news-ui__date {
  color: var(--news-text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .015em;
  white-space: nowrap;
}

.news-ui__category {
  display: block;
  padding: 2px 18px;
  border-left: 1px solid #bdbdbd;
  border-right: 1px solid #bdbdbd;
  color: var(--news-subtext);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.news-ui__title {
  min-width: 0;
  color: var(--news-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.news-ui__arrow,
.news-ui__more-arrow {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 11px;
  border-top: 3px solid var(--news-red);
  border-right: 3px solid var(--news-red);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.news-ui__link:hover .news-ui__arrow {
  transform: translateX(4px) rotate(45deg);
}

.news-ui__empty {
  margin: 0;
  padding: 28px 8px;
  color: var(--news-subtext);
  font-size: 14px;
}

.news-ui__more-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.news-ui__more {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 2px 10px 8px;
  border-bottom: 2px solid var(--news-red);
  color: var(--news-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
}

.news-ui__more:hover {
  color: var(--news-red);
}

.news-ui__more:hover .news-ui__more-arrow {
  transform: translateX(4px) rotate(45deg);
}

/* タブレット */
@media (max-width: 900px) {
  .news-ui__link {
    grid-template-columns: 80px 100% minmax(0, 1fr) 18px;
    column-gap: 10px;
  }

}

/* スマートフォン */
@media (max-width: 600px) {

  .news-ui__link {
    grid-template-columns: minmax(0, 1fr) 18px;
    gap: 4px 12px;
    min-height: 0;
    padding: 4px;
  }

  .news-ui__date {
    grid-column: 1;
    font-size: 12px;
  }

  .news-ui__category {
    grid-column: 1;
    justify-self: start;
    padding: 0 0 0 9px;
    border-left: 2px solid var(--news-red);
    border-right: 0;
    font-size: 11px;
    text-align: left;
  }

  .news-ui__title {
    grid-column: 1;
    font-size: 14px;
    line-height: 1.6;
  }

  .news-ui__arrow {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 9px;
    height: 9px;
  }

  .news-ui__more-wrap {
    margin-top: 18px;
  }

  .news-ui__more {
    gap: 16px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-ui *,
  .news-ui *::before,
  .news-ui *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
