/* css/home.css */

/* 1. 3つのカードを囲むグリッド（レスポンシブ） */
.home-grid {
  display: grid;
  grid-template-columns: 1fr; /* スマホ：1列 */
  gap: 16px;
  /*padding: 16px;*/
}

@media (min-width: 768px) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr); /* PC・タブレット：3列 */
    gap: 20px;
  }
}

/* 2. カード共通スタイル */
.home-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #eef2f5;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 3. 各カードのヘッダータイトルボタン */
.card-header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.btn-card-title {
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: bold;
  color: #1e293b;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.2s;
}

.btn-card-title:hover {
  color: #0066cc;
}

/* 3-1. お知らせ表示エリア */
.unread-more-link {
  display: block;
  width: 100%;
  padding: 0.4rem 0;
  background: none;
  border: none;
  color: #b45309;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  cursor: pointer;
}
.unread-more-link:hover {
  background-color: rgba(253, 230, 138, 0.25);
}

/* 4. スケジュール表示エリア */
.event-item {
  padding: 12px;
  background: #f8fafc;
  border-left: 4px solid #0066cc;
  border-radius: 6px;
  margin-bottom: 10px;
}

.event-item:last-child {
  margin-bottom: 0;
}

.event-badge {
  display: inline-block;
  background: #0066cc;
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.event-date {
  font-weight: bold;
  font-size: 0.95rem;
  color: #1e293b;
}

.event-detail {
  font-size: 0.88rem;
  color: #475569;
  margin-top: 4px;
}

.btn-map-inline {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #0284c7;
  text-decoration: none;
  font-weight: bold;
}

/* 5. 資料庫クイックリンク表示エリア */
.library-quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.library-quick-links li {
  margin-bottom: 8px;
}

.library-quick-links li:last-child {
  margin-bottom: 0;
}

.library-link-item,
.library-link-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: bold;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.library-link-item:hover,
.library-link-button:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #0066cc;
}