/* ハンバーガーメニュー */
.menu-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.menu-icon i {
  font-size: 30px;
  padding: 10px;
  color: #b22222;;
}

.menu-text li{
  display: flex;
}

/* PC用ヘッダー */
.sidebar {
  width: 100%; /* 横幅いっぱいに広げる */
  height: 70px; /* 高さを設定 */
  position: fixed; /* 上部に固定 */
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  z-index: 1000;
  color: #ffffff;
  background-color: #202020;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  display: flex; /* 横並びに配置 */
  justify-content: center;
}

.sidebar ul li {
  padding: 15px 25px;
  border: none; /* 上部ヘッダーとして表示するためボーダーを削除 */
}

.sidebar ul li a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  text-align: center;
  font-size: 16px;
}

.sidebar .menu-text li {
  display: inline; /* リストを横並びにする */
  position: relative;
}

.sidebar .menu-text {
  display: inline-flex; /* 横並びにするためのフレックスボックス */
  justify-content: right; /* 中央揃え */
  padding: 0;
  gap: 1px; /* 項目間のスペース */
}

.sidebar .menu-text li a {
  text-decoration: none; /* 下線を削除 */
}

/* モバイル用ヘッダーとハンバーガーメニュー */
.mobile-header {
  color: #ffffff;
  background-color: #202020;
    padding: 1em;
    text-align: center;
    position: -webkit-sticky; /* Safari用 */
    position: sticky;
    top: 0;
    z-index: 1000;  /* 前面に表示 */
    line-height: 20px;
}

.mobile-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-header h1 {
    font-size: 20px;
    margin: 0;
}

.mobile-menu ul {
    list-style: none;
    background-color: #ffffff;  /* メニューの背景色 */
    padding: em 0;
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 120px;  /* ヘッダーの高さ分だけ下にずらす */
    left: 0;
    width: 100%;
    height: calc(100% - 60px);  /* ヘッダーを除いた部分を全画面表示 */
    z-index: 900;  /* ヘッダーの下に表示されるように調整 */
    margin: 0;  /* 余白をなくす */
    padding: 0; /* 余白をなくす */
}

.mobile-menu ul.show {
    display: flex;
}

.mobile-menu ul li a:hover {
    background-color: #005bb5;
    border-radius: 5px;
}

/* メニュー項目のスタイル */
.mobile-menu ul li {
    display: flex;
    align-items: center;
    justify-content: space-between; /* テキストとアイコンを左右に配置 */
    padding: 20px;
    border-bottom: 1px solid #e0e0e0; /* 項目の下に薄い線を追加 */
    width: 100%;
    line-height: 30px;
}

/* メニュー項目のテキストスタイル */
.mobile-menu ul li a {
    color: #202020;
    font-weight: 900;
    text-decoration: none;
    flex: 1;
}

.circle-play{
    color: #b22222;
    font-size: 20px;
}
  
@media (min-width: 600px) {

  .mobile-header {
    display: none;  /* PCではモバイル用ヘッダーを非表示 */
  }

  .sidebar {
    display: flex;  /* PCではヘッダーを表示 */
  }

  .content {
    margin-left: 0; /* サイドバー用のマージンを無効にする */
  }
  
}

/* スマホ用のメディアクエリ */
@media screen and (max-width: 600px) {

  .logout-container {
    flex-direction: column; /* 小さい画面ではログアウトボタンとユーザー名を縦に並べる */
    align-items: flex-end;
  }

  .pc-menu {
    display: none;
  }

  .content {
    margin-top: 0px; /* ヘッダー分の余白を確保 */
  }

  .mobile-header {
    display: block;
  }

  .sidebar {
    display: none;  /* モバイルではサイドメニューを非表示 */
  }

  .content {
    margin-left: 0;  /* モバイル時にはサイドバー分の余白を無くす */
  }

}
