.preview-notice { padding: 16px 24px; background: #202323; color: #fff; font-size: 14px; line-height: 1.7; }
.cms-news-section { padding: 48px var(--edge) 96px; background: var(--page-opening-tint, #eef0ee); }
.cms-news-shell { width: min(100%, var(--reading-layout, 960px)); margin-inline: auto; }
.news-hero h1 { --page-reveal-delay: 145ms; }
.cms-article-head > h1 { --page-reveal-delay: 90ms; }
.cms-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.cms-news-list > li, .cms-news-card-copy { min-width: 0; }
.cms-news-list .cms-news-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #b9c1bb;
  border-radius: 8px;
  background: #fff;
  color: #202323;
  text-decoration: none;
}
.cms-news-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.cms-news-thumb, .home-page .news-card-photo {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.cms-news-card-copy, .cms-top-news-card .news-card-content { display: flex; flex: 1; flex-direction: column; }
.cms-news-card-copy { padding: 24px; }
.cms-news-card-copy .cms-news-meta:not(:empty) { margin-bottom: 16px; }
.cms-news-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; color: #4c5050; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.cms-news-card h2 { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.cms-news-card h2, .cms-top-news-card .news-card-title { margin-bottom: clamp(28px, 2.5vw, 36px); }
.cms-news-read {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 0 48px 0 14px;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: #fff;
  color: #202323;
  font: 700 14px/1.3 Helvetica, Arial, sans-serif;
  letter-spacing: .075em;
}
.cms-news-read::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--highlighter, #efff39);
  transform: translateX(var(--news-fill-offset, calc(100% - 38px)));
}
:is(.cms-news-card, .cms-top-news-card):focus-visible {
  --news-fill-offset: 0px;
  --news-photo-scale: 1.035;
}
@media (hover: hover) and (pointer: fine) {
  :is(.cms-news-card, .cms-top-news-card):hover {
    --news-fill-offset: 0px;
    --news-photo-scale: 1.035;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .cms-news-read::before { transition: transform 380ms cubic-bezier(.22, 1, .36, 1); }
  .cms-news-thumb img, .cms-top-news-card .news-card-photo img {
    transform: scale(var(--news-photo-scale, 1));
    transition: transform 500ms cubic-bezier(.22, 1, .36, 1);
  }
}
.cms-news-back > span[lang="en"]::after { content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; pointer-events: none; }
.cms-news-back:focus-visible > span[lang="en"]::after { animation: cms-news-line-redraw 600ms cubic-bezier(.22, 1, .36, 1); }
@keyframes cms-news-line-redraw {
  0% { transform: scaleX(1); transform-origin: right; }
  35% { transform: scaleX(0); transform-origin: right; }
  36% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
@media (hover: hover) {
  .cms-news-back:hover > span[lang="en"]::after { animation: cms-news-line-redraw 600ms cubic-bezier(.22, 1, .36, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .cms-news-back:is(:hover, :focus-visible) > span[lang="en"]::after { animation: none; }
}
.cms-news-card:focus-visible, .cms-news-back:focus-visible { outline: 2px solid #202323; outline-offset: 4px; }
.cms-article { width: min(calc(100% - 40px), 720px); margin-inline: auto; padding-block: 48px 96px; }
.cms-article-head { display: grid; gap: 24px; margin-bottom: 48px; }
.cms-article h1 { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.cms-article-head > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.cms-news-back { display: inline-flex; justify-self: start; align-items: center; gap: 12px; width: fit-content; max-width: 100%; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #202323; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: .08em; text-decoration: none; transition: color 180ms ease; }
.cms-news-back-icon { flex: 0 0 auto; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; }
.cms-news-back > span[lang="en"] { position: relative; text-decoration: none; }
.cms-news-back > span[lang="en"]::after { bottom: -.3em; }
.cms-article-head > .cms-news-back { margin-bottom: 8px; }
.cms-article-head > .cms-news-meta { align-items: center; gap: 12px 16px; }
.cms-article-head > .cms-news-meta > time { color: #4c5050; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.cms-article-head > .cms-news-meta > span { display: inline-flex; align-items: center; min-height: 32px; max-width: 100%; padding: 4px 12px; border: 1px solid #dfe4df; border-radius: 0; background: #edf0ed; color: #343a37; font-size: 14px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
  .cms-news-back { transition: none; }
}
.cms-article-body { margin-bottom: 48px; font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; }
.cms-article-body :is(h2,h3,h4,h5,h6) { margin-block: 40px 16px; font-weight: 600; line-height: 1.5; }
.cms-article-body h2 { font-size: 26px; }
.cms-article-body :is(h3,h4,h5,h6) { font-size: 22px; }
.cms-article-body p { margin-block: 0 24px; }
.cms-article-body img { max-width: 100%; height: auto; }
.cms-article-body figure { margin: 24px 0; }
.cms-article-body pre { padding: 16px; overflow-x: auto; background: #eef0ee; font-size: 16px; white-space: pre-wrap; }
.cms-article-body a { text-decoration: underline; text-underline-offset: .2em; }
.cms-article-body blockquote { margin-inline: 0; padding-inline: 24px; border-left: 1px solid #777d79; }
.cms-article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.cms-article-body :is(td,th) { padding: 12px; border: 1px solid #777d79; }
@media (min-width: 1025px) {
  .cms-news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .cms-news-list > li:nth-child(3n + 2) { --page-reveal-delay: 85ms; }
  .cms-news-list > li:nth-child(3n) { --page-reveal-delay: 170ms; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .cms-news-list > li:nth-child(even) { --page-reveal-delay: 85ms; }
}
@media (max-width: 760px) {
  .cms-news-list { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .cms-news-section { padding-block: 32px 64px; }
  .cms-news-card h2 { font-size: 18px; }
  .cms-article { padding-block: 32px 64px; }
  .cms-article h1 { font-size: 28px; }
  .cms-article-body { font-size: 16px; }
}
/* Category data remains in microCMS; only its presentation is disabled. */
.cms-news-meta > span,
.cms-article-head > .cms-news-meta > span { display: none; }

/* Scoped additions: compact desktop TOP cards, preserve site typography and mobile layout. */
@media (min-width: 1025px) {
  /* Compact TOP thumbnails; keep the existing 16:10 crop and mobile layout. */
  .home-page .news-reel .news-preview-card { --news-card-width: clamp(300px, calc(151.8072px + 14.4578vw), 360px); }
}
.cms-top-news-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; min-width: 0; }
.cms-top-news-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; color: var(--paper-muted); font-size: 14px; line-height: 1.6; }
.cms-top-news-card .news-card-title { font-size: 16px; overflow-wrap: anywhere; }
.news-reel-bottom > a.cms-top-news-link { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; width: fit-content; max-width: 100%; min-height: 48px; padding: 12px 24px; border: 1px solid #202323; border-radius: 0; background: #fff; color: #202323; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: .08em; text-decoration: none; }
.cms-top-news-link::before { content: ""; position: absolute; inset: 0; z-index: 0; background: #202323; transform: scaleY(1); transform-origin: bottom; pointer-events: none; transition: transform 450ms cubic-bezier(.22, 1, .36, 1); }
/* Difference blending keeps the fixed label readable across the moving black/white boundary. */
.news-reel-bottom > a.cms-top-news-link > .cms-top-news-link-label { position: relative; z-index: 1; color: #fff; mix-blend-mode: difference; }
.cms-top-news-link:focus-visible::before { transform: scaleY(0); }
@media (hover: hover) {
  .cms-top-news-link:hover::before { transform: scaleY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cms-top-news-link::before { transition: none; }
}
.cms-top-news-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.cms-top-news-card:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.news-reel-bottom > [hidden] { display: none; }
.cms-top-news-meta > .news-card-category { display: none; }

.cms-article-head > img, .cms-article-body img { border-radius: 8px; }

.cms-news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 32px;
}
.cms-news-pagination a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .25em; }
.cms-news-pagination span { font-variant-numeric: tabular-nums; }
