/* =====================================================
   ソフトボール掲示板 - ダークテーマ スタイルシート v14
   SOFT HUB - SP版最優先・モダンダークUI
   ===================================================== */

/* ---- リセット & ベース ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* スマホで横スクロール防止（overflow-x:hiddenはposition:stickyを破壊するため使用不可） */
html { overflow-x: clip; }
body { overflow-x: clip; }

:root {
  /* ====== ダークカラーパレット ====== */
  /*--bg-darkest:  #060d13;*/   /* 最も暗い背景（ヘッダー・フッター） */
  --bg-darkest:  #000;   /* 最も暗い背景（ヘッダー・フッター） */
  /*--bg-dark:     #0a1520; */  /* メイン背景 */
  --bg-dark:     #0f0f0f;   /* メイン背景 */
  /*--bg-card:     #0f1e2d;*/   /* カード背景 */
  /*--bg-card:     #161b22;*/   /* カード背景 */
  --bg-card:     rgba(255,255,255,0.05);   /* カード背景 */
  /*--bg-card2:    #162232;*/   /* サブカード背景 */
  --bg-card2:    rgba(255, 255, 255, 0.05);   /* サブカード背景 */
  /*--bg-input:    #0d1a27;  */ /* 入力欄背景 */
  --bg-input:    #0f0f0f;   /* 入力欄背景 */
  /*--border:      #1e3045;*/   /* ボーダー */
  --border:      #323232;   /* ボーダー */
  /*--border-light:#2a4060;*/   /* 明るめボーダー */
  --border-light:#323232;   /* 明るめボーダー */

  /* ====== テキストカラー ====== */
  /*--text:        #f0f4f8;*/   /* メインテキスト */
  --text:        #fff;   /* メインテキスト */
  /*--text-light:  #8fa8c4;*/   /* サブテキスト */
  /*--text-light:  #8c8c8c; */  /* サブテキスト */
  --text-light:  #c8c8c8;   /* サブテキスト */
  /*--text-muted:  #4d6a84;*/   /* ミュートテキスト */
  /*--text-muted:  #8c8c8c;*/   /* ミュートテキスト */
  --text-muted:  #c8c8c8;   /* ミュートテキスト */

  /* ====== アクセントカラー ====== */
  --primary:     #e84040;   /* 赤（対戦相手） */
  --primary-dark:#c0392b;
  --green:       #27ae60;   /* 緑（メンバー） */
  --green-dark:  #1e8449;
  --blue:        #2980b9;   /* 青（その他） */
  --blue-dark:   #1a6fa8;

  /* ====== ネオン/ハイライト ====== */
  --neon-yellow: #d4e60a;   /* ネオンイエロー */
  --neon-cyan:   #00c8ff;   /* シアン */
  --gold:        #f0c040;   /* ゴールド */

  /* ====== その他 ====== */
  --softball: #009e41;   /* ソフトボール */
  --accent:      #f39c12;
  --secondary:   #0f1e2d;
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   16px;
  --shadow:      0 2px 16px rgba(0,0,0,0.4);
  --shadow-hover:0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(232,64,64,0.2);
  /*--font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;*/
	--font: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体",'Lucida Grande','Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
	font-weight: 500;
}
a { color: var(--neon-cyan); text-decoration: none; transition: color .2s; }
a:hover { color: white; }
img { max-width: 100%; height: auto; display: block; }
/* ロゴimg専用: グローバルのheight:autoを打ち消してheight固定を有効化 */
img.header-logo-img { height: 44px !important; width: auto !important; max-width: 200px !important; }
ul, ol { padding-left: 1.5em; }

/* ====================================================
   ヘッダー
   ==================================================== */
.site-header {
  background: var(--bg-darkest);
  box-shadow: 0 2px 16px rgba(0,0,0,0.6);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 12px;
}
.header-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}
.logo-link {
  display: flex; align-items: center; gap: 10px; color: white;
  transition: opacity .2s;
}
.logo-link:hover { color: white; opacity: 0.85; }
.logo-link--img { gap: 0; }
.header-logo-catchcopy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.header-logo-img {
  height: 44px !important;
  width: auto !important;
  max-width: 200px !important;
  display: block !important;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.8rem; }
.logo-main {
	font-size: 1.2rem;
	line-height: 1;
	font-weight: 900; display: block; color: white; letter-spacing: 0.02em; }
.logo-sub { font-size: 0.65rem; color: #fff; display: block; font-weight: 400; margin-top: 1px; }

.header-nav { display: flex; align-items: center; gap: 12px; }
.nav-link {
  color: var(--text-light); font-size: 1.0rem; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-sm); transition: all .2s;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.07); }
.nav-post-btn {
  background: var(--primary);
  color: white !important;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(232,64,64,0.4);
  transition: all .2s;
  font-size: 0.95rem;
  white-space: nowrap;
  line-height: 1.4;
}
.nav-post-btn:hover {
  background: var(--primary-dark); transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(232,64,64,0.5);
}

/* ハンバーガー */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-light); transition: all .3s; border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: white; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: white; }

/* モバイルメニュー */
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--bg-darkest);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  color: var(--text-light); padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem; font-weight: 500; transition: all .2s;
}
.mobile-link:hover { background: var(--bg-card); color: white; }
.mobile-post {
  background: var(--primary) !important;
  color: white !important; text-align: center; font-weight: 700;
}
.mobile-post:hover { background: var(--primary-dark) !important; color: white !important; }

/* ====================================================
   メインレイアウト
   ==================================================== */
.site-wrapper { min-height: calc(100vh - 62px); }
.main-content { padding: 20px 0 60px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ====================================================
   パンくず
   ==================================================== */
.breadcrumb {
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--neon-cyan); }
.bc-sep { color: var(--text-muted); }

/* ====================================================
   ヒーローバナー
   ==================================================== */
.hero-section {
  background: linear-gradient(135deg, #0a1520 0%, #0f1e30 40%, #0a1520 100%);
	background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.hero-content { flex: 1; min-width: 360px; position: relative; z-index: 1; }
.hero-stats { flex: 1; min-width: 280px; max-width: 460px; }
/* 背景デコレーション */
.hero-section::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232,64,64,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(41,128,185,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-section::after {
  /*content: '&#x1F94E;';*/
	font-size: 180px; position: absolute;
  right: -10px; top: -30px; opacity: 0.04; pointer-events: none;
  line-height: 1; z-index: 0;
}
.hero-title {
  font-size: 1.7rem; font-weight: 900; color: white;
  margin-bottom: 10px; line-height: 1.3;
}
.hero-title .hero-highlight {
  color: var(--neon-yellow);
  display: block;
}
.hero-desc {
  color: white; font-size: 1.1rem;
  margin-bottom: 20px; line-height: 1.8;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: white;
  font-weight: 900; font-size: 0.95rem; padding: 12px 26px;
  /*border-radius: 50px;*/
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(232,64,64,0.4);
  transition: all .25s;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,64,64,0.55);
  color: white; background: var(--primary-dark);
}
.hero-free-badge {
  display: block;
  max-width: 320px;
  height: auto;
  margin-top: 14px;
}
@media (max-width: 767px) {
  .hero-free-badge {
    max-width: 240px;
    margin: 12px auto 0;
  }
}

/* 統計カード */
.hero-stats {
	position: relative;
	z-index: 1;
}
/* PC: 3列グリッド */
.hero-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
/* 5個目は左寄せで1列分幅（3列グリッドなら自動配置） */
.stat-item {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  padding: 11px 8px;
	border-radius: 12px;
  backdrop-filter: blur(4px);
}
.stat-num {
  font-size: 1.85rem; font-weight: 900; color: var(--neon-yellow);
  display: block; line-height: 1;
}
.stat-label {
  font-size: 0.68rem; color: var(--text-light);
  display: block; margin-top: 4px; line-height: 1.25;
}
/* 訪問者バッジ（hero-section内 右上オーバーレイ） */
.hero-visitor-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(10, 20, 35, 0.70);
  border: 1px solid rgba(79,195,247,0.45);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(79,195,247,0.15);
  min-width: 130px;
}
.hero-visitor-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-visitor-badge-icon {
  font-size: 1rem;
  line-height: 1;
}
.hero-visitor-badge-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.60);
  width: 2em;
  flex-shrink: 0;
}
.hero-visitor-badge-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: #4fc3f7;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-visitor-badge-unit {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.50);
  align-self: flex-end;
  padding-bottom: 2px;
}
.hero-visitor-badge-sep {
  height: 1px;
  background: rgba(79,195,247,0.25);
  margin: 2px 0;
}
@media (max-width: 600px) {
	/* SP: 2列グリッドに変換 */
	.hero-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 6px;
	}
	/* 5個目（奇数番目の最後）を2列いっぱいに広げる */
	.hero-stats-grid .stat-item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
	.hero-stats-grid .stat-item {
		padding: 12px 4px;
	}
	.stat-num {
		font-size: 1.6rem;
	}
	.stat-label {
		font-size: 0.62rem;
		letter-spacing: -0.04em;
	}
}


/* ====================================================
   カテゴリータブ
   ==================================================== */
.tab-section { margin-bottom: 16px; }
.tab-list {
  display: flex; gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 12px 10px;
  flex-wrap: wrap;
}
/* ② カテゴリーから探す：見出しを枠内に */
.tab-section-header {
  width: 100%;
  flex: 0 0 100%;
  margin-bottom: 4px;
}
.tab-section-title {
  font-size: calc(1.2rem - 3px);
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 8px;
}
.tab-section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 8px;
}
.tab-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 40px;
  font-size: 0.86rem; font-weight: 600;
  color: var(--text-light);
  transition: all .25s; flex: 1; min-width: fit-content;
  justify-content: center; white-space: nowrap;
}
.tab-btn:hover { background: var(--bg-card2); color: var(--text); }
.tab-btn.active {
  background: var(--tab-color, var(--primary));
  color: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.tab-icon { font-size: 1rem; }
.tab-count {
  background: rgba(255,255,255,0.12);
  font-size: 0.7rem; padding: 1px 7px;
  border-radius: 10px; font-weight: 700;
}
.tab-btn.active .tab-count { background: rgba(255,255,255,0.2); }

/* ====================================================
   カテゴリー説明
   ==================================================== */
.cat-description {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card); padding: 14px 18px;
  border-radius: var(--radius); margin-bottom: 16px;
  border: 1px solid var(--border);
}
.cat-desc-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.cat-description strong { font-size: 0.95rem; color: var(--text); }
.cat-description p { font-size: 0.82rem; color: var(--text-light); margin-top: 2px; }

/* ====================================================
   コンテンツレイアウト
   ==================================================== */
.content-layout { display: flex; gap: 24px; align-items: flex-start; }
.content-main { flex: 1; min-width: 0; }
.sidebar { width: 290px; flex-shrink: 0; position: sticky; top: 78px; align-self: flex-start; }

/* ====================================================
   検索・フィルター
   ==================================================== */
.search-filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 18px;
}
.search-form { }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-input-wrap {
  display: flex; flex: 1; min-width: 200px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color .2s; background: var(--bg-input);
}
.search-input-wrap:focus-within { border-color: var(--primary); }
.search-input {
  flex: 1; padding: 10px 14px; border: none; outline: none;
  font-size: 0.88rem; font-family: var(--font);
  background: transparent; color: var(--text);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--primary); color: white; border: none;
  padding: 10px 14px; cursor: pointer; font-size: 0.95rem; transition: background .2s;
}
.search-btn:hover { background: var(--primary-dark); }
.pref-select {
  padding: 10px 12px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  background: var(--bg-input); color: var(--text);
  cursor: pointer; font-family: var(--font); min-width: 170px;
  -webkit-appearance: none; appearance: none;
}
.pref-select:focus { outline: none; border-color: var(--primary); }
.pref-select option { background: var(--bg-card); color: var(--text); }

.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filter-tag {
  background: rgba(232,64,64,0.1); color: var(--primary);
  border: 1px solid rgba(232,64,64,0.3);
  padding: 4px 10px; border-radius: 20px; font-size: 0.8rem;
  display: flex; align-items: center; gap: 6px;
}
.filter-remove { color: var(--text-muted); font-size: 0.9rem; }
.filter-remove:hover { color: var(--primary); }

/* ====================================================
   投稿一覧ヘッダー
   ==================================================== */
/* PC: 件数（左）＋ ソートボタン（件数のすぐ右）＋ 投稿するボタン（右端） */
.posts-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}
.posts-header .posts-count { flex: 0 0 auto; }
.posts-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin-left: 0;
}
.posts-header-top { display: contents; }
.sort-tabs-inline {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}
/* PC: 投稿するボタンを右端に寄せる */
.posts-header-right .post-btn-sm { margin-left: auto; }
.posts-count { font-size: 0.9rem; color: var(--text-light); font-weight: 500; }
.posts-count strong { color: var(--text); font-size: 1.05rem; margin: 0 4px; }
.post-btn-sm {
  background: var(--primary); color: white;
  padding: 8px 18px;
	border-radius: var(--radius-sm);
	font-size: 0.83rem; font-weight: 700;
  box-shadow: 0 2px 10px rgba(232,64,64,0.35); transition: all .2s;
}
.post-btn-sm:hover {
  background: var(--primary-dark); transform: translateY(-1px);
  color: white;
}

/* ====================================================
   ソートタブボタン（常時表示・覆いかぶさりなし）
   ==================================================== */
.sort-tab-btn {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.sort-tab-btn:hover {
  color: var(--text);
  border-color: var(--border-light);
}
.sort-tab-btn--active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(232,64,64,0.12);
  font-weight: 700;
}

/* ====================================================
   投稿カード
   ==================================================== */
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius); padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  transition: all .25s;
  position: relative; z-index: 1;
}
.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--border-light);
  z-index: 2;
}
.post-card[data-category="battle"] { border-left-color: var(--primary); }
.post-card[data-category="member"] { border-left-color: var(--green); }
.post-card[data-category="helper"] { border-left-color: #e67e22; }
.post-card[data-category="umpire"] { border-left-color: #8e44ad; }
.post-card[data-category="join"]   { border-left-color: #16a085; }
.post-card[data-category="other"]  { border-left-color: var(--blue); }

.post-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.post-title-link { flex: 1; }
.post-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  line-height: 1.5; transition: color .2s;
}
.post-title-link:hover .post-title { color: var(--neon-cyan); }

.post-badges { display: flex; gap: 6px; flex-shrink: 0; }
.badge { font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.badge-active {
  background: rgba(39,174,96,0.2); color: #4cca80;
  border: 1px solid rgba(39,174,96,0.3);
}
.badge-closed {
  background: rgba(255,255,255,0.05); color: var(--text-muted);
  border: 1px solid var(--border);
}

.post-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; margin-bottom: 10px;
}
.cat-badge {
  color: white; font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
}
.meta-item {
  font-size: 0.75rem; color: var(--text-light);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 10px;
}

.post-excerpt {
  font-size: 0.86rem; color: var(--text-light); line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.post-footer {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.post-info { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.post-author { font-size: 0.8rem; font-weight: 600; color: var(--text-light); }
.team-name { color: var(--text-muted); font-weight: 400; }
.post-date { font-size: 0.75rem; color: var(--text-muted); }
.post-stats { display: flex; align-items: center; gap: 10px; }
.stat-icon { font-size: 0.76rem; color: var(--text-muted); }
.stat-icon.stat-like { color: var(--primary); font-weight: 600; }

/* 詳細を見るボタン */
.read-more {
  font-size: 0.8rem; font-weight: 700; color: var(--text-light);
  padding: 5px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 20px; transition: all .2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.read-more i {
  font-size: 0.75rem;
  line-height: 1;
  vertical-align: middle;
}
.read-more:hover {
  background: var(--primary); color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(232,64,64,0.3);
}

/* ====================================================
   投稿なし
   ==================================================== */
.no-posts {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center; padding: 60px 20px;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.no-posts-icon { font-size: 4rem; margin-bottom: 16px; }
.no-posts-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.no-posts-desc { color: var(--text-light); margin-bottom: 24px; font-size: 0.88rem; }

/* ====================================================
   ボタン共通
   ==================================================== */
.btn-primary {
  display: inline-block; background: var(--primary); color: white;
  padding: 11px 26px; border-radius: 50px; font-weight: 700;
  box-shadow: 0 3px 14px rgba(232,64,64,0.35); transition: all .2s;
}
.btn-primary:hover {
  background: var(--primary-dark); transform: translateY(-2px); color: white;
  box-shadow: 0 6px 20px rgba(232,64,64,0.45);
}
.btn-secondary {
  display: inline-block;
  background: var(--bg-card2); color: var(--text);
  border: 1px solid var(--border-light);
  padding: 11px 26px; border-radius: 50px; font-weight: 700; transition: all .2s;
}
.btn-secondary:hover { background: var(--bg-card); color: white; border-color: var(--border-light); }
.btn-outline {
  display: inline-block; border: 2px solid var(--primary);
  color: var(--primary); padding: 10px 24px; border-radius: 50px;
  font-weight: 700; transition: all .2s;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ====================================================
   ページネーション
   ==================================================== */
.pagination { margin-top: 28px; }
.pagination-list {
  display: flex; gap: 6px; justify-content: center;
  list-style: none; padding: 0; flex-wrap: wrap;
}
.page-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: var(--radius-sm); font-size: 0.86rem; font-weight: 600;
  color: var(--text-light);
  background: var(--bg-card);
  border: 1.5px solid var(--border); transition: all .2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-ellipsis { display: flex; align-items: center; color: var(--text-muted); padding: 0 6px; }

/* ====================================================
   サイドバー
   ==================================================== */
.sidebar-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
  border: 1px solid var(--border);
}
.sidebar-title {
	/*font-size: 0.9rem;*/
	font-size: 1.2rem;
	font-size: calc(1.2rem - 3px);
	font-weight: 700;
	color: var(--text);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}
.sidebar-post p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 12px; }
.sidebar-cat-btns { display: flex; flex-direction: column; gap: 8px; }
.sidebar-cat-btn {
  display: block; padding: 10px 14px; border: 1.5px solid;
  border-radius: var(--radius-sm); font-size: 0.84rem;
  font-weight: 600; text-align: center; transition: all .2s;
  background: transparent;
}
.sidebar-cat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  opacity: 0.9;
}

/* エリア検索 */
.pref-grid { display: flex; flex-direction: column; gap: 10px; }
.pref-region-title {
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.pref-link {
  display: inline-block; font-size: 0.75rem;
  padding: 3px 8px; margin: 2px;
  border-radius: 4px; color: var(--text-light);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  transition: all .2s;
}
/* ① エリア件数：地域名と同じ文字サイズ */
.pref-count {
  font-size: inherit;
  color: inherit;
}
.pref-link:hover, .pref-link.active {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* 最近の投稿 */
.recent-list { list-style: none; padding: 0; }
.recent-item { margin-bottom: 12px; }
.recent-link { display: flex; gap: 10px; align-items: flex-start; }
.recent-cat {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; flex-shrink: 0;
}
.recent-info { flex: 1; min-width: 0; }
.recent-title {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text); line-height: 1.4;
}
.recent-link:hover .recent-title { color: var(--neon-cyan); }
.recent-meta { display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

/* サイドバープロモ */
.sidebar-promo {
  text-align: center;
  /*background: linear-gradient(135deg, #0f1e2d, #162232);*/
	background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: white;
}
.sidebar-promo .sidebar-title,
.sidebar-promo h3 {
  color: white; border-color: rgba(255,255,255,0.1); font-size: 1rem;
	font-size: calc(1rem - 2px);
}
.promo-icon { font-size: 2.5rem; margin-bottom: 8px; }
.sidebar-promo p { color: var(--text); font-size: 0.82rem; margin-bottom: 14px; }
@media screen and (max-width: 480px) {
	.sidebar-promo p {
		font-size: calc(0.82rem - 1px);
	}
}
.promo-btn {
  display: inline-block;
  background: var(--softball);
	/*color: #0a1520;*/
	color: #fff;
  padding: 9px 22px; border-radius: 20px; font-weight: 900;
  font-size: 0.85rem; transition: all .2s;
}
.promo-btn:hover {
  background: var(--gold); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212,230,10,0.4); color: #0a1520;
}

/* サイドバーカテゴリーリスト */
.sidebar-cat-list { display: flex; flex-direction: column; gap: 4px; }
.sidebar-cat-item {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.86rem; color: var(--text-light); transition: all .2s;
}
.sidebar-cat-item:hover { background: var(--bg-card2); color: var(--text); }
.sidebar-cat-item.active {
  background: rgba(232,64,64,0.1); color: var(--primary); font-weight: 600;
  border: 1px solid rgba(232,64,64,0.2);
}

/* ====================================================
   詳細ページ
   ==================================================== */
.detail-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); margin-bottom: 20px;
}
.detail-cat-banner {
  padding: 12px 22px; color: white; font-weight: 700; font-size: 0.88rem;
  display: flex; align-items: center; justify-content: space-between;
}
.detail-status { font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.status-active { background: rgba(255,255,255,0.2); }
.status-closed { background: rgba(0,0,0,0.3); }

.detail-header {
  padding: 22px; border-bottom: 1px solid var(--border);
}
.detail-title {
  font-size: 1.35rem; font-weight: 900; color: var(--text);
  line-height: 1.5; margin-bottom: 16px;
}
.detail-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
}
.info-item { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.info-value { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.info-team { color: var(--text-light); font-weight: 400; }
.highlight-date { color: var(--neon-cyan); font-size: 0.95rem; }

.detail-body { padding: 22px; }
.post-content {
  font-size: 0.93rem; line-height: 1.8; color: var(--text-light);
  text-align: left; word-break: break-word;
}
.post-content br { display: block; margin-top: 0.1em; }

.detail-contact {
  padding: 16px 22px;
  background: var(--bg-card2); border-top: 1px solid var(--border);
}
.contact-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.contact-info { font-size: 0.86rem; color: var(--text-light); white-space: pre-wrap; }
.contact-email { font-size: 0.86rem; margin-top: 6px; }

.share-section {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.share-label { font-size: 0.82rem; color: var(--text-muted); }
.share-btn { font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; transition: all .2s; }
.share-x { background: #1a1a1a; color: white; border: 1px solid #333; }
.share-x:hover { background: #333; color: white; }
.share-line { background: #00b900; color: white; }
.share-line:hover { background: #009900; color: white; }

/* ====================================================
   返信
   ==================================================== */
.replies-section {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 22px; border: 1px solid var(--border); margin-bottom: 20px;
}
.replies-title {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
  color: var(--text);
}
.reply-count { color: var(--primary); font-size: 0.88rem; }
.replies-list { display: flex; flex-direction: column; gap: 12px; }
.reply-card {
  background: var(--bg-card2); border-radius: var(--radius-sm);
  padding: 14px 16px; border-left: 3px solid var(--primary);
}
.reply-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.reply-num {
  font-size: 0.75rem; background: var(--primary); color: white;
  padding: 2px 8px; border-radius: 10px; font-weight: 700;
}
.reply-author { font-size: 0.84rem; font-weight: 700; color: var(--text); }
.reply-date { font-size: 0.73rem; color: var(--text-muted); }
.reply-body {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-light);
  white-space: normal;
  word-break: break-word;
  text-align: left;
}
.no-replies {
  text-align: center; padding: 28px; color: var(--text-muted);
  background: var(--bg-card2); border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

/* ====================================================
   返信フォーム
   ==================================================== */
.reply-form-section {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 22px; border: 1px solid var(--border); margin-bottom: 20px;
}
.reply-form-title {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ====================================================
   フォーム共通
   ==================================================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.86rem; font-weight: 700;
  color: var(--text); margin-bottom: 7px;
}
.required-mark {
  font-size: 0.7rem; background: var(--primary); color: white;
  padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 700;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: var(--font);
  color: var(--text); background: var(--bg-input);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,64,64,0.15);
}
.form-select option { background: var(--bg-card); color: var(--text); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 5px; }
.form-row { margin-bottom: 0; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group-wide { }
.char-counter { font-size: 0.73rem; color: var(--text-muted); text-align: right; margin-top: 4px; }
.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; padding: 14px 32px; border-radius: 50px;
  font-size: 1rem; font-weight: 900; cursor: pointer; font-family: var(--font);
  transition: all .25s; box-shadow: 0 4px 18px rgba(232,64,64,0.4);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(232,64,64,0.5); }
.btn-submit-large { width: 100%; font-size: 1.05rem; padding: 15px; }
.form-submit { text-align: center; }
.submit-note { font-size: 0.76rem; color: var(--text-muted); margin-top: 10px; }
.form-note {
  background: rgba(243,156,18,0.1); border: 1px solid rgba(243,156,18,0.3);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 0.82rem; color: var(--accent); margin-bottom: 16px;
}
.form-terms { margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-input {
  width: 18px; height: 18px; cursor: pointer;
  flex-shrink: 0; margin-top: 2px; accent-color: var(--primary);
}
.checkbox-text { font-size: 0.86rem; color: var(--text-light); }

/* ====================================================
   アラート
   ==================================================== */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.alert-success {
  background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.3);
  color: #4cca80;
}
.alert-error {
  background: rgba(232,64,64,0.1); border: 1px solid rgba(232,64,64,0.3);
  color: #ff7070;
}
.alert ul { padding-left: 1.2em; margin-top: 6px; }
.alert li { font-size: 0.86rem; margin-bottom: 4px; }

/* ====================================================
   投稿フォームページ
   ==================================================== */
.post-page-layout { display: flex; gap: 24px; align-items: flex-start; }
.post-form-wrap { flex: 1; min-width: 0; }
.post-help-sidebar { width: 270px; flex-shrink: 0; position: sticky; top: 78px; }
.post-form-header { margin-bottom: 20px; }
.post-form-title { font-size: 1.4rem; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.post-form-desc { color: var(--text-light); font-size: 0.88rem; }

.form-step {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 22px; margin-bottom: 14px; border: 1px solid var(--border);
}
.step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-num {
  width: 30px; height: 30px; background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.86rem; flex-shrink: 0;
}
.step-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }

/* カテゴリー選択 */
.cat-options { display: flex; flex-direction: column; gap: 10px; }
.cat-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: all .2s; background: var(--bg-card2);
}
.cat-option:hover { border-color: var(--cat-color, var(--primary)); background: var(--bg-card); }
.cat-option.selected {
  border-color: var(--cat-color, var(--primary));
  background: rgba(255,255,255,0.03);
}
.cat-option-icon { font-size: 1.8rem; flex-shrink: 0; }
.cat-option-info { flex: 1; }
.cat-option-label { font-size: 0.92rem; font-weight: 700; color: var(--text); display: block; margin-bottom: 2px; }
.cat-option-desc { font-size: 0.76rem; color: var(--text-muted); }
.cat-option-check {
  width: 22px; height: 22px; border: 2px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; color: transparent; transition: all .2s; flex-shrink: 0;
}
.cat-option.selected .cat-option-check {
  border-color: var(--cat-color, var(--primary));
  background: var(--cat-color, var(--primary)); color: white;
}

/* ヘルプサイドバー */
.help-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; border: 1px solid var(--border);
}
.help-title {
  font-size: 0.92rem; font-weight: 700; color: var(--text);
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.help-section { margin-bottom: 14px; }
.help-section h4 { font-size: 0.83rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.help-section ul { list-style: none; padding: 0; }
.help-section li {
  font-size: 0.76rem; color: var(--text-light);
  padding: 2px 0; padding-left: 14px; position: relative;
}
.help-section li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-size: 0.7rem; }
.help-rules ul li::before { content: '!'; color: var(--accent); font-weight: 900; }

/* ====================================================
   成功ページ
   ==================================================== */
.success-page {
  text-align: center; background: var(--bg-card);
  border-radius: var(--radius); padding: 56px 36px;
  border: 1px solid var(--border);
}
.success-icon { font-size: 4.5rem; margin-bottom: 16px; }
.success-title { font-size: 1.5rem; font-weight: 900; color: var(--green); margin-bottom: 12px; }
.success-desc { color: var(--text-light); margin-bottom: 28px; line-height: 1.8; font-size: 0.9rem; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ====================================================
   戻るリンク
   ==================================================== */
.back-link { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.btn-back {
  display: inline-block; padding: 9px 20px;
  border: 1.5px solid var(--border-light);
  border-radius: 50px; font-size: 0.86rem; font-weight: 600;
  color: var(--text-light); transition: all .2s;
  background: transparent;
}
.btn-back:hover { border-color: var(--primary); color: var(--primary); }
.btn-post-same {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px;
  background: var(--primary); color: white; border-radius: 50px;
  font-size: 0.86rem; font-weight: 700; transition: all .2s;
  line-height: 1.4;
}
.btn-post-same:hover { background: var(--primary-dark); color: white; }

/* ====================================================
   エラーボックス
   ==================================================== */
.error-box {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 40px; text-align: center; border: 1px solid var(--border);
}
.error-box h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.error-box p { color: var(--text-light); margin-bottom: 24px; }

/* ====================================================
   フッター
   ==================================================== */
.site-footer {
  background: var(--bg-darkest);
  color: var(--text-light);
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.footer-top {
  display: flex; gap: 36px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand { flex: 1; min-width: 220px; align-self: flex-start; }
.footer-logo {
  display: flex; align-items: center; gap: 10px; color: white; margin-bottom: 14px;
}
.footer-logo-img {
  height: 64px !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}
@media screen and (max-width: 600px) {
	.footer-logo {
		justify-content: center;
		margin-left: -25px;
	}
}
.footer-logo-main { font-size: 0.95rem; font-weight: 900; display: block; color: white; }
.footer-logo-sub { font-size: 0.65rem; color: var(--text-muted); display: block; }
.footer-description { font-size: 0.82rem; color: var(--text-muted); line-height: 1.8; }
@media screen and (max-width: 600px) {
	.footer-description {
		width: fit-content;
		margin: 0 auto;
		text-align: center;
	}
}
/* カテゴリーとサービスを個別にgap制御するためflexのgapではなくmarginで分離 */
.footer-nav { display: flex; gap: 0; flex-wrap: nowrap; align-items: flex-start; }
.footer-nav-group { flex-shrink: 0; }
.footer-nav-group--wide { flex: 1; min-width: 260px; margin-right: 28px; }
/* PC: サービスグループだけ左余白を追加してカテゴリーと距離をつける（左寄せ） */
.footer-nav-group:not(.footer-nav-group--wide) { margin-left: 8px; }
.footer-nav-group:not(.footer-nav-group--wide) ul { text-align: left; }
.footer-nav-group:not(.footer-nav-group--wide) li { text-align: left; }
.footer-nav-title {
  font-size: 0.88rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 5px;
  display: inline-block; /* 下線をテキスト幅に合わせる */
  width: 100%;
}
/* PC: カテゴリーを2列グリッド */
.footer-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  list-style: none;
  padding: 0;
}
.footer-nav ul { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { font-size: 0.83rem; color: var(--text-muted); transition: color .2s; }
.footer-nav a:hover { color: white; }

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-bottom-terms {
  text-align: center;
}
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
}
.footer-copy { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: white; }
.footer-disclaimer { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; text-align: right; }
/* SP改行制御: JSで制御するためCSSではデフォルト非表示 */
.sp-br-wrap { display: none; }

/* ====================================================
   ページトップへ戻る
   ==================================================== */
#backToTop {
  display: none; position: fixed; bottom: 24px; right: 20px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: white; border: none; border-radius: 50%;
  font-size: 1rem; cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(232,64,64,0.4);
  transition: all .2s; z-index: 100;
}
#backToTop:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ====================================================
   モーダル
   ==================================================== */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); z-index: 2000;
  align-items: center; justify-content: center; padding: 16px;
}
.modal-inner {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 540px; width: 100%; max-height: 80vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-card);
}
.modal-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.modal-close {
  background: none; border: none; font-size: 1.2rem;
  cursor: pointer; color: var(--text-muted); transition: color .2s;
}
.modal-close:hover { color: var(--primary); }
.modal-body { padding: 22px; }
.modal-body h4 { font-size: 0.88rem; font-weight: 700; color: var(--text); margin: 14px 0 6px; }
.modal-body p, .modal-body li { font-size: 0.84rem; color: var(--text-light); line-height: 1.7; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); text-align: right; }

/* ====================================================
   レスポンシブ（タブレット以下）
   ==================================================== */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .content-layout {
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
  }
  .content-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .post-page-layout { flex-direction: column; }
  .post-help-sidebar { width: 100%; position: static; }
  .hero-stats { /*display: none;*/ }
  /* 投稿0件時も横幅いっぱいに表示 */
  .no-posts {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 40px 16px;
    margin: 0;
  }
}

/* ====================================================
   SP版サイドバー（モバイル用・記事下設置）
   ==================================================== */
.sp-sidebar { display: none; }

@media (max-width: 900px) {
  .sp-sidebar {
    display: block;
    margin-top: 20px;
    padding: 0 0 8px;
  }

  /* SP版サイドバーカード */
  .sp-sidebar .sidebar-card {
    border-radius: var(--radius);
    margin-bottom: 14px;
  }

  /* SP版 投稿ボタン：大きく目立たせる */
  .sp-sidebar .sidebar-post .action-btn {
    display: block; width: 100%;
    padding: 15px; font-size: 1rem;
    border-radius: var(--radius-sm);
    background: var(--primary); color: white;
    text-align: center; font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 16px rgba(232,64,64,0.4);
    border: none;
  }
  .sp-sidebar .sidebar-post .action-btn:hover {
    background: var(--primary-dark); transform: translateY(-1px);
  }

  /* SP版 最近の投稿：2列グリッド */
  .sp-sidebar .recent-list {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; list-style: none; padding: 0; margin: 0;
  }
  .sp-sidebar .recent-item { padding: 0; border: none; }
  .sp-sidebar .recent-link {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 8px;
    gap: 8px; align-items: flex-start;
  }
  .sp-sidebar .recent-title {
    font-size: 0.78rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .sp-sidebar .recent-meta { font-size: 0.7rem; }

  /* SP版 プロモ：ボール上・中央寄せ */
  .sp-promo-block {
    text-align: center !important;
		display: block !important;
    /*padding: 22px 18px !important;*/
    padding: 20px 18px !important;
  }
  .sp-promo-block .promo-icon {
    font-size: 2.6rem;
		/*margin: 0 auto 10px;*/
		margin: 0 auto 10px;
		display: block;
		line-height: 1;
  }
  .sp-promo-block h3 {
		/*font-size: 1.05rem;*/
		font-size: 1.25rem;
		/*margin-bottom: 6px;*/
		margin-bottom: 2px;
		color: white;
	}
  .sp-promo-block p {
		/*font-size: 0.84rem;*/
		font-size: 0.94rem;
		/*margin-bottom: 14px;*/
		margin-bottom: 10px;
	}
  .sp-promo-block .promo-btn {
    display: inline-block; padding: 10px 28px; font-size: 0.88rem;
  }
}

/* ====================================================
   SP版（600px以下）
   ==================================================== */
@media (max-width: 600px) {
  /* ヘッダー */
  .header-nav { display: none; }
  .hamburger { display: flex; }
	/*.header-logo {
		width: 215px;
	}*/
  .header-inner { padding: 0 14px; height: 56px; gap: 8px; }
  .header-logo-img { height: 36px !important; max-width: 160px !important; }
  .logo-main { font-size: 0.92rem; }
  .logo-icon {
		/*font-size: 1.6rem;*/
		font-size: 1.8rem;
	}

  /* メインコンテンツ余白 */
  .main-content { padding: 14px 0 48px; }
  .container { padding: 0 12px; }

  /* ヒーロー */
  .hero-section {
		justify-content: center;
		padding: 22px 16px; border-radius: var(--radius); }
	.hero-content {
		text-align: center;
	}
  .hero-title {
		font-size: 1.25rem;
	}
  .hero-desc {
		/*font-size: 0.82rem;*/
		font-size: 1rem;
	  font-size: calc(1rem - 1px);
		margin-bottom: 16px;
	}
  .hero-btn { 
		font-size: 0.86rem; padding: 11px 20px;
		width: 70%;
		justify-content: center;
	}
  /* 訪問者バッジ SP：右上固定のまま、サイズを少し縮小 */
  .hero-visitor-badge {
    top: 10px;
    right: 10px;
    padding: 9px 12px;
    min-width: 110px;
    border-radius: 10px;
  }
  .hero-visitor-badge-num { font-size: 1.2rem; }
  .hero-visitor-badge-icon { font-size: 0.85rem; }

  /* タブ */
  .tab-list {
    flex-direction: column; border-radius: var(--radius);
    gap: 4px;
    padding: 14px 8px 10px;
  }
  .tab-btn {
    border-radius: var(--radius-sm);
		flex: none;
		/*padding: 11px 16px;*/
		padding: 5px 16px;
    /*font-size: 0.86rem;*/
    font-size: 0.9rem;
  }

  /* 検索バー */
  .search-filter-bar { padding: 12px; }
  .search-row { flex-direction: column; gap: 8px; }
  .search-input-wrap { width: 100%; }
  .search-input {
		width: 100%;
	}
  .pref-select { width: 100%; }

  /* 投稿カード */
  .post-card { padding: 14px 14px; }
  .post-title { font-size: 0.95rem; }
  .post-meta { flex-wrap: wrap; gap: 4px; }
  .post-excerpt { font-size: 0.83rem; }
  .post-footer { gap: 8px; }
  .post-info { gap: 8px; }
  .post-author { font-size: 0.77rem; }
  .post-date { font-size: 0.72rem; }
  .read-more { font-size: 0.77rem; padding: 5px 12px; }
  .stat-icon { font-size: 0.73rem; }

  /* 投稿なし */
  .no-posts { padding: 40px 16px; }

  /* 詳細 */
  .detail-info-grid { grid-template-columns: 1fr 1fr; }
  .detail-title { font-size: 1.05rem; }
  .detail-header, .detail-body { padding: 16px; }

  /* フォーム */
  .form-row-2col { grid-template-columns: 1fr; }
  .cat-options { grid-template-columns: 1fr; }

  /* ポスト・アクション SP */
  /* 1行目: 件数・中央 / 2行目: ソート＋投稿するを横並び1行 */
  .posts-header { flex-wrap: wrap; gap: 4px; }
  .posts-header .posts-count {
    width: 100%;
    text-align: center;
  }
  .posts-header-right {
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0;
    gap: 4px;
    flex-wrap: nowrap;
  }
  .sort-tab-btn { font-size: 0.72rem; padding: 4px 6px; white-space: nowrap; }
  .posts-header-right .post-btn-sm {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 0;
    box-shadow: none;
    flex: 1 1 0;          /* 残りスペースを全部埋めて右端まで広げる */
    white-space: nowrap;
    margin-left: 0;
    text-align: center;
  }

   /* フッター */
  .footer-top { flex-direction: column; gap: 0; padding-bottom: 20px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 6px; }
  .footer-bottom-row { flex-direction: column; align-items: center; gap: 6px; }
  .footer-disclaimer { white-space: normal; font-size: 0.68rem; text-align: center; }
  /* SP: 説明文↔カテゴリー間を広げる */
  .footer-brand { margin-bottom: 28px; }
  /* SP: navをcolumnにしてカテゴリー2列→サービスの順に */
  .footer-nav {
    flex-direction: column !important;
    gap: 0;
    width: 100%;
  }
  /* SP: カテゴリーグループとサービスグループの間に余白 */
  .footer-nav-group--wide {
    min-width: unset !important;
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 20px;
  }
  /* SP: 見出しを中央寄せ・下線はテキスト幅のみ */
  .footer-nav-title {
    text-align: center !important;
    margin-bottom: 8px;
    display: block;
    width: 100%;
    border-bottom: none;
    padding-bottom: 0;
  }
  /* SP: カテゴリー2列グリッド - 均等に中央配置 */
  .footer-cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    justify-items: start;
    width: fit-content;
    margin: 0 auto;
  }
  /* SP: サービスグループ - 見出しは中央、リンクは少し左にずらす */
  .footer-nav-group:not(.footer-nav-group--wide) {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
  }
  .footer-nav-group:not(.footer-nav-group--wide) .footer-nav-title {
    text-align: center;
  }
  .footer-nav-group:not(.footer-nav-group--wide) ul {
    list-style: none;
    padding: 0;
    text-align: center;
    margin-top: 0;
    transform: translateX(-4px);
  }
  .footer-nav-group:not(.footer-nav-group--wide) ul li {
    text-align: center;
  }
  .success-actions { flex-direction: column; align-items: center; }

  /* 管理者ページ */
  .admin-stats { gap: 10px; }
  .stat-card { min-width: 100px; padding: 14px 12px; }

  /* 画像アップロード */
  .image-preview-wrap { grid-template-columns: repeat(2, 1fr); }

  /* ページネーション */
  .page-btn { min-width: 36px; height: 36px; font-size: 0.82rem; }
}


@media (max-width: 400px) {
  .container { padding: 0 10px; }
  .post-card { padding: 12px 10px; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .detail-header, .detail-body { padding: 12px; }
  .hero-section { padding: 18px 12px; }
  .hero-title { 
/*	font-size: 1.1rem;*/
	font-size: calc(1.1rem - 1px);
	}
}

/* =====================================================
   画像アップロード・プレビュー UI
   ===================================================== */
.image-upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius); padding: 4px;
  transition: border-color .2s, background .2s;
  background: var(--bg-input);
}
.image-upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(232,64,64,0.05);
}
.image-input-hidden { display: none; }
.image-upload-label {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 26px 16px; cursor: default; gap: 6px;
}
.image-upload-label.drag-over {
  border-color: var(--primary); background: rgba(232,64,64,0.05);
}
.image-upload-click-btn {
  display: inline-block; padding: 8px 28px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 20px; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
  min-width: 160px; text-align: center;
}
.image-upload-click-btn:hover { background: var(--primary-dark, #c0392b); }

@media (max-width: 600px) {
  .image-upload-click-btn {
    padding: 12px 32px;
    font-size: 1rem;
    min-width: 200px;
    border-radius: 24px;
    letter-spacing: 0.02em;
  }
  .image-upload-label {
    padding: 28px 16px;
    gap: 10px;
  }
  .image-upload-icon {
    font-size: 2.6rem;
  }
  .image-upload-text {
    font-size: 0.95rem;
  }
  .image-upload-sub {
    font-size: 0.8rem;
  }
}
.image-upload-icon { font-size: 2.2rem; transition: transform .2s; }
.image-upload-text { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.image-upload-sub  { font-size: 0.76rem; color: var(--text-muted); }
.form-hint-inline  { font-size: 0.76rem; color: var(--text-muted); font-weight: 400; margin-left: 8px; }

.image-preview-wrap {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 0 4px 8px;
}
.image-preview-item {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm); overflow: visible;
  background: var(--bg-card2);
}
.image-preview-item img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.image-preview-thumb { width: 100%; height: 100%; object-fit: cover; }

/* 投稿詳細の画像表示 */
.post-images {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.post-image-link {
  display: block; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); transition: box-shadow .2s;
}
.post-image-link:hover { box-shadow: var(--shadow-hover); border-color: var(--border-light); }
.post-image-thumb { width: 160px; height: 120px; object-fit: cover; display: block; }

/* 編集画面：既存画像リスト */
.edit-image-list {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px;
}
.edit-image-item {
  position: relative; border-radius: var(--radius-sm); overflow: visible;
  border: 1px solid var(--border-light);
}
.edit-image-thumb { width: 120px; height: 90px; object-fit: cover; display: block; border-radius: var(--radius-sm); }
.edit-image-remove {
  position: absolute; top: -8px; right: -8px;
  background: rgba(232,64,64,0.9); color: #fff;
  border: 2px solid #fff; border-radius: 50%;
  width: 24px; height: 24px; font-size: 0.72rem;
  cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.edit-image-remove:hover { background: var(--primary-dark); }

@media (max-width: 600px) {
  .post-image-thumb { width: 120px; height: 90px; }
  .image-preview-wrap { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   編集・削除ボタン（detail.php / edit.php 用）
   ===================================================== */
.post-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px;
}
.action-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 16px; border-radius: var(--radius-sm);
  font-size: 0.86rem; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none;
  transition: background .2s, transform .1s, box-shadow .2s; line-height: 1.4;
}
.action-btn:active { transform: scale(.97); }

.action-btn-edit {
  background: var(--blue); color: #fff !important;
}
.action-btn-edit:hover {
  background: var(--blue-dark); color: #fff !important;
  box-shadow: 0 2px 10px rgba(41,128,185,.3);
}

.action-btn-delete {
  background: var(--primary); color: #fff !important;
}
.action-btn-delete:hover {
  background: var(--primary-dark); color: #fff !important;
  box-shadow: 0 2px 10px rgba(232,64,64,.35);
}

/* 返信削除ボタン */
.reply-delete-btn {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: auto; padding: 4px 10px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 4px; font-size: 0.78rem;
  cursor: pointer; transition: background .2s;
  white-space: nowrap; flex-shrink: 0;
}
.reply-delete-btn:hover { background: var(--primary-dark); }

.reply-header {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}

/* 削除済みメッセージ */
.deleted-notice {
  background: rgba(243,156,18,0.1); border: 1px solid rgba(243,156,18,0.3);
  border-radius: var(--radius-sm); padding: 10px 14px;
  color: var(--accent); font-size: 0.86rem; margin-bottom: 12px;
}

/* 編集完了フラッシュ */
.alert-edited {
  background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.3);
  color: #4cca80; padding: 12px 16px;
  border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600;
}

/* =====================================================
   管理者サイドバーカード
   ===================================================== */
.sidebar-card .action-btn {
  width: 100%; justify-content: center; box-sizing: border-box;
}

/* =====================================================
   いいねボタン（インスタ風）
   ===================================================== */
.reply-footer {
  display: flex; align-items: center; justify-content: flex-start;
  padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--border);
}

.like-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 5px 10px;
  border-radius: 20px; cursor: pointer; font-size: 0.86rem;
  color: var(--text-muted); transition: background .15s, color .15s, transform .1s;
  font-family: var(--font); line-height: 1;
  user-select: none; -webkit-user-select: none;
}
.like-btn:hover { background: rgba(232,64,64,0.1); color: var(--primary); }
.like-btn:active { transform: scale(.92); }
.like-btn:disabled { cursor: default; opacity: .7; }
.like-btn.liked { color: var(--primary); }
.like-btn.liked .like-heart { animation: none; }
.like-heart { font-size: 1.05rem; line-height: 1; display: inline-block; }
.like-count { font-size: 0.8rem; font-weight: 600; min-width: 16px; }

/* ポンポンアニメーション */
@keyframes likePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(.88); }
  100% { transform: scale(1); }
}
.like-btn.like-pop .like-heart { animation: likePop .3s ease; }

/* =====================================================
   URL自動リンク
   ===================================================== */
.auto-link { color: var(--neon-cyan); text-decoration: underline; word-break: break-all; }
.auto-link:hover { color: white; }

.team-url-link {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.8rem; color: var(--neon-cyan);
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.2);
  padding: 2px 8px; border-radius: 12px; margin-left: 4px;
  text-decoration: none; transition: background .2s; vertical-align: middle;
}
.team-url-link:hover { background: rgba(0,200,255,0.15); color: white; }

/* =====================================================
   投稿本体いいねボタン
   ===================================================== */
.post-like-section {
  display: flex; justify-content: flex-start;
  padding: 12px 0 8px; border-top: 1px solid var(--border); margin-top: 16px;
}
.post-like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card2); border: 2px solid var(--border-light);
  border-radius: 24px; padding: 8px 20px; cursor: pointer;
  font-size: 0.92rem; color: var(--text-muted);
  transition: all .2s ease; font-family: inherit; font-weight: 600;
}
.post-like-btn:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(232,64,64,0.08);
}
.post-like-btn.liked {
  border-color: var(--primary); color: var(--primary);
  background: rgba(232,64,64,0.1);
}
.post-like-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.post-like-heart { font-size: 1.1rem; line-height: 1; display: inline-block; }
.post-like-label { font-size: 0.86rem; }
.post-like-count { font-size: 0.86rem; font-weight: 700; min-width: 16px; text-align: center; }
.post-like-btn.like-pop .post-like-heart { animation: likePop .3s ease; }

/* ---- SP版サイドバー補足スタイル ---- */
.sp-sidebar .sidebar-post .action-btn {
  display: block; width: 100%; padding: 14px;
  font-size: 1rem; text-align: center;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-sm); font-weight: 700;
  letter-spacing: 0.04em; box-shadow: 0 4px 16px rgba(232,64,64,.35);
}
.sp-sidebar .sidebar-post .action-btn:hover {
  background: var(--primary-dark); transform: translateY(-1px);
}
.sp-sidebar .pref-link { padding: 3px 7px; font-size: 0.75rem; }
.sp-sidebar .recent-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; list-style: none; padding: 0; margin: 0;
}
.sp-sidebar .recent-item { padding: 0; border: none; }
.sp-sidebar .recent-link {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 8px; gap: 8px; align-items: flex-start;
}
.sp-sidebar .recent-title {
  font-size: 0.78rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.sp-sidebar .recent-meta { font-size: 0.7rem; }

/* =====================================================
   管理者ページ専用スタイル
   ===================================================== */
.admin-stats {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  min-width: 130px; text-align: center; flex: 1;
}
.stat-card-num { font-size: 2rem; font-weight: 900; color: var(--neon-yellow); display: block; }
.stat-card-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; display: block; }

/* 管理テーブル */
.admin-table {
  width: 100%; border-collapse: collapse; background: var(--bg-card);
  border-radius: var(--radius); overflow: hidden; font-size: 0.86rem;
}
.admin-table th {
  background: var(--bg-card2); color: var(--text-muted);
  font-size: 0.78rem; font-weight: 700; padding: 10px 12px;
  text-align: left; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-light);
  vertical-align: top;
}
.admin-table tr:hover td { background: var(--bg-card2); }
.admin-table tr:last-child td { border-bottom: none; }

/* =====================================================
   カスタム追加修正 v14
   ===================================================== */

/* ① SP版「最近の投稿」6件・高さ統一 */
.recent-item {
  height: 56px;
  overflow: hidden;
}
.recent-link {
  height: 100%;
}
.recent-info {
  overflow: hidden;
}
.recent-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
/* SP版: 最近の投稿を2列グリッドで6件表示 */
@media (max-width: 767px) {
  .sp-sidebar .recent-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .sp-sidebar .recent-item {
    height: auto;
    min-height: 72px;
    margin-bottom: 0;
    padding: 0;
    border: none;
  }
  .sp-sidebar .recent-link {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    gap: 8px;
    align-items: flex-start;
    height: 100%;
  }
  .sp-sidebar .recent-title {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }
  .sp-sidebar .recent-meta {
    font-size: 0.68rem;
  }
}

/* ② 投稿カード間の間隔を広げる */
.post-list {
  gap: 20px !important;
}

/* ③ 管理者メニュー：ダークテーマ対応（肌色・白文字問題修正） */
.admin-sidebar-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-left: 4px solid var(--accent) !important;
}
.admin-sidebar-card .sidebar-title {
  color: var(--text) !important;
}

/* ④ コメント本文：中央寄せ防止・行間修正 */
.reply-body,
.reply-body * {
  text-align: left !important;
}
.reply-body {
  margin-top: 0 !important;
  white-space: normal !important;
  line-height: 1.75 !important;
}
/* br + br は削除しない：投稿者が意図した空行（改行2連続）を保持するため */

/* ⑤ SP版検索入力欄：高さ確保・2行疑似プレースホルダー */

/* 疑似プレースホルダー：PC版は非表示 */
.search-placeholder-sp {
  display: none;
}

@media (max-width: 767px) {
  /* 検索ラップを relative にして疑似プレースホルダーを重ねる */
  .search-input-wrap {
    display: flex;
    align-items: stretch;
    min-height: 60px;
    position: relative;
  }
  .search-input {
    height: auto !important;
    min-height: 60px !important;
    padding: 8px 44px 8px 12px !important;
    line-height: 1.55 !important;
    font-size: 0.83rem !important;
    box-sizing: border-box;
    /* 本物のplaceholderは透明にしてカスタムで置き換え */
  }
  /* 本物のplaceholderを非表示（代わりにカスタムdivを使う） */
  .search-input::placeholder {
    color: transparent;
  }
  /* SP版疑似プレースホルダー（inputに重ねて表示） */
  .search-placeholder-sp {
    display: block;
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 0.80rem;
    line-height: 1.5;
    color: #8b8b8b;
    pointer-events: none; /* クリックを通過させる */
    white-space: normal;
    z-index: 1;
  }
  .search-btn {
    min-height: 60px !important;
    align-self: stretch;
    padding-top: 0;
    padding-bottom: 0;
    z-index: 2;
    position: relative;
  }
}

/* ⑥ 人気・ピックアップセクション ================================================ */
.featured-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px 18px 18px;
  margin-bottom: 28px;
  margin-top: 4px;
}
.featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.featured-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.featured-title .fire-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.featured-subtitle {
  font-size: 0.75rem;
  color: #8b949e;
  font-weight: 400;
  margin-left: 2px;
}
.featured-more {
  display: none; /* 「すべて見る→」非表示 */
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.featured-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
  color: #e6edf3;
  min-height: 120px;
}
.featured-card:hover {
  border-color: #e84040;
  color: #e6edf3;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
}
.featured-card-cat {
  font-size: 0.70rem;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
  display: inline-block;
  align-self: flex-start;
  font-weight: 600;
  white-space: nowrap;
}
.featured-card-title {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.45;
  color: #e6edf3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.featured-card-meta {
  font-size: 0.70rem;
  color: #8b949e;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.featured-card-stats {
  font-size: 0.70rem;
  color: #8b949e;
  display: flex;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid #2a2a2a;
}

/* SP版フィーチャーグリッド（常に2列固定） */
@media (max-width: 767px) {
  .featured-section {
    padding: 14px 12px 12px;
    margin-bottom: 18px;
    border-radius: 10px;
  }
  .featured-header {
    margin-bottom: 12px;
  }
  .featured-title {
    font-size: 0.95rem;
    gap: 5px;
  }
  .featured-subtitle {
    display: none; /* SP版サブテキストは非表示 */
  }
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .featured-card {
    padding: 12px 10px 10px;
    min-height: 120px;
  }
}
/* タブレット（768px〜1099px）：3列 */
@media (min-width: 768px) and (max-width: 1099px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* PC幅が狭い場合の対応（1100px〜1299px）：3列 */
@media (min-width: 1100px) and (max-width: 1299px) {
  .featured-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .featured-card {
    padding: 10px 8px;
  }
}

/* 管理画面ピックアップセクション */
.pickup-section { margin-top: 24px; }
.pickup-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #1e3045;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #0d1a27;
}
.pickup-post-item.selected {
  border-color: #e84040;
  background: rgba(232,64,64,0.08);
}
.pickup-post-item label { flex: 1; cursor: pointer; color: #c8d8e8; font-size: 0.88rem; }
.pickup-order-input {
  width: 52px; padding: 4px 6px; border: 1px solid #2a4060;
  border-radius: 6px; background: #060d13; color: #f0f4f8;
  font-size: 0.82rem; text-align: center;
}

/* ====================================================
   利用規約ページ
   ==================================================== */
.terms-wrapper {
  max-width: 100%;
  margin: 0 auto 60px;
  padding: 0;
}
.terms-header {
  text-align: center;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.terms-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.terms-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.terms-intro {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 24px;
  margin-bottom: 28px;
  line-height: 1.75;
  font-size: 0.9rem;
}
.terms-intro p + p {
  margin-top: 12px;
}
.terms-section {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.terms-section:last-of-type {
  border-bottom: none;
}
.terms-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 12px;
  padding: 7px 14px;
  background: rgba(0,200,255,0.05);
  border-left: 3px solid var(--neon-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.terms-subsection-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-light);
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid var(--border-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.terms-lead {
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 0.9rem;
}
.terms-list {
  padding-left: 1.8em;
  line-height: 1.85;
  font-size: 0.9rem;
}
.terms-list li {
  margin-bottom: 8px;
}
.terms-list-bullet {
  list-style: none;
  padding-left: 0;
  line-height: 1.85;
  font-size: 0.9rem;
}
.terms-list-bullet li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 6px;
}
.terms-list-bullet li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
.terms-prohibited {
  list-style: none;
  padding-left: 0;
  line-height: 1.85;
}
.terms-prohibited li {
  padding: 7px 12px 7px 36px;
  margin-bottom: 3px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  position: relative;
  font-size: 0.88rem;
}
.terms-prohibited li::before {
  content: '✕';
  position: absolute;
  left: 12px;
  color: var(--primary);
  font-weight: 700;
}
.terms-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}
.terms-footer {
  margin-top: 36px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  text-align: center;
}
.terms-org {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}
.terms-contact a {
  color: var(--neon-cyan);
}
.terms-back {
  text-align: center;
  margin-top: 28px;
}
.btn-back {
  display: inline-block;
  padding: 12px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: background .2s, border-color .2s;
}
.btn-back:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}
@media (max-width: 600px) {
  .terms-wrapper { padding: 0; }
  .terms-title { font-size: 0.95rem; }
  .terms-section-title { font-size: 0.88rem; padding: 6px 10px; }
  .terms-intro { padding: 12px 14px; font-size: 0.82rem; }
  .terms-list { font-size: 0.82rem; }
  .terms-list-bullet { font-size: 0.82rem; }
  .terms-prohibited li { font-size: 0.8rem; padding: 6px 10px 6px 28px; }
  .terms-prohibited li::before { left: 9px; }
  .terms-lead { font-size: 0.82rem; }
  .terms-note { font-size: 0.8rem; }
  .terms-section > p { font-size: 0.82rem; }
  .terms-footer { padding: 16px; }
  .terms-org { font-size: 0.9rem; }
  .terms-contact { font-size: 0.85rem; }
  .terms-date { font-size: 0.8rem; }
  .terms-header { padding: 24px 0 20px; }
}

/* フッターの利用規約リンク */
.footer-bottom-terms .footer-terms-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom-terms .footer-terms-link:hover {
  color: var(--neon-cyan);
}

/* フッター利用規約・プライバシーポリシー区切り */
.footer-terms-sep {
  color: var(--text-muted);
  font-size: 0.8rem;
  user-select: none;
}

/* プライバシーポリシー: 段落間スペース */
.terms-section p + p {
  margin-top: 10px;
}
/* terms-section 直下のp要素は一律0.88remに統一 */
.terms-section > p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-light);
}
/* お問い合わせBOX */
.terms-contact-box {
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.85;
}
.terms-contact-box a {
  color: var(--neon-cyan);
}

/* ③ SP専用：カテゴリーから探すセクション（投稿するの直下） */
.sp-cat-section { display: none; }
@media (max-width: 600px) {
  /* SP版：sp-cat-sectionを表示 */
  .sp-cat-section { display: block; margin-bottom: 14px; }
  /* SP版：元のtab-section（PCカテゴリータブ）は非表示 */
  .tab-section { display: none; }
}
