.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 90%;
  margin-left: auto; /* 左右のマージンを auto に */
  margin-right: auto; /* 左右のマージンを auto に */
  z-index: 1000;
  background-color: #e9e9e9;
  padding: 1em 20px;
  display: flex;
  align-items: center;
  justify-content: center; /* 子要素を中央に配置 */
  border-bottom: 1px solid #c0c0c0;
}

.top-bar .site-title {
  font-size: 2em;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  /* 中央に配置するためのスタイル */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.top-bar .site-title a {
  font-size: 2em; /* サイズを調整 */
  font-weight: normal; /* Bebas Neue はもともと太めなので normal で */
  font-family: 'Bebas Neue', sans-serif; /* Bebas Neue を指定 */
  letter-spacing: 0.03em; /* 必要に応じて文字間を調整 */
  text-transform: uppercase; /* 全て大文字にするのもロゴっぽいです */
  color: #1d1d1d;
  text-decoration: none; /* 下線を非表示 */
  cursor: default; /* マウスオーバー時のカーソルをデフォルトに戻す */
}

.top-bar nav {
  margin-left: auto; /* ナビゲーションを右端に配置 */
}

.top-bar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.top-bar nav ul li {
  margin-left: 20px;
}

.top-bar nav ul li:first-child {
  margin-left: 0;
}

.top-bar nav ul li a {
  color: #1d1d1d;
  text-decoration: none;
  padding: 0.5em 1em;
  font-family: 'Smooch Sans', cursive; /* Smooch Sans を指定 */
  font-size: 1.3em; /* フォントサイズを 1.2em に設定 (調整してください) */
}

.top-bar nav ul li a:hover {
  background-color: #f7cbcb;
}

/* レスポンシブ対応 (例: 768px 以下でメニューを折りたたむ) */
@media (max-width: 768px) {
/* サイトタイトルは中央寄せを維持 */
.top-bar .site-title {
  position: static;
  left: auto;
  transform: none;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  } 

  .top-bar nav ul {
    list-style: none;
    display: flex; /* Flexbox を使用して縦並びにする */
    flex-direction: column;
    align-items: flex-end; /* 右寄せ */
  }

  .top-bar nav ul li {
    margin-bottom: 0px; /* 各メニュー項目の下の余白 */
  }

  /* メニュー項目のフォントサイズを小さくする */
  .top-bar nav ul li a {
    font-size: 1em; /* サイズを調整 */
    
    display: block; /* リンク全体をクリック可能にする */
    line-height: 0.2; /* 行間を少し狭める */
    
  }

}


body {
  padding-top: 3em; /* トップバーの高さに合わせて調整 */
  padding-left: 5%; /* 左側のパディング */
  padding-right: 5%; /* 右側のパディング */
  margin: 0; /* デフォルトのマージンをリセット */
  background-color: #e9e9e9; /*  */
}

/* レスポンシブ対応 (例: 768px 以下でメニューを折りたたむ) */
@media (max-width: 768px) {
  body {
    padding-top: 5em; /* トップバーの高さに合わせて調整 */
    padding-left: 5%; /* 左側のパディング */
    padding-right: 5%; /* 右側のパディング */
    margin: 0; /* デフォルトのマージンをリセット */
    background-color: #e9e9e9; /*  */
  }
  }


  


.profile-intro {
    text-align: center;
    padding: 2em 0;
    margin-bottom: 2em;
  }
  
  .portfolio-projects h2 {
    text-align: center;
    margin-bottom: 1.5em;
  }
  
  .project-list-index {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* プロジェクトが並ぶレイアウト */
    gap: 20px;
  }
  
  .project-card-index {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
  }
  
  .project-link-image-index {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 の縦横比 */
    overflow: hidden;
    position: relative;
  }
  
  .project-link-image-index img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
  }
  
  .project-link-image-index:hover img {
    opacity: 0.8;
  }
  
  .project-info {
    padding: 1em;
    text-align: center;
  }
  
  .project-info h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.2em;
  }
  
  .project-info h3 a { /* タイトルをリンクにする */
    text-decoration: none;
    color: inherit;
  }
  
  .project-date {
    display: block;
    font-size: 0.8em;
    color: #777;
    margin-bottom: 0.5em;
  }
  
  .project-excerpt {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 0;
  }
  
  /* 画面幅が 600px 以上の場合に 2 列表示 */
  @media (min-width: 600px) {
    .project-list-index {
      grid-template-columns: repeat(2, 1fr); /* 2列表示 */
    }
  }

  .post-content {
    line-height: 1.7;
    font-size: 1em;
    color: #333;
    font-family: 'Sawarabi Gothic', sans-serif; /* さわらびゴシックを指定 */
    /* 以前の font-family の指定があれば削除またはコメントアウトしてください */
    letter-spacing: 0.em; /* 必要に応じて文字間を調整 */
  }
  
  .social-links a {
    font-size: 1em; /* サイズを調整 */
    font-weight: normal; /* Bebas Neue はもともと太めなので normal で */
    font-family: 'Bebas Neue', sans-serif; /* Bebas Neue を指定 */
    letter-spacing: 0.0em; /* 必要に応じて文字間を調整 */
    text-transform: uppercase; /* 全て大文字にするのもロゴっぽいです */
    color: #1d1d1d;
    text-decoration: none; /* 下線を非表示 */    
  }