/* =====================================================================
   FullFill — JOURNAL / お知らせ
   corporate.css と同じ余白設計・色で、記事を読むための静かな面をつくる。
   ===================================================================== */

.news-page {
  background: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 一覧の導入部 ---------- */
.news-hero {
  padding: 84px var(--gutter) 0;
  border-bottom: 1px solid var(--rule);
}
.news-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: end;
  gap: 45px;
  padding-bottom: 54px;
}
.news-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 74px);
  line-height: 1.25;
  letter-spacing: -0.045em;
  font-weight: 400;
}
.news-hero h1 span {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.news-hero-lead {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  padding-bottom: 6px;
}

/* ---------- カテゴリ絞り込み ---------- */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 26px var(--gutter) 26px;
  border-bottom: 1px solid var(--rule);
}
.news-filter-label {
  margin-right: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.news-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.news-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.news-chip[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.news-chip small {
  margin-left: 7px;
  font-size: 10px;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

/* ---------- 検索 ---------- */
.news-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  padding: 4px 6px 4px 16px;
  background: #fff;
  min-height: 44px;
}
.news-search input {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 13px;
  width: 150px;
  background: none;
  color: var(--ink);
}
.news-search button {
  border: 0;
  background: var(--soft);
  border-radius: 99px;
  min-height: 32px;
  padding: 0 14px;
  font-size: 12px;
  cursor: pointer;
}
.news-search button:hover {
  background: var(--blue);
  color: #fff;
}

/* ---------- 記事グリッド ---------- */
.news-list {
  padding: 56px var(--gutter) 96px;
}
.news-count {
  margin: 0 0 34px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 3.2%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-card {
  display: flex;
  flex-direction: column;
}
.post-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--soft);
  aspect-ratio: 1.5;
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.post-card > a:hover .post-card-media img {
  transform: scale(1.03);
}
.post-card-media .post-card-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--blue);
  background:
    linear-gradient(120deg, #f7f9fb 0%, #eef3f8 100%);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.post-card-meta .post-cat {
  color: var(--blue);
}
.post-card h2 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.post-card > a:hover h2 {
  color: var(--blue);
}
.post-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.95;
  color: var(--muted);
}
.post-card-more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.post-card-more span {
  color: var(--blue);
}

/* ---------- 空状態 ---------- */
.news-empty {
  padding: 70px 0 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}
.news-empty strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- ページネーション ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 74px;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 99px;
  font-size: 13px;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.pager a {
  border-color: var(--rule);
}
.pager a:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.pager .is-current {
  background: var(--ink);
  color: #fff;
}
.pager .is-disabled {
  color: #b6c2cb;
}

/* ---------- 記事ページ ---------- */
.post-header {
  padding: 72px var(--gutter) 0;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--blue);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #c3ced6;
}
.post-header h1 {
  max-width: 20em;
  margin: 14px 0 26px;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.55;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.post-lead {
  max-width: 44em;
  margin: 0 0 34px;
  font-size: 15px;
  line-height: 2.1;
  color: var(--muted);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-bottom: 34px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.post-meta .post-cat {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 14px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  color: var(--blue);
}
.post-cover {
  margin: 0 var(--gutter);
  border-radius: 3px;
  overflow: hidden;
  background: var(--soft);
}
.post-cover img {
  width: 100%;
  max-height: 74vh;
  object-fit: cover;
}
.post-cover figcaption {
  padding: 12px 2px 0;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 本文 ---------- */
.post-body {
  max-width: 46em;
  margin: 0 auto;
  padding: 66px var(--gutter) 20px;
  font-size: 16px;
  line-height: 2.15;
  color: var(--ink);
}
.post-body > *:first-child {
  margin-top: 0;
}
.post-body p {
  margin: 0 0 1.9em;
  font-size: 16px;
  line-height: 2.15;
}
.post-body h2 {
  margin: 2.6em 0 0.85em;
  padding-top: 0.9em;
  border-top: 1px solid var(--rule);
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1.65;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.post-body h3 {
  margin: 2.1em 0 0.7em;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.7;
  font-weight: 500;
}
.post-body h4 {
  margin: 1.9em 0 0.6em;
  font-size: 16px;
  font-weight: 500;
}
.post-body ul,
.post-body ol {
  margin: 0 0 1.9em;
  padding-left: 1.3em;
}
.post-body li {
  margin-bottom: 0.6em;
  line-height: 2;
}
.post-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
.post-body a:hover {
  text-decoration-thickness: 2px;
}
.post-body img {
  width: auto;
  max-width: 100%;
  margin: 2.2em 0;
  border-radius: 3px;
}
.post-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--blue);
  color: var(--muted);
}
.post-body blockquote p {
  margin: 0;
  font-size: 15px;
}
.post-body code {
  padding: 0.15em 0.4em;
  background: var(--soft);
  border-radius: 3px;
  font-size: 0.9em;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.post-body pre {
  margin: 2em 0;
  padding: 20px 22px;
  background: #001627;
  color: #e8eef3;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.8;
}
.post-body pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}
.post-body hr {
  margin: 3em auto;
  border: 0;
  border-top: 1px solid var(--rule);
}

/* ---------- タグ ---------- */
.post-tags {
  max-width: 46em;
  margin: 0 auto;
  padding: 0 var(--gutter) 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  font-size: 12px;
  color: var(--muted);
}
.post-tags a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* ---------- 前後の記事 ---------- */
.post-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.post-adjacent a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px var(--gutter);
  min-height: 120px;
  justify-content: center;
}
.post-adjacent a + a {
  border-left: 1px solid var(--rule);
  text-align: right;
  align-items: flex-end;
}
.post-adjacent span {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.post-adjacent strong {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
}
.post-adjacent a:hover strong {
  color: var(--blue);
}

/* ---------- 関連記事 ---------- */
.news-related {
  padding: 78px var(--gutter) 92px;
}
.news-related > h2 {
  margin: 0 0 34px;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- 管理画面へ戻る小リンク ---------- */
.news-footnote {
  padding: 0 var(--gutter) 70px;
  font-size: 11px;
  color: var(--muted);
}
.news-footnote a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.news-footnote a:hover {
  color: var(--blue);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
@media (max-width: 800px) {
  .news-hero {
    padding-top: 52px;
  }
  .news-hero-inner {
    padding-bottom: 34px;
  }
  .news-hero h1 {
    font-size: clamp(32px, 9vw, 46px);
  }
  .news-filters {
    padding-bottom: 18px;
    gap: 6px;
  }
  .news-filter-label {
    width: 100%;
    margin: 0 0 4px;
  }
  .news-search {
    margin: 10px 0 0;
    width: 100%;
  }
  .news-search input {
    width: 100%;
  }
  .news-list {
    padding-top: 36px;
    padding-bottom: 70px;
  }
  .post-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .post-card h2 {
    font-size: 18px;
  }
  .post-header {
    padding-top: 34px;
  }
  .post-header h1 {
    margin: 10px 0 18px;
  }
  .post-body {
    padding-top: 40px;
    font-size: 15px;
  }
  .post-body p {
    font-size: 15px;
    line-height: 2.05;
  }
  .post-body h2 {
    margin-top: 2.1em;
  }
  .post-adjacent {
    grid-template-columns: 1fr;
  }
  .post-adjacent a + a {
    border-left: 0;
    border-top: 1px solid var(--rule);
    text-align: left;
    align-items: flex-start;
  }
  .news-related {
    padding-top: 52px;
    padding-bottom: 64px;
  }
}
