/* ブログ（/blog/ の PHP。一覧・カテゴリ・アーカイブ・検索・記事）を新しいデザインに（責任者 2026-11-03「このページも https://winxcy.jp/blog/」）
   PHP の中身（記事の出し方・URL・構造化データ）はそのまま。見た目だけを下層ページ（page-sub.css）とトップのブログのカード（.bcard）にそろえる */
.blog-wrap { --hh: calc(var(--hd-h) + 28px); padding-bottom: var(--pad-y); }

/* 検索の窓（ヘッダーの下） */
.blog-search-bar { width: min(1100px, calc(100% - var(--gutter) * 2)); margin: 0 auto; padding-top: calc(var(--hd-h) + 18px); }
.blog-search-bar form { display: flex; gap: 8px; width: min(420px, 100%); margin-left: auto; }
.blog-search-bar input { flex: 1; min-width: 0; padding: 10px 16px; border: var(--line) solid var(--ink); border-radius: 999px; background: var(--white); font: inherit; font-size: 16px; color: var(--ink); }
.blog-search-bar input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.blog-search-bar button { padding: 0 18px; border: var(--line) solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--white); font-family: var(--ff-en); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; cursor: pointer; }
.blog-search-bar + .page-hero, .blog-search-bar + * .page-hero { margin-top: 18px; }

/* ページの見出し：下層ページと同じ色の帯＋白抜きの大きな文字 */
.page-hero { display: grid; justify-items: center; gap: 12px; margin-top: 18px; padding: 44px var(--gutter) 48px; border-block: var(--line-bold) solid var(--ink); background: var(--sky); text-align: center; }
.page-hero .s-lbl { padding: 4px 14px; border-radius: 999px; background: var(--ink); color: var(--white); font-family: var(--ff-en); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; }
.page-hero h1 { max-width: 920px; font-weight: 900; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.35; color: var(--white); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; word-break: keep-all; overflow-wrap: anywhere; }
.page-hero p { max-width: 680px; font-size: 14px; font-weight: 700; line-height: 1.8; }

.blog-wrap .container { width: min(1100px, calc(100% - var(--gutter) * 2)); margin: 0 auto; }

/* カテゴリの札 */
.cat-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 32px 0 24px; }
.cat-filter a { padding: 7px 16px; border: var(--line) solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; transition: translate 0.2s var(--ease-pop), box-shadow 0.2s; }
.cat-filter a:hover { translate: -2px -2px; box-shadow: 3px 3px 0 var(--ink); }
.cat-filter a.active { background: var(--ink); color: var(--white); }

/* 本文と横の欄 */
.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: clamp(24px, 4vw, 48px); padding-top: 8px; }

/* 記事のカード：トップのブログのカード（.bcard）と同じ形 */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.post-card { position: relative; display: grid; align-content: start; gap: 10px; padding: 12px 12px 18px; border: var(--line-bold) solid var(--ink); border-radius: 22px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 5px 5px 0 var(--ink); transition: translate 0.25s var(--ease-pop), box-shadow 0.25s; }
.post-card:hover { translate: -3px -3px; box-shadow: 8px 8px 0 var(--ink); }
.post-card .thumb, .post-card .thumb-placeholder { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid var(--ink); border-radius: 12px; }
.post-card .thumb-placeholder { display: grid; place-items: center; background: var(--blue); }
.post-card .body { display: grid; gap: 8px; padding: 0 4px; }
.post-card h2 { font-weight: 900; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.post-card .date { font-family: var(--ff-en); font-weight: 700; font-size: 13px; }
.cat-badge, .article-cat-badge { justify-self: start; padding: 2px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--sky); font-weight: 700; font-size: 13px; }
.pin-badge { position: absolute; z-index: 1; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--yellow); font-weight: 700; font-size: 13px; }
.no-posts { padding: 48px 0; text-align: center; font-weight: 700; }

/* ページ送り */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--sp-g); }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: var(--line) solid var(--ink); border-radius: 999px; background: var(--white); font-family: var(--ff-en); font-weight: 800; color: var(--ink); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--white); }

/* 横の欄（カテゴリ・アーカイブ） */
.content-wrap aside { display: grid; gap: 22px; }
.sidebar-widget { padding: 20px 20px 14px; border: var(--line) solid var(--ink); border-radius: var(--r-card); background: var(--white); }
.sidebar-widget h3 { margin-bottom: 8px; font-family: var(--ff-pop1); font-weight: 400; font-size: 22px; }
.sidebar-widget ul { margin: 0; padding: 0; list-style: none; }
.sidebar-widget li a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 2px; border-bottom: 1.5px dashed var(--ink); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.sidebar-widget li:last-child a { border-bottom: 0; }
.sidebar-widget li a.active { color: var(--blue-deep); }
.sidebar-widget .cnt { font-family: var(--ff-en); font-weight: 700; }

/* 記事 */
.breadcrumb { padding: 20px 0 4px; font-size: 13px; font-weight: 700; color: var(--ink-soft); overflow-wrap: anywhere; }
.breadcrumb a { color: var(--blue-deep); }
.article-header { display: grid; gap: 12px; padding: 16px 0 24px; border-bottom: var(--line-bold) solid var(--ink); }
.article-header h1 { font-weight: 900; font-size: clamp(24px, 3vw, 36px); line-height: 1.45; overflow-wrap: anywhere; }
.article-date { font-family: var(--ff-en); font-weight: 700; font-size: 14px; }
.article-body { display: grid; gap: 18px; padding: 28px 0 8px; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.article-body h2 { margin-top: 26px; padding: 10px 16px; border: var(--line) solid var(--ink); border-radius: 14px; background: var(--yellow); font-weight: 900; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; box-shadow: 4px 4px 0 var(--ink); }
.article-body h3 { margin-top: 14px; padding-bottom: 6px; border-bottom: 3px solid var(--ink); font-weight: 900; font-size: 18px; line-height: 1.55; }
.article-body h4 { font-weight: 900; font-size: 16px; }
.article-body a { color: var(--blue-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { display: grid; gap: 6px; margin: 0; padding-left: 1.4em; }
.article-body img { max-width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 14px; }
.article-body figure { margin: 0; }
.article-body figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-soft); text-align: center; }
.article-body blockquote { margin: 0; padding: 14px 18px; border-left: 6px solid var(--mint); border-radius: 0 14px 14px 0; background: var(--white); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.article-body th, .article-body td { padding: 10px 12px; border: 1.5px solid var(--ink); text-align: left; vertical-align: top; }
.article-body th { background: var(--paper-deep); font-weight: 900; }
.article-body pre { padding: 14px 16px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 13px; line-height: 1.7; overflow-x: auto; }
.article-body hr { border: 0; border-top: 2px dashed var(--ink); }

/* 記事の下の相談の帯 */
.winxcy-cta { margin-top: var(--sp-g); padding: clamp(24px, 4vw, 40px); border: var(--line-bold) solid var(--ink); border-radius: var(--r-card); background: var(--mint); box-shadow: 6px 7px 0 var(--ink); text-align: center; }
.winxcy-cta-inner { display: grid; justify-items: center; gap: 12px; }
.winxcy-cta-label { padding: 3px 12px; border-radius: 999px; background: var(--ink); color: var(--white); font-family: var(--ff-en); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; }
.winxcy-cta h3 { font-weight: 900; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; }
.winxcy-cta p { max-width: 620px; font-size: 14px; line-height: 1.85; }
.winxcy-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.winxcy-btn-primary, .winxcy-btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: var(--line) solid var(--ink); border-radius: 999px; font-weight: 900; font-size: 15px; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.winxcy-btn-primary { background: var(--ink); color: var(--white); }
.winxcy-btn-secondary { background: var(--white); color: var(--ink); }
.blog-wrap .icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }

/* 前後の記事・一覧へ */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: var(--sp-g); }
.post-nav a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: var(--line) solid var(--ink); border-radius: 16px; background: var(--white); color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.6; text-decoration: none; }
.post-nav .next { justify-content: flex-end; text-align: right; }
.post-nav .arrow { font-family: var(--ff-en); font-weight: 900; font-size: 22px; }
.back-to-list { margin-top: 22px; text-align: center; }
.back-to-list a { display: inline-block; padding: 10px 22px; border: var(--line) solid var(--ink); border-radius: 999px; background: var(--white); font-family: var(--ff-en); font-weight: 800; font-size: 14px; color: var(--ink); text-decoration: none; }

@media (max-width: 900px) {
  .content-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .blog-search-bar form { margin-inline: auto; }
  .page-hero { padding: 32px var(--gutter) 36px; }
  .page-hero h1 { -webkit-text-stroke-width: 6px; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav .next { justify-content: flex-start; text-align: left; }
}
