/**
 * 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: 20px;
  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: 20px;
  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 === */
