/* ニュース一覧：サムネイル（左・16:9）＋日付/カテゴリ/タイトル。スマホは画像を上に積む。
   .news-row の基本スタイルは style.css。ここでは一覧ページ用に上書きする。 */
.news-page .news-rows { gap: 0; }
.news-page .news-row {
  grid-template-columns: 1fr;
  align-items: start;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
}
.news-page .news-row:hover { background: transparent; }
.news-row__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-low);
}
.news-row__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-row:hover .news-row__thumb img { transform: scale(1.03); }
/* 画像が無い記事：カテゴリ別の薄いグラデーション＋ロゴ */
.news-row__thumb--ph {
  background: var(--gradient-brand-20) var(--paper);
  position: relative;
}
.news-row__thumb--ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../logo.png") center / 38% auto no-repeat;
  opacity: .85;
}
.news-row__thumb--interview { background-image: linear-gradient(68.49deg, var(--ai-container) 25%, rgba(59, 108, 255, 0.14) 100%); }
.news-row__body { display: grid; gap: var(--sp-2); align-content: center; min-width: 0; }
.news-page .news-row__meta { flex-direction: row; align-items: center; gap: var(--sp-3); }
.news-page .news-row__title { font-size: var(--fs-md); line-height: var(--lh-md); overflow-wrap: anywhere; }
.news-page .news-row.is-hidden, .news-page .news-row.is-more { display: none; }
@media (min-width: 768px) {
  .news-page .news-row { grid-template-columns: 240px 1fr; align-items: center; gap: var(--sp-6); padding: var(--sp-6) var(--sp-2); }
  .news-page .news-row:hover { background: var(--state-hover); }
}
@media (prefers-reduced-motion: reduce) {
  .news-row__thumb img { transition: none; }
  .news-row:hover .news-row__thumb img { transform: none; }
}

/* 見出し階層の是正：h2 に直した小見出し（記事末尾の「会社概要」など）は、元の h3 の見た目を保つ */
.article h2.article__sub { margin-top: var(--sp-12); padding-left: 0; border-left: 0; border-image: none; font-size: var(--fs-lg); line-height: var(--lh-lg); }
/* タイトルの孤立行（「…に／認定」など）を避ける */
.news-row__title, .article-title { text-wrap: balance; word-break: auto-phrase; }
/* 本文の width 属性つきポートレートは指定幅で表示する（style.css の width:100% を上書き） */
.article figure img[width="281"] { width: 281px; max-width: 100%; }
/* 記事本文：文節単位で折り返す（助詞・語の途中で割れるのを避ける）。非対応ブラウザは従来どおり */
.article h2, .article h3, .article p, .article li { word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere; }
.article h2, .article h3 { text-wrap: balance; }
.article p, .article li { text-wrap: pretty; }

/* 共有ボタンのタップ領域を44px以上に（見た目は変えず、疑似要素で判定だけ広げる） */
@media (max-width: 767.98px) {
  .share__btn { position: relative; }
  .share__btn::after { content: ""; position: absolute; top: -5px; bottom: -5px; left: -2px; right: -2px; }
}
