:root {
  --primary: #2f85c6;
  --primary-hover: #2a6fa1;
  --gray-text: #555;
  --base-font: 16px;
  --secondary: #6ab7af;
  --secondary-hover: #5a9f9f;
  --primary-bg-light: #f0faff;
}

/* ベーススタイル：PC・タブレット共通 */
body {
  font-size: var(--base-font);
  line-height: 1.6;
  color: var(--gray-text);
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", sans-serif;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-section {
  min-height: 100vh; /* 画面の高さ100%にする */
  padding-top: 50px; /* ナビバーの高さなど調整（必要に応じて） */
  padding-bottom: 60px;
}

/* ======================================
   ✅ モバイルファースト：iPhone SE対応
   画面幅 375px〜479px程度
====================================== */
@media screen and (max-width: 480px) {
  .custom-button {
    font-size: 1rem;
    padding: 0.6rem 1rem !important;
  }

  .btn-info,
  .btn-success {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }

  .container {
    padding: 0 12px;
  }

  .heading,
  .section-title {
    font-size: 1.2rem;
    text-align: left;
  }

  .blog-card {
    flex-direction: column !important;
  }

  .blog-thumb {
    width: 100%;
    height: auto;
    max-height: 200px;
    margin-bottom: 1rem;
  }

  .blog-content {
    padding: 0;
  }

  .notice-title {
    font-size: 0.9rem;
  }

  .stat-value .number {
    font-size: 1.6rem;
  }

  footer nav {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
  }
}

/* ======================================
   ✅ タブレット：480px〜767px
====================================== */
@media screen and (min-width: 481px) and (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  .heading {
    font-size: 1.4rem;
  }

  .blog-card {
    flex-direction: column;
  }

  .blog-thumb {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }

  .stat-value .number {
    font-size: 1.8rem;
  }

  .responsive-graph-section .col-lg-8,
  .responsive-graph-section .col-lg-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .responsive-graph-section img {
    margin-bottom: 2rem;
  }

  .responsive-graph-section .feature-icon {
    display: flex !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
  }
}

/* ======================================
   ✅ PC：768px以上
====================================== */
@media screen and (min-width: 768px) {
  .blog-card {
    flex-direction: row-reverse;
  }

  .blog-thumb {
    width: 200px;
    height: 200px;
  }

  .blog-content {
    padding-right: 1rem;
  }

  .stat-value .number {
    font-size: 2rem;
  }
}

/* === ヘッダー用スタイル === */

.custom-navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  font-weight: 500;
}

.custom-nav-link {
  color: #6c757d !important;
  font-weight: 500;
  position: relative;
  text-decoration: none !important;
  padding-bottom: 2px;
  transition: color 0.3s ease;
  display: inline-block; /* ← important！hover範囲の安定に必要 */
}

.custom-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: var(--primary-hover); /* infoカラー */
  transition: width 0.3s ease;
}

.custom-nav-link:hover {
  text-decoration: none !important;
  color: var(--primary-hover) !important;
}

.custom-nav-link:hover::after {
  width: 100%;
}

/* === フッター用スタイル === */

.custom-footer {
  background-color: #fff;
  color: #333;
  font-size: 14px;
  border-top: 1px solid #ddd;
}

.custom-footer-bottom {
  background-color: var(--primary); /* 下段の青背景 */
}

/* === カスタムカラーを上書き === */

.bg-info {
  background-color: var(--primary) !important;
}

.text-bg-info {
  background-color: var(--primary) !important;
  color: #fff !important;
}

.text-info {
  color: var(--primary) !important;
}

.border-info {
  border-color: var(--primary) !important;
}

/* パンくずリストのスタイル */

.custom-breadcrumb {
  font-size: 0.8rem;
}

.custom-breadcrumb .breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: var(--gray-text);
  padding: 0 0.4rem;
}

.custom-breadcrumb .breadcrumb-item a {
  color: var(--gray-text);
  text-decoration: none;
}

.custom-breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
  color: var(--gray-text);
}

/* === Markdownのスタイル（研究者向け）=== */
.markdown-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

/* 見出し（h2, h3 など）の上下余白 */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-top: 2.5rem; /* ⬅ 上の余白を増やす */
  margin-bottom: 1.2rem;
  font-weight: 700;
  border-left: 4px solid var(--primary);
  padding-left: 0.75rem;
  background: #f0f8ff;
  color: var(--primary);
}

/* 段落 */
.markdown-content p {
  margin-bottom: 1.25rem;
}

/* 箇条書きリスト */
.markdown-content ul,
.markdown-content ol {
  padding-left: 1.6rem;
  margin-bottom: 1.5rem;
}

.markdown-content ul li,
.markdown-content ol li {
  margin-bottom: 0.8rem;
}

/* 強調 */
.markdown-content strong {
  font-weight: bold;
  color: #222;
}

/* 引用 */
.markdown-content blockquote {
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: #f9f9f9;
  border-left: 4px solid var(--primary);
  font-style: italic;
  color: #555;
}

/* リンク */
.markdown-content a {
  color: var(--primary);
  text-decoration: underline;
}

.markdown-content a:hover {
  color: var(--primary-hover);
}

/* === 自動目次（TOC）のスタイル === */
.toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.toc li {
  margin-bottom: 0.3rem;
}

.toc a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.toc a:hover {
  text-decoration: underline;
}

/* ボタン周り */

.btn-outline-info {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-outline-info:hover {
  background-color: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.btn-info {
  background-color: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  padding-bottom: 0.7rem !important;
  padding-top: 0.7rem !important;
  margin: 0.5rem 1rem !important;
}

.btn-info:hover {
  background-color: var(--primary-hover) !important;
  color: #fff !important;
  border-color: var(--primary-hover) !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  padding-bottom: 0.7rem !important;
  padding-top: 0.7rem !important;
  margin: 0.5rem 1rem !important;
}

.btn-success {
  background-color: var(--secondary) !important;
  color: #fff !important;
  border-color: var(--secondary) !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  padding-bottom: 0.7rem !important;
  padding-top: 0.7rem !important;
  margin: 0.5rem 1rem !important;
}

.btn-success:hover {
  background-color: var(--secondary-hover) !important;
  color: #fff !important;
  border-color: var(--secondary-hover) !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  padding-bottom: 0.7rem !important;
  padding-top: 0.7rem !important;
  margin: 0.5rem 1rem !important;
}

.custom-button {
  font-size: 1.1rem;
  border-radius: 0.1rem !important;
  padding: 0.3rem 2rem !important;
}

/* -- ブログページ用 -- */
.blog-header {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.blog-title {
  font-size: 2.5rem;
  color: #333;
}

.blog-subtitle {
  font-size: 1.25rem;
  color: #6c757d;
}

.blog-date {
  font-size: 0.875rem;
  color: #999;
}

/* -- end -- */

/* アイコンのある列用 */
.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  color: #333;
}

.stat-value .unit {
  font-size: 18px;
  font-weight: normal;
  margin-left: 5px;
}

.notice-card {
  background: #fff;
  /* max-width: 900px; */
  margin: 0 auto;
  font-family: "Arial", sans-serif;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-date {
  background: var(--primary);
  color: #fff;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 3px;
  margin-right: 15px;
  white-space: nowrap;
}

.notice-title {
  flex-grow: 1;
  font-size: 0.95rem;
}

.notice-icon {
  font-size: 1.2rem;
  color: var(--primary);
  margin-left: 10px;
  padding-right: 10px;
}

.notice-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 15px 0;
  border-bottom: 1px solid var(--primary);
  transition: background-color 0.2s ease;
}

.notice-link:hover {
  background-color: var(--primary-bg-light);
  text-decoration: none;
}

/* トップページの新着ブログブロック */

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: var(--primary-bg-light) 0.2s ease;
  border-radius: 8px;
  padding: 1.5rem;
}

.blog-card-link:hover {
  background-color: var(--primary-bg-light);
}

.blog-card {
  align-items: flex-start;
}

.blog-thumb {
  width: 100%;
  max-width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.blog-content {
  flex: 1;
}

.heading-underline {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
}

/* お知らせ・ブログの共通パーツ */
.more {
  text-align: right;
  margin-top: 20px;
}

.more a {
  text-decoration: underline;
  color: #333;
}

.more a:hover {
  color: var(--primary-hover);
}

.heading {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  border: none;
  font-weight: bold;
}

.section-heading {
  font-size: 1.4rem;
  font-weight: bold;
  border-left: 6px solid var(--primary);
  padding-left: 12px;
  margin-bottom: 20px;
}

/* ヒーローセクション */

.btn-outline-pink {
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
}

.btn-outline-pink:hover {
  background-color: var(--primary-hover);
  color: #fff;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-buttons .btn {
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
}

/* 適格基準部分 */
ul.list-unstyled i.bi-dot {
  line-height: 1.2;
}
