:root {
  --navy-dark: #071733;
  --navy-mid: #0e2954;
  --teal: #009ca6;
  --teal-dark: #007d85;
  --text-main: #1a202c;
  --text-muted: #52606d;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

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

/* 言語切り替え制御 */
body[data-lang="ja"] .lang-en { display: none !important; }
body[data-lang="en"] .lang-ja { display: none !important; }

a {
  color: var(--teal-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-dark);
}
.brand:hover {
  text-decoration: none;
}

/* ISOC_logo.png の上下余白を自動で整えてヘッダーに収める */
.brand-logo-wrap {
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.brand-logo-wrap img {
  height: 92px;
  width: auto;
  display: block;
}

.brand-chapter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 10px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 22px 2px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.main-nav a:hover {
  color: var(--teal);
  text-decoration: none;
}

.main-nav a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* 言語切り替えボタン */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-switch button.is-active {
  background: var(--navy-dark);
  color: #ffffff;
}

/* ヒーロー（トップページ） */
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 88px 24px 80px;
  /* 別途ヒーロー背景画像を使う場合は、下の background を
     background: linear-gradient(rgba(7,23,51,0.72), rgba(7,23,51,0.72)), url('./hero-bg.png') center/cover no-repeat;
     に差し替えてください */
  /*
  background:
    radial-gradient(circle at 82% 28%, rgba(0, 156, 166, 0.28) 0%, transparent 45%),
    repeating-linear-gradient(
      -26deg,
      rgba(36, 118, 173, 0.16) 0px,
      rgba(36, 118, 173, 0.16) 18px,
      transparent 18px,
      transparent 68px
    ),
    linear-gradient(135deg, var(--navy-dark) 0%, #091d3f 60%, var(--navy-mid) 100%);
  */  
  background: linear-gradient(rgba(7,23,51,0.72), rgba(7,23,51,0.72)), url('./header-isoc.png') center/cover no-repeat;
  -webkit-font-smoothing: antialiased;
}

.hero-sub {
  padding: 48px 24px;
}

.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-sub h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.hero-lead {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
}

/* メインコンテンツ */
.main-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}

/* 暫定サイト案内バー */
.migration-banner {
  background: #edf7f8;
  border-left: 4px solid var(--teal);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  color: #1e3a4c;
  margin-bottom: 36px;
}

/* 重要公示カード */
.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy-dark);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 44px;
  box-shadow: 0 2px 10px rgba(7, 23, 51, 0.04);
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.badge-important {
  background: #e6f4f5;
  color: var(--teal-dark);
}
.badge-archive {
  background: #eef2f6;
  color: var(--text-muted);
}

.highlight-card h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: var(--navy-dark);
}

.highlight-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  background: var(--navy-dark);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--teal-dark);
  text-decoration: none;
}

/* セクション見出し */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* お知らせリスト */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

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

.news-date {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.news-body {
  margin: 0;
  font-size: 0.96rem;
}

.news-body a {
  font-weight: 600;
}

/* カードグリッド（Activities等） */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--navy-dark);
}

.card p {
  margin: 0 0 14px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.card-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* 記事・公示本文エリア */
.article-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 32px;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-box h2 {
  font-size: 1.25rem;
  color: var(--navy-dark);
  margin: 28px 0 12px;
}

.article-box ul {
  padding-left: 20px;
}

/* フッター */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 36px 24px;
  font-size: 0.86rem;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

/* 役員候補者プロフィール */
.nominee-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 16px 0 32px;
}

.nominee-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 24px 26px;
}

.nominee-name {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.nominee-sub {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
}

.nominee-label {
  margin: 16px 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
}

.nominee-card p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.nominee-card p:last-child {
  margin-bottom: 0;
}

/* レスポンシブ */
@media (max-width: 720px) {
  .header-inner {
    padding: 12px 16px;
    gap: 10px;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .main-nav {
    gap: 16px;
  }
  .main-nav a {
    padding: 8px 0;
  }
  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 18px;
  }
  .article-box {
    padding: 24px 20px;
  }
  .hero {
    padding: 64px 20px;
    background-image:
      linear-gradient(rgba(5, 17, 48, 0.55), rgba(5, 17, 48, 0.55)),
      url('./header-isoc.png');
  }
}