/* ===== ハンバーガーメニュー（スマホ専用） ===== */
@media screen and (max-width: 900px) {

  #menu-toggle {
    display: none;
  }

  /* ボタン */
  #overlay-button {
    position: fixed;
    right: 0.5em;
    top: 3.5em;
    z-index: 200;
    padding: 10px;
    cursor: pointer;
  }

  #overlay-button span,
  #overlay-button span::before,
  #overlay-button span::after {
    display: block;
    width: 32px;
    height: 3px;
    background: #ff0000;
    transition: all 0.25s ease;
    content: "";
  }

  #overlay-button span {
    position: relative;
  }

  #overlay-button span::before {
    position: absolute;
    top: -10px;
  }

  #overlay-button span::after {
    position: absolute;
    top: 10px;
  }

  /* ×アニメーション */
  #menu-toggle:checked + #overlay-button span {
    background: transparent;
  }

  #menu-toggle:checked + #overlay-button span::before {
    transform: rotate(45deg) translate(7px, 7px);
  }

  #menu-toggle:checked + #overlay-button span::after {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* オーバーレイ */
  #overlay {
    position: fixed;
    inset: 0;
    background: black;
    visibility: hidden;
    z-index: 150;
  }

  #menu-toggle:checked ~ #overlay {
    visibility: visible;
  }

  #overlay ul {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #overlay ul li {
    margin: 1em 0;
  }

  #overlay ul li a {
    font-size: 1.5rem;
    color: red;
    text-decoration: none;
  }

  #overlay ul li a:hover {
    color: #8b0000;
  }

}
@media screen and (max-width: 900px) {
  .menu {
    display: none;
  }
}

@media screen and (min-width: 901px) {
  #overlay,
  #overlay-button {
    display: none;
  }
}

/* PCのみ表示 */
.pc-only {
  display: block;
}

/* スマホでは非表示 */
.sp-only {
  display: none;
}

@media screen and (max-width: 900px) {

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

}
@media screen and (min-width: 901px) {

  #menu-toggle,
  #overlay-button,
  #overlay {
    display: none;
  }

}

