body {
  font-family: sans-serif;
  background-color: #fff; /* 白ベースのまま */
  padding: 50px;
  margin: 0;
  color: #4a4a4a;
  line-height: 1.8;
  text-align: left;
  background-image: linear-gradient(135deg, #ffcccc 25%, #ffffff 75%);
  /* 淡いブルーのグラデで白を活かす */
}

/* 強制的に横並びにする（競合を潰す） */
nav ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: visible;
}

nav ul li {
  flex: 0 0 auto;
  margin: 0;
}

nav ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  min-width: 140px;
  background-color: #ffffff;
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #e0e8f0;
  border-radius: 6px;
  white-space: nowrap;
  transition: all .2s ease;
}

nav ul li a:hover {
  background-color: #0077cc;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,119,204,0.3);
}

nav {
  overflow-x: auto; /* 横幅オーバー時にスクロール */
  background: #f8fbff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}



h1 {
  color: #2f3d60; /* 落ち着いたネイビー寄り */
  font-size: 2.5em;
}

footer {
  margin-top: 50px;
  font-size: 0.8em;
  color: #999;
}

.highlight1 {
  background-color: #fff7e6; /* 淡いクリーム */
  color: #d9822b;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-weight: bold;
}

.highlight2 {
  border-bottom: 2px solid #7a9ee6; /* 淡い水色 */
  font-weight: bold;
  color: #2f3d60;
}

.highlight3 {
  background: linear-gradient(to right, #fffad1, #ffda5a); /* 柔らかい黄色グラデ */
  padding: 0.2em 0.5em;
  border-radius: 4px;
  color: #222;
  font-weight: bold;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

/* スマホ等狭い画面では2段に折り返す */
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap; /* 折り返し許可 */
    justify-content: center;
  }

  nav ul li a {
    flex: 1 1 calc(50% - 12px); /* だいたい2列に収まる幅 */
    min-width: 0;
    box-sizing: border-box;
  }
}
