:root {
  --nav-height: 56px;
  --brand-color: #4CAF50;
  --nav-bg: #333;
  --nav-link: #fff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  margin: 0;
  padding-top: var(--nav-height);
  line-height: 1.6;
  color: #222;
}

/* 固定ナビ */
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

nav.site-nav a {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 4px;
}

nav.site-nav a:hover,
nav.site-nav a:focus {
  text-decoration: underline;
}

header.page-header {
  background: var(--brand-color);
  color: #ffffff;
  padding: 24px 16px;
  text-align: center;
}

main {
  padding: 24px 16px;
  max-width: 960px;
  margin: 0 auto;
}

footer {
  text-align: center;
  padding: 24px 16px;
  background: #f5f5f5;
  color: #555;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  :root {
    --nav-height: 52px;
  }

  nav.site-nav {
    gap: 16px;
  }

  nav.site-nav a {
    font-size: 14px;
  }
}

a {
  color: #008000;
  text-decoration: none;
}

.news-item {
  border-bottom: 1px solid #ccc;
  padding: 1rem 0;
}

.news-head {
  font-size: 1.4em;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  color: #008000;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
}

.news-content {
  font-size: 1.1em;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  color: #222;
}

.mark {
  font-weight: bold;
}

img {
  border: none;
}

.orange {
  color: orange;
}

.name {
  float: right;
}

h2.title a {
  color: #222;
}

.totop {
  float: right;
  color: #4CAF50;
}

/* セクションごとに番号リセット（通し番号にしたい場合は body に移す） */
.articles {
  counter-reset: art;
}

/* 各 article を2列グリッドに。
   左列は「番号」用の固定幅、右列に本文（見出し・段落など） */
.articles>article {
  counter-increment: art;
  display: grid;
  grid-template-columns: var(--num-w, 3rem) 1fr;
  /* 2桁以上も想定して少し広め */
  column-gap: var(--gap, .5rem);
  align-items: start;
  /* タイトルが短くても上にそろえる */
  margin-block: 1rem;
}

/* 左列に番号を配置（行全体の左側に常に出る） */
.articles>article::before {
  content: counter(art) ") ";
  grid-column: 1;
  /* 左列 */
  grid-row: 1;
  /* 先頭行（見出しの左） */
  align-self: start;
  justify-self: end;
  /* 右寄せで桁が増えても終端がそろう */
  color: #475569;
  font: 700 1.1rem/1.2 system-ui;
  padding-top: .2em;
  /* ベースライン微調整（任意） */
}

/* 本文（見出し・段落など）は右列に流す */
.articles>article>* {
  grid-column: 2;
}

/* 余白や行間などはお好みで */
.articles>article>h2 {
  margin: 0 0 .25rem;
  line-height: 1.4;
}

.articles>article>p {
  margin: 0 0 .5rem;
}

.research {
  color: #222;
}

h2.research a {
  color: #222;
}