@charset "utf-8";

/* 一覧の行: 日付（青）・カテゴリー（丸枠バッジ）・タイトルを1行に並べ、
   細い区切り線とゆったりした余白で区切る */
div#news {
	max-width: 960px;
	margin: 0 auto;
	padding: 20px 0 40px;
}

/* 行全体をリンクに。ホバーでふわっと薄くなる */
div#news .news-row {
	display: block;
	border-bottom: 1px solid #e0e0e0;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.25s ease;
}

div#news .news-row:first-of-type {
	border-top: 1px solid #e0e0e0;
}

div#news .news-row:hover {
	background-color: #eef5fd;
	text-decoration: none;
}

div#news .news-row:hover dd span.ttl {
	color: #2760c6;
}

/* タイトルだけのお知らせ（リンク無し）はホバーしても変化させない */
div#news .news-row--nolink,
div#news .news-row--nolink:hover {
	background-color: transparent;
	cursor: default;
}

div#news .news-row--nolink:hover dd span.ttl {
	color: #333; /* タイトルも青にしない */
}

div#news dl {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin: 0;
	padding: 26px 4px;
}

div#news dl dt {
	flex-shrink: 0;
	width: 95px;
	color: #2760c6;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 26px;
}

div#news dl dd {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 15px;
	line-height: 26px;
}

div#news dl dd span.cat {
	flex-shrink: 0;
	display: inline-block;
	min-width: 110px;
	padding: 0 16px;
	border: 1px solid #2760c6;
	border-radius: 14px;
	background: #fff;
	color: #2760c6;
	font-size: 13px;
	line-height: 24px;
	text-align: center;
}

div#news dl dd span.ttl {
	color: #333;
	transition: color 0.25s ease;
}

/* ページ送り: 丸ボタン型（現在ページ=青塗り、他=白地） */
div#news .wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 45px 0 0;
}
div#news .wp-pagenavi .pages {
  display: none; /* 「1/4」の総ページ表示は出さない */
}
div#news .wp-pagenavi a,
div#news .wp-pagenavi span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border: 1px solid #d5dce8;
  border-radius: 50%;
  background: #fff;
  color: #2760c6;
  font-size: 14px;
  text-decoration: none;
}
div#news .wp-pagenavi span.current {
  border-color: #2760c6;
  background: #2760c6;
  color: #fff;
  font-weight: 600;
}
div#news .wp-pagenavi a:hover {
  border-color: #2760c6;
  background: #eef3fa;
  text-decoration: none;
}
div#news .wp-pagenavi span.extend {
  display: none; /* 「...」（省略記号）は表示しない */
}
div#news .wp-pagenavi a.first,
div#news .wp-pagenavi a.last {
  display: none; /* 「最初へ」「最後へ」ジャンプは出さない（前後送り＋番号5個で十分） */
}

/* 記事タイトル部: カテゴリバッジ＋日付を1行目に、タイトルを大きく左寄せ */
#news_detail #post_title {
  max-width: 960px;
  margin: 0 auto 35px;
  padding: 10px 0 25px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}
#news_detail #post_title .meta {
  display: flex;
  flex-wrap: wrap; /* カテゴリーが多い場合は折り返す（バッジは潰さない） */
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 18px;
}
#news_detail #post_title .cat {
  flex-shrink: 0;
  display: inline-block;
  padding: 0 18px;
  border-radius: 14px;
  background: #2760c6;
  color: #fff;
  font-size: 13px;
  line-height: 26px;
  white-space: nowrap;
}
#news_detail #post_title time {
  color: #2760c6;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
#news_detail #post_title h3 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.5;
  color: #222;
}

div#news_detail_contents .detail {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;
  font-size: 15px;
  line-height: 2;
  color: #333;
}
div#main div#news_detail_contents .detail h1,
div#main div#news_detail_contents .detail h2,
div#main div#news_detail_contents .detail h3,
div#main div#news_detail_contents .detail h4,
div#main div#news_detail_contents .detail h5,
div#main div#news_detail_contents .detail h6 {
  margin: 0;
  padding: 0;
  background: none;
  color: #222;
  font-size: 1em;
  line-height: 1.5;
  font-weight: bold;
}
/* h1: タイトル帯（記事内で使う場合） */
div#main div#news_detail_contents .detail h1 {
  padding: 12px 20px;
  background: #eef3fa;
  border-radius: 4px;
  font-size: 1.4em;
  margin: 0 0 1.2em;
}
/* h2: 青い四角マーカー＋下線（参考デザインのセクション見出し） */
div#main div#news_detail_contents .detail h2 {
  position: relative;
  padding: 0 0 12px 22px;
  border-bottom: 2px solid #e5e5e5;
  font-size: 1.3em;
  margin: 2.2em 0 1em;
}
div#main div#news_detail_contents .detail h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 12px;
  height: 12px;
  background: #2760c6;
}
/* h3: 左の青バー */
div#main div#news_detail_contents .detail h3 {
  padding: 2px 0 2px 14px;
  border-left: 4px solid #2760c6;
  font-size: 1.1em;
  margin: 1.8em 0 0.8em;
}
div#main div#news_detail_contents .detail h4 {
  font-size: 1em;
  margin: 1.5em 0 0.8em;
}
div#main div#news_detail_contents .detail h5 {
  font-size: 0.9em;
  margin: 1.5em 0 0.8em;
}
div#main div#news_detail_contents .detail h6 {
  font-size: 0.85em;
  margin: 1.5em 0 0.8em;
}
div#main div#news_detail_contents .detail p {
  margin: 0 0 1.5em;
}
/* 箇条書き: 青い丸マーカー */
div#main div#news_detail_contents .detail ul {
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}
div#main div#news_detail_contents .detail ul li {
  position: relative;
  padding: 0 0 0 18px;
  margin: 0 0 0.4em;
}
div#main div#news_detail_contents .detail ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2760c6;
}
/* 表組み */
div#main div#news_detail_contents .detail table {
  width: 100%;
  margin: 0 0 1.5em;
  border-collapse: collapse;
}
div#main div#news_detail_contents .detail table th,
div#main div#news_detail_contents .detail table td {
  padding: 10px 16px;
  border: 1px solid #dbe1ea;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
div#main div#news_detail_contents .detail table th {
  background: #eef3fa;
  color: #222;
  font-weight: 600;
}
div#main div#news_detail_contents .detail table tr:nth-child(even) td {
  background: #fafbfd;
}

div#main div#news_detail_contents .detail img {
  margin: 0 0 0.5em;
  max-width: 100%;
  height: auto;
}
div#main div#news_detail_contents .detail .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
div#main div#news_detail_contents .detail .alignleft {
	float: left;
	margin: 0.5em 1em 0.5em 0;
}
div#main div#news_detail_contents .detail .alignright {
	float: right;
	margin: 0.5em 0 0.5em 1em;
}

/* 記事下ナビ: 角丸ピル型ボタン */
div#main div#news_detail_contents .nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 50px 0;
}
div#main div#news_detail_contents .nav p {
  margin: 0;
}
div#main div#news_detail_contents .nav .prev,
div#main div#news_detail_contents .nav .next {
  display: inline-block;
  border: 1px solid #2760c6;
  border-radius: 999px;
}
div#main div#news_detail_contents .nav .back {
  display: inline-block;
  min-width: 240px;
  border-radius: 999px;
  background: #2760c6;
}
div#main div#news_detail_contents .nav a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 32px;
  color: #2760c6;
  font-size: 15px;
  line-height: 52px;
  text-align: center;
  text-decoration: none;
}
div#main div#news_detail_contents .nav .back a {
  color: #fff;
  font-weight: 600;
}
div#main div#news_detail_contents .nav .prev a span::before {
  content: "← ";
}
div#main div#news_detail_contents .nav .next a span::after {
  content: " →";
}
div#main div#news_detail_contents .nav .prev a:hover,
div#main div#news_detail_contents .nav .next a:hover {
  background: #eef3fa;
  border-radius: 999px;
}
div#main div#news_detail_contents .nav .back a:hover {
  opacity: 0.85;
  color: #fff;
  text-decoration: none;
}

body#top div#main ul#anchor li.on a {
	background-color: #0039a8;
}


/* ================================
   スマホ（max-width: 736px）
   ※ 旧 news_sp.css を統合
================================ */
@media screen and (max-width: 736px) {


div#news {
	padding: 10px 10px 20px;
}

/* スマホ: 1行目に日付＋カテゴリー、2行目にタイトル（左端から全幅） */
div#news dl {
	flex-wrap: wrap;
	gap: 12px;
	padding: 18px 2px;
}

div#news dl dt {
	width: auto;
}

/* dd の中身（カテゴリー・タイトル）を dl 直下に展開する。
   これでタイトルが日付の下に回り込まず、行頭から始まる */
div#news dl dd {
	display: contents;
}

div#news dl dd span.cat {
	min-width: 0;
	margin: 0;
}

div#news dl dd span.ttl {
	display: block;
	width: 100%;
	font-size: 15px;
}

/* 記事詳細（スマホ） */
#news_detail #post_title {
	padding: 0 10px 18px;
	margin: 0 auto 24px;
}

#news_detail #post_title h3 {
	font-size: 20px;
}

div#main div#news_detail_contents .nav {
	flex-direction: column;
	gap: 10px;
	padding: 30px 10px;
}

div#main div#news_detail_contents .nav .back,
div#main div#news_detail_contents .nav .prev,
div#main div#news_detail_contents .nav .next {
	width: 100%;
	min-width: 0;
}

div#news .wp-pagenavi {
	gap: 6px;
	padding: 25px 0 0;
}

div#news .wp-pagenavi a,
div#news .wp-pagenavi span.current {
	min-width: 34px;
	height: 34px;
	font-size: 13px;
}

}
