/*
 * アートマップみえ (ARTMAP MIE) - デザインシステム & スタイルシート
 */

/* フォントインポート */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Raleway:wght@300;400;500;600;700;800&display=swap');

:root {
  /* カラーシステム (Gallery Minimalist Theme) */
  --bg-primary: #ffffff;
  --bg-portal: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f9f9f9;
  --border-color: #111111;
  --border-light: #e2e8f0;
  
  --text-primary: #111111;
  --text-secondary: #4a4a4a;
  --text-muted: #888888;
  
  --primary: #000000;
  --primary-hover: #222222;
  --primary-light: #f3f4f6;
  --logo-green: #006CB9;
  --logo-green-hover: #005493;
  
  --teal: #444444;
  --teal-hover: #222222;
  --teal-light: #eaeaea;
  
  /* ジャンル別カラー */
  --genre-painting: #5383C3;
  --genre-craft: #A2D7DD;
  --genre-photo: #B0CA71;
  --genre-sculpture: #F39800;
  --genre-contemporary: #CE5242;
  --genre-design: #E597B2;
  --genre-history: #745399;
  --genre-architecture: #3EB370;
  --genre-hobby: #D7CF3A;
  --genre-other: #8B968D;
  
  /* シャドウ (極力フラットにする) */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-premium: none;
  
  /* その他 */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-full: 9999px; /* 丸ボタン用に一部のみ残す */
  --transition-smooth: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --sidebar-width: 440px;
}

/* ベースリセット */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Raleway', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  position: relative;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ビューコンテナ */
.view-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  z-index: 50;
  opacity: 1;
}

.view-hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transform: scale(0.98);
  display: none !important;
}

/* ========================================== */
/* 1. ポータルビューのスタイル                */
/* ========================================== */
#portal-view {
  background: var(--bg-portal);
  flex-direction: column;
}

.portal-scroll-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 2rem;
}

.portal-card {
  max-width: 800px;
  width: 100%;
  background: var(--bg-card);
  padding: 1.5rem 3rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: auto;
}

.portal-logo-img-wrapper {
  max-width: 440px;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.portal-logo-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.portal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 620px;
  margin: 2.25rem auto 1rem;
  letter-spacing: 0.03em;
  text-align: left;
}

.portal-desc-en {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.portal-choices {
  display: flex;
  gap: 2rem;
  width: 100%;
  margin-top: 1rem;
}

.choice-card {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.choice-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.08em;
  transition: var(--transition-smooth);
}

.choice-card p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: var(--transition-smooth);
}

.choice-card:hover {
  background: var(--logo-green);
  border-color: var(--logo-green);
}

.choice-card:hover h3,
.choice-card:hover p {
  color: #ffffff;
}

.portal-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.portal-text-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  padding: 0.25rem 0.5rem;
  letter-spacing: 0.03em;
  position: relative;
}

.portal-text-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 1px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease-in-out;
}

.portal-text-link:hover {
  color: var(--text-primary);
}

.portal-text-link:hover::after {
  transform: scaleX(1);
}

.portal-link-divider {
  color: var(--border-light);
  font-size: 0.85rem;
  user-select: none;
}

/* ========================================== */
/* 1b. サイト概要・注意事項ビューのスタイル    */
/* ========================================== */

#about-view {
  background: var(--bg-primary);
  overflow: hidden;
}

.about-scroll-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 3rem 2rem 5rem;
}

.about-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: fit-content;
}

.about-section-header {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.7);
}

.about-section-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.about-section-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* 注意事項 各アイテム */
.about-notice-item {
  padding: 1.1rem 1.25rem;
  background: #fafafa;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.about-notice-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}

.about-notice-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.about-notice-item p {
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* 運営者情報カード */
.about-org-card {
  padding: 1.25rem;
  background: #fafafa;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.about-org-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.about-org-name svg {
  width: 20px;
  height: 20px;
}

.about-org-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.25rem;
  font-size: 0.88rem;
}

.about-org-dl dt {
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.about-org-dl dd {
  color: var(--text-primary);
  margin: 0;
}

.about-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #2563eb;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.about-ext-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.about-ext-link svg {
  width: 12px;
  height: 12px;
}

/* ========================================== */
/* 2. 地図ビューのスタイル                    */
/* ========================================== */

/* メインヘッダー */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
}

.header-logo-link {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-logo-link:hover {
  opacity: 0.7;
}

.logo-title-main {
  font-family: 'Raleway', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  line-height: 1.1;
}

.logo-title-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-link-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.post-link-btn:hover {
  background: var(--logo-green);
  color: #ffffff;
  border-color: var(--logo-green);
}

.fav-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.fav-toggle-btn:hover {
  border-color: var(--logo-green);
  background: var(--logo-green);
  color: #ffffff;
}

.fav-toggle-btn.active {
  background: var(--logo-green);
  border-color: var(--logo-green);
  color: #ffffff;
}

.fav-toggle-btn.active svg {
  fill: #ffffff;
}

/* メインコンテナ */
.main-content {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* サイドバー */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 900;
}

/* 検索 & フィルターエリア */
.search-filter-section {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-primary);
}

.search-box {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  outline: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.filters-grid-stacked {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  outline: none;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.filter-select:focus {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.status-tabs {
  display: flex;
  gap: 0;
  background: transparent;
  border-bottom: 1px solid var(--border-light);
  padding: 0;
}

.status-tab {
  flex: 1;
  padding: 0.6rem 0.2rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.status-tab.active {
  background: transparent;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
  font-weight: 700;
}

/* 展覧会リストエリア */
.exhibitions-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.list-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  text-align: center;
  gap: 1rem;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-muted);
}

/* 展覧会カード */
.exhibition-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.exhibition-card:hover {
  border-color: var(--border-color);
  background: var(--bg-card-hover);
}

.exhibition-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.card-img-wrapper {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #f8f8f8;
  border: 1px solid var(--border-light);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.exhibition-card:hover .card-img {
  transform: scale(1.03);
}

.card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.tag-genre1 {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border-color);
  font-weight: 500;
  background: transparent;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.tag-genre2 {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border-color);
  font-weight: 500;
  background: var(--primary-light);
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.tag-area {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.tag-status {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.status-open {
  border: 1px solid #111111;
  color: #111111;
  background: transparent;
}

.status-upcoming {
  border: 1px solid #888888;
  color: #888888;
  background: transparent;
}

.status-closing {
  border: 1px solid #ef4444;
  color: #ef4444;
  background: transparent;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.card-venue {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card-period {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-period svg {
  width: 12px;
  height: 12px;
}

.card-fav-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.card-fav-btn:hover {
  background: var(--bg-card-hover);
  border-color: #ef4444;
  color: #ef4444;
}

.card-fav-btn.active {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.card-fav-btn.active svg {
  fill: #ef4444;
}

/* 地図エリア */
.map-container {
  flex: 1;
  height: 100%;
  position: relative;
  z-index: 1;
}

#map {
  width: 100%;
  height: 100%;
}

/* 地図上のカスタムマーカーのスタイリング */
.custom-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -12px 0 0 -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.custom-marker-inner {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
}

.custom-marker:hover, .custom-marker.selected {
  transform: scale(1.2);
  border-color: var(--primary);
  z-index: 9999 !important;
}

/* 人気展覧会のピン（アクセス数が多い） */
.custom-marker.popular-pin {
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: #ffd700; /* ゴールド枠で少し目立たせる */
}

.custom-marker.popular-pin:hover, .custom-marker.popular-pin.selected {
  transform: scale(1.5);
}

/* 詳細スライドインパネル */
.detail-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: 500px;
  height: 100%;
  background: var(--bg-card);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
}

.detail-panel.open {
  transform: translateX(0);
}

.detail-header {
  display: none; /* 使用しなくなりました */
}

/* 新しい閉じるボタン */
.detail-close-btn-alt {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}
.detail-close-btn-alt:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

/* 新しいインライン画像 */
.detail-image-section {
  padding: 0 1.5rem 1.5rem;
  width: 100%;
}
.detail-inline-img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  background: transparent;
  border: none;
}

.detail-close-btn:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.detail-fav-btn {
  display: none !important;
}

.detail-fav-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
}

.detail-fav-btn:hover {
  background: #ffffff;
  color: #ef4444;
  transform: scale(1.05);
}

.detail-fav-btn.active {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.detail-fav-btn.active svg {
  fill: #ffffff;
}

.detail-venue-badge-alt {
  display: inline-block;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-venue-section {
  padding: 0 1.5rem 1rem;
}

.detail-venue-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-meta-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.detail-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.detail-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 2px solid var(--primary);
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
}

.detail-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background: #fcfcfc;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  font-size: 0.85rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.6rem;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  width: 100px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.info-value {
  color: var(--text-primary);
  flex: 1;
}

.detail-actions {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  display: flex;
  gap: 0.75rem;
}

.action-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--logo-green);
  border: 1px solid var(--logo-green);
  color: white;
}

.btn-primary:hover {
  background: var(--logo-green-hover);
  border-color: var(--logo-green-hover);
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--logo-green);
  border-color: var(--logo-green);
  color: white;
}

.btn-danger {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
}

.btn-danger:hover {
  background: #ef4444;
  color: white;
}

/* ========================================== */
/* 3. 投稿ビューのスタイル                    */
/* ========================================== */

#post-view {
  background: var(--bg-primary);
  overflow: hidden;
}

.form-scroll-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 3rem 2rem 5rem;
}

.exhibition-form {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4rem 3rem;
  align-items: start;
  height: fit-content;
}

.form-inputs-pane, .form-map-pane {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-pane-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full-width {
  flex: none;
  width: 100%;
}

.form-input-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-input-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-input-text, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  outline: none;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.form-input-text:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.form-input-text[readonly] {
  background: #f5f5f5;
  border-color: var(--border-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

input[type="date"].form-input-text {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  min-height: 44px;
  font-size: 0.92rem;
  color: var(--text-primary);
  background-color: var(--bg-card);
  padding: 0.7rem 0.9rem;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"].form-input-text::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
  padding: 0.2rem;
  transition: opacity 0.2s ease;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* プリセット選択グリッド */
.preset-selector-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.preset-images-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
  width: 100%;
}

.preset-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 0.3rem;
  position: relative;
}

.preset-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.preset-option img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: var(--transition-smooth);
}

.preset-option span {
  font-size: 0.68rem;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ラジオボタン選択時の枠線ハイライト */
.preset-option input[type="radio"]:checked + img {
  border-color: var(--primary);
}

/* カスタム画像アップロード */
.upload-divider {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.8rem 0 0.5rem;
  text-align: center;
  position: relative;
}

.upload-divider::before, .upload-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border-light);
}

.upload-divider::before { left: 0; }
.upload-divider::after { right: 0; }

.image-upload-wrapper {
  position: relative;
  width: 100%;
  height: 90px;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.image-upload-wrapper:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.form-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-area-design {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.upload-area-design svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

.upload-area-design span {
  font-size: 0.8rem;
  font-weight: 500;
}

.upload-preview-container {
  position: absolute;
  inset: 0;
  background: white;
  border-radius: calc(var(--radius-md) - 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.upload-preview-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.clear-upload-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.clear-upload-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* マップピン留め右ペイン */
.form-map-instruction {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* マップ検索・連携補助機能 */
.map-helper-container {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.helper-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.helper-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.helper-tab:hover {
  color: var(--primary);
}

.helper-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.helper-tab-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.helper-tab-content.hidden {
  display: none !important;
}

.helper-search-row {
  display: flex;
  gap: 0.5rem;
}

.helper-search-row .form-input-text {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
}

.helper-action-btn {
  background: var(--logo-green);
  color: white;
  border: 1px solid var(--logo-green);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  min-width: 50px;
}

.helper-action-btn:hover {
  background: var(--logo-green-hover);
  border-color: var(--logo-green-hover);
  color: white;
}

.helper-action-btn svg {
  width: 16px;
  height: 16px;
}

.helper-action-btn span {
  font-size: 0.8rem;
}

/* 検索結果のドロップダウンリスト */
.search-results-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  max-height: 180px;
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.search-result-item {
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Googleマップ連携用のレイアウト */
.gmaps-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}

.gmaps-external-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.gmaps-external-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.gmaps-external-btn svg {
  width: 12px;
  height: 12px;
}

.gmaps-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.form-minimap-container {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  z-index: 1;
}

#form-minimap {
  width: 100%;
  height: 100%;
}

.form-actions-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.5rem;
}

.form-notice-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  text-align: right;
  line-height: 1.4;
}

.form-btn-group {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: flex-end;
}

.form-btn {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

/* ========================================== */
/* 4. モーダルのスタイル                      */
/* ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: scaleUp 0.2s ease;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon-badge svg {
  width: 36px;
  height: 36px;
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.modal-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ========================================== */
/* レスポンシブ対応                           */
/* ========================================== */
@media (max-width: 992px) {
  .sidebar {
    width: 380px;
  }
  .detail-panel {
    width: 420px;
  }
  .exhibition-form {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  .form-minimap-container {
    height: 260px;
  }
}

@media (max-width: 768px) {
  /* ポータルレスポンシブ */
  .portal-scroll-container {
    padding: 1.5rem 1rem 5rem;
  }
  .portal-card {
    padding: 1.5rem 1rem;
  }
  .portal-choices {
    flex-direction: column;
    gap: 1rem;
  }
  /* スマホ表示でのボタン内矢印「→」非表示 */
  .choice-card h3 svg,
  .choice-card h3 i {
    display: none !important;
  }
  .portal-title {
    font-size: 1.75rem;
  }
  
  /* マップ画面レスポンシブ */
  /* ヘッダーレスポンシブ最適化 */
  header {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }
  .logo-container {
    flex-shrink: 1;
    min-width: 0;
  }
  .logo-title-main {
    font-size: 1.05rem;
    letter-spacing: 0.05em;
  }
  .logo-title-sub {
    font-size: 0.65rem;
    white-space: nowrap;
  }
  .header-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .fav-toggle-btn,
  .post-link-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 20px;
    gap: 0.25rem;
    white-space: nowrap;
  }
  .fav-toggle-btn span,
  .post-link-btn span {
    display: inline-block !important;
    font-size: 0.72rem;
  }
  .fav-toggle-btn svg,
  .post-link-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .main-content {
    flex-direction: column-reverse;
  }
  .sidebar {
    width: 100%;
    height: 60%;
    border-right: none;
    border-top: 1px solid var(--border-color);
  }
  .map-container {
    height: 40%;
    flex: none;
    position: relative;
  }
  
  /* スマホ用切替ボタン */
  .mobile-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 1000;
    padding: 0.6rem 1rem;
    background: #ffffff;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
  }
  .mobile-toggle-btn:active {
    transform: scale(0.96);
  }

  /* 地図拡大表示モード (リスト非表示) */
  .main-content.mobile-map-full .sidebar {
    display: none !important;
  }
  .main-content.mobile-map-full .map-container {
    height: 100% !important;
    flex: 1 !important;
  }
  .main-content.mobile-map-full .mobile-toggle-btn {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
  }
  .detail-panel {
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    display: block;
    overflow-y: auto;
  }
  .detail-panel.open {
    transform: translateY(0);
  }
  .detail-header {
    height: 140px;
  }
  .detail-inline-img {
    max-height: calc(100vw - 3rem);
  }
  .detail-body {
    overflow-y: visible;
    padding-bottom: 0;
  }
  .detail-actions {
    border-top: none;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  /* 極小スマホ対応 */
  @media (max-width: 380px) {
    header {
      padding: 0.5rem 0.4rem;
    }
    .logo-title-main {
      font-size: 0.95rem;
    }
    .logo-title-sub {
      display: none;
    }
    .fav-toggle-btn,
    .post-link-btn {
      padding: 0.35rem 0.45rem;
      font-size: 0.7rem;
    }
  }
  
  /* フォームレスポンシブ */
  .form-scroll-container {
    padding: 1rem 1rem 6rem;
  }
  .form-row {
    flex-direction: column;
    gap: 1.25rem;
  }
  .form-row.date-row {
    gap: 0.5rem;
  }
  .news-editor-card {
    padding: 1.25rem 1rem;
  }
  .news-form-row-3,
  .news-form-row-2 {
    flex-direction: column;
    gap: 1rem;
  }
  .form-actions-wrapper {
    align-items: stretch;
  }
  .form-notice-note {
    text-align: left;
    font-size: 0.82rem;
  }
  .form-btn-group {
    flex-direction: column-reverse;
    gap: 0.75rem;
    width: 100%;
  }
  .form-btn-group .form-btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 700;
  }
  .preset-images-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* サイトについてレスポンシブ */
  .about-scroll-container {
    padding: 1rem 1rem 6rem;
  }
  .about-section-body {
    padding: 1rem;
  }
  .about-org-dl {
    grid-template-columns: 1fr;
  }
}

/* ========================================== */
/* お知らせ・ブログ (News / Blog) スタイル     */
/* ========================================== */

.news-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.news-card:hover {
  border-color: var(--border-color);
  background: var(--bg-card-hover);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.news-date {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.news-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-badge-important {
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
}

.news-badge-info {
  background: transparent;
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.news-badge-update {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.news-badge-event {
  background: transparent;
  color: #a855f7;
  border: 1px solid #a855f7;
}

.news-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.news-card-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.news-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  border-top: 1px dashed var(--border-light);
  padding-top: 0.75rem;
}

.news-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.news-action-btn-edit {
  color: var(--text-secondary);
}
.news-action-btn-edit:hover {
  background: var(--primary-light);
  color: var(--text-primary);
}

.news-action-btn-delete {
  color: #ef4444;
}
.news-action-btn-delete:hover {
  background: #fef2f2;
}

.news-editor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2rem;
}

/* 検索用スピナー */
.spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: helper-spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes helper-spin {
  to { transform: rotate(360deg); }
}

/* カテゴリバッジ表記のカスタマイズ */
.news-badge-important {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}
.news-badge-info {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.news-badge-other {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

/* 固定表示（ピン留め）スタイル */
.news-card.pinned {
  border-left: 4px solid var(--logo-green);
  background: #fcfdfd;
}
.news-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--logo-green);
  background: rgba(0, 108, 185, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* 管理者リンク（控えめ表示） */
.admin-link-subtle {
  opacity: 0.6;
  font-size: 0.8rem !important;
}
.admin-link-subtle:hover {
  opacity: 1;
}

/* 管理者ダッシュボード */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}
.admin-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition-smooth);
}
.admin-tab:hover {
  color: var(--text-primary);
}
.admin-tab.active {
  color: var(--logo-green);
  border-bottom-color: var(--logo-green);
}
.badge-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}

.admin-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-item-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.admin-item-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.admin-item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  justify-content: flex-end;
}
.status-badge-pending {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}
.status-badge-approved {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

/* 管理者ダッシュボード タブ内ヘッダー＆新規投稿ボタン */
.admin-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-create-news-btn {
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  width: auto;
  min-width: auto;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}


/* テキストリンク風ボタン */
.text-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
}
.text-link-btn:hover {
  color: var(--primary);
}
