/* =========================================================================
   note_list_style.css
   -------------------------------------------------------------------------
   一覧ページ（/kuz-h/today/）専用のスタイルです。

   ご提供いただいた layout.css（「お知らせ」ページ /kuz-h/news/ で使われている
   ものと同じ縦並びリストのCSS）をベースに、クラス名だけ変更したものです。
   見た目（画像サイズ・配置・フォント・余白・区切り線など）は
   layout.css の .newsArea ul.info とまったく同じになるよう作っています。

   【クラス名を "info" ではなく "info_list" にしている理由】
   既存サイトには、トップページのカード型表示で使われている、次のような
   グローバルなCSSルールがあります（layout.css とは別のファイルにあります）。

     ul.info li:nth-child(n+5):nth-child(-n+300){ display:none; }

   これは「class="info" の5件目以降を問答無用で隠す」ルールで、ページを
   問わず効いてしまいます。一覧ページで class="info" のままだと、PHPが
   出力した5件目以降の記事が再び見えなくなってしまうため、別名のクラスに
   して、このルールの影響を避けています。
   （".newsArea"／".news" の外側の入れ物のクラス名は、既存の today/index.html
     側に元からある場合はそのままお使いいただいて問題ありません。このCSS
     ファイルでは、外側の入れ物の有無に関わらず効くように
     ".newsArea" を前提にしない書き方にしています）
   ========================================================================= */


/* ============================sp（〜768px）============================ */
@media only screen and (max-width: 768px) {

	ul.info_list {
		margin: 0 auto;
		padding: 0;
	}

	ul.info_list:after {
		content: ".";
		display: block;
		height: 0;
		clear: both;
		visibility: hidden;
	}

	ul.info_list li {
		width: 100%;
		margin: 0 auto;
		float: left;
	}

	.info_list dl {
		position: relative;
		margin: 0;
		padding: 0;
		border-bottom: 1px solid #c9caca;
		font-size: 13px;
		line-height: 22px;
		min-height: 110px;
	}

	.info_list dt {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		padding: 20px 0;
		margin: 0;
	}

	/* note記事の画像は <dt><p class="act"><img></p></dt> という構造のため、
	   間に挟まる p.act 自体の余白をリセットしておく */
	.info_list dt .act {
		margin: 0;
		padding: 0;
		line-height: 0;
	}

	.info_list dt img {
		width: 120px;
	}

	.info_list dd {
		display: block;
		padding: 20px 0 20px 140px;
		margin: 0;
	}

	.info_list dl p.date {
		font-family: 'Roboto', sans-serif;
		font-weight: 700;
		float: left;
		margin-bottom: 3px;
		font-size: 13px;
	}

	.info_list dl p.news_text {
		padding-top: 2px;
		clear: both;
	}

	.info_list dl a {
		color: #000;
		text-decoration: none;
	}

}


/* ============================pc（769px〜）============================ */
@media only screen and (min-width: 769px) {

	ul.info_list {
		width: 100%;
		max-width: 1200px;
		margin: 0 auto;
		padding: 0 20px;
		box-sizing: border-box;
	}

	ul.info_list:after {
		content: ".";
		display: block;
		height: 0;
		clear: both;
		visibility: hidden;
	}

	ul.info_list li {
		width: 100%;
		margin: 0 auto;
		float: left;
	}

	.info_list dl {
		position: relative;
		margin: 0;
		padding: 0 0 20px 0;
		border-bottom: 1px solid #c9caca;
		font-size: 15px;
		line-height: 22px;
	}

	.info_list dt {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		padding: 20px 0;
		margin: 0;
	}

	.info_list dt .act {
		margin: 0;
		padding: 0;
		line-height: 0;
	}

	.info_list dt img {
		width: 120px;
	}

	.info_list dd {
		display: block;
		padding: 20px 0 20px 140px;
		margin: 0;
	}

	.info_list dl p.date {
		font-family: 'Roboto', sans-serif;
		font-weight: 700;
		float: left;
		margin-bottom: 3px;
		font-size: 13px;
	}

	.info_list dl p.news_text {
		padding-top: 2px;
		clear: both;
	}

	.info_list dl a {
		color: #000;
		text-decoration: none;
	}

	.info_list dl:hover {
		background: #f2f2f2;
	}

}


/* ---- ページング ---- */
.note_pagination {
	margin: 40px 0;
	text-align: center;
}

.note_pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.note_pagination li {
	display: inline-block;
	float: none;
	width: auto;
}

.note_pagination a,
.note_pagination span {
	display: inline-block;
	min-width: 36px;
	padding: 6px 10px;
	text-align: center;
	text-decoration: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	color: #333;
}

.note_pagination a:hover {
	background: #f0f0f0;
}

.note_pagination .current span {
	background: #333;
	color: #fff;
	border-color: #333;
}

.note_pagination .prev a,
.note_pagination .next a {
	font-weight: bold;
}

.note_no_articles {
	text-align: center;
	padding: 40px 0;
	color: #888;
}
