body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
  }
  header {
    background: #0074D9;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .site-title {
    font-size: 1.2rem;
  }


  /* nav-bar,nav-linkと競合してしまうのでこれを全部一旦破棄。
  内容が被っていて、混乱する原因
  nav {
    display: flex;
    flex-direction: row;
    background: #0074D9;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
  }
  nav a {
    background: #0074D9;
    color: white;
    padding: 1rem;
    text-decoration: none;
    border-top: 1px solid #005fa3;
  } */

/* 共通ナビゲーションバー(ナビゲーションバー全体)
スマホサイズでは非表示、PCサイズでは表示 */
.nav-bar {
    background: #0074D9;
    display: none; /* スマホサイズでは非表示 */
    justify-content: space-around;
    align-items: center;
  }
  
/*ナビゲーションリンク(ナビゲーションバー個々)*/
  .nav-link {
    background: #0074D9;
    padding: 0.75rem 1rem;
    display: flex;
    white-space: nowrap;
    color: white;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    justify-content:center;
    align-items: center;
    flex: 1;
    /* width: 100%; */
    text-align: center;
  }



  .hamburger {
    font-size: 1.5rem;
    cursor: pointer;
  }
  .hero {
    padding: 2rem;
    text-align: center;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    margin: 1rem 0;
  }
  .cta-button {
    background: #0074D9;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
  }
  .features {
    padding: 2rem;
    background: #fff;/*色が交互になる原因*/
  }
  .features h2 {
    text-align: center;
  }
  .feature-list {
    max-width: 600px;
    margin: auto;
    list-style: none;
    padding: 0;
  }
  .feature-list li {
    margin: 1rem 0;
  }
  footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    background: #eee;
    color: #555;
  }
  .profile {
    padding: 2rem;
    text-align: center;
  }

  .profile-list {
    max-width: 600px;
    margin: auto;
    list-style: none;
    padding: 0;
  }

  
  /* スマホサイズ時はハンバーガー表示 */
  .hamburger {
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
  }
  
  /* ハンバーガーメニューとして開いたときの表示 */
  .nav-bar.open {
    display: flex;
    flex-direction: column;
    background: #0074D9;
    position: absolute;
    top: 60px;
    left: 0;
    width: 200px;
    z-index: 1000;
  }
  
  /* PCサイズでは常に表示（ハンバーガーは非表示） */
  @media (min-width: 600px) {
    .nav-bar {
      display: flex !important;
      position: static;
      background: none;
    }
  
    .hamburger {
      display: none;
    }
  
    .nav-link {
        padding: 0.75rem 1rem;
        display: block;
        white-space: nowrap; /* ←これ！ */
        color: white;
        text-decoration: none;
      }
  }

.explanation-link {
  display: inline-block;
  margin-top: 1rem;
  background: #fff;
  color: #0074D9;
  border: 2px solid #0074D9;
  border-radius: 5px;
  padding: 0.75rem 2rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.explanation-link:hover {
  background: #0074D9;
  color: #fff;
}