/* ヘッダー */
header {
  width: 100%;
  margin: 0;
  padding: 10px 20px;
  background-color: #333333;
  color: #fff;
  position: relative;
  justify-content: space-between;
  z-index: 100;
}

.c-header {
  background-color: #333333;
  box-sizing: border-box;
  display: flex;
  color: #ffffff;
  cursor: pointer;
  width: 100%;
  margin: 0;
  padding: 10px 20px;
  justify-content: flex-end;
  z-index: 100;
}

.c-header__list {
  display: flex;
  margin-left: auto;
  padding: 0;
}

.c-header__list-item {
  list-style: none;
}

.c-header__list-link {
  color: #fff;
  margin-right: 20px;
  text-decoration: none;
  padding: 10px 0px;
  font-weight: bold;
}

.c-header__list-link:hover {
  opacity: 0.6;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 5px;
}

.c-hamburger-menu__input {
  display: none;
}

.c-hamburger-menu__bg {
  background-color: #000000;
  cursor: pointer;
  display: none;
  left: 0;
  opacity: 0.4;
  top: 0;
  width: 0;
  z-index: -1;
}

.c-hamburger-menu__button {
  display: none;
}

@media (max-width: 768px) {
  .c-header__list {
    display: none;
  }

  .c-header__list-link {
    margin-right: 0px;
  }

  .c-hamburger-menu__button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    cursor: pointer;
    z-index: 101;
    margin-left: auto;
  }

  .c-hamburger-menu__button-mark {
    background-color: #ffffff;
    height: 2px;
    width: 20px;
    transition: 0.3s;
  }

  .c-hamburger-menu__bg {
    display: none;
  }

  /* チェックボックスがONのときのスタイル */
  /* ハンバーガーメニューのオーバーレイ */
  #hamburger:checked ~ .c-hamburger-menu__bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    transition: background-color 0.3s ease;
  }

  .c-hamburger-menu__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-40%);
    background-color: #333333;
    padding: 20px 0;
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
  }
  /* メニューが開いたときの表示 */
  #hamburger:checked ~ .c-hamburger-menu__list {
    opacity: 1;
  }

  /* 個々のメニュー項目のスタイル */
  .c-hamburger-menu__list-item {
    width: 80%;
    margin: 20px 0;
    padding: 12px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #444444;
    border: 2px solid #007bff;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    padding-left: 20px;
  }

  .c-hamburger-menu__list-item:hover {
    background-color: #007bff;
  }
}
