/* ===== 検索コンテナ ===== */
.mn-search {
  background: #fffbeb;            /* 薄いクリーム */
  border: 2px solid #fde68a;      /* 薄いオレンジ */
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 32px;
}

/* 上段：入力 + ボタン */
.mn-search__line { 
  display: flex; 
  gap: 0px;
  align-items: center;
}
.mn-search__input {
  flex: 1;
  height: 42px;
  border: 1px solid #7dc7da !important;
  border-right: none !important;
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
}
.mn-search__btn {
  height: 42px;
  min-width: 56px;
  border: none;
  border-radius: 0px 8px 8px 0px;
  background: #009fc1 !important;
  color: #fff;
  cursor: pointer;
}
.mn-search__icon { font-size: 18px; line-height: 1; }

/* 下段：市区町村フィルタ */
.mn-filter { margin-top: 12px; }
.mn-filter__label { font-weight: 700; margin: 6px 0 8px; }

.mn-acc__btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 2px solid #7dc7da;
  border-radius: 8px;
  background: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.mn-acc__plus { font-size: 18px; }

.mn-acc__panel { margin-top: 10px; }
.mn-terms {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mn-term { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }

/* ====== グリッド ====== */
.mn-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  min-height: 400px;
  max-height: 1000px;
  padding-right: 6px;
}

/* ====== カード本体 ====== */
.mn-card {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 4px 8px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.mn-header {
  display: flex;
  justify-content: start;
  align-items:center;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px; gap:12px;
}

/* ✅ サムネはアスペクト比固定にして高さブレを抑える */
.mn-card__thumb { aspect-ratio: 16 / 9; background: #f3f4f6; }
.mn-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 本文 */
.mn-card__body {
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

/* メタ（日付・新着） */
.mn-card__date {
  display: block;
  font-size: 12px;
  font-weight: bold;
  opacity: .7;
  margin-bottom: 4px;
}
.mn-badge { color: #c03a64; font-weight: bold; }

/* タイトルは2行で固定（行高の暴れ防止） */
.mn-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mn-card__title:hover {
  color:#25A1CA;
  transition-duration: 0.4s;
  cursor: pointer;
}

/* ✅ タグ群はカード下に寄せて高さを均等化 */
.mn-chips,
.jichitai-tags {   /* クラス名は使っているものに合わせて */
  display: flex;
  margin-top: auto;
  gap: 6px;
  padding-bottom: 8px;
  flex-wrap: nowrap;
  overflow: scroll;
  max-width: 100%;
}

/* 既存チップ系 */
.jichitai-tag {
  display: inline-block;
  margin: 0.4em;
  padding: 3px 10px;
  border: 1px solid #00a0c8;
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
  font-size: 10.5px;
  font-weight: bold;
  transition: all 0.2s ease;
}
.jichitai-tag:hover {
  background: #00a0c8;
  color: #fff !important;
  border-color: #00a0c8;
  box-shadow: 0 4px 16px rgba(0,160,200,0.25);
  cursor: pointer;
}
.mn-chip {
  white-space: nowrap;
  display: inline-block;
  margin: 0.4em 0 0 0;
  padding: 3px 10px;
  border: 1px solid #EBC46E;
  border-radius: 4px;
  background: #fff;
  color: #EBC46E !important;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.2s ease;
}
.mn-chip:hover {
  background: #EBC46E;
  color: #fff !important;
  border-color: #EBC46E;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(235,196,110,0.35);
  cursor: pointer;
}

/* アクション */
.mn-loadmore {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--e-border, #e5e7eb);
  background: #fff;
  cursor: pointer;
}
.mn-loadmore:disabled { opacity: .6; cursor: default; }

/* ===== Skeleton 基本 ===== */
.mn-card--skeleton { pointer-events: none; }
.mn-skel {
  position: relative;
  overflow: hidden;
  background: #eef1f5;
  border-radius: 6px;
}
.mn-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%);
  animation: mn-shimmer 1.2s infinite;
}
@keyframes mn-shimmer { to { transform: translateX(100%); } }

/* サムネは16:9で固定（既存カードと同じ） */
.mn-skel--thumb { aspect-ratio: 16/9; }

/* 本文のダミーバー */
.mn-skel--meta   { width: 140px; height: 12px; margin: 12px 14px 8px; }
.mn-skel--title  { height: 16px; margin: 0 14px 8px; }
.mn-skel--title.short { width: 60%; }
.mn-skel-chip-row { display: flex; gap: 6px; margin: 8px 14px 12px; flex-wrap: wrap; }
.mn-skel--chip   { width: 72px; height: 20px; border-radius: 20px; }

/* 既存カードと高さ合わせ（flex縦&100%） */
.mn-card.mn-card--skeleton {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; overflow: hidden;
}
.mn-card--skeleton .mn-card__thumb { background: #f3f4f6; }
.mn-card--skeleton .mn-card__body  { padding: 0; }
.mn-sentinel { height: 1px;  grid-column: 3;}

/* ===== 複数選択ドロップダウン ===== */
.mn-multi { position: relative; max-width: 520px; }
.mn-multi__control{
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 2px solid #7dc7da;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center; 
  justify-content: space-between;
  cursor: pointer;
  z-index: 100;
  color: #222222;
  font-weight: bold;
}

.mn-multi__control:focus{
  outline: none;
  border-color: #7dc7da;
}

.mn-multi__icon{ font-size: 18px; line-height: 1; color:#0f5f73; }

.mn-multi__menu{
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 80vh; overflow-y: auto;
  background: #fff;
  border: 2px solid #7dc7da;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  z-index: 50;
}

.mn-multi__option{
  position: relative;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
}
.mn-multi__option:last-child{ border-bottom: none; }

.mn-multi__option:hover{ background:#f8fafc; }
.mn-multi__option.is-selected{
  background: #f0f9ff;            /* 選択時の行色 */
  border-left: 3px solid #7dc7da;  /* 視覚的アクセント */
  padding-left: 11px;              /* border-left分の詰め */
}

/* チェックマーク（右側） */
.mn-multi__tick::after{
  content: '✓';
  opacity: 0;
  transition: opacity .15s ease;
  color: #0f5f73;
  font-weight: 700;
}
.mn-multi__option.is-selected .mn-multi__tick::after{ opacity: 1; }

/* 先頭（全て） */
.mn-multi__option--all{
  font-weight: 600;
  background: #fbfdff;
}


/* レスポンシブ */
@media (max-width: 1024px) {
  .mn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mn-sentinel { height: 1px;  grid-column: 1;}
}
@media (max-width: 640px) {
  .mn-grid { grid-template-columns: 1fr; }
  .mn-sentinel { height: 1px;  grid-column: 1;}
}
@media (max-width: 1024px) { .mn-terms { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .mn-terms { grid-template-columns: repeat(2, 1fr); } }