/*
 * News page styles for Hiroshi Tanita Photography
 * Converted verbatim from "News Prototype.dc.html" (Claude Design).
 * All colour / size / transition values are unchanged from the prototype
 * (colours tokenized to css/tokens.css custom properties).
 * Class prefix: t- (shared header/nav/mobile-menu/footer chrome lives in
 * css/site-chrome.css under the site-/is- prefixes).
 */

.t-news-section {
  padding: clamp(32px, 5vw, 52px) clamp(20px, 4.5vw, 48px);
  max-width: 820px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.t-news-title {
  color: var(--c-light);
  font-size: clamp(17px, 2vw, 19px);
  letter-spacing: .32em;
}

.t-news-subtitle {
  color: rgba(var(--c-light-rgb), .55);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 11px;
  margin-top: 6px;
  letter-spacing: .14em;
}

.t-news-list {
  display: flex;
  flex-direction: column;
  margin-top: clamp(28px, 4vw, 40px);
}

.t-news-row {
  display: grid;
  grid-template-columns: 110px 110px 1fr;
  gap: 8px 24px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(var(--c-light-rgb), .16);
  text-decoration: none;
  transition: padding-left .3s ease, border-color .3s ease;
}

/* 行は記事詳細へのリンク。ホバーで軽く右へずらし可読性を上げる。 */
.t-news-row:hover {
  padding-left: 10px;
  border-color: rgba(var(--c-light-rgb), .4);
}

.t-news-row:hover .t-news-item-title {
  color: var(--c-white);
}

.t-news-date {
  color: rgba(var(--c-light-rgb), .55);
  font-size: 11px;
  letter-spacing: .08em;
}

.t-news-tag {
  border: 1px solid rgba(var(--c-light-rgb), .35);
  color: rgba(var(--c-light-rgb), .75);
  font-size: 9px;
  letter-spacing: .18em;
  padding: 4px 10px;
  border-radius: 999px;
  justify-self: start;
}

.t-news-item-title {
  color: rgba(var(--c-light-rgb), .9);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.8;
}

.t-news-empty {
  color: rgba(var(--c-light-rgb), .6);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 13px;
  padding: 48px 0;
  text-align: center;
  letter-spacing: .1em;
}

/* ---- article detail (?id=) ---- */
.t-news-back {
  display: inline-block;
  color: rgba(var(--c-light-rgb), .7);
  font-size: 11px;
  letter-spacing: .14em;
  text-decoration: none;
  margin-bottom: clamp(24px, 3.5vw, 34px);
  transition: color .3s ease;
}

.t-news-back:hover {
  color: var(--c-white);
}

.t-news-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.t-news-detail-title {
  color: var(--c-light);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.7;
  letter-spacing: .04em;
}

.t-news-detail-img {
  display: block;
  width: 100%;
  /* 元画像が低解像度（幅576〜1024px）なので、820px 幅いっぱいに引き伸ばすと
     眠く見える。上限を設けて拡大表示を避ける（JS が実寸も上限にする）。 */
  max-width: 600px;
  height: auto;
  margin-top: clamp(22px, 3vw, 30px);
}

.t-news-detail-body {
  color: rgba(var(--c-light-rgb), .85);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: .03em;
  margin-top: clamp(22px, 3vw, 30px);
}

.t-news-detail-body .t-news-link {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere; /* 長い URL でも折り返す */
  transition: opacity .3s ease;
}

.t-news-detail-body .t-news-link:hover {
  opacity: .7;
}

.t-news-detail-body p {
  margin: 0 0 1.2em;
}

.t-news-detail-body p:last-child {
  margin-bottom: 0;
}

/* 本文とは別枠の外部リンク（admin の linkText/linkUrl）。本文があれば上に区切り線。 */
.t-news-detail-body .t-news-extlink {
  margin-top: 1.6em;
  padding-top: 1.2em;
  border-top: 1px solid rgba(var(--c-light-rgb), .18);
  font-size: 13px;
  color: rgba(var(--c-light-rgb), .7);
}

/* ---- responsive: collapse the 110/110/1fr grid on narrow viewports ---- */
@media (max-width: 599px) {
  .t-news-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "date tag"
      "title title";
    row-gap: 8px;
  }

  .t-news-date {
    grid-area: date;
  }

  .t-news-tag {
    grid-area: tag;
  }

  .t-news-item-title {
    grid-area: title;
  }
}
