/* ブログ一覧・施工事例一覧（/works/）・記事ページで共通のレイアウト。
   書体・文字サイズ・色・行間は独自に決めない。剪定LPの style.css（body / .bar / .sub / .works-case-title / .works-case-label 等、
   var(--g) / var(--ink) / var(--mute) / var(--line)）をそのまま使う。ここは配置（グリッド・余白・画像の枠）だけを足す。
   読み込み：ブログ（header.php）・/works/（index.php）が gw_asset('css/gw-articles.css') で読み込む。 */

.blog-list{display:grid;gap:32px;margin-top:8px}
@media (min-width:768px){
.blog-list{grid-template-columns:repeat(2,1fr);gap:28px 24px}
}
.blog-card{border-bottom:1px solid var(--line);padding-bottom:28px}
.blog-card:last-child{border-bottom:none;padding-bottom:0}
@media (min-width:768px){
.blog-card{border-bottom:none;padding-bottom:0}
}
.blog-card__link{display:block}
.blog-card__thumb{margin:0 0 14px;border-radius:8px;overflow:hidden;aspect-ratio:4/3;background:#f2f2f2;box-shadow:0 4px 10px rgba(0,0,0,.12)}
.blog-card__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.blog-card__meta{display:flex;align-items:center;gap:10px;margin:0 0 10px;flex-wrap:wrap}
.blog-card__cat{font-size:12.5px;color:var(--mute)}
.blog-card__title{margin:0 0 8px}
.blog-card__excerpt{font-size:15px;color:var(--mute);line-height:1.8}

/* 記事ページ */
.blog-article__meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.blog-article__cats{display:flex;flex-wrap:wrap;gap:6px}
.blog-article__cat{display:inline-block;padding:4px 10px;background:var(--g);color:#fff;font-size:13px;font-weight:700;line-height:1.5;letter-spacing:.04em}
.blog-article__date{font-size:13px;line-height:1.5;letter-spacing:.04em;color:var(--mute)}
/* 記事タイトル：黒の太字（深緑のラベルと日付の下に置く。2026-10-22。旧：深緑の帯に白文字） */
.blog-article__title{margin:0 0 24px;font-size:22px;font-weight:800;line-height:1.55;letter-spacing:.03em;color:#222;text-align:left}
@media (min-width:769px){.blog-article__title{font-size:28px}}
.blog-article__thumb{margin:24px 0;border-radius:8px;overflow:hidden;box-shadow:0 4px 10px rgba(0,0,0,.12)}
.blog-article__thumb img{width:100%;height:auto;display:block}
.blog-article__body h2,.blog-article__body h3{margin:30px 0 14px;padding-bottom:6px;border-bottom:1px solid var(--g);font-size:18px;font-weight:800;line-height:1.5;color:var(--g)}
.blog-article__body p{margin:0 0 16px}
.blog-article__body ul,.blog-article__body ol{margin:0 0 16px;padding-left:1.4em;list-style:revert}
.blog-article__body img{max-width:100%;height:auto;border-radius:8px;margin:16px 0}
/* 記事内のBefore/After写真：右上にバッジ（バッジの見た目は剪定LPの .ba-badge を流用） */
.blog-article__body .gw-ba-fig{position:relative;margin:16px 0}
.blog-article__body .gw-ba-fig img{margin:0;display:block}
.blog-article__body .gw-ba-fig .ba-badge{left:auto;right:8px}
.blog-article__body a{color:var(--g);text-decoration:underline}

/* 他の記事 */
.blog-related{margin:14px 0 0;padding:0;list-style:none}
.blog-related li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.blog-related li:last-child{border-bottom:none}
.blog-related a{font-weight:700;color:var(--ink)}
.blog-related a:hover{color:var(--g)}
.blog-related__date{font-size:12.5px;color:var(--mute);white-space:nowrap}
/* 記事ページの「他の記事」：左にサムネイル、右に日付とタイトル（404ページの文字だけのリストは上の指定のまま） */
.blog-related--thumb li{display:block;padding:16px 0}
.blog-related__link{display:grid;grid-template-columns:112px 1fr;gap:14px;align-items:center;color:var(--ink)}
.blog-related__thumb{display:block;aspect-ratio:4/3;border-radius:6px;overflow:hidden;background:#f2f2f2;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.blog-related__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.blog-related__body{display:flex;flex-direction:column;gap:4px;min-width:0}
.blog-related__title{font-weight:700;line-height:1.6}
.blog-related__link:hover .blog-related__title{color:var(--g)}
@media (min-width:768px){
.blog-related--thumb{display:grid;grid-template-columns:1fr 1fr;column-gap:32px}
.blog-related--thumb li:nth-last-child(2):nth-child(odd){border-bottom:none}
.blog-related__link{grid-template-columns:150px 1fr;gap:16px}
}

.blog-empty{font-size:1rem;color:var(--mute)}

/* 固定ヘッダーの下の余白：剪定LPの style.css がスマホ・タブレット縦でFV用に body の上余白を0にしているため、
   このCSSを読むページ（ブログ・/works/・404。FVが無く、固定ヘッダーを最初から出す）では gw-common.css と同じ余白（ヘッダーの高さ：スマホ64px・PC88px）に戻し、さらに最初の要素（日付など）がヘッダーにくっつかないよう24pxを足す（2026-10-20） */
@media (max-width:768px){
body.gw-hdr-static{padding-top:calc(64px + 24px + env(safe-area-inset-top, 0px)) !important}
}
@media (min-width:769px){
body.gw-hdr-static{padding-top:112px !important}
}

/* 地域別ページ：FV下のバッジと、最初の見出し（h1）の間の余白。セクション同士の間隔（.sec の下余白 52px）と同じ値にそろえる */
.sec--after-fv{padding-top:52px}

/* /works/ のページ送り（1・2・3 と「以前の施工事例を見る」） */
.pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:40px 0 8px}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 16px;border:1px solid var(--g);border-radius:8px;color:var(--g);font-weight:700;text-decoration:none}
.pagination span[aria-current="page"]{background:var(--g);color:#fff}
.pagination a:hover{background:rgba(0,0,0,.05)}
.pagination .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.pagination .page-numbers.dots{border:none;min-width:0;padding:0 4px}

/* /works/ のジャンル絞り込み（すべて・剪定・伐採・草刈り・外構・造園） */
.works-filter{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.works-filter a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:1px solid var(--g);border-radius:999px;color:var(--g);font-weight:700;text-decoration:none;background:#fff}
.works-filter a.is-current{background:var(--g);color:#fff}
.works-filter__n{font-size:12.5px;font-weight:500;opacity:.8}

/* 記事内の作業内容と費用（2026-11-05 見積書風。見出し帯は緑地に白文字） */
.blog-article__body .gw-est{margin:0 0 24px;font-size:15px;line-height:1.6}
.blog-article__body .gw-est__head{margin:0;padding:8px 14px;background:var(--g);color:#fff;font-weight:700;letter-spacing:.06em}
.blog-article__body .gw-est ul{margin:0;padding:0;list-style:none}
.gw-est__row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0;padding:10px 14px;border-bottom:1px solid var(--line)}
.gw-est__row>span:last-child{white-space:nowrap}
.gw-est__sub{display:block;font-size:13px;color:var(--mute)}
.gw-est__total{padding:14px 14px 0;text-align:right}
.gw-est__total strong{font-size:30px;font-weight:800;color:var(--g);letter-spacing:.02em}
.gw-est__total .gw-est__tax{font-size:14px;margin-left:2px}
.gw-est__total .gw-est__sub{margin-top:2px}
.gw-est__amount{display:block;white-space:nowrap}
.blog-article__body .gw-est ul+.gw-est__head{margin-top:18px}
