
/* ============================================================
   更新情報・お知らせ（2026-08-16）
   ・トップの #news セクション
   ・一覧ページ /updates/ /news/
   正本データは /data/news.json、描画は /js/news.js
============================================================ */
/* ⚠️ .l-about の下マージンは「マヤイについて → NEWS」の間隔になる。
   NEWSセクションを別の場所へ動かすときは、この上書きも一緒に見直すこと。 */
.l-about {
  margin-bottom: 56px;
}

/* ⚠️ background は transparent のままにすること。#fff にすると
   .l-skill:before（z-index:-1）が描く波形の切り替えを塗りつぶしてしまう。 */
.l-news {
  background: transparent;
  padding: 32px 20px 96px;
}

.p-news {
  max-width: 1000px;
  margin: 0 auto;
  font-family: "M PLUS 1p", sans-serif;
  color: #3B4043;
}

.p-news__label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #E761A4;
  letter-spacing: .2em;
  text-align: center;
}

.p-news__title {
  margin: 10px 0 32px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}

.p-news__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.p-news__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FADFED;
}

.p-news__head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.p-news__more {
  font-size: 13px;
  font-weight: 700;
  color: #E761A4;
  text-decoration: none;
  white-space: nowrap;
}

.p-news__more:hover {
  text-decoration: underline;
}

/* ---- 記事リスト（トップ・一覧ページ共通） ---- */
.c-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-news-item {
  padding: 16px 2px;
  border-bottom: 1px solid #eee7ea;
}

.c-news-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

.c-news-item__date {
  font-size: 13px;
  color: #6b7075;
  font-variant-numeric: tabular-nums;
}

.c-news-item__tag {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f2f3;
  color: #3B4043;
  white-space: nowrap;
}

.c-news-item__tag.is-new {
  background: #FADFED;
  color: #C2377F;
}

.c-news-item__tag.is-improve {
  background: #E1F5F3;
  color: #217C75;
}

.c-news-item__tag.is-fix {
  background: #f1f2f3;
  color: #5b6166;
}

.c-news-item__tag.is-info {
  background: #f1f2f3;
  color: #3B4043;
}

.c-news-item__tag.is-maint {
  background: #FFF1DE;
  color: #8A5A00;
}

.c-news-item__tag.is-important {
  background: #FDE1EC;
  color: #B32A6E;
}

.c-news-item__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.c-news-item__body {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: #5b6166;
}

.c-news-item__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.c-news-item__link:hover .c-news-item__title {
  text-decoration: underline;
}

.c-news-item--empty {
  font-size: 14px;
  color: #6b7075;
}

/* ---- 一覧ページ ---- */
.l-subpage {
  font-family: "M PLUS 1p", sans-serif;
  color: #3B4043;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.p-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.p-subhead__logo {
  display: block;
  line-height: 0;
}

.p-subhead__logo img {
  display: block;
  width: 62px;
  height: auto;
}

.p-subhead__back {
  font-size: 13px;
  font-weight: 700;
  color: #3B4043;
  text-decoration: none;
}

.p-subhead__back:hover {
  text-decoration: underline;
}

.p-newspage {
  flex: 1 0 auto;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 72px;
  box-sizing: border-box;
}

.p-newspage__label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #E761A4;
  letter-spacing: .2em;
}

.p-newspage__title {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 800;
}

.p-newspage__lead {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: #5b6166;
}

.p-newspage__switch {
  display: flex;
  gap: 8px;
  margin: 28px 0 8px;
}

.p-newspage__switch-item {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #5b6166;
  background: #f6f4f5;
  border-radius: 999px;
  padding: 9px 20px;
}

.p-newspage__switch-item.is-current {
  background: #E761A4;
  color: #fff;
}

.p-subfoot {
  flex: 0 0 auto;
  background: #FADFED;
  padding: 28px 20px;
}

.p-subfoot__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
}

.p-subfoot__list a {
  font-size: 13px;
  color: #3B4043;
  text-decoration: none;
}

.p-subfoot__list a:hover {
  text-decoration: underline;
}

.p-subfoot__copy {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: #6b7075;
}

/* ---- 〜599px ---- */
@media screen and (max-width: 599px) {
  .l-about {
    margin-bottom: 36px;
  }

  .l-news {
    padding: 24px 16px 76px;
  }

  .p-news__title {
    font-size: 21px;
    margin-bottom: 24px;
  }

  .p-news__cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .p-news__head h3 {
    font-size: 16px;
  }

  .c-news-item {
    padding: 14px 2px;
  }

  .c-news-item__title {
    font-size: 14px;
  }

  .p-newspage__title {
    font-size: 24px;
  }

  .p-newspage__switch-item {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* ============================================================
   汎用ユーティリティ（2026-08-16）
============================================================ */
/* 目には見えないが、スクリーンリーダーと検索エンジンには読まれる。
   ページ唯一の <h1> に使っている。 */
.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
