/* お知らせ（トップページの導線・一覧・詳細）共通スタイル
   Studio抽出CSSのdata-sセレクタとは独立させ、既存セクション（COMPANY PROFILE等）の
   見出し・罫線・書体の値に合わせている */

/* base.cssのリセット(:where(.render-canvas) 配下の全要素に color/font-family/line-height を
   直接指定)を打ち消し、各ブロックで指定した値を子要素へ継承させる */
.news-top :where(*),
.news-page :where(*) {
  color: inherit;
  font-family: inherit;
  line-height: inherit;
}

/* ---- トップページのNEWSセクション ---- */
.news-top {
  color: rgb(6, 6, 5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 1000px;
  max-width: 100%;
  margin: 0 0 100px;
}
.news-top__heading {
  margin: 0 0 20px;
  color: rgb(6, 6, 5);
  font-family: var(--s-font-8db1d491);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
}
.news-top__more {
  align-self: flex-end;
  margin: 20px 0 0;
  color: rgb(6, 6, 5);
  font-family: var(--s-font-95b7d416);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.news-top__more:hover { text-decoration: none; }

/* ---- 一覧（トップ・一覧ページ共通） ---- */
.news-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(6, 6, 5);
}
.news-list__item { border-bottom: 1px solid rgb(6, 6, 5); }
.news-list__link {
  display: flex;
  align-items: baseline;
  gap: 30px;
  padding: 20px 0;
  color: rgb(6, 6, 5);
  text-decoration: none;
}
.news-list__date {
  flex: none;
  width: 90px;
  font-family: var(--s-font-0fab056a);
  font-size: 14px;
  line-height: 2;
}
.news-list__title {
  flex: 1 1 0%;
  font-family: var(--s-font-95b7d416);
  line-height: 2;
  overflow-wrap: anywhere;
}
.news-list__link:hover .news-list__title {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.news-empty {
  margin: 0;
  color: rgb(6, 6, 5);
  font-family: var(--s-font-95b7d416);
  line-height: 2;
}

/* ---- 一覧・詳細ページの本文エリア ---- */
.news-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 1000px;
  max-width: 100%;
  margin: 0 0 80px;
  color: rgb(6, 6, 5);
}

/* ---- 詳細ページ ---- */
.news-article__header {
  width: 100%;
  margin: 60px 0 40px;
  padding: 0 0 30px;
  border-bottom: 1px solid rgb(6, 6, 5);
}
.news-article__label {
  display: block;
  margin: 0 0 20px;
  font-family: var(--s-font-8db1d491);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.news-article__date {
  display: block;
  margin: 0 0 10px;
  font-family: var(--s-font-0fab056a);
  font-size: 14px;
  line-height: 1.6;
}
.news-article__title {
  margin: 0;
  font-family: var(--s-font-8db1d491);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.news-article__body {
  width: 100%;
  font-family: var(--s-font-95b7d416);
  line-height: 2;
}
.news-article__body > * { margin: 0 0 20px; }
.news-article__body h2 {
  margin: 40px 0 20px;
  font-family: var(--s-font-8db1d491);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}
.news-article__body ul,
.news-article__body ol { padding: 0 0 0 1.5em; }
.news-article__body ul { list-style: disc; }
.news-article__body ol { list-style: decimal; }
.news-article__body li { list-style: inherit; }
.news-article__body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.news-article__body a:hover { text-decoration: none; }

/* ---- 一覧・詳細ページ末尾の戻り導線 ---- */
.news-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 40px 0 0;
}
.news-nav__link {
  font-family: var(--s-font-95b7d416);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.news-nav__link:hover { text-decoration: none; }

@media screen and (max-width: 768px) {
  .news-article__header { margin: 40px 0 40px; }
}

@media screen and (max-width: 480px) {
  .news-top__heading { font-size: 24px; }
  .news-list__link {
    flex-direction: column;
    gap: 4px;
  }
  .news-list__date { width: auto; }
  .news-article__header { margin: 40px 0 30px; }
  .news-article__title { font-size: 22px; }
}
