/* ==========================================================
   sub.css（ブログ・お知らせの一覧／詳細ページ）
   ※トップのデザインに合わせて簡易的に作成しています。
========================================================== */


.sub { padding: 220px 20px 140px; }
.sub__inner { max-width: 860px; margin: 0 auto; }
.sub__head { margin-bottom: 70px; }

/* 一覧（ブログ） */
.sub-blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
.sub-blog__img { aspect-ratio: 240 / 210; background: #a7a7a7; overflow: hidden; }
.sub-blog__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sub-blog a:hover .sub-blog__img img { transform: scale(1.04); }
.sub-blog__cat { display: inline-block; padding: 0 10px; background: var(--brown) url("../img/shared/bg.jpg"); color: var(--text-light); font-size: 12px; line-height: 22px; }
.sub-blog__ttl { margin-top: 6px; font-size: 15px; line-height: 1.7; }

/* 一覧（お知らせ） */
.sub-news { border-top: 1px solid rgba(40, 42, 45, .25); }
.sub-news li { border-bottom: 1px solid rgba(40, 42, 45, .25); }
.sub-news a { position: relative; display: flex; gap: 28px; padding: 20px 0 20px 28px; font-size: 16px; line-height: 1.7; }
.sub-news a::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--point); }
.sub-news time { font-family: var(--ff-en); }

/* 詳細 */
.single__meta { display: flex; align-items: center; gap: 16px; font-family: var(--ff-en); font-size: 15px; }
.single__ttl { margin-top: 14px; font-size: 28px; line-height: 1.6; letter-spacing: .1em; }
.single__thumb { margin-top: 40px; }
.single__body { margin-top: 48px; font-size: 16px; line-height: 2.2; letter-spacing: .08em; }
.single__body > * + * { margin-top: 1.6em; }
.single__body h2 { font-size: 22px; line-height: 1.6; margin-top: 2.4em; }
.single__body h3 { font-size: 18px; margin-top: 2em; }
.single__body a { text-decoration: underline; }
.single__body img { height: auto; }
.single__back { margin-top: 80px; text-align: center; }

/* ページネーション */
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 70px; font-family: var(--ff-en); }
.pager .page-numbers { min-width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; }
.pager .current { background: var(--point); }
.pager a.page-numbers:hover { background: rgba(192, 215, 33, .35); }

@media (max-width: 767px) {
	.sub { padding: 130px 20px 90px; }
	.sub__head { margin-bottom: 40px; }
	.sub-blog { grid-template-columns: 1fr; gap: 36px; max-width: 300px; margin: 0 auto; }
	.sub-news a { flex-direction: column; gap: 0; font-size: 14px; }
	.single__ttl { font-size: 20px; }
	.single__body { font-size: 14px; }
}
