/**
 * Kensetu Mirai — SWELL 子テーマ上書き・ブリッジ UI
 * （main の common.css / footer.css に依存しない最小限の保険）
 */

.km-top-bridge {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
}

.km-top-bridge__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.km-top-bridge__title {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
}

.km-top-bridge__brand {
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
}

.km-top-bridge__brand:hover,
.km-top-bridge__nav a:hover {
	text-decoration: underline;
}

.km-top-bridge__sub {
	opacity: 0.9;
	font-size: 13px;
}

.km-top-bridge__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.km-top-bridge__nav a {
	color: #fff;
	text-decoration: none;
}

.km-single-cta {
	margin: 0 0 1rem;
	padding: 12px 16px;
	border: 1px solid #007bff;
	border-radius: 8px;
	background: #f8f9ff;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.km-single-cta__label {
	margin: 0;
	font-size: 14px;
	color: #333;
}

.km-single-cta__btn {
	display: inline-block;
	padding: 8px 16px;
	background: #007bff;
	color: #fff;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
}

.km-single-cta__btn:hover {
	background: #0056b3;
	color: #fff;
	text-decoration: none;
}

.km-bridge-site-footer.site-footer {
	margin-top: 0;
}

/* wp_list_categories で <ul> が二重になりやすいので整える */
.km-bridge-site-footer .blog-categories .category-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.km-bridge-site-footer .blog-categories .category-links li {
	margin: 0.35em 0;
}

.km-footer-empty {
	margin: 0;
	font-size: 14px;
	color: #666;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.km-top-bridge__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ============================================================
   SUUMO ジャーナル型 レイアウト — kensetu-mirai.com/wp/
   カラー: 紺 #1a3a5c / オレンジ #e67e22
   追加: 2026-05-20
============================================================ */

/* --- 全体ラッパー --- */
.suumo-home-wrapper {
  background: #f5f7f9;
  min-height: 60vh;
  padding-bottom: 48px;
}

/* --- ノーイメージプレースホルダー --- */
.suumo-no-image {
  width: 100%;
  height: 180px;
  background: #e8ecf0;
  display: block;
}
.suumo-no-image--small {
  height: 140px;
}

/* --- おすすめ記事グリッド --- */
.suumo-featured-area {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 0;
}
.suumo-featured-area h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a3a5c;
  border-left: 4px solid #e67e22;
  padding-left: 10px;
  margin-bottom: 16px;
}
.suumo-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.suumo-featured-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s;
}
.suumo-featured-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.13);
  text-decoration: none;
  color: inherit;
}
.suumo-featured-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.suumo-featured-card-body {
  padding: 14px;
}
.suumo-featured-card-cat {
  font-size: 0.72rem;
  color: #fff;
  background: #1a3a5c;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.suumo-featured-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  line-height: 1.45;
}
.suumo-featured-card-date {
  font-size: 0.72rem;
  color: #999;
  margin-top: 6px;
}

/* --- カテゴリーセクション --- */
.suumo-cat-section {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 16px;
}
.suumo-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.suumo-cat-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3a5c;
  border-left: 4px solid #e67e22;
  padding-left: 10px;
  margin: 0;
}
.suumo-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.suumo-cat-card {
  display: block;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
}
.suumo-cat-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,.11);
  text-decoration: none;
  color: inherit;
}
.suumo-cat-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.suumo-cat-card-body {
  padding: 10px 12px;
}
.suumo-cat-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}
.suumo-cat-card-date {
  font-size: 0.7rem;
  color: #aaa;
  margin-top: 4px;
}
.suumo-cat-more,
.more-link {
  font-size: 0.85rem;
  color: #e67e22;
  text-decoration: none;
}
.suumo-cat-more:hover,
.more-link:hover {
  text-decoration: underline;
}
.suumo-cat-more {
  display: block;
  text-align: right;
  margin-top: 10px;
}

/* --- 2カラムエリア --- */
.suumo-two-col-area {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

/* --- 新着記事 --- */
.suumo-new-posts {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.suumo-new-posts h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a3a5c;
  border-bottom: 2px solid #1a3a5c;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.suumo-new-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.suumo-new-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.suumo-new-list li:last-child {
  border-bottom: none;
}
.suumo-new-list img {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.suumo-new-list-content {
  flex: 1;
}
.suumo-new-list-cat {
  font-size: 0.7rem;
  color: #e67e22;
  font-weight: 700;
  margin-bottom: 2px;
}
.suumo-new-list-title a {
  font-size: 0.88rem;
  color: #222;
  text-decoration: none;
  line-height: 1.4;
}
.suumo-new-list-title a:hover {
  text-decoration: underline;
}
.suumo-new-list-date {
  font-size: 0.7rem;
  color: #aaa;
  margin-top: 2px;
}

/* --- サイドバー --- */
.suumo-sidebar-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}
.suumo-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a5c;
  border-bottom: 2px solid #1a3a5c;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.suumo-sidebar-recent-item {
  margin-bottom: 10px;
  font-size: 0.85rem;
}
.suumo-sidebar-recent-item a {
  color: #333;
  text-decoration: none;
}
.suumo-sidebar-recent-item a:hover {
  text-decoration: underline;
}
.suumo-sidebar-recent-date {
  color: #999;
  font-size: 0.72rem;
}
.suumo-sidebar-cats {
  list-style: none;
  padding: 0;
  margin: 0;
}
.suumo-sidebar-cats li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.suumo-sidebar-cats li:last-child {
  border-bottom: none;
}
.suumo-sidebar-cats a {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}
.suumo-sidebar-cats a:hover {
  text-decoration: underline;
}
.suumo-cat-count {
  color: #888;
  font-size: 0.78rem;
}

/* --- 建設会社検索バナー（サイドバー） --- */
.kensetsu-search-banner {
  display: block;
  background: #1a3a5c;
  color: #fff;
  text-align: center;
  padding: 20px 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 24px;
}
.kensetsu-search-banner:hover {
  background: #254d7a;
  text-decoration: none;
  color: #fff;
}
.kensetsu-search-banner p {
  margin: 4px 0;
}
.kensetsu-search-banner .banner-title {
  font-size: 1.1rem;
  font-weight: 700;
}
.kensetsu-search-banner .banner-sub {
  font-size: 0.78rem;
  opacity: 0.85;
}
.kensetsu-search-banner .banner-count {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f9ca24;
}

/* --- カテゴリーバッジ色 --- */
.cat-badge-license-guide { background: #2980b9; }
.cat-badge-application   { background: #27ae60; }
.cat-badge-law-reform    { background: #8e44ad; }
.cat-badge-management    { background: #d35400; }
.cat-badge-trouble       { background: #c0392b; }

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .suumo-featured-grid,
  .suumo-cat-grid {
    grid-template-columns: 1fr;
  }
  .suumo-two-col-area {
    grid-template-columns: 1fr;
  }
}

/* Phase 5: アスペクト比統一 — 縦長アイキャッチの表示崩れ修正 */
.p-entryCard__thumbnail img {
    object-fit: cover;
}

/* ============================================================
   トップページ: SWELLデフォルトサイドバー非表示・コンテンツフルwidth化
   (front-page.php 独自レイアウトとの競合を防ぐ)
   追加: 2026-05-20
============================================================ */
.home #content.l-content,
.home #content.l-container {
  display: block !important;
}
.home #sidebar.l-sidebar {
  display: none !important;
}
/* suumo-home-wrapper をフルwidth展開 */
.home .suumo-home-wrapper {
  width: 100%;
}


/* ============================================================
   パターンC — タブ切替メディア型 スタイル
   2026-05-21 追加
============================================================ */

/* ラッパー */
.patc-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* セクション共通ヘッダー */
.patc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #1a6fc4;
  padding-bottom: 8px;
  margin: 40px 0 16px;
}
.patc-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}
.patc-more-link {
  font-size: 0.85rem;
  color: #1a6fc4;
  text-decoration: none;
}
.patc-more-link:hover { text-decoration: underline; }
.patc-more-link--center { display: block; text-align: center; margin: 16px 0 0; }

/* ---------- [1] ヒーロー帯 ---------- */
.patc-hero { position: relative; margin-bottom: 32px; }
.patc-hero-link { display: block; position: relative; overflow: hidden; border-radius: 8px; text-decoration: none; }
.patc-hero-img img { width: 100%; height: 220px; object-fit: cover; display: block; }
.patc-hero-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 16px 24px 20px;
  color: #fff;
}
.patc-hero-sub    { font-size: 0.75rem; margin: 0 0 2px; opacity: .85; }
.patc-hero-title  { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; }
.patc-hero-count  { font-size: 1.1rem; font-weight: 700; color: #ffe066; margin: 0; }
.patc-hero-detail { font-size: 0.8rem; margin: 2px 0 0; opacity: .8; }

/* ---------- タブ共通 ---------- */
.patc-tab-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.patc-tab-btn {
  padding: 6px 18px;
  border: 2px solid #1a6fc4;
  border-radius: var(--km-radius-pill, 999px);
  background: #fff;
  color: #1a6fc4;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.patc-tab-btn.is-active,
.patc-tab-btn:hover {
  background: #1a6fc4;
  color: #fff;
}
.patc-tab-panel[hidden] { display: none; }
.patc-tab-panel.is-active { display: block; }

/* ---------- [2] アクセスランキング ---------- */
.patc-ranking { background: #f8f9fa; padding: 20px 24px 24px; border-radius: 8px; margin-bottom: 8px; }
.patc-ranking .patc-section-header { margin-top: 0; }
.patc-ranking .wpp-list { list-style: none; padding: 0; margin: 0; counter-reset: ranking-counter; }
.patc-ranking .wpp-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  counter-increment: ranking-counter;
}
.patc-ranking .wpp-list li:last-child { border-bottom: none; }
.patc-ranking .wpp-list li::before {
  content: counter(ranking-counter);
  min-width: 28px; height: 28px;
  background: #1a6fc4; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  flex-shrink: 0;
}
.patc-ranking .wpp-list li:first-child::before { background: #e8a000; }
.patc-ranking .wpp-list li:nth-child(2)::before { background: #888; }
.patc-ranking .wpp-list li:nth-child(3)::before { background: #b97a47; }
.patc-ranking-note { color: #888; font-size: .875rem; padding: 12px 0; }

/* ---------- [3] 今週のイチオシ ---------- */
.patc-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.patc-feat-card { display: block !important; text-decoration: none; color: inherit; border-radius: 6px; overflow: hidden; border: 1px solid #e8e8e8; transition: box-shadow .2s; }
.patc-feat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.patc-feat-img { width: 100%; min-height: 160px !important; background: #f0f0f0; overflow: hidden; }
.patc-feat-img img { width: 100%; height: 180px !important; object-fit: cover; display: block !important; }
.patc-no-img { width: 100% !important; height: 180px !important; background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%) !important; display: flex !important; align-items: center; justify-content: center; }
.patc-no-img::after { content: "📷"; font-size: 2rem; opacity: .4; }
.patc-feat-body { padding: 12px; }
.patc-feat-title { font-size: 0.9rem; font-weight: 600; line-height: 1.5; margin: 6px 0 4px; }
.patc-feat-date  { font-size: 0.78rem; color: #888; }

/* ---------- [4] カテゴリー別新着記事 ---------- */
.patc-cat-tab-nav { overflow-x: auto; }
.patc-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.patc-cat-card { display: block; text-decoration: none; color: inherit; border-radius: 6px; overflow: hidden; border: 1px solid #e8e8e8; transition: box-shadow .2s; }
.patc-cat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.patc-cat-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.patc-no-img--sm { width: 100%; height: 120px; background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%); }
.patc-cat-body  { padding: 10px; }
.patc-cat-title { font-size: 0.88rem; font-weight: 600; line-height: 1.4; margin: 6px 0 4px; }
.patc-cat-date  { font-size: 0.77rem; color: #888; }
.patc-empty     { color: #aaa; padding: 24px 0; text-align: center; }

/* カテゴリーバッジ */
.patc-cat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #eee;
  color: #555;
}
.cat-badge-license-guide  { background: #1a6fc4; color: #fff; }
.cat-badge-application    { background: #2d9e6b; color: #fff; }
.cat-badge-law-reform     { background: #c45c1a; color: #fff; }
.cat-badge-management     { background: #7c3aed; color: #fff; }
.cat-badge-trouble        { background: #b91c1c; color: #fff; }
.patc-cat-badge--sm       { font-size: 0.68rem; }

/* ---------- [5] 2カラム ---------- */
.patc-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  margin-top: 40px;
}
.patc-new-list  { list-style: none; padding: 0; margin: 0; }
.patc-new-item  { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.patc-new-item:last-child { border-bottom: none; }
.patc-new-thumb img { width: 80px; height: 54px; object-fit: cover; border-radius: 4px; display: block; }
.patc-new-content   { flex: 1; }
.patc-new-title a   { font-size: 0.9rem; font-weight: 600; color: #222; text-decoration: none; line-height: 1.5; }
.patc-new-title a:hover { color: #1a6fc4; }
.patc-new-date      { font-size: 0.77rem; color: #aaa; margin-top: 4px; }

/* サイドバー */
.patc-sidebar-box       { background: #f8f9fa; border-radius: 8px; padding: 16px; margin-bottom: 20px; }
.patc-sidebar-title     { font-size: 1rem; font-weight: 700; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #1a6fc4; }
.patc-sidebar-cats      { list-style: none; padding: 0; margin: 0; }
.patc-sidebar-cats li   { padding: 6px 0; border-bottom: 1px solid #e8e8e8; }
.patc-sidebar-cats li:last-child { border-bottom: none; }
.patc-sidebar-cats a    { text-decoration: none; color: #333; font-size: 0.9rem; display: flex; justify-content: space-between; }
.patc-sidebar-cats a:hover { color: #1a6fc4; }
.patc-cat-count         { color: #aaa; font-size: 0.8rem; }
.patc-sidebar-banner    {
  display: block; text-decoration: none;
  background: #1a6fc4; color: #fff;
  border-radius: 8px; padding: 20px;
  text-align: center;
}
.patc-sidebar-banner-title { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.patc-sidebar-banner-count { font-size: 1.5rem; font-weight: 700; color: #ffe066; margin: 0 0 4px; }
.patc-sidebar-banner-sub   { font-size: 0.78rem; opacity: .85; margin: 0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
  .patc-featured-grid,
  .patc-cat-grid         { grid-template-columns: repeat(2, 1fr); }
  .patc-two-col          { grid-template-columns: 1fr; }
  .patc-hero-title       { font-size: 1.2rem; }
  .patc-hero-img img     { height: 160px; }
}
@media (max-width: 480px) {
  .patc-featured-grid,
  .patc-cat-grid         { grid-template-columns: 1fr; }
  .patc-tab-btn          { padding: 5px 12px; font-size: 0.8rem; }
}

/* 追加スタイルは assets/km-bridge.css を参照（functions.php で読み込み） */



/* ============================================================
   パターンC — タブ切替メディア型 スタイル
   2026-05-21 追加
============================================================ */

/* ラッパー */
.patc-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* セクション共通ヘッダー */
.patc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #1a6fc4;
  padding-bottom: 8px;
  margin: 40px 0 16px;
}
.patc-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}
.patc-more-link {
  font-size: 0.85rem;
  color: #1a6fc4;
  text-decoration: none;
}
.patc-more-link:hover { text-decoration: underline; }
.patc-more-link--center { display: block; text-align: center; margin: 16px 0 0; }

/* ---------- [1] ヒーロー帯 ---------- */
.patc-hero { position: relative; margin-bottom: 32px; }
.patc-hero-link { display: block; position: relative; overflow: hidden; border-radius: 8px; text-decoration: none; }
.patc-hero-img img { width: 100%; height: 220px; object-fit: cover; display: block; }
.patc-hero-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 16px 24px 20px;
  color: #fff;
}
.patc-hero-sub    { font-size: 0.75rem; margin: 0 0 2px; opacity: .85; }
.patc-hero-title  { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; }
.patc-hero-count  { font-size: 1.1rem; font-weight: 700; color: #ffe066; margin: 0; }
.patc-hero-detail { font-size: 0.8rem; margin: 2px 0 0; opacity: .8; }

/* ---------- タブ共通 ---------- */
.patc-tab-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.patc-tab-btn {
  padding: 6px 18px;
  border: 2px solid #1a6fc4;
  border-radius: var(--km-radius-pill, 999px);
  background: #fff;
  color: #1a6fc4;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.patc-tab-btn.is-active,
.patc-tab-btn:hover {
  background: #1a6fc4;
  color: #fff;
}
.patc-tab-panel[hidden] { display: none; }
.patc-tab-panel.is-active { display: block; }

/* ---------- [2] アクセスランキング ---------- */
.patc-ranking { background: #f8f9fa; padding: 20px 24px 24px; border-radius: 8px; margin-bottom: 8px; }
.patc-ranking .patc-section-header { margin-top: 0; }
.patc-ranking .wpp-list { list-style: none; padding: 0; margin: 0; counter-reset: ranking-counter; }
.patc-ranking .wpp-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  counter-increment: ranking-counter;
}
.patc-ranking .wpp-list li:last-child { border-bottom: none; }
.patc-ranking .wpp-list li::before {
  content: counter(ranking-counter);
  min-width: 28px; height: 28px;
  background: #1a6fc4; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  flex-shrink: 0;
}
.patc-ranking .wpp-list li:first-child::before { background: #e8a000; }
.patc-ranking .wpp-list li:nth-child(2)::before { background: #888; }
.patc-ranking .wpp-list li:nth-child(3)::before { background: #b97a47; }
.patc-ranking-note { color: #888; font-size: .875rem; padding: 12px 0; }

/* ---------- [3] 今週のイチオシ ---------- */
.patc-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.patc-feat-card { display: block !important; text-decoration: none; color: inherit; border-radius: 6px; overflow: hidden; border: 1px solid #e8e8e8; transition: box-shadow .2s; }
.patc-feat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.patc-feat-img { width: 100%; min-height: 160px !important; background: #f0f0f0; overflow: hidden; }
.patc-feat-img img { width: 100%; height: 180px !important; object-fit: cover; display: block !important; }
.patc-no-img { width: 100% !important; height: 180px !important; background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%) !important; display: flex !important; align-items: center; justify-content: center; }
.patc-no-img::after { content: "📷"; font-size: 2rem; opacity: .4; }
.patc-feat-body { padding: 12px; }
.patc-feat-title { font-size: 0.9rem; font-weight: 600; line-height: 1.5; margin: 6px 0 4px; }
.patc-feat-date  { font-size: 0.78rem; color: #888; }

/* ---------- [4] カテゴリー別新着記事 ---------- */
.patc-cat-tab-nav { overflow-x: auto; }
.patc-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.patc-cat-card { display: block; text-decoration: none; color: inherit; border-radius: 6px; overflow: hidden; border: 1px solid #e8e8e8; transition: box-shadow .2s; }
.patc-cat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.patc-cat-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.patc-no-img--sm { width: 100%; height: 120px; background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%); }
.patc-cat-body  { padding: 10px; }
.patc-cat-title { font-size: 0.88rem; font-weight: 600; line-height: 1.4; margin: 6px 0 4px; }
.patc-cat-date  { font-size: 0.77rem; color: #888; }
.patc-empty     { color: #aaa; padding: 24px 0; text-align: center; }

/* カテゴリーバッジ */
.patc-cat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #eee;
  color: #555;
}
.cat-badge-license-guide  { background: #1a6fc4; color: #fff; }
.cat-badge-application    { background: #2d9e6b; color: #fff; }
.cat-badge-law-reform     { background: #c45c1a; color: #fff; }
.cat-badge-management     { background: #7c3aed; color: #fff; }
.cat-badge-trouble        { background: #b91c1c; color: #fff; }
.patc-cat-badge--sm       { font-size: 0.68rem; }

/* ---------- [5] 2カラム ---------- */
.patc-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  margin-top: 40px;
}
.patc-new-list  { list-style: none; padding: 0; margin: 0; }
.patc-new-item  { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.patc-new-item:last-child { border-bottom: none; }
.patc-new-thumb img { width: 80px; height: 54px; object-fit: cover; border-radius: 4px; display: block; }
.patc-new-content   { flex: 1; }
.patc-new-title a   { font-size: 0.9rem; font-weight: 600; color: #222; text-decoration: none; line-height: 1.5; }
.patc-new-title a:hover { color: #1a6fc4; }
.patc-new-date      { font-size: 0.77rem; color: #aaa; margin-top: 4px; }

/* サイドバー */
.patc-sidebar-box       { background: #f8f9fa; border-radius: 8px; padding: 16px; margin-bottom: 20px; }
.patc-sidebar-title     { font-size: 1rem; font-weight: 700; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #1a6fc4; }
.patc-sidebar-cats      { list-style: none; padding: 0; margin: 0; }
.patc-sidebar-cats li   { padding: 6px 0; border-bottom: 1px solid #e8e8e8; }
.patc-sidebar-cats li:last-child { border-bottom: none; }
.patc-sidebar-cats a    { text-decoration: none; color: #333; font-size: 0.9rem; display: flex; justify-content: space-between; }
.patc-sidebar-cats a:hover { color: #1a6fc4; }
.patc-cat-count         { color: #aaa; font-size: 0.8rem; }
.patc-sidebar-banner    {
  display: block; text-decoration: none;
  background: #1a6fc4; color: #fff;
  border-radius: 8px; padding: 20px;
  text-align: center;
}
.patc-sidebar-banner-title { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.patc-sidebar-banner-count { font-size: 1.5rem; font-weight: 700; color: #ffe066; margin: 0 0 4px; }
.patc-sidebar-banner-sub   { font-size: 0.78rem; opacity: .85; margin: 0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
  .patc-featured-grid,
  .patc-cat-grid         { grid-template-columns: repeat(2, 1fr); }
  .patc-two-col          { grid-template-columns: 1fr; }
  .patc-hero-title       { font-size: 1.2rem; }
  .patc-hero-img img     { height: 160px; }
}
@media (max-width: 480px) {
  .patc-featured-grid,
  .patc-cat-grid         { grid-template-columns: 1fr; }
  .patc-tab-btn          { padding: 5px 12px; font-size: 0.8rem; }
}

/* 追加スタイルは assets/km-bridge.css を参照（functions.php で読み込み） */


/* === PatternB-T2: ポータルリンクブロック (2026-05-24) === */
.km-portal-link-block {
  margin: 2.5rem 0 1rem;
  padding: 1.2rem 1.5rem;
  background: #f0f5ff;
  border-left: 4px solid #1a6cb0;
  border-radius: 6px;
}
.km-portal-link-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a4a80;
  margin: 0 0 .6rem;
}
.km-portal-link-desc {
  font-size: .88rem;
  color: #444;
  margin: 0 0 .8rem;
}
.km-portal-pref-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.km-portal-pref-list li a {
  font-size: .85rem;
  color: #1a6cb0;
  text-decoration: none;
  background: #fff;
  border: 1px solid #b3ccee;
  border-radius: 3px;
  padding: 2px 8px;
  display: inline-block;
}
.km-portal-pref-list li a:hover { background: #1a6cb0; color: #fff; }
.km-portal-all-link { margin: 0; font-size: .9rem; }
.km-portal-all-link a { color: #1a6cb0; font-weight: 600; }
/* === PatternB-T2 END === */

/* 著者アバターサイズ拡大 */
.p-authorBox__l .avatar {
  display: block;
  width: 160px !important;
  height: 160px !important;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 8px;
}
.p-authorBox__l {
  min-width: 220px;
  text-align: center;
}

/* 著者名の日本語改行をスペース位置のみで区切る */
.p-authorBox__name {
  word-break: keep-all;
}

/* === 特集記事ボックス：モバイル複製版（2026-08-07 パターンB） === */
/* wp_is_mobile()のUA判定に加えたビューポート幅によるセーフティネット */
.km-mobile-featured-dup {
        margin: 0 0 16px;
}
@media (min-width: 769px) {
        .km-mobile-featured-dup {
                display: none !important;
        }
}

/* ============================================================
   B案 Day1（2026-09-11 design）
   #9  上部のポータル帯：紫グラデ → 紺の単色。SP（959px以下）は1行・高さ44px
       （ブランド名＋「建設業許可データベース」のみ。個別リンクはフッター・メニューから）
   #11 トップ画像の文字の可読性：重ねる黒の不透明度 0.2 → 0.45、文字に影
============================================================ */
.km-top-bridge {
	background: #1a3a5c;
}

@media (max-width: 959px) {
	.km-top-bridge__inner {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		padding: 0 16px;
	}
	.km-top-bridge__title {
		flex-wrap: nowrap;
		align-items: center;
		gap: 8px;
		min-width: 0;
		white-space: nowrap;
		overflow: hidden;
	}
	.km-top-bridge__brand {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	.km-top-bridge__sub {
		font-size: 12px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.km-top-bridge__nav {
		display: none;
	}
}

body .p-mainVisual .c-filterLayer::before {
	opacity: 0.45;
}

.p-mainVisual__slideTitle,
.p-mainVisual__slideText {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* === B案3日目: 件数表示部品・タップ領域 44px (2026-09-11 design) === */
/* 件数表示（km-count）: ポータルの /css/components.css と同じ定義。ブログは components.css を読まないため複製 */
.km-count {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
	white-space: nowrap;
	letter-spacing: normal;
}

/* タップ領域 44px: 色・文字は変えず、高さだけ確保する */
.patc-tab-btn,
.patc-ranking-all-btn,
.patc-more-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}
.patc-more-link--center {
	display: flex;
}
.patc-sidebar-cats li {
	padding: 0;
}
.patc-sidebar-cats a {
	align-items: center;
	min-height: 44px;
}

/* === 回4f: ブログのコントラスト（WCAG AA 4.5:1）(2026-09-11 design) ===
   style.css と本ファイル前半に同じセレクタが重複しており、読み込み順に依存しないよう body を付けて上書きする */
body .patc-feat-date,
body .patc-cat-date,
body .patc-new-date,
body .patc-cat-count,
body .patc-empty,
body .patc-ranking-note {
	color: #666;
}
body .cat-badge-application { background: #1f7a52; }
body .cat-badge-law-reform  { background: #a64b12; }

/* === 回5f: ブログ記事・カテゴリの AA・押せる部分 44px（2026-09-11 design） ===
   SP 390px の実測で見つかったもの。見た目の作り直しはせず、色と高さだけを変える。
   保留（本文が下がるため回3bで判断）：SWELL SP メニュー 36px・ヘッダーロゴ・記事タイトル上のタグ（.p-articleMetas.-top） */

/* 記事内 CTA：青 #007bff は白文字と 3.98 → #0062cc（5.8）・高さ 42→44px */
body .km-single-cta__btn {
	background: #0062cc;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}
body .km-single-cta__btn:hover {
	background: #004a99;
}

/* ページ送り：数字が白文字 on #dedede（1.35）・「…」#aaa（2.13）・高さ 36px */
body .c-pagination .page-numbers:not(.current):not(.dots) {
	color: #333;
}
body .c-pagination .c-pagination__dot,
body .c-pagination .dots {
	color: #666;
}
body .c-pagination .page-numbers {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ポータルへの導線（記事下の都道府県リスト・サイドバー） */
body .km-portal-pref-list li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
}
body .km-portal-all-link a,
body .km-sidebar-portal-all a,
body .km-sidebar-portal-list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* 記事本文の目次・関連サービスのリスト（文中リンクは対象外） */
body .post_content nav.table-of-contents li a,
body .post_content .article-cta li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* 記事下のカテゴリ・タグ（タイトル上の -top は保留） */
body .p-articleMetas.-bottom .c-tagList__link,
body .p-articleMetas.-bottom .c-categoryList__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* 共有ボタン 34px */
body .c-shareBtns__btn,
body .c-shareBtns__item .c-urlcopy {
	min-height: 44px;
}

/* 著者名 */
body .p-authorBox__name {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}

/* サイドバー：カテゴリ・アーカイブ 42px、新着記事、検索欄 35px、カスタム HTML のリンク */
body .c-listMenu a {
	min-height: 44px;
}
body .wp-block-latest-posts__post-title {
	display: block;
	min-height: 44px;
}
body .wp-block-search__input,
body .wp-block-search__button {
	min-height: 44px;
}
body #sidebar .widget_custom_html a[style] {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}


/* === 回5f-2: サイドバーのインライン指定リンク（.c-widget の外にあるため回5fで一致しなかった）(2026-09-11 design) ===
   画像を含むリンクは形を変えないよう除外する */
body #sidebar a[style]:not(:has(img)) {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}


/* === 回3b: スライダーの点の押せる範囲（2026-09-11 design） ===
   見た目は 6px の点のまま、padding と background-clip で押せる範囲を 24px（WCAG 2.5.8 AA）にする。
   保留：SWELL SP メニュー 36px・記事タイトル上のタグ（44px にすると最初の記事や本文が下がるため、見栄えの段階で CEO と判断） */
body .p-postSlider .swiper-pagination-bullet {
	box-sizing: content-box;
	width: 6px;
	height: 6px;
	padding: 9px;
	margin: 0;
	background-clip: content-box;
}

/* 回5g（PC 幅）: 上部のポータル帯のナビ 18px・ブランド 22px → 44px。
   帯の上下の余白 10px を 0 にして、帯の高さはほぼ同じ（42px → 44px）に保つ。
   保留：SWELL ヘッダー上段のアイコン（RSS・検索 22px。44px にすると上段の帯が倍の高さになる） */
@media (min-width: 960px) {
	body .km-top-bridge__inner {
		padding-top: 0;
		padding-bottom: 0;
	}
	body .km-top-bridge__brand,
	body .km-top-bridge__nav a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* 特集記事ボックスの1行の見出し 22px → 44px（2行以上の見出しは既に 44px 以上） */
body .recent-posts-item a.post-title {
	display: flex;
	align-items: center;
	min-height: 44px;
}


/* === 回3b-2: トップページ専用サイドバー（.patc-sidebar）のインライン指定リンク 20px・32px → 44px（回5f-2 と同じ扱い）(2026-09-11 design) === */
body .patc-sidebar a[style]:not(:has(img)) {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}


/* === 回38（2026-09-13 design・リーダー doctest 依頼 TC-040）: ブログの押せる部分を 44px 以上に（色・文字は変えない） ===
   実測（scripts/design/inspect-small.mjs・/wp/ PC 1280 / SP 400）で 44px 未満だったもの:
   - ヘッダーのサイト名リンク（.c-headLogo__link 20〜24px）
   - スマホの上部メニュー（.p-spHeadMenu の各リンク 36px）
   - 右上のアイコン（RSS・検索 .c-iconList__link 22×26px）
   - 人気記事ウィジェット（.wpp-list のサムネイル 14〜17px・題名 26px）
   - 新着記事の題名（.patc-new-title a 18px）
   - 上部の帯のメニュー（.km-top-bridge__nav a 幅 42px） */
body .c-headLogo__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
body .p-spHeadMenu .menu-item > a {
	display: flex;
	align-items: center;
	min-height: 44px;
}
body .c-iconList__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}
body .wpp-list li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	min-width: 44px; /* サムネイルのリンクは幅 21〜26px だったため */
}
body .patc-new-title a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
body .km-top-bridge__nav a {
	min-width: 44px;
	justify-content: center;
}


/* === 回40（2026-09-13 design・リーダー doctest 実測 TC-040 の残り）: ブログの検索パネルの押せる部分を 44px 以上に（色・文字は変えない） ===
   実測（scripts/design/inspect-search-panel.mjs・/wp/ PC 1280 / SP 400・検索パネルを開いた状態）で 44px 未満だったもの:
   - 検索の入力欄（.c-searchForm__s 高さ 42px）
   - その右の検索ボタン（.c-searchForm__submit 40×42px）
   - 「閉じる」ボタン（.c-modal__close 高さ 40px） */
body .c-searchForm__s {
	min-height: 44px;
}
body .c-searchForm__submit {
	min-width: 44px;
	min-height: 44px;
}
body .c-modal__close {
	min-height: 44px;
}


/* === 回52（2026-09-13 design・CEO 承認 A案）: ブログトップのアクセスランキングをスマホで読めるように（色・文字の大きさは変えない） ===
   実測（scripts/design/inspect-blog-ranking.mjs・/wp/ 幅400）:
   - 見出し「アクセスランキング」（幅146px）とタブ（幅142px）が横並びで、見出しが3行・タブが2段に折れていた
   - 各行のビュー数（.wpp-meta.post-stats）が幅21px に押し込まれ、「26件のビュー」が縦に積み上がっていた（高さ127px）
   対処: 600px 以下で、見出しとタブを上下2段にし、ビュー数を題名の下の1行に回す */
@media (max-width: 600px) {
	body .patc-ranking .patc-section-header {
		flex-wrap: wrap;
		row-gap: 8px;
	}
	body .patc-ranking .patc-section-title {
		flex: 1 0 100%;
	}
	body .patc-ranking .patc-tab-nav {
		flex-wrap: nowrap;
	}
	body .patc-ranking .wpp-list li {
		flex-wrap: wrap;
	}
	body .patc-ranking .wpp-list li .wpp-meta {
		flex: 1 0 100%;
		width: auto;
		text-align: right;
		white-space: nowrap;
	}
}


/* === 回56（2026-09-13 design・CEO 承認 A案・doctest スマホ実測表 #9）: 記事ページの押しにくいリンクを 44px 以上に（色・文字の大きさは変えない） ===
   実測（scripts/design/inspect-tap-targets.mjs・/wp/license-number-guide/ 幅390）で 44px 未満だったもの（文中リンクを除く18件）:
   - パンくず「ホーム」「許可ガイド」（.p-breadcrumb__text 高さ17px）
   - 記事上部のカテゴリ（.c-categoryList__link 高さ19px）とタグ5つ（.c-tagList__link 高さ19px）
   - 本文の単独の案内リンク（p.related-link a 高さ20px）
   - サイドバーの県リンク9つ（.km-sidebar-portal-list a 幅42px）
   対処: 959px 以下（SWELL のスマホ・タブレット）で、押せる範囲の高さ・幅だけを広げる */
@media (max-width: 959px) {
	body .p-breadcrumb__text {
		min-height: 44px;
		min-width: 44px;
		align-items: center;
	}
	body .c-categoryList__link,
	body .c-tagList__link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	body .post_content p.related-link a {
		display: inline-block;
		padding-block: 12px;
	}
	body .km-sidebar-portal-list li a {
		min-width: 44px;
		justify-content: center;
	}
}


/* === 回56-b（2026-09-13 design）: 回56 で記事上部のカテゴリの札（紺の背景）とタグの札（薄い灰色の背景）が高さ19px→44pxの塊になり見た目が重くなったため、
   背景は元の大きさに戻し、上下の透明な枠で押せる範囲だけを 44px にする（反映後の目視で気づいた不備の修正） === */
@media (max-width: 959px) {
	body .c-categoryList__link,
	body .c-tagList__link {
		min-height: 0;
		border-top: 13px solid transparent;
		border-bottom: 13px solid transparent;
		background-clip: padding-box;
	}
}


/* === 回57（2026-09-13 design・CEO 承認 A案）: 記事ページ（PC 960px 以上）の押しにくいリンクを 44px 以上に（色・文字の大きさは変えない） ===
   実測（scripts/design/inspect-tap-targets.mjs・/wp/license-number-guide/ 幅1280）で 44px 未満だったもの24件:
   - パンくず2（.p-breadcrumb__text 47×18）・カテゴリ1とタグ5（19px）・本文の単独の案内リンク1（p.related-link a 21px）
   - 左に固定の共有ボタン6（.c-shareBtns.-fix の Facebook・X・はてブ・Pocket・LINE・URL コピー 30×44）
   - サイドバーの県リンク9（.km-sidebar-portal-list a 幅42px）
   対処: 回56（959px 以下）と同じ直し方を 960px 以上にも。カテゴリとタグは回56-b と同じく背景を元の大きさのまま、上下の透明な枠で押せる範囲だけ広げる */
@media (min-width: 960px) {
	body .p-breadcrumb__text {
		min-height: 44px;
		min-width: 44px;
		align-items: center;
	}
	body .c-categoryList__link,
	body .c-tagList__link {
		display: inline-flex;
		align-items: center;
		border-top: 13px solid transparent;
		border-bottom: 13px solid transparent;
		background-clip: padding-box;
	}
	body .post_content p.related-link a {
		display: inline-block;
		padding-block: 12px;
	}
	body .km-sidebar-portal-list li a {
		min-width: 44px;
		justify-content: center;
	}
	/* 左に固定の共有ボタン（30×44）は幅を広げない。ドライランで44pxにすると列が本文の左端（日付・カテゴリの札）に重なったため。
	   高さは44pxあり、本文の左の余白に収まる幅を優先する（例外として記録。読み上げ用の名前は回58） */
}

/* 2026-09-15 design 回97：/wp/ranking/ の写真を2倍（160×108）にしたのに合わせ、PC は写真の横に題名と閲覧数を置き、題名が長くても写真の下に回り込まない（行の高さを揃える）。スマホ（599px 以下）は写真の下に題名。追加のみ */
.rank-page ul.wpp-list li { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 16px; align-items: start; }
.rank-page ul.wpp-list li > a:first-child { grid-row: 1 / 3; float: none; }
.rank-page ul.wpp-list li > .wpp-post-title,
.rank-page ul.wpp-list li > .wpp-meta { grid-column: 2; }
@media (max-width: 599px) {
  .rank-page ul.wpp-list li { grid-template-columns: minmax(0, 1fr); }
  .rank-page ul.wpp-list li > a:first-child { grid-row: auto; }
  .rank-page ul.wpp-list li > .wpp-post-title,
  .rank-page ul.wpp-list li > .wpp-meta { grid-column: 1; }
}

/* 2026-09-15 design 回98：記事本文（.post_content）の中のリンクだけに色と下線を付ける（本文と同じ色・下線なしでリンクと気づけなかった：article 16:35・リーダー 16:38）。
   色は本文で既に使っている青 #1a6cb0（ポータル系リンクと同じ）。ボタン・カード・画像リンク・km- の枠は除外。目次・案内枠・関連リンクは既存の規則（body .post_content …）の方が強いので変わらない。追加のみ */
.post_content a:not(nav.table-of-contents a):not(.swell-block-button__link):not([class*="btn"]):not([class*="button"]):not([class*="blogCard"]):not([class*="km-"]):not(:has(img)) { color: #1a6cb0; text-decoration: underline; text-underline-offset: .15em; }
.post_content a:not(nav.table-of-contents a):not(.swell-block-button__link):not([class*="btn"]):not([class*="button"]):not([class*="blogCard"]):not([class*="km-"]):not(:has(img)):hover { color: #0f4f85; }

/* 2026-09-15 design 回99（刷新 第1段階・TC-031）：ブログトップのスマホ（599px 以下）で大きな画像の高さを 50vh → 240px に。最初の記事を最初の画面（上から 400px 以内）に入れる。PC・タブレットは変えない。追加のみ */
@media screen and (max-width: 599px) {
  body .p-mainVisual__inner { height: 240px; }
}

/* 2026-09-21 design 刷新 A案 回5：カテゴリ・タグの一覧のスマホ（599px 以下）で、最初の画面に読める記事を 1本→3本に。
   説明の箱と余白を詰め、記事は「左に写真 120px・右に題名と日付」の1行型に（抜粋とカテゴリの札はスマホだけ出さない）。
   PC・タブレット・ブログのトップ（.home）は変えない。見本 /drafts/km-blog-rough/。追加のみ */
@media screen and (max-width: 599px) {
  .archive .p-termHead { margin-top: 16px; }
  .archive .p-termHead__desc { padding: 12px 14px; font-size: 14px; line-height: 1.7; }
  .archive .p-termContent { margin-top: 24px; }
  .archive .p-postList.-type-card .p-postList__item { margin-bottom: 16px; }
  .archive .p-postList.-type-card .p-postList__link { display: flex; gap: 12px; align-items: flex-start; }
  .archive .p-postList.-type-card .p-postList__thumb { flex: 0 0 120px; width: 120px; }
  .archive .p-postList.-type-card .p-postList__body { padding-top: 0; flex: 1; min-width: 0; }
  .archive .p-postList.-type-card .p-postList__excerpt,
  .archive .p-postList.-type-card .c-postThumb__cat { display: none; }
}

/* 2026-09-21 design 刷新 A案 回6：ブログのトップのスマホ（599px 以下）で、記事の横並びの下の空きを詰める（テーマがページ内に書く .top #content の上の余白 4em＝64px → 24px）。
   下のデータベースの枠とアクセスランキングが 40px 上がる。PC・タブレット・一覧・記事は変えない。追加のみ */
@media screen and (max-width: 599px) {
  html .top #content { padding-top: 24px; }
}

/* 囲みの枠の題（design 2026-09-25・article 22:25 の依頼・TC-766 の見出しの飛び級）：
   枠の題を h4 から段落 p.info-box-title に替えても、今の h4 と同じ見た目にする（字・太さ・行・色・余白は em で幅に合わせる）。
   9つの幅（360〜1280）×記事6 の5か所で h4 と算出値の差 0 を確かめた（scripts/design/_pw-try-infobox-title.mjs）。
   最初の枠 aside だけ上の余白 3em が残る今の見え方もそのまま（div の枠の最初の題だけ 0） */
.post_content p.info-box-title { font-size: 1.2em; font-weight: 700; line-height: 1.4; color: #123a5f; margin: 3em 0 1.5em; }
.post_content div.info-box > p.info-box-title:first-child { margin-top: 0; }
@media (max-width: 599px) { .post_content p.info-box-title { font-size: 1.05em; } }

/* TC-766目次（design 2026-09-26・article 07:34 の依頼・見出しの飛び級）：
   目次の題を h3 から段落 p.toc-title に替えても、今の h3 と同じ見た目にする（テーマの .post_content h3 の字・行・余白・下の2px の線と、tokens の色をそのまま写す）。
   9つの幅（360〜1280）×記事6 で h3 と算出値の差 0（線の絵 ::before まで）を確かめた（scripts/design/_pw-try-toc-title.mjs） */
.post_content nav.table-of-contents p.toc-title { font-size: 1.1em; font-weight: 700; line-height: 1.4; color: var(--km-brand); margin: 3em 0 2em; padding: 0 .5em .5em; position: relative; }
.post_content nav.table-of-contents p.toc-title::before { content: ""; display: block; position: absolute; left: 0; bottom: 0; z-index: 0; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--color_htag) 0%, var(--color_htag) 29.3%, rgba(150,150,150,.2) 29.3%, rgba(150,150,150,.2) 100%); }
@media (min-width: 600px) { .post_content nav.table-of-contents p.toc-title { font-size: 1.3em; } }

/* 相談の囲みの下の余白（design 2026-09-26・article 07:52 とリーダー 08:00 の仕分け・K44 課題 2-7）：
   記事の本文の div.km-cta-wpd は style 属性で margin:2.5em 0 0（下 0）＝直後の段落がくっつく（該当 15本）。属性を上書きするため !important で下にも上と同じ 2.5em。
   本文の最後に置いた囲みには付けない。記事 2369 の PC1280・SP400 で上下とも 40px を確かめた（scripts/design/_pw-measure-cta-gap.mjs） */
.post_content .km-cta-wpd:not(:last-child) { margin-bottom: 2.5em !important; }

/* 表のセルが1文字ずつ縦に並ぶ（design 2026-09-28・article 11:59 の依頼・表のある公開記事 193本のうち 43本・169セル）：
   SWELL 本体の td,th は word-break:break-all・最小幅 var(--swl-minwidth-cell,0)・表は max-width:100%＝列の多い表で短い列が 40〜70px に潰れていた。
   959px 以下で、セルの最小幅を 5em（3〜4文字が1行に入る・4列の表は 400px に収まる）（SWELL の変数で渡す）・語の途中で切らない（金額や数字が途中で切れない）・はみ出す表は横に送る
   （図の枠 figure.wp-block-table はもとから overflow-x:auto・枠の無い古い表は inc/km-table-scroll.php が div.km-table-scroll で包む）。
   測り方 node scripts/article/check-table-wrap.mjs {ID|URL} */
/* 2026-10-19 design（06 TC-747＝記事 5406 の6列の表が幅400で枠から 112px はみ出す）：figure.wp-block-table は本番で overflow-x:visible だった（「もとから auto」は誤り）＝図の枠も横に送る */
.post_content .wp-block-table, .post_content .km-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 959px) {
  .post_content .wp-block-table, .post_content .km-table-scroll { --swl-minwidth-cell: 5em; }
  .post_content .wp-block-table > table, .post_content .km-table-scroll > table { max-width: none; }
  .post_content .km-table-scroll td, .post_content .km-table-scroll th { min-width: var(--swl-minwidth-cell); }
  .post_content .wp-block-table td, .post_content .wp-block-table th, .post_content .km-table-scroll td, .post_content .km-table-scroll th { word-break: normal; overflow-wrap: break-word; }
}

/* 表の続きの印（design 2026-09-28・testrun 13:19 TC-762 NG の直し）：959px 以下で枠より広い表（inc/km-table-scroll.php が枠に km-tbl-more を付ける）の上に
   「横にスクロールできます →」を1行。sticky で枠の左に止め、横に送っても見える。はみ出さない表には出ない。測り方 node scripts/design/_pw-measure-table-hint.mjs */
@media (max-width: 959px) {
  .post_content .km-tbl-more::before { content: "横にスクロールできます →"; position: sticky; left: 0; display: block; margin-bottom: 4px; font-size: 12px; line-height: 1.6; color: #5B6670; text-align: right; }
}

/* 記事の最後の読み物の欄（design 2026-09-28・CEO 決定 A 9/27 19:28・ラフ /drafts/km-wpd-reading-rough/ と同じ値）：代行センターの1行の直後・次に読むの箱の前。部品 inc/km-wpd-reading.php */
.post_content .km-wpd-reading{position:relative;margin:24px 0 28px;padding:16px 18px;background:#fff;border:1px solid #DFE3E8;border-left:4px solid #123A5F;border-radius:8px}
.post_content .km-wpd-reading__h{margin:0 0 4px;font-size:1em;font-weight:700;color:#123A5F;line-height:1.6}
.post_content .km-wpd-reading__lead{margin:0 0 10px;font-size:.92em;color:#5B6773;line-height:1.7}
.post_content .km-wpd-reading__a{display:flex;flex-direction:column;gap:2px;min-height:44px;justify-content:center;padding:10px 14px;background:#F6F7F9;border:1px solid #DFE3E8;border-radius:8px;text-decoration:none;color:#1e40af}
.post_content .km-wpd-reading__a:hover{background:#E6F1F6;border-color:#0B6E99}
.post_content .km-wpd-reading__a b{font-size:1em;line-height:1.6;text-decoration:underline}
.post_content .km-wpd-reading__ext{display:inline-flex;align-items:center;gap:4px;font-size:.82em;color:#5B6773}


/* === 回217（2026-09-29 design・TC-217 testrun 09:09・明細 docs/metrics/testrun-unrun-r17-latest.json）: 記事とブログのトップの押しにくい部品を 44px 以上に（色・文字の大きさは変えない） ===
   - 共有ボタン5と URL コピー（.c-shareBtns__btn・.c-urlcopy 30×44）＝幅だけ 44px に
   - 短いタグ（「台風」など .c-tagList__link 33〜36×45）＝幅だけ 44px に（文字は中央）
   - 目次のリンク（.p-toc__link 高さ 18〜21px）＝行の高さは変えず、上下の透明な余白で押せる範囲だけ 45px に
   - ブログのトップの補助金への1行（.km-hojokin-entry a 高さ 21px） */
body .c-shareBtns__btn,
body .c-shareBtns__item .c-urlcopy {
	min-width: 44px;
}
body .c-tagList__link {
	min-width: 44px;
	justify-content: center;
}
body .p-toc__link {
	padding-block: 12px;
}
body .km-hojokin-entry a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
/* === 回217b（2026-09-29 design）: 回217 の後に測り直し＝入れ子の目次（文字が小さく高さ 18px）だけ 42px で 2px 足りない＝余白を 13px に === */
body .p-toc ol ol .p-toc__link {
	padding-block: 13px;
}
/* === 回217c（2026-09-29 design）: 回217 の min-width で左に固定の共有ボタン（.c-shareBtns.-fix・左端 8px）が 44px に広がり、本文の文字に重なった（1280px で 4px・960〜1024px で 20px）＝固定のほうだけ元の幅に戻す（記事下の共有ボタンは 44px のまま） === */
body .c-shareBtns.-fix .c-shareBtns__btn,
body .c-shareBtns.-fix .c-urlcopy {
	min-width: 0;
}
/* === 回217d（2026-09-30 design・TC-217 testrun 00:02 の残り 6か所）: 左に固定の共有ボタン（.c-shareBtns.-fix）の押せる範囲だけを 44px に。見た目（色のついた 30px・左から 8〜38px）は変えない＝左右 7px の透明な余白を足し、置き場を左 1px へ（押せる範囲は 1〜45px・本文の字は 49px から） === */
body .c-shareBtns.-fix {
	left: 1px;
	width: 44px;
}
body .c-shareBtns.-fix .c-shareBtns__list,
body .c-shareBtns.-fix .c-shareBtns__item {
	width: 44px;
}
body .c-shareBtns.-fix .c-shareBtns__btn,
body .c-shareBtns.-fix .c-urlcopy {
	min-width: 44px;
	width: 44px;
	padding-inline: 7px;
	background-clip: content-box;
}
/* === 回217e（2026-10-01 design・TC-217 testrun 12:31 の残り 1種）: 記事本文の箇条書きで、行の中のリンクが1本だけのもの（「あわせて読みたい」の1行・高さ 21px）＝行の高さと並びは変えず、上下の透明な余白で押せる範囲だけ 45px に（目次 .p-toc__link と同じ型・色と文字は変えない）。本文のふつうの箇条書き（.wp-block-list）だけ＝目次・県の一覧（km-portal-pref-list）・記事末の案内（km-post-end）には当てない（広い形 li > a:only-child は 13行が動きページの高さが 13px 伸びた） === */
body .post_content .wp-block-list > li > a:only-child {
	padding-block: 12px;
}
/* === 回217f（2026-10-01 design・TC-217 の穴＝代表の1記事は OK でも、記事 20本を測ると 4本に 21px の行が 10本 残っていた）: 回217e と同じ型を、本文の直下のクラスの無い箇条書き（出典の一覧など）と 関連リンクの一覧（.related-link-list）にも。行の高さと並びは変えない。本文の直下だけ＝古い記事の目次（nav.table-of-contents）・記事内の案内（section.article-cta）・記事末の案内（.km-post-end）の中の箇条書きは すでに 44px（inline-flex）なので当てない（当てると 1記事で約50px 伸びた） === */
body .post_content > ul:not([class]) > li > a:only-child,
body .post_content > ol:not([class]) > li > a:only-child,
body .post_content .related-link-list > li > a:only-child {
	padding-block: 12px;
}
/* === 回217g（2026-10-01 design・06 16:31 TC-217 27件 6種・TC-215 12件 2種＝古い形の記事 ID 5 /wp/license-general-vs-special/ の1本だけ＝DB で数えて 642本中 1本）: 記事の中の手書きの部品（inline の style）の押せる範囲と文字の濃さ。記事を見分ける印（body のクラス）は本番の HTML に無いので、部品の形（inline の style の特徴）で当てる。並びと大きさは変えない＝透明な枠と余白を足し、同じ分だけ外側を引く ===
   - 丸い札のリンク（一般建設業・特定建設業 88×28）＝上下に透明な枠 9px（背景は内側だけ）で押せる高さ 46px・緑は白い字が読める濃さに（#16a34a 3.3:1 → #15803d 5.0:1）
   - 箱の中の1行のリンク（display:block 712×21）＝上下の余白 12px
   - 段落の中のリンクだけの行（→ 全47都道府県から探す 16px・都道府県別に探す 21px）と よくある質問の答えの中のリンク＝上下の透明な余白（inline のまま）
   - 「関連記事」の小さい見出し（#888 3.4:1）＝ #5B6670 */
body .post_content a[style*="border-radius:20px"] {
	border-block: 9px solid transparent;
	margin-block: -9px !important; /* SWELL の「箱の最初と最後の子の余白 0（!important）」に負けると 1行 9px ずつ伸びる（仮当てで +57px） */
	background-clip: padding-box !important; /* 記事の inline の background（まとめ書き）が clip を戻すので !important（無いと札が 46px まで塗られて上下でくっつく＝写しで見つけた） */
}
body .post_content a[style*="background:#16a34a"] {
	background-color: #15803d !important;
}
body .post_content div[style] > a[style*="display:block"] {
	padding-block: 12px;
	margin-top: -12px !important;
	margin-bottom: -8px !important;
}
body .post_content p[style*="text-align:right"] > a,
body .post_content div[style*="border-left:4px solid #2563eb"] p > a,
body .post_content .qa-a > a {
	padding-block: 14px;
}
body .post_content p[style*="color:#888"] {
	color: #5B6670 !important;
}
/* === 回217h（2026-10-01 design・回217e／217f の副作用の側）: リンクだけの行が上下に続く一覧（行の間隔 28px）で、下の行の押せる範囲（上の透明な余白 12px）が上の行の文字に 5px 掛かっていた（記事 40本のうち 21本・延べ 80組）＝透明な余白を 上 7px（行の間と同じ）・下 17px に分け直す。押せる高さ 45px と 行の高さ・並び・色・文字は変えない（上の行の下の余白は下の行に掛かるが、下の行のリンクが手前＝下の行の文字はその行のリンクのまま） === */
body .post_content .wp-block-list > li > a:only-child,
body .post_content > ul:not([class]) > li > a:only-child,
body .post_content > ol:not([class]) > li > a:only-child,
body .post_content .related-link-list > li > a:only-child {
	padding-top: 7px;
	padding-bottom: 17px;
}
/* === 回217i（2026-10-01 design・回217／217b の副作用の側）: 目次のリンク（.p-toc__link）も、上下の透明な余白 12px（入れ子は 13px）が上の行の文字に最大 4.4px 掛かっていた（記事 20本×2幅で 押した点が別の行のリンクに当たる 668か所）＝回217h と同じ型で、余白を 上 6px・下 18px（入れ子は 上 6px・下 20px）に分け直す。押せる高さ（45px・入れ子 44px）と 行の高さ・並び・色・文字は変えない === */
body .p-toc__link {
	padding-top: 6px;
	padding-bottom: 18px;
}
body .p-toc ol ol .p-toc__link {
	padding-top: 6px;
	padding-bottom: 20px;
}
/* === 回217j（2026-10-01 design・回217i で見つけた残り）: 折りたたんだ目次の「もっと見る」のボタン（.p-toc__expandBtn 98×35）＝高さだけ 44px に（幅・色・文字・枠の形は変えない・回217 の共有ボタンやタグと同じ型） === */
body .p-toc__expandBtn {
	min-height: 44px;
}
/* === 回218（2026-10-05 design・CEO 10/3 19:5x「写真自体はいったん確定でデザインや見せ方で工夫」・台帳 site-photo-as-is-ux-1003・材料 07 09:29＝閲覧の上位100ページのうち印のある 11ページはすべてパソコンの幅のブログ記事）:
   パソコンの幅だけ、記事の顔写真（幅 828・高さ 433〜552＝1画面の 54〜69%）を高さ 300px に（上下を切る＝10/4 CEO A のトップの写真と同じ型・写真の中身は変えない）。
   本文の写真（幅 796・高さ 442〜531）は切らずに高さ 300px まで小さくして中央に（説明文と合うよう写っている物を全部残す）。スマホは今のまま。この子テーマの body には class が無い＝記事の枠 .l-article で絞る。戻すときはこの段を消す === */
@media (min-width: 960px) {
	/* ブログの表紙 /wp/ の上の写真（1280×384＝1画面の 48%）も同じ型で 300px に。上にのる題と説明の文は中央のまま */
	body .p-mainVisual.-height-set .p-mainVisual__inner {
		height: 300px;
	}
	.l-mainContent.l-article .p-articleThumb__img {
		width: 100%;
		height: 300px;
		object-fit: cover;
	}
	.l-mainContent.l-article .post_content figure.wp-block-image img,
	.l-mainContent.l-article .post_content div.wp-block-image img { /* 2026-10-05 10:0x：古い形の囲み（div の中に figure）の記事 2本が残っていた（07 09:53） */
		width: auto;
		max-width: 100%;
		max-height: 300px;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
}

/* 2026-10-07 design 回1007a（09 記事の審査 14:31 の指摘・01 14:56 の仕分け）：
   ① ブログの足元に著作権の表示が2回（SWELL の p.copyright「© 建設業許可DB.」＋共通フッターの footer-bottom「© 2026 建設業許可DB.」・9/11 の共通フッター導入から）
      → 共通フッターの1行を残し、SWELL 側を隠す（文字は変えない）
   ② 記事検索の入力欄の案内「キーワードで記事を検索…」の末尾が切れていた（400 幅も 1280 幅も入力欄 209px−余白 22px ＝187px ＜ 文字 192px）
      原因＝10/1 に検索欄を本物のフォーム（form.km-search-form）にしたとき、横並びの指定 .search-box{display:flex} が form の外側にだけ効き、
      中の入力欄は既定の幅（size=20 相当 209px）のままだった → form の側を横並びにし、入力欄は 220px 以上・足りなければボタンを下へ折り返す
      （ボタンの 44px・折り返し禁止は回29 のまま・色と文字は変えない） */
.l-footer .l-footer__foot p.copyright { display: none; }
.km-bridge-site-footer .search-box .km-search-form { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.km-bridge-site-footer .search-box .km-search-form .search-input { flex: 1 1 220px; min-width: 0; width: auto; margin: 0; }
.km-bridge-site-footer .search-box .km-search-form .search-button { flex: 0 0 auto; }
/* === 回217k（2026-10-08 design・CEO 17:2x「ブログサイトのブラッシュアップ」＝公開記事 542本の本文を SP400 で全件数えた measure-blog-body-tap-all.mjs の残り 7個 3種・古い形の記事 7本）: 回217h の型を「本文の直下」だけでなく箱の中のリンク一覧にも当て、手書きの関連記事の箱のリンクと、テーマの型が効いていないボタンを 44px に。並びと大きさは変えない（inline のまま透明な余白）＝ボタンだけは型が効いていない（display inline・高さ 21px）ので本来の形（inline-block・余白）に ===
   - 箱の中の出典の一覧（ul（クラスなし）> li > 外へのリンク a[target=_blank] だけ・192×21・3本）＝回217h と同じ 上 7px・下 17px → 45px（内部のリンクの一覧＝共通部品は当てない・仮当てで全記事 +8px になったため外した）
   - 手書きの関連記事の箱（div[style] > a[style*="font-size:0.95em"]・243×20・3本）＝上下 12px → 44px（display:block の古い形〔回217g で済〕には当てない・仮当てで +92px になったため絞った）
   - テーマの型が効いていないボタン（.swell-block-button > a.swell-btn が display inline 319×21・1本）＝inline-block・余白 11px 16px・最小の高さ 44px */
body .post_content ul:not([class]) > li > a[target="_blank"]:only-child {
	padding-top: 7px;
	padding-bottom: 17px;
}
body .post_content div[style] > a[style*="font-size:0.95em"][style*="text-decoration:none"] {
	padding-top: 12px;
	padding-bottom: 12px;
}
body .post_content .swell-block-button > a.swell-btn {
	display: inline-block;
	box-sizing: border-box;
	min-height: 44px;
	padding: 11px 16px;
	line-height: 1.4;
	border-radius: 4px;
	text-decoration: none;
}
/* === 回217l（2026-10-08 design・measure-blog-body-tap-all.mjs の 12px 未満の残り 1か所＝回217g と同じ古い形の記事 ID 5 /wp/license-general-vs-special/ の手書きの「関連記事」の小さい見出し 11px）: 文字の大きさだけ 12px に（色は回217g で #5B6670・並びは変えない） === */
body .post_content p[style*="font-size:11px"] {
	font-size: 12px !important;
}

/* 2026-10-23 design（09 11:13 の仕分け・01 11:14）：写真の説明文（figcaption）が幅400で「ージ）」だけの行に折れる＝意味の切れ目（読点・括弧の前）でだけ折る */
.post_content figcaption,
.wp-element-caption { word-break: keep-all; overflow-wrap: anywhere; }
/* 2026-10-23 design（09 13:58 の仕分け・01 14:20）：よくある質問の問いの太字（<p><strong>Q1. …か？</strong></p>）が幅400で「か？」だけの行に折れる＝2行の長さをそろえる折り方（text-wrap: balance を段落に・inline の太字に当てても効かない・手元の Chromium で「か？」→「基準に選べばよいですか？」・対応していない古いブラウザは今まで通り） */
/* 2026-10-27 design（01 09:47・09:59 の仕分け＝09 09:26）：上の決まりが「太字で始まる普通の段落」（<p><strong>業種追加と経審</strong>の順番は…</p>＝要素の子は strong 1つだけ・文字は数えない）にも当たり、
   幅1280 で3行とも右端の 150px 手前で折れ「完成工事／高」と語の途中で切れていた（6953・7075）。問いの太字は 04 の形（strong に word-break:keep-all の style 属性）だけに当てる。
   測り方 node scripts/design/_pw-try-balance-fix-1027.mjs {見本の URL} */
.post_content p:has(> strong[style*="keep-all"]:only-child) { text-wrap: balance; }
/* 回CEO2333写真大（2026-10-29 23:4x design・CEO 23:3x「写真が小さすぎる」＝ブログ /wp/ の新着記事の一覧の写真 80×54→PC 200×150（4:3）・SP は一覧の幅の約40%・同じ部品 patc-new-list を使う一覧も同じ） */
.patc-new-item { align-items: flex-start; }
.patc-new-thumb { flex: 0 0 auto; }
.patc-new-thumb img { width: 200px; height: 150px; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 600px) {
  .patc-new-thumb img { width: 40vw; max-width: 200px; height: auto; aspect-ratio: 4 / 3; }
}
/* 回CEO2333写真大2（2026-10-29 23:4x design・06 TC-1286 23:40＝同じ画面の順位の欄 #rank-daily .wpp-list の写真 80×54 も同じ大きさに＝PC 200×150（4:3）・SP 40vw） */
.patc-tab-panel .wpp-list li { display: flex; gap: 12px; align-items: flex-start; }
.patc-tab-panel .wpp-thumbnail-link { flex: 0 0 auto; }
.patc-tab-panel .wpp-list img.wpp-thumbnail { width: 200px; height: 150px; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 600px) {
  .patc-tab-panel .wpp-list img.wpp-thumbnail { width: 40vw; max-width: 200px; height: auto; aspect-ratio: 4 / 3; }
}
/* 回CEO2333写真大3（2026-10-29 23:4x design）：順位の欄の写真は WPP の部品が要素にインラインで width:80px;height:54px を書く＝子テーマの指定が負ける→!important で上書き（CSS だけ・部品の設定は触らない） */
.patc-tab-panel .wpp-list img.wpp-thumbnail { width: 200px !important; height: 150px !important; border-radius: 6px !important; }
@media (max-width: 600px) {
  .patc-tab-panel .wpp-list img.wpp-thumbnail { width: 40vw !important; max-width: 200px !important; height: auto !important; aspect-ratio: 4 / 3 !important; }
}
/* 回CEO2333写真大4（2026-10-29 23:4x design）：順位の欄＝写真が大きくなり題名が上端に寄って下が空く→縦の中央にそろえる */
.patc-tab-panel .wpp-list li { align-items: center; }
/* 2026-10-30 02:5x design（09 の数え・01 02:51 の仕分け）：記事の見出し h2・h3 が幅400 で最後の1〜2字だけ次の行へ落ちる（下書き 9本中 8本・公開 4本）＝行の長さをそろえる折り方（text-wrap: balance・文は変えない・対応していない古いブラウザは今まで通り・問いの太字と同じ型 10/23） */
.post_content h2, .post_content h3 { text-wrap: balance; }
.post_content h2, .post_content h3 { text-wrap: balance; }
/* 2026-10-30 03:4x design（09 の数え・01 03:19 の仕分け）：同じ字落ちが記事の表のセルにも残る（2557「防水工／事」・312「おそ／れ」）＝見出しと同じ型で表のセル（th・td）にも行の長さをそろえる折り方 */
.post_content th, .post_content td { text-wrap: balance; }
