/* お知らせ（トップの最新のお知らせ・トップの一番下・/news/） */

/* FV のすぐ下：最新の1件を文字だけで1行に */
.news-latest {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-inline: calc(50% - 50vw);
  padding: 14px max(clamp(16px, 3.2vw, 40px), calc(50vw - 620px + clamp(16px, 3.2vw, 40px)));
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.news-latest-link { display: flex; flex: 1; align-items: baseline; gap: 14px; min-width: 0; color: var(--text); text-decoration: none; }
.news-latest-label { font: 600 12px/1 var(--easelet-font); letter-spacing: .18em; }
.news-latest-date { color: var(--muted); font: 400 13px/1 var(--easelet-font); letter-spacing: .04em; white-space: nowrap; }
.news-latest-cat { color: #3240ff; font-size: 12px; white-space: nowrap; }
.news-latest-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-latest-link:hover .news-latest-title { text-decoration: underline; text-underline-offset: .25em; }
.news-latest-more { flex: none; color: var(--muted); font-size: 13px; }
:root[data-theme=dark] .news-latest-cat, :root[data-theme=dark] .news-cat { color: #8f99ff; }

/* 一覧：左に分類の切り替え、右にお知らせ（文字と画像） */
.news-section { margin-top: clamp(56px, 7vw, 104px); }
.top-news { margin-bottom: 24px; }
.news-all { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.news-all span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; font: 400 14px/1 var(--easelet-font); transition: background .3s, color .3s; }
.news-all:hover span { background: var(--text); color: var(--surface); }
.news-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.news-filter {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 10px;
  background: var(--emboss-face, var(--surface));
  box-shadow: var(--emboss, 0 10px 28px -14px rgba(0, 0, 0, .18));
}
.news-filter-btn {
  justify-self: start;
  padding: 7px 8px;
  border: 0;
  background: none;
  color: var(--text);
  font: 500 14px/1.4 var(--font);
  text-align: start;
  cursor: pointer;
}
.news-filter-btn[aria-pressed=true] { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1px; }
.news-filter-btn:hover { color: var(--muted); }
.news-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); gap: 40px; padding: 32px 0; color: var(--text); text-decoration: none; }
.news-text { display: flex; flex-direction: column; }
.news-cat { color: #3240ff; font-size: 12px; letter-spacing: .04em; }
.news-title { margin: 10px 0 0; font-size: 18px; font-weight: 700; line-height: 1.6; letter-spacing: .02em; }
.news-date { margin-top: auto; padding-top: 18px; color: var(--muted); font: 400 13px/1 var(--easelet-font); letter-spacing: .04em; }
a.news-link:hover .news-title { text-decoration: underline; text-underline-offset: .3em; }
.news-pic { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .3); }
:root[data-theme=dark] .news-pic { background: #1c1c1c; }
.news-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.news-logo { width: 42%; height: auto; }
a.news-link:hover .news-photo { transform: scale(1.04); }
.news-none { padding: 32px 0; color: var(--muted); font-size: 14px; }


@media (max-width: 860px) {
  .news-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .news-filter { position: static; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px; }
  .news-link { grid-template-columns: minmax(0, 1fr) 36%; gap: 18px; padding: 22px 0; }
  .news-title { font-size: 15px; }
}
@media (max-width: 600px) {
  .news-latest { gap: 10px; font-size: 13px; }
  .news-latest-link { gap: 10px; }
  .news-latest-label, .news-latest-cat { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .news-photo { transition: none; }
}
