/* =========================================================
   お知らせ（一覧・詳細）
   トップページと同じ言葉づかい: グレーの下地、細い罫線、小さな英字ラベル
   ========================================================= */

.news-narrow {
  max-width: 820px;
}

.news-index,
.news-article {
  padding: clamp(56px, 8vw, 104px) 0 clamp(80px, 10vw, 140px);
}

.news-head {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.news-title {
  margin: 14px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

html:not([lang="ja"]) .news-title {
  letter-spacing: 0.01em;
}

.news-date {
  display: block;
  margin-top: 18px;
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--ink-sub);
}

.news-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-sub);
  transition: color 0.3s var(--ease);
}

.news-back:hover {
  color: var(--ink);
}

/* ----- 一覧 ----- */
.news-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.news-index-list li {
  border-bottom: 1px solid var(--line);
}

.news-index-item {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr) auto;
  gap: 8px 28px;
  align-items: start;
  padding: 28px 0;
}

.news-index-item .news-date {
  margin-top: 4px;
}

.news-index-body {
  display: grid;
  gap: 8px;
}

.news-index-title {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.05em;
  transition: color 0.3s var(--ease);
}

.news-index-excerpt {
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--ink-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-index-attach {
  font-size: 0.76rem;
  color: var(--clogra-primary-dark);
  letter-spacing: 0.06em;
}

.news-index-arrow {
  margin-top: 4px;
  font-family: var(--font-en);
  transition: transform 0.3s var(--ease);
}

.news-index-item:hover .news-index-title {
  color: var(--clogra-primary-dark);
}

.news-index-item:hover .news-index-arrow {
  transform: translateX(6px);
}

.news-empty {
  color: var(--ink-sub);
}

/* ----- 本文（Markdown） ----- */
.prose {
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--ink);
  font-size: 1rem;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.5em;
}

.prose strong {
  font-weight: 700;
}

.prose h2 {
  margin: 2.6em 0 1em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.prose h3 {
  margin: 2.2em 0 0.8em;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.prose h4 {
  margin: 1.8em 0 0.6em;
  font-size: 1rem;
  font-weight: 500;
}

.prose ul,
.prose ol {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
}

.prose li {
  margin: 0.35em 0;
  padding-left: 0.2em;
}

.prose ul li::marker {
  color: var(--clogra-primary);
}

.prose a {
  color: var(--clogra-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.prose blockquote {
  margin: 0 0 1.6em;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 2px solid var(--clogra-primary);
  color: var(--ink-sub);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

.prose code {
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  background: var(--bg-deep);
}

.prose pre {
  margin: 0 0 1.6em;
  padding: 16px 18px;
  background: var(--dark);
  color: #e8eeee;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.7;
}

.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.prose img {
  max-width: 100%;
  height: auto;
  margin: 0.5em 0 1.6em;
}

.prose table {
  width: 100%;
  margin: 0 0 1.6em;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose th {
  font-weight: 500;
  border-bottom-color: var(--ink);
}

/* ----- 画像の添付 ----- */
.news-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 40px;
}

.news-gallery.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.news-gallery figure {
  margin: 0;
  background: var(--bg-deep);
}

.news-gallery a {
  display: block;
  cursor: zoom-in;
}

.news-gallery img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
  transition: opacity 0.3s var(--ease);
}

.news-gallery:not(.is-single) img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news-gallery a:hover img {
  opacity: 0.9;
}

/* ----- PDF の添付（ページ内に表示） ----- */
.news-pdf {
  margin: 12px 0 40px;
  border-top: 1px solid var(--ink);
}

.news-pdf-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
}

.news-pdf-head .news-file-name {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.news-pdf-head small {
  margin-left: 10px;
  color: var(--ink-sub);
  font-size: 0.78rem;
}

.news-pdf-view {
  display: block;
  width: 100%;
  height: min(82vh, 980px);
  background: var(--bg-deep);
  border: 1px solid var(--line);
}

.news-pdf-fallback {
  padding: 28px;
  font-size: 0.9rem;
  color: var(--ink-sub);
}

.news-pdf-fallback a {
  margin-left: 8px;
  color: var(--clogra-primary-dark);
  text-decoration: underline;
}

/* ----- 添付ファイルの一覧 ----- */
.news-files {
  margin-top: 8px;
}

.news-files-title {
  margin: 0 0 12px;
  font-family: var(--font-en);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-sub);
}

html[lang="ja"] .news-files-title {
  font-family: var(--font-ja);
  letter-spacing: 0.12em;
}

.news-files ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.news-files li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.news-file-icon {
  flex: none;
  width: 42px;
  padding: 3px 0;
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  border: 1px solid var(--ink);
}

.news-files .news-file-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.news-files .news-file-name:hover {
  color: var(--clogra-primary-dark);
}

.news-file-size {
  color: var(--ink-sub);
  font-size: 0.78rem;
  white-space: nowrap;
}

.news-file-dl {
  font-size: 0.8rem;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

/* ----- 前後の記事 ----- */
.news-pager {
  margin-top: clamp(56px, 8vw, 88px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.news-pager-item {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.news-pager-item small {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ink-sub);
}

.news-pager-item.is-next {
  text-align: right;
}

.news-pager-item:hover {
  color: var(--clogra-primary-dark);
}

/* ----- 画像の拡大表示 ----- */
.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 14, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  cursor: zoom-out;
}

.news-lightbox[hidden] {
  display: none;
}

.news-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
}

.news-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ----- スマホ ----- */
@media (max-width: 640px) {
  .news-index-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .news-index-item .news-date {
    grid-column: 1 / -1;
    margin: 0;
  }

  .news-index-arrow {
    grid-row: 2;
    grid-column: 2;
  }

  .news-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-pdf-view {
    height: 70vh;
  }

  .news-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-pager-item.is-next {
    text-align: left;
  }

  .news-files li {
    flex-wrap: wrap;
  }
}
