/* 新着情報（inc/news.php）：トップなどのブロック、一覧 /news/、1件のページ。見出しは本文の h2（点線の下線）のまま */

/* ---- 日付・カテゴリ・タイトルの並び（点線で区切る） ----
 * 日付・札・タイトルの3列。札の列の幅は、並んでいる中で一番長いカテゴリ名に合わせて決まる（subgrid）。
 * カテゴリ名が短くても長くても、タイトルの頭が縦にそろう。とても長い名前は札の中で折り返す（タイトルの場所を取りすぎない） */
.news-latest { margin-top: 32px; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto auto 1fr; }
.news-list li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; column-gap: 12px; padding: 11px 10px; border-bottom: 1px dotted #aaa; line-height: 1.7; }
.news-list__meta { display: contents; }
.news-list time { grid-column: 1; color: #777; font-size: 12px; letter-spacing: .05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-list .news-cat { grid-column: 2; justify-self: stretch; min-width: 5em; max-width: 13em; text-align: center; }
.news-list__title { grid-column: 3; margin-left: 12px; color: #262626; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.news-list__title:hover { text-decoration: underline; }

/* カテゴリの札 */
.news-cat { display: inline-block; box-sizing: border-box; border: 1px solid #262626; padding: 0 6px; font-size: 11px; line-height: 1.6; color: #262626; background: #fff; }

/* 一覧のページのカテゴリのタブ（ブログのタブと同じ見た目） */
.news-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.news-tabs a { display: inline-block; padding: 4px 12px; border: 1px solid #ddd; font-size: 12px; color: #262626; text-decoration: none; background: #fff; }
.news-tabs a:hover { border-color: #262626; }
.news-tabs a.is-current { background: #262626; border-color: #262626; color: #fff; }
.news-latest__more { margin: 12px 0 0; text-align: right; font-size: 13px; }
.news-latest__more a, .news-back a { color: #262626; }

/* ---- 1件のページ ---- */
/* 日付と札。札が長くて次の行に落ちても左がそろうように並べる */
.news-article__date { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 4px; color: #777; font-size: 12px; letter-spacing: .05em; }
#con #maincon .news-article__title,
.news-article__title { margin: 0 0 20px; padding: 0 0 10px; border-bottom: 1px dashed #000; font-size: 22px; line-height: 1.45; font-weight: bold; color: #262626; }
.news-article__body { line-height: 1.9; }
.news-article__body > * { margin-top: 0; margin-bottom: 1.2em; }
.news-back { margin: 32px 0 0; font-size: 13px; }

/* ---- 一覧のページ送り ---- */
.news-pager { margin: 24px 0 0; text-align: center; font-size: 13px; }
.news-pager .page-numbers { display: inline-block; min-width: 2em; padding: 4px 6px; color: #262626; }
.news-pager .current { background: #262626; color: #fff; }

@media (max-width: 640px) {
	/* スマホは1件を2行に：1行目に日付と札、2行目にタイトル */
	.news-list { display: block; }
	.news-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 4px; }
	.news-list__meta { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
	.news-list .news-cat { min-width: 0; max-width: 100%; }
	.news-list__title { flex: 0 0 100%; margin-left: 0; }
	.news-article__title { font-size: 19px; }
}
