/* --- 共通スタイル --- */
.navititle {
  flex-shrink: 0;
  margin-right: 29vw;
  white-space: nowrap;
  font-size: 1.2vw;
  color: white;
  display: flex;
  align-items: center;
  padding: 0.3vw 1vw;
}

.navigation_bar {
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar {
  background-color: black;
  /* background-image: linear-gradient(180deg, #52525f 0%, #000000 100%); */
}
/* ナビゲーションバーの上下左右余白0 */
nav.navbar {
  margin: 0;
  padding: 0;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
}

.navbar ul li {
  flex: 1;
  text-align: center;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.2vw;
  padding: 0.6vw 1vw;
  display: block;
  transition: color 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
  white-space: nowrap; /* テキストの改行を防止 */
}

/* 最後にクリックされたリンクのスタイル */
.navbar ul li a.active {
  color: rgba(0, 0, 0, 0.616);
  background-color: #fcffff;
  background-image: linear-gradient(180deg, #fcffff 0%, #78787c 100%);
  /* border-top-left-radius: 120px;
  border-top-right-radius: 120px; */
}

/* ホバー選択時のスタイル */
.navbar ul li a:hover {
  color: rgba(0, 0, 0, 0.8);
  background-color: #d1d5db; /* ホバー時の背景色 */
  /* border-top-left-radius: 120px;
  border-top-right-radius: 120px; */
}

/* hambarger_menu */
  .hamburger_menu{
    display: none;
  }

/* --- モバイルスタイル --- */
@media (max-width: 650px) {
  .navigation_bar{
    position: fixed; /* 固定 */
    top: 0;          /* 上端に配置 */
    left: 0;         /* 左端に配置 */
    padding: 0;
    width: 100%;     /* 全幅に広げる */
    z-index: 1000;   /* 他の要素の上に表示 */
  }

  .navititle {
    font-size: 14px;
    margin: 0px 0px 0px 8px;
  }

  nav.navbar {
    margin: 0;
    padding: 8px 0px;
  }

  .navbar ul {
    display: block;
  }

  .navbar ul li a {
    font-size: 12px;
    padding: 7px;
  }

  /* 選択時のホバーの色　*/
  .navbar ul li a.active{
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  
  .hamburger_menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 50pxでないとなぜかスマホで丁度いい感じに表示される。　のでPC版のデベロッパツールだと
    　　少しキモく表示されているが無視。追記なんかちゃんと反映されているので35pxに*/
    width: 35px;
    height: 19px;
    margin: 5px 10px 10px 10px;
    padding-top: 5px;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: auto;
    /* スマホで見るとなぜか消えるので下記追加。 */
    z-index: 2000; /* 他の要素より前面に配置 */
  }

  .hamburger_menu span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .menu {
    display: none; /* 初期状態で非表示 */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #52525f;
  }

  .menu.active {
    display: block; /* 表示切替 */
  }

  .menu li {
    text-align: center;
    padding: 0;
  }

  .menu li a {
    font-size: 1.5rem;
  }
}
