@font-face {
    font-family: 'hamiltone';
    src: url('/fonts/Hamiltone-Demo.woff2') format('woff2'),
         url('/fonts/Hamiltone-Demo.woff') format('woff'),
         url('/fonts/Hamiltone-Demo.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }
  .hamiltone {
    font-family: 'hamiltone';
  }
  
  .nav-bar{
    background-color: #D6D7D2;
  }

  figure.blog-image {
    margin: 2rem 0;
    text-align: center;
  }
  
  figure.blog-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  }
  
  .image-caption {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
  }

  /* タブデザイン */
.nav-tabs .nav-link {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    margin: 5px;
    padding: 10px 15px;
  }
  
  .nav-tabs .nav-link.active {
    background: white;
    color: black;
  }

/* 各カードの高さを統一する */
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .blog-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
  }
  
  /* タイトルや本文の表示制限 */
  .blog-card .card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* 表示行数を調整 */
    -webkit-box-orient: vertical;
  }
  
  /* タグを複数個並べる */
  .blog-tags {
    margin-bottom: 0.75rem;
  }
  .blog-tag {
    display: inline-block;
    background-color: #f1f1f1;
    color: #444;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
  }
  .blog-tag.Entrepreneur {
    background-color: #ffcdcd;
    color: #a40000;
  }
  .blog-tag.Educator {
    background-color: #cce5ff;
    color: #004085;
  }
  .blog-tag.Researcher {
    background-color: #d4edda;
    color: #155724;
  }
  .blog-tag.Medical-Student {
    background-color: #fff3cd;
    color: #856404;
  }
  .blog-tag.Programmer {
    background-color: #e2e3e5;
    color: #383d41;
  }
  
  /* hover 効果 */
  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }
  
  /* リンクを全体でクリック可能に */
  .blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
  }

  /* 日付フィルター全体の見た目 */
.date-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    padding: 1rem;
  }
  
  /* 入力欄の見た目 */
  .date-filter input[type="date"] {
    padding: 6px 10px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
  }
  
  /* フィルターボタンの見た目 */
  .date-filter button {
    padding: 6px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    border: none;
    background-color: #333;
    color: white;
    transition: background-color 0.3s ease;
  }
  
  .date-filter button:hover {
    background-color: #555;
  }

  .gradient-background-identity {
    background: linear-gradient(135deg, #9fe6e6, #c0f5d8); /* 任意のグラデーション色 */
    min-height: 140vh; /* 画面の高さにフィット */
    padding-top: 50px;
    padding-bottom: 80px;
  }

  /* 全体レイアウト */
body {
    font-family: 'Old Standard TT', serif;
    background-color: #f4f4f7;
    margin: 0;
    padding: 0;
    color: #2c2c2c;
    line-height: 1.8;
  }
  
  /* コンテナ */
  .blog-container {
    max-width: 740px;
    margin: 4rem auto;
    padding: 2.5rem 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
  }
  
  .blog-container:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  }
  
  /* タイトル */
  .blog-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #1e1e1e;
    position: relative;
  }
  
  .blog-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007BFF;
    margin-top: 12px;
    border-radius: 2px;
  }
  
  /* 日付 */
  .blog-date {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 1.5rem;
  }
  
  /* メイン画像 */
  .blog-main-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem 0;
  }
  
  /* 本文 */
  .blog-content {
    font-size: 1.125rem;
    color: #333;
  }
  
  .blog-content p {
    margin-bottom: 1.5rem;
  }
  
  .blog-content a {
    color: #007BFF;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 123, 255, 0.3);
    transition: all 0.2s ease;
  }
  
  .blog-content a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
  }
  
  /* 見出し */
  .blog-content h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    border-left: 4px solid #007BFF;
    padding-left: 12px;
  }
  
  .blog-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #2b2b2b;
  }
  
  /* 引用 */
  .blog-content blockquote {
    font-style: italic;
    color: #555;
    border-left: 4px solid #ddd;
    padding-left: 1.25rem;
    margin: 2rem 0;
  }
  
  /* 本文中の画像 */
  .blog-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  .blog-layout {
    display: flex;
    justify-content: flex-start;  /* 中央ではなく、左詰に */
    gap: 40px; /* 目次と本文の余白を調整（狭める） */
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }

  .toc-container {
    flex-shrink: 0;
    width: 240px;
    font-size: 0.9rem;
    max-height: 80vh;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
  }
  
  .main-content {
    flex: 1;
    max-width: 860px;  /* 幅を広げる（元は740px） */
    min-width: 0;
  }
  .toc-container h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .toc-container ul {
    list-style: none;
    padding-left: 0;
  }
  
  .toc-container li {
    margin-bottom: 0.5rem;
  }
  
  .toc-container a {
    text-decoration: none;
    color: #007BFF;
  }
  
  .toc-container a:hover {
    text-decoration: underline;
  }
  

  pre {
    background-color: #f8f8f8;
    border-left: 4px solid #C4D3DB;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    margin: 1.5rem 0;
  }

  code {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    color: #333;
  }

  @media (max-width: 768px) {
    .toc-container {
      display: none;
    }
  }