/* お知らせ */
.home-news { display: grid; grid-template-columns: 220px minmax(0,1fr); align-items: start; gap: 32px; padding-block: 28px; border-bottom: 0; }
.home-news h2 { font-size: 30px; letter-spacing: 0; }
.home-news-heading .news-all { justify-content: flex-start; margin-top: 16px; font-family: inherit; }
.home-news .news-row { padding-block: 20px; border-bottom: 1px solid var(--line); }
.home-news .news-row:first-child { padding-top: 0; }
.news-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 24px; align-items: baseline; min-height: 44px; padding-block: 12px; }
.home-news .news-row { grid-template-columns: 108px minmax(0, 1fr); }
.news-date { color: var(--muted); font: 400 16px/1.65 Arial, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-category { color: var(--muted); font-size: 14px; white-space: nowrap; }
.news-title { font-size: 18px; line-height: 1.65; }
.news-row { text-decoration: none; }
.news-title { transition: color .18s ease; }
.news-row:is(:hover,:focus-visible) { text-decoration: none; }
.news-row:is(:hover,:focus-visible) .news-title { color: var(--brand-ink); text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .news-row, .news-title { transition: none; }
}
.news-all { font-family: Arial, sans-serif; font-size: 14px; font-weight: 400; color: var(--muted); min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; }
.news-list .news-row { padding-block: 28px; border-block-end: 1px solid var(--line); }
.news-list .news-row:first-child { border-block-start: 1px solid var(--line); }

.news-article { padding-block: 28px 88px; }
.article-breadcrumb { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.article-breadcrumb .text-link { font-size: inherit; }
.article-header { padding-block: 48px 40px; border-bottom: 1px solid var(--line); }
.article-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.article-category { color: var(--muted); font-size: 16px; }
.article-header h1 { font-size: clamp(30px,3.2vw,44px); line-height: 1.5; letter-spacing: .01em; }
.article-lead { margin-top: 28px; font-size: 18px; }
.article-body .content-block { grid-template-columns: 1fr; gap: 20px; padding-block: 36px; border-bottom: 1px solid var(--line); }
.article-body .section-number { display: none; }
.article-body h2 { font-size: 26px; }
.article-body .content-block li::marker { color: var(--ink); }
.article-source { padding-top: 28px; font-size: 16px; }
.article-source a { text-decoration: underline; text-underline-offset: 5px; }
.article-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 36px; margin-top: 40px; }

@media (max-width: 1000px) {
  .home-news { grid-template-columns: 180px minmax(0,1fr); gap: 32px; }
  .home-news .news-all { grid-column: 2; }
}
@media (max-width: 767px) {
  .home-news { grid-template-columns: minmax(0,1fr); gap: 28px; padding-block: 24px; }
  .home-news-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .home-news-heading .news-all { margin-top: 0; }
  .home-news h2 { font-size: 22px; }
  .home-news-items { grid-column: 1; grid-row: 2; }
  .home-news .news-all { grid-column: 2; grid-row: 1; font-size: 14px; }
  .news-row { grid-template-columns: auto minmax(0,1fr); gap: 8px 16px; padding-block: 4px; }
  .news-title { grid-column: 1 / -1; }
  .news-title { font-size: 16px; }
  .news-list .news-row { padding-block: 24px; }
  .news-article { padding-block: 24px 56px; }
  .article-header { padding-block: 32px; }
  .article-header h1 { font-size: 30px; }
  .article-lead { margin-top: 20px; font-size: 16px; }
  .article-body .content-block { padding-block: 28px; }
  .article-body h2 { font-size: 24px; }
  .article-actions { align-items: stretch; flex-direction: column; }
}

/* 記事本文 */
.detail-page .news-article { padding-block: 64px 80px; }
.detail-page .news-article .article-header { padding: 0 0 36px; border: 0; }
.detail-page .news-article .article-meta { gap: 16px; margin-bottom: 22px; align-items: center; }
.detail-page .news-article .article-category { margin: 0; padding: 6px 14px; border-radius: 999px; background: #fff1e7; color: var(--ink); font-size: 13px; line-height: 1.5; }
.detail-page .news-article .article-header h1 { font-size: clamp(28px,2.8vw,40px); line-height: 1.55; letter-spacing: .01em; text-wrap: pretty; overflow-wrap: anywhere; }
.detail-page .news-article .article-lead { max-width: 54em; margin-top: 22px; font-size: 18px; line-height: 1.9; }
.article-image { margin: 0; }
.article-image-frame { overflow: hidden; border-radius: 18px; background: #faf8f4; }
.article-image img { width: 100%; height: auto; display: block; }
.article-cover .article-image-frame { height: clamp(260px,28vw,360px); }
.article-cover img { height: 100%; object-fit: contain; padding: 20px; }
.article-image figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.detail-page .news-article .article-body { margin-top: 48px; }
.detail-page .news-article .content-block { gap: 18px; }
.detail-page .news-article .content-block + .content-block { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.detail-page .news-article .content-block h2 { font-size: 26px; line-height: 1.55; }
.detail-page .news-article .content-block h3 { font-size: 21px; }
.detail-page .news-article .content-block > div:last-child { font-size: 18px; line-height: 1.9; }
.detail-page .news-article .process-list { list-style: none; counter-reset: article-step; padding: 0; margin: 0; display: grid; gap: 16px; }
.detail-page .news-article .process-list li { counter-increment: article-step; position: relative; padding: 4px 0 4px 54px; margin: 0; }
.detail-page .news-article .process-list li::before { content: counter(article-step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff1e7; color: var(--brand); display: grid; place-items: center; font: 600 14px/1 Arial,sans-serif; }
.article-inline-image { margin-top: 28px; }
.detail-page .news-article .article-source { padding-top: 36px; font-size: 14px; }
.detail-page .news-article .article-actions { margin-top: 40px; padding: 28px 32px; border-radius: 18px; background: #faf8f4; justify-content: space-between; }
@media(max-width:767px) {
 .detail-page .news-article { padding-block: 36px 48px; }
 .detail-page .news-article .article-header { padding-bottom: 28px; }
 .detail-page .news-article .article-header h1 { font-size: 28px; line-height: 1.55; }
 .detail-page .news-article .article-lead,.detail-page .news-article .content-block > div:last-child { font-size: 16px; }
 .detail-page .news-article .article-meta { margin-bottom: 18px; gap: 12px; }
 .article-cover .article-image-frame { height: 240px; }
 .article-cover img { padding: 12px; }
 .detail-page .news-article .article-body { margin-top: 32px; }
 .detail-page .news-article .content-block + .content-block { margin-top: 32px; padding-top: 32px; }
 .detail-page .news-article .content-block h2 { font-size: 23px; }
 .detail-page .news-article .article-actions { padding: 24px 20px; gap: 16px; }
}

/* 記事内リンク */
.detail-page .news-article a { display: inline-block; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.7; color: var(--ink); text-decoration: none; border: 0; border-radius: 0; background: transparent; padding: 8px 0; }
.detail-page .news-article a:is(:hover,:focus-visible) { color: var(--brand); text-decoration: underline; text-underline-offset: 5px; }
.detail-page .news-article a::after { content: ''; display: inline-block; width: 18px; height: 18px; margin-inline-start: 10px; vertical-align: -3px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 180ms ease; }
.detail-page .news-article a:is(:hover,:focus-visible)::after { transform: translateX(3px); }
@media(prefers-reduced-motion:reduce) { .detail-page .news-article a::after { transition: none; } }

/* 前後の記事 */
.detail-page .news-article .article-post-navigation { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 28px; align-items: center; margin-top: 40px; padding: 28px 0; border-block: 1px solid var(--line); border-radius: 0; background: transparent; }
.article-post-navigation .article-nav-item { min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.7; }
.article-post-navigation .article-nav-next { text-align: right; }
.article-post-navigation .is-disabled { color: #929696; }
.article-post-navigation .article-nav-item small { display: block; margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.detail-page .news-article .article-nav-previous::after { display: none; }
.article-post-navigation .article-nav-previous::before { content: '←'; margin-inline-end: 10px; }
.article-post-navigation .is-disabled.article-nav-next::after { content: '→'; margin-inline-start: 10px; }
@media(max-width:767px) {
 .detail-page .news-article .article-post-navigation { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; padding-block: 24px; }
 .article-post-navigation .article-nav-list { grid-column: 1 / -1; grid-row: 1; text-align: center; }
 .article-post-navigation .article-nav-item { font-size: 14px; }
 .detail-page .news-article .article-nav-item { font-size: 14px; }
}

.news-list .news-row[hidden] { display: none; }
.news-pagination:not([hidden]) { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.news-pagination a,.news-pagination span { min-width: 44px; min-height: 44px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 15px; line-height: 1.6; }
.news-pagination a { color: var(--ink); }
.news-pagination a:hover { background: #f5f4f1; }
.news-pagination [aria-current=page] { background: var(--ink); color: white; font-weight: 600; }
.news-pagination [aria-disabled=true] { color: #aaa; }
.news-pagination a::after { content: none; }
@media(max-width:767px) { .news-pagination:not([hidden]) { gap: 4px; margin-top: 28px; } .news-pagination a,.news-pagination span { padding: 10px; } }
.news-paged .news-list { border-top: 1px solid var(--line); }
.news-paged .news-list .news-row:first-child { border-top: 0; }
.news-paged .news-row { scroll-margin-top: 120px; }

/* 一覧見出しの余白 */
.detail-page[data-page="news"] .page-hero { padding-bottom: 40px; }
.detail-page[data-page="news"] .page-content { padding-top: 0; }
@media(max-width:767px) {
 .detail-page[data-page="news"] .page-hero { padding-bottom: 28px; }
}

/* カテゴリ表示 */
.news-category { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 112px; min-width: 112px; height: 34px; padding: 4px 10px; border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.news-category-topics { background: #fff1e7; }
.news-category-notice { background: #fff1e7; }
.home-news .news-row, .news-list .news-row { grid-template-columns: 108px 112px minmax(0,1fr); gap: 24px; align-items: center; }
@media (max-width: 767px) {
 .home-news .news-row, .news-list .news-row { grid-template-columns: 108px minmax(0,1fr); gap: 12px 16px; }
 .home-news .news-title, .news-list .news-title { grid-column: 1 / -1; }
}

.news-filters { display:flex; flex-wrap:wrap; gap:12px; margin:0 0 28px; }
.news-filters a { display:inline-flex; min-height:44px; min-width:112px; padding:10px 20px; justify-content:center; align-items:center; border-radius:999px; background:#f5f5f3; font-size:14px; font-weight:600; }
.news-filters a[aria-current="true"] { color:white; background:var(--ink); }
.news-filters a::after { display:none; }
.news-empty { padding:32px 0; color:var(--muted); }
@media(max-width:767px) { .news-filters {gap:8px;} .news-filters a {min-width:0;flex:1;padding-inline:12px;} }

/* 記事送りリンクの下線を外す */
.detail-page .news-article .article-post-navigation a,
.detail-page .news-article .article-post-navigation a:is(:hover,:focus-visible) { text-decoration: none; border-bottom: 0; }

/* お知らせ一覧ボタン */
.detail-page .news-article .article-post-navigation .article-nav-list { display: inline-flex; align-items: center; justify-content: center; justify-self: center; min-height: 52px; padding: 12px 28px; border: 1px solid var(--brand); border-radius: 999px; background: var(--brand); color: #fff; line-height: 1.4; font-weight: 600; transition: background-color .2s ease; }
.detail-page .news-article .article-post-navigation .article-nav-list::after { display: none; }
.detail-page .news-article .article-post-navigation .article-nav-list:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.detail-page .news-article .article-post-navigation .article-nav-list:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 4px; }
