:root {
  --primary: #1b365d;      /* ディープネイビー */
  --accent: #2b6cb0;       /* アカデミックブルー */
  --bg: #f8fafc;           /* ライトグレー背景 */
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

/* ヘッダー */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 1.25rem 1rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.header-inner {
  max-width: 1024px;
  margin: 0 auto;
}
.site-title {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.site-subtitle {
  margin: 0.2rem 0 1rem;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: #cbd5e1;
  font-weight: 400;
}

/* ナビゲーション（スマホでは横スクロールまたは折り返し） */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.5rem;
}
.site-nav a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.site-nav a.active {
  color: #fff;
  border-bottom-color: #63b3ed;
}

/* メインコンテナ */
.main-container {
  max-width: 1024px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* セクション見出し */
.section-title {
  font-size: 1.4rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.4rem;
  margin: 0 0 1.5rem;
}

/* 記事カード */
.activity-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.activity-card.headline {
  border-left: 5px solid #d97706;
  background: #fffbeb;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.badge {
  background: var(--primary);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge.headline-badge {
  background: #d97706;
}
.card-title {
  margin: 0.2rem 0 0.75rem;
  font-size: 1.15rem;
  color: #0f172a;
  line-height: 1.45;
}
.card-content {
  white-space: pre-wrap;
  font-size: 0.95rem;
  margin: 0.75rem 0;
  color: #334155;
}
.card-links a {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 1rem;
  word-break: break-all;
}
.card-links a:hover {
  text-decoration: underline;
}
.card-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.card-images img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #f1f5f9;
}

/* レスポンシブテーブル（MEMBER等） */
.table-wrapper {
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}
table.modern-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
table.modern-table th,
table.modern-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
table.modern-table th {
  background: #f1f5f9;
  color: var(--primary);
  font-weight: 600;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}
.pagination a {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.pagination a:hover {
  background: var(--primary);
  color: #fff;
}

/* フッター */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

