/* トップページ お知らせ欄（inc/top-news.php） */
.top-news {
  position: relative;
  z-index: 2;
}
@media (max-width: 767px) {
  .top-news {
    margin-bottom: 6rem;
  }
}

.top-news__box {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 4rem;
  max-width: 100rem;
  margin: 0 auto;
  padding: 3.2rem 4rem;
  background-color: var(--color-light);
  border-radius: 3rem;
}
@media (max-width: 767px) {
  .top-news__box {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0.8rem 0.8rem;
    border-radius: 2rem;
  }
}

.top-news__head {
  align-self: center;
  text-align: center;
}

.top-news__title {
  margin-bottom: 0.6rem;
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--accent);
}
@media (max-width: 767px) {
  .top-news__title {
    margin-bottom: 0.4rem;
    font-size: 2.4rem;
  }
}

.top-news__sub {
  font-family: var(--font-english);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--color-orange);
}
@media (max-width: 767px) {
  .top-news__sub {
    font-size: 2rem;
  }
}

.top-news__item {
  padding: 0.6rem 0;
  border-bottom: 1px solid #d9e2ea;
}
.top-news__item:last-child {
  border-bottom: 0;
}

.top-news__row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1.2rem 1.6rem;
  border-radius: 1rem;
}
@media (max-width: 767px) {
  .top-news__row {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 1.2rem;
  }
}

.top-news__row--link {
  position: relative;
  padding-right: 4.4rem;
  transition: background-color 0.4s;
}
@media (max-width: 767px) {
  .top-news__row--link {
    padding-right: 3.6rem;
  }
}
.top-news__row--link::after {
  content: "";
  position: absolute;
  inset: 0 2rem 0 auto;
  margin: auto 0;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.4s;
}
@media (max-width: 767px) {
  .top-news__row--link::after {
    right: 1.6rem;
  }
}
.top-news__row--link:hover {
  background-color: var(--color-white);
}
.top-news__row--link:hover::after {
  transform: translateX(4px) rotate(45deg);
}

.top-news__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
  width: 23rem;
}
@media (max-width: 767px) {
  .top-news__meta {
    width: auto;
  }
}

.top-news__date {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}
@media (max-width: 767px) {
  .top-news__date {
    font-size: 1.3rem;
  }
}

.top-news__tag,
.top-news__new {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  border-radius: 0.3rem;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .top-news__tag,
  .top-news__new {
    font-size: 1.1rem;
  }
}

.top-news__tag {
  min-width: 8rem;
  padding: 0 1rem;
  background-color: var(--color-blue);
}
/* タグの色（スラッグごと）。ここにないスラッグは上の標準色 */
.top-news__tag--junbi {
  background-color: #b79c7a;
}
.top-news__tag--blog {
  background-color: #3a8f86;
}
.top-news__tag--saiyo {
  background-color: var(--color-orange);
}

.top-news__new {
  padding: 0 0.7rem;
  letter-spacing: 0.05em;
  background-color: var(--color-red);
}

.top-news__text {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-black);
}
@media (max-width: 767px) {
  .top-news__text {
    font-size: 1.4rem;
  }
}
