@import url("./page-common.css");

.p-news .c-content-narrow {
  max-width: 1176px;
}

.p-news__loading,
.p-news__empty {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-light);
  text-align: center;
}

.p-news__year + .p-news__year {
  margin-top: 56px;
}

.p-news__year-title {
  margin: 0 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-primary);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  line-height: 36px;
}

.p-news__items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-news__item {
  display: grid;
  grid-template-columns: 112px 112px 1fr;
  gap: 24px;
  padding: 16px 0 17px;
  border-bottom: 1px solid rgba(47, 92, 66, 0.1);
  align-items: start;
}

.p-news__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  margin-top: 2px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-primary);
  background-color: rgba(47, 92, 66, 0.1);
  border-radius: 4px;
  white-space: nowrap;
}

.p-news__date {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}

.p-news__body {
  min-width: 0;
}

.p-news__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.p-news__title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(47, 92, 66, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.p-news__title a:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

.p-news__note {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.p-news__note a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.p-news__note a:hover {
  color: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .p-news__year + .p-news__year {
    margin-top: 40px;
  }

  .p-news__year-title {
    font-size: 22px;
    line-height: 30px;
    letter-spacing: 1px;
    padding-bottom: 10px;
    margin-bottom: 4px;
  }

  .p-news__item {
    grid-template-columns: auto auto 1fr;
    gap: 8px 12px;
    padding: 14px 0 15px;
  }

  .p-news__date {
    font-size: 14px;
  }

  .p-news__tag {
    width: auto;
    margin-top: 0;
    padding: 4px 10px;
    letter-spacing: normal;
  }

  .p-news__body {
    grid-column: 1 / -1;
  }

  .p-news__title {
    font-size: 15px;
    line-height: 1.6;
  }

  .p-news__note {
    font-size: 13px;
  }
}
