/* ベース */
body {
  font-family: "メイリオ", meiryo, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

/* a {
  color: #000;
  text-decoration: none;
} */

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

/* ヘッダー */
#header {
  width: 100%;
  background: #fff;
  text-align: center;
  padding: 10px 0;
}

#siteTitle img {
  max-width: 600px;
  height: auto;
}

/* メニュー */
#mainMenu {
  background-color: #f4f4f4;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center; /* ←中央寄せしている場合 */
  position: relative;
  margin-bottom: 20px; /* ← ここを追加！ */
}

#menuToggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

#menuList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

#menuList li a {
  display: block;
  padding: 8px 12px;
  color: #333;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

#menuList li a:hover {
  background-color: #ddd;
  border-radius: 4px;
}

/* トップ画像 */
#topImageWrap {
  width: 100%;
  overflow: hidden;
}

#topImageWrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* コンテンツ */
#wrap {
  width: 90%;
  max-width: 960px;
  margin: 30px auto;
}

.entry-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333; /* 文字色 */
  padding-bottom: 8px; /* 下に余白 */
  margin-bottom: 24px; /* 下の間隔 */
  border-bottom: 3px solid #333; /* 下線の色と太さ */
  letter-spacing: 0.05em; /* 文字の間隔 */
}

p,
h3,
h2 {
  margin-bottom: 15px;
}

h3 {
  padding: 5px 1rem;
  border-left: 4px solid #000;
}

h2 {
  font-size: 1.25rem;
  color: white;
  padding: 1px 1.5rem;
  border-bottom: 3px solid #ccc;
  background: #666;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  vertical-align: top;
}

/* フッター */
#footerBottom {
  text-align: center;
  padding: 15px 0;
  background-color: #f4f4f4;
  font-size: 0.9rem;
  color: #666;
  margin-top: 40px;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  /* メニュー切替ボタン表示 */
  #menuToggle {
    display: block;
  }

  /* メニュー非表示（初期） */
  #menuList {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #f4f4f4;
    position: absolute;
    top: 48px; /* メニュー高さ分 */
    right: 20px;
    width: 150px;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 1000;
    width: 60vw; /* ビューポート幅の70% */
    max-width: 300px;
  }

  #menuList.show {
    display: flex;
  }

  #menuList li a {
    padding: 10px;
  }

  /* #mainMenu をflex-direction: rowのままにしてボタン右寄せ */
  #mainMenu {
    justify-content: flex-end;
  }

  /* コンテンツ幅狭く */
  #wrap {
    width: 95%;
    margin: 20px auto;
  }

  /* フォントサイズ調整 */
  .entry-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom-width: 2px;
  }
}

@media screen and (min-width: 769px) {
  #topImageWrap img {
    max-width: calc(100% - 80px); /* 左右20pxずつ引いた幅 */
    margin: 0 40px;
    display: block;
  }
}

@media screen and (min-width: 1650px) {
  #topImageWrap img {
    max-width: calc(100% - 800px); /* 左右20pxずつ引いた幅 */
    margin: 0 400px;
    display: block;
  }
}
