/* ===============================
   リセット & 基本設定
=============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  line-height: 1.8;
  color: #222222;
  background: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color:  #00507e;
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

p {
  margin: 0 0 1em;
}

/* ===============================
   共通レイアウト
=============================== */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-link {
  margin-top: 24px;
}

.page-header {
  background: #F5F8FC;
}

.page-header h1 {
  margin: 0 0 16px;
  font-size: 2.2rem;
  line-height: 1.4;
}

.page-header p {
  max-width: 800px;
  margin-bottom: 0;
  color: #444444;
}

/* ===============================
   見出し
=============================== */
h1,
h2,
h3 {
  line-height: 1.4;
}

h2 {
  font-size: 1.75rem;
  margin: 0 0 24px;
  border-left: 5px solid  #00507e;
  padding-left: 12px;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

/* ===============================
   ボタン・リンク
=============================== */
.button-link {
  display: inline-block;
  padding: 12px 20px;
  background:  #00507e;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  background: #0F6FC6;
  text-decoration: none;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
}

/* ===============================
   ヘッダー
=============================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #D9E1EA;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.site-title-group {
  flex: 1;
  min-width: 0;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.site-subtitle {
  font-size: 0.85rem;
  color: #555555;
  margin: 0;
}

.global-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.global-nav a {
  font-size: 0.95rem;
  color: #222222;
  text-decoration: none;
}

.global-nav a:hover {
  color:  #00507e;
  text-decoration: none;
}

/* ===============================
   ヒーロー（トップページ）
=============================== */
.hero {
  background: #F5F8FC;
  padding: 72px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.lab-name-en {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
}

.catchcopy {
  font-size: 1.15rem;
  color:  #00507e;
  font-weight: 700;
  margin-bottom: 0;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* ===============================
   研究室紹介
=============================== */
.about p {
  max-width: 900px;
}

/* ===============================
   お知らせ
=============================== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #D9E1EA;
}

.news-list time {
  color: #555555;
  min-width: 100px;
  flex-shrink: 0;
}

/* ===============================
   カード（トップの研究テーマ）
=============================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid #D9E1EA;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-body p {
  margin-bottom: 0;
}

/* ===============================
   研究内容ページ
=============================== */
.research-detail .container {
  display: grid;
  gap: 40px;
}

.research-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.research-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.research-text p:last-child {
  margin-bottom: 0;
}

/* ===============================
   メンバーページ
=============================== */
.profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.profile-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.profile-text p {
  margin: 0 0 12px;
}

.student-groups {
  display: grid;
  gap: 20px;
}

.student-group {
  border: 1px solid #D9E1EA;
  border-radius: 10px;
  padding: 20px;
  background: #ffffff;
}

.student-group ul {
  padding-left: 20px;
  margin: 0;
}

.student-group li {
  margin-bottom: 8px;
}

.student-group li:last-child {
  margin-bottom: 0;
}

/* ===============================
   業績ページ
=============================== */
.publications p:last-child {
  margin-bottom: 0;
}

/* ===============================
   ギャラリー
=============================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.gallery-item {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-item figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555555;
}

/* ===============================
   アクセスページ
=============================== */
.info-block {
  padding: 24px;
  border: 1px solid #D9E1EA;
  border-radius: 10px;
  margin-bottom: 20px;
  background: #ffffff;
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-block h2 {
  margin-bottom: 16px;
}

/* ===============================
   ニュース詳細ページ
=============================== */
.news-article {
  background: #ffffff;
}

.article-container {
  max-width: 800px;
}

.article-container h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.article-date {
  color: #555555;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.article-body p {
  margin-bottom: 16px;
}

/* ===============================
   フッター
=============================== */
.site-footer {
  background: #005BAC;
  color: #ffffff;
  padding: 32px 0;
  margin-top: 60px;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer .copyright {
  font-size: 0.8rem;
  margin-top: 12px;
  opacity: 0.85;
}

/* ===============================
   レスポンシブ
=============================== */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .research-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .site-title {
    font-size: 1.1rem;
  }

  .site-subtitle {
    font-size: 0.8rem;
  }

  .global-nav {
    width: 100%;
  }

  .global-nav ul {
    gap: 10px 14px;
  }

  .hero {
    padding: 56px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .catchcopy {
    font-size: 1.05rem;
  }

  .page-header h1,
  .article-container h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .news-list li {
    flex-direction: column;
    gap: 6px;
  }

  .news-list time {
    min-width: auto;
  }
}

@media (max-width: 560px) {
  .card-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .site-logo img {
    width: 52px;
    height: 52px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .page-header h1,
  .article-container h1 {
    font-size: 1.6rem;
  }
}
