/*
 Theme Name:   GeneratePress Child
 Template:     generatepress
 Version:      2.5.0
 Description:  南柏商店会 公式サイト用 ハイエンド・モダンデザイン（完全復旧・統合版）
*/

/* ==========================================================================
   0. デザイン変数定義（カラー・フォント・シャドウ・角丸）
   ========================================================================== */
:root {
  --nk-primary: #0f172a;           /* スレートブラック（メイン見出し・引き締め） */
  --nk-secondary: #334155;         /* 本文用ダークスレート */
  --nk-muted: #64748b;             /* 補足・日付・メタ情報用グレー */
  --nk-accent: #0284c7;            /* アクセントシアンブルー */
  --nk-accent-light: rgba(2, 132, 199, 0.08);
  --nk-bg-body: #f8fafc;           /* サイト全体の上品なニュアンスホワイト */
  --nk-bg-surface: #ffffff;        /* カード・パネルの白 */
  --nk-border: rgba(148, 163, 184, 0.22); /* 繊細な境界線 */
  --nk-radius-sm: 8px;
  --nk-radius-md: 14px;
  --nk-radius-lg: 22px;
  --nk-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --nk-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
  --nk-shadow-hover: 0 20px 35px -5px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(15, 23, 42, 0.03);
}

/* ==========================================================================
   1. 基本タイポグラフィ & ベースレイアウト
   ========================================================================== */
html, body {
  overflow-x: hidden; /* 横揺れ・はみ出し防止 */
  width: 100%;
}

body {
  background-color: var(--nk-bg-body);
  color: var(--nk-secondary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, sans-serif;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}

a {
  color: var(--nk-primary);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
a:hover {
  color: var(--nk-accent);
}

/* ==========================================================================
   2. ヘッダー & ナビゲーションバー
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nk-border);
  padding: 14px 0 !important;
  position: relative;
  z-index: 100;
}
.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  padding: 0 24px;
  margin: 0 auto;
}

.main-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  color: var(--nk-primary) !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}
.main-title a {
  color: var(--nk-primary) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-title a::after {
  content: "KASHIWA";
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: var(--nk-accent-light);
  color: var(--nk-accent);
  padding: 2px 7px;
  border-radius: 4px;
}

.main-navigation {
  background: transparent !important;
}
.main-navigation .main-nav ul li a {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--nk-secondary) !important;
  padding: 10px 18px !important;
  position: relative;
  transition: color 0.25s ease;
}
.main-navigation .main-nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--nk-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}
.main-navigation .main-nav ul li:hover a::after,
.main-navigation .main-nav ul li.current-menu-item a::after {
  width: 24px;
}
.main-navigation .main-nav ul li:hover a,
.main-navigation .main-nav ul li.current-menu-item a {
  color: var(--nk-accent) !important;
  background: transparent !important;
}

/* ==========================================================================
   3. 共通・ベースパーツ (旧CSS互換レイアウト含む)
   ========================================================================== */
.nk-section-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--nk-border);
  padding-bottom: 12px;
}
.nk-section-header .sub-en {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nk-accent);
  margin-bottom: 4px;
}
.nk-section-header .sec-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--nk-primary);
  margin: 0;
}
.nk-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nk-primary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 99px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.nk-btn-pill:hover {
  background: var(--nk-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.25);
}

/* お知らせカード（加盟店投稿リスト用） */
.nk-member-posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.nk-post-card {
  background: var(--nk-bg-surface);
  border: 1px solid var(--nk-border);
  border-radius: var(--nk-radius-md);
  overflow: hidden;
  box-shadow: var(--nk-shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.nk-post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.nk-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--nk-shadow-hover);
  border-color: rgba(2, 132, 199, 0.3);
}
.nk-post-thumb {
  width: 100% !important;
  height: 180px !important;
  min-height: 180px !important;
  display: block !important;
  overflow: hidden !important;
  background-color: #e2e8f0 !important;
  position: relative !important;
}
.nk-post-thumb img {
  width: 100% !important;
  height: 100% !important;
  min-height: 180px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.5s ease;
}
.nk-post-card:hover .nk-post-thumb img {
  transform: scale(1.05);
}
.nk-post-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.nk-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.nk-meta-bar time {
  font-size: 11px;
  font-weight: 600;
  color: var(--nk-muted);
}
.badge-pill {
  font-size: 10px;
  font-weight: 700;
  background: var(--nk-accent-light);
  color: var(--nk-accent);
  padding: 2px 8px;
  border-radius: 99px;
}
.nk-shop-signature {
  font-size: 12px;
  font-weight: 800;
  color: var(--nk-primary);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nk-shop-signature::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nk-accent);
}
.nk-post-body h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  color: var(--nk-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   4. 右サイドバー
   ========================================================================== */
.nk-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.nk-widget {
  background: var(--nk-bg-surface);
  border: 1px solid var(--nk-border);
  border-radius: var(--nk-radius-md);
  padding: 24px;
  box-shadow: var(--nk-shadow-sm);
}
.nk-widget-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--nk-border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.nk-widget-header h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: var(--nk-primary);
}
.nk-widget-header .sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--nk-muted);
  text-transform: uppercase;
}
.nk-compact-feed {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nk-compact-feed li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.nk-compact-feed li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.nk-compact-feed .meta-line {
  font-size: 11px;
  font-weight: 700;
  color: var(--nk-muted);
  margin-bottom: 3px;
}
.nk-compact-feed .item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--nk-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nk-compact-feed a:hover .item-title {
  color: var(--nk-accent);
}

/* 右サイドバー：自動お知らせウィジェット用 */
.nk-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.nk-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0284c7;
}
.nk-sidebar-post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nk-sidebar-post-item { border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
.nk-sidebar-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.nk-sidebar-post-link { display: flex; gap: 10px; text-decoration: none; color: inherit; align-items: flex-start; }
.nk-sidebar-post-link:hover .nk-sidebar-post-title { color: #0284c7; }
.nk-sidebar-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #f1f5f9; }
.nk-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nk-sidebar-info { flex-grow: 1; min-width: 0; }
.nk-sidebar-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.nk-sidebar-date { font-size: 11px; color: #94a3b8; }
.nk-sidebar-shop-tag { font-size: 10px; color: #0284c7; background: #e0f2fe; padding: 1px 6px; border-radius: 4px; font-weight: bold; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk-sidebar-post-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: #334155; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ==========================================================================
   5. 商店会概要・役員構成ページ（page-about.php）
   ========================================================================== */
.nk-about-page-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}
.nk-page-hero {
  text-align: center;
  margin-bottom: 56px;
}
.nk-page-hero .sub-en {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nk-accent);
  display: block;
  margin-bottom: 6px;
}
.nk-page-hero .main-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--nk-primary);
  margin: 0 0 12px;
}
.nk-page-hero .lead { font-size: 15px; color: var(--nk-muted); }
.nk-section-title-wrap {
  margin-bottom: 28px;
  border-bottom: 2px solid var(--nk-primary);
  padding-bottom: 12px;
}
.nk-section-title-wrap .sub-title {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nk-accent);
  margin-bottom: 2px;
}
.nk-section-title-wrap h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--nk-primary);
  margin: 0;
}
.nk-greeting-section { margin-bottom: 72px; }
.nk-greeting-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .nk-greeting-layout { grid-template-columns: 1fr; gap: 32px; }
}
.nk-president-photo {
  background: #ffffff;
  border: 1px solid var(--nk-border);
  border-radius: var(--nk-radius-md);
  padding: 14px;
  box-shadow: var(--nk-shadow-sm);
}
.nk-president-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--nk-radius-sm);
  display: block;
  margin-bottom: 14px;
}
.nk-president-caption { text-align: center; }
.nk-president-caption .role { font-size: 12px; font-weight: 700; color: var(--nk-muted); margin: 0 0 2px; }
.nk-president-caption .name { font-size: 20px; font-weight: 800; color: var(--nk-primary); margin: 0 0 4px; }
.nk-president-caption .company { font-size: 12px; color: var(--nk-secondary); margin: 0; }
.nk-philosophy-quote blockquote {
  margin: 0 0 28px;
  padding: 20px 24px;
  background: #f8fafc;
  border-left: 4px solid var(--nk-accent);
  border-radius: 0 var(--nk-radius-sm) var(--nk-radius-sm) 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--nk-primary);
}
.nk-greeting-text h3 { font-size: 18px; font-weight: 800; color: var(--nk-primary); margin: 0 0 16px; }
.nk-greeting-text p { font-size: 15px; line-height: 1.9; color: var(--nk-secondary); margin-bottom: 18px; }
.nk-sign-block {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px dashed var(--nk-border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.nk-sign-block .date { font-size: 13px; color: var(--nk-muted); margin: 0; }
.nk-sign-block .signature { font-size: 16px; color: var(--nk-primary); margin: 0; }

/* 役員構成テーブル */
.nk-board-section { margin-bottom: 60px; }
.nk-section-note { font-size: 13px; color: var(--nk-muted); margin: -16px 0 20px; }
.nk-table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--nk-border);
  border-radius: var(--nk-radius-md);
  box-shadow: var(--nk-shadow-sm);
  background: #ffffff;
}
.nk-board-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.nk-board-table th { background: #f8fafc; color: var(--nk-primary); font-weight: 700; padding: 14px 20px; border-bottom: 1px solid var(--nk-border); white-space: nowrap; }
.nk-board-table td { padding: 14px 20px; border-bottom: 1px solid rgba(148, 163, 184, 0.15); color: var(--nk-secondary); }
.nk-board-table tbody tr:last-child td { border-bottom: none; }
.nk-board-table tbody tr:hover { background: #fdfdfd; }
.nk-board-table .highlight-row td { background: rgba(2, 132, 199, 0.03); }
.col-role { width: 140px; }
.col-name { width: 180px; }
.name-cell { font-weight: 700; color: var(--nk-primary); }
.role-badge { display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 700; border-radius: 4px; background: #f1f5f9; color: var(--nk-secondary); }
.role-badge.chief { background: var(--nk-primary); color: #ffffff; }

/* ==========================================================================
   6. 各加盟店の個別紹介ページ & 404画面
   ========================================================================== */
.nk-shop-single-posts { margin-top: 40px; }
.nk-shop-single-posts h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--nk-primary);
  border-bottom: 2px solid var(--nk-primary);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.nk-shop-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.error404 .entry-header { text-align: center; margin: 60px 0 20px; }
.error404 .entry-title { font-size: 32px; font-weight: 800; color: var(--nk-primary); }
.error404 .entry-content { max-width: 500px; margin: 0 auto; text-align: center; color: var(--nk-muted); }
.error404 .search-form {
  margin-top: 24px;
  display: flex;
  box-shadow: var(--nk-shadow-sm);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--nk-border);
  background: #fff;
}
.error404 .search-form input[type="search"] { border: none; padding: 12px 20px; flex-grow: 1; font-size: 14px; outline: none; }
.error404 .search-form button { background: var(--nk-primary); color: #fff; border: none; padding: 0 24px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.error404 .search-form button:hover { background: var(--nk-accent); }

/* ==========================================================================
   7. 南柏商店会 加盟店一覧 (/shops/) スタイリッシュスタイル
   ========================================================================== */
.nk-shops-wrapper { background-color: #f8fafc; padding-bottom: 80px; }
.nk-shops-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px 48px;
    margin-bottom: 40px;
}
.nk-page-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; color: #ffffff; }
.nk-lead-text { font-size: 15px; color: #94a3b8; margin: 0; }
.nk-map-showcase-section { margin-bottom: 50px; }
.nk-map-card { background: #ffffff; border-radius: 16px; box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04); border: 1px solid #e2e8f0; overflow: hidden; }
.nk-map-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; gap: 16px; }
.nk-map-title-wrap { display: flex; align-items: center; gap: 12px; }
.nk-icon-pin { font-size: 24px; line-height: 1; }
.nk-map-title-wrap h2 { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.nk-map-title-wrap p { font-size: 13px; color: #64748b; margin: 0; }
.nk-btn-expand { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; background: #f1f5f9; color: #0f172a; font-size: 13px; font-weight: 600; border-radius: 8px; text-decoration: none; transition: all 0.2s ease; }
.nk-btn-expand:hover { background: #0284c7; color: #ffffff; transform: translateY(-1px); }
.nk-map-viewport { background: #f8fafc; padding: 16px; text-align: center; }
.nk-map-viewport img { width: 100%; max-height: 480px; object-fit: contain; border-radius: 8px; display: block; margin: 0 auto; }

/* 業種フィルターナビ ＆ 準会員・サポーターリスト */
.nk-filter-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.nk-filter-btn { background: #ffffff; border: 1px solid #cbd5e1; color: #475569; padding: 7px 16px; font-size: 13px; font-weight: 600; border-radius: 9999px; cursor: pointer; transition: all 0.2s ease; }
.nk-filter-btn:hover { border-color: #0284c7; color: #0284c7; }
.nk-filter-btn.is-active { background: #0284c7; border-color: #0284c7; color: #ffffff; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25); }
.nk-list-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03); }
.nk-text-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nk-text-item a, .nk-text-item .static-name { display: inline-flex; align-items: center; gap: 6px; background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 9999px; text-decoration: none; transition: all 0.2s ease; }
.nk-text-item a:hover { background: #0284c7; border-color: #0284c7; color: #ffffff; transform: translateY(-2px); }
.nk-text-item .static-name { background: #ffffff; border-color: #f1f5f9; color: #64748b; }

/* 店舗一覧スリムカード */
.nk-shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 50px; }
.nk-shop-card { background: #ffffff; border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.nk-shop-card:hover { transform: translateY(-3px); box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.08); }
.nk-card-media { position: relative; display: block; height: 130px; background: #f1f5f9; overflow: hidden; }
.nk-card-media .nk-img-wrap { width: 100%; height: 100%; }
.nk-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.nk-shop-card:hover .nk-card-media img { transform: scale(1.03); }
.nk-category-tag { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(2px); color: #ffffff; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.nk-card-content { padding: 12px 14px; display: flex; flex-direction: column; flex-grow: 1; }
.nk-shop-title { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.nk-shop-title a { color: #0f172a; text-decoration: none; }
.nk-shop-title a:hover { color: #0284c7; }
.nk-shop-summary { font-size: 11px; color: #64748b; line-height: 1.5; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.nk-shop-details { background: #f8fafc; border-radius: 6px; padding: 6px 8px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 3px; }
.detail-row { display: flex; font-size: 11px; line-height: 1.3; }
.detail-label { width: 28px; font-weight: 700; color: #94a3b8; flex-shrink: 0; }
.detail-value { color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk-card-action { border-top: 1px solid #f1f5f9; padding-top: 8px; margin-top: auto; }
.nk-action-link { display: inline-flex; align-items: center; gap: 4px; color: #0284c7; font-size: 11px; font-weight: 700; text-decoration: none; transition: gap 0.2s ease; }
.nk-action-link:hover { gap: 7px; }

@media (max-width: 640px) {
    .nk-shops-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nk-card-media { height: 105px; }
    .nk-card-content { padding: 10px; }
    .nk-shop-title { font-size: 14px; }
    .nk-shop-summary { display: none; }
}

/* ==========================================================================
   8. トップページ新デザイン用追加クラス（スライダー・事業・広告等）
   ========================================================================== */
.nk-top-wrapper { width: 100%; }
.nk-container.nk-top-container {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box;
}
.nk-sub-badge {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
    color: #0284c7; background: #e0f2fe; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px;
}
.nk-section-title-bar { margin-bottom: 24px; }
.nk-section-title-bar h2 { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0; }

/* スライダー（キャプション見切れ対応） */
.nk-hero-slider-section { width: 100%; position: relative; overflow: hidden; background: #0f172a; }
.nk-hero-swiper { width: 100%; height: 480px; }
@media (max-width: 768px) { .nk-hero-swiper { height: 260px; } }
.nk-hero-slide-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.nk-hero-slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.nk-hero-slide-caption {
    position: absolute; bottom: 0; left: 0; width: 100%; box-sizing: border-box;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 100%);
    padding: 50px 20px 25px; text-align: center; z-index: 10; pointer-events: none;
}
.nk-hero-slide-caption span { display: inline-block; color: #ffffff; font-size: 15px; font-weight: 700; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); letter-spacing: 0.05em; }
@media (max-width: 768px) {
    .nk-hero-slide-caption { padding: 40px 15px 20px; }
    .nk-hero-slide-caption span { font-size: 13px; line-height: 1.4; }
}
.nk-hero-swiper .swiper-button-prev, .nk-hero-swiper .swiper-button-next { color: #ffffff; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.nk-hero-swiper .swiper-pagination-bullet { background: #ffffff; opacity: 0.6; }
.nk-hero-swiper .swiper-pagination-bullet-active { background: #0284c7; opacity: 1; }

/* ABOUT US（左右2カラム） */
.nk-top-about-section {
    background: #ffffff; border-radius: 16px; padding: 36px 32px; margin-bottom: 40px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04); border: 1px solid #f1f5f9; box-sizing: border-box;
}
@media (max-width: 768px) { .nk-top-about-section { padding: 24px 20px; } }
.nk-about-header { border-bottom: 2px solid #f1f5f9; padding-bottom: 14px; margin-bottom: 24px; }
.nk-about-heading { margin: 4px 0 0; font-size: 24px; font-weight: 800; }
.nk-about-content-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 768px) { .nk-about-content-grid { grid-template-columns: 1fr; gap: 24px; } }
.nk-about-body { font-size: 15px; line-height: 1.8; color: #334155; }
.nk-about-img-wrap { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 16px -4px rgba(0,0,0,0.08); }
.nk-about-img-wrap img { width: 100%; height: auto; display: block; object-fit: cover; }

/* 商店会の主な事業・活動 */
.nk-top-projects-section { margin-bottom: 48px; }
.nk-projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; margin-top: 20px; }
.nk-project-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.nk-project-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.nk-project-thumb { width: 100%; height: 180px; background: #f1f5f9; }
.nk-project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nk-project-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.nk-project-title { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: #0f172a; }
.nk-project-desc { font-size: 14px; line-height: 1.6; color: #475569; margin: 0 0 16px; flex: 1; }
.nk-project-btn { display: inline-flex; align-items: center; gap: 6px; background: #0284c7; color: #ffffff !important; padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
.nk-project-btn:hover { background: #0369a1; }

/* 新着お知らせ（2カラム） */
.nk-top-news-section { background: #ffffff; border-radius: 16px; padding: 32px; border: 1px solid #f1f5f9; box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04); box-sizing: border-box; }
@media (max-width: 768px) {
    .nk-top-news-section { padding: 20px; }
    .nk-news-two-col { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* ==========================================================================
   9. サイト全体：メインコンテンツ枠のモダン化（サイドバー統一・幅の拡張）
   ========================================================================== */
/* 1. サイト全体の最大幅を広げて、窮屈さ（キュッとなる感じ）を解消 */
body .container.grid-container {
    max-width: 1240px;
}

/* 2. メインコンテンツ枠の角丸・影・枠線設定 */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

/* 3. パソコン画面での余白調整（内側を広く使えるようにする） */
@media (min-width: 769px) {
    .separate-containers .inside-article {
        /* 上下36px、左右40pxに適度な余白を設定し、中のコンテンツ幅を広げる */
        padding: 36px 40px;
    }
}

/* 4. スマホ画面では余白を削って、画面幅いっぱいまで広く表示する */
@media (max-width: 768px) {
    .separate-containers .inside-article {
        padding: 24px 16px;
    }
}

/* 5. 画像のはみ出し防止と角丸処理 */
.inside-article img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* サイドバー内のウィジェットはみ出し防止 */
.nk-sidebar-widget {
    box-sizing: border-box;
}