/* 全体のスタイル */
body {
  margin: 0;
  padding: 20px;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  display: flex;
  justify-content: center;
}

.main-container {
  width: 100%;
  max-width: 1000px;
}

.main-img {
  border: 1px solid #333; /* 2pxの太さで少しグレーに近い黒 */
  max-width: 100%;  /* 親要素の幅を超えないようにする */
  height: auto;     /* 縦横比を維持する */
  display: block;   /* 下に余計な隙間が出るのを防ぐ */
  margin: 0 auto;   /* 中央寄せ（必要であれば） */
}

/* --- ナビゲーションのスタイル --- */
.nav-container {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #000;
  border-left: 1px solid #000; /* 左端の線 */
  margin-bottom: 10px;
  background-color: #fff;
}

.nav-item {
  flex: 1;
  min-width: 80px; /* 3つ並ぶと 80*3=240px でスマホ幅に収まり折り返されます */
  text-align: center;
  text-decoration: none;
  color: #000;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 5px;
  
  /* 下と右に線を引くことで、折り返されても格子状になります */
  border-right: 1px solid #000;
  border-bottom: 1px solid #000; 
  
  box-sizing: border-box; /* ボーダー分で横幅がズレるのを防ぐ */
  transition: all 0.3s ease;
}

/* 最後の項目の右線消去は、PC1行表示の時のみ有効にするため一旦コメントアウト */
/* .nav-item:last-child { border-right: none; } */

.nav-item:hover {
  background-color: #000;
  color: #fff;
}

/* コンテンツエリア */
.content-wrapper {
  gap: 30px;
  margin-top: 20px;
}

.left-content { width: 345px; flex-shrink: 0; }
.right-content { flex: 1; }

.news-header {
  background-color: #DCD4D4;
  padding: 8px;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 1px solid #000;
}

.news-box {
  border: 1px solid #ccc; /* ②に合わせて黒からグレーに変更 */
  margin-bottom: 20px;

}

.info-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.info-table td {
  padding: 8px;
  border-bottom: 1px dotted #ccc;
}

@media (max-width: 768px) {
  .content-wrapper { flex-direction: column; }
  .left-content { width: 100%; text-align: center; }
}