@charset "UTF-8";

/* =========================
   hamburger button
========================= */
.hamburger {
  display: none;
}

/* =========================
   SP only
========================= */
@media (max-width: 770px) {

  /* button */
  .hamburger {
    display: block;
    position: fixed;
    z-index: 1000;
    right: 15px;
    top: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  .hamburger span {
    position: absolute;
    left: 0;
    width: 40px;
    height: 3px;
    background: #000;
    transition: 0.4s;
  }

  .hamburger span:nth-child(1) {
    top: 10px;
  }

  .hamburger span:nth-child(2) {
    top: 20px;
  }

  .hamburger span:nth-child(3) {
    top: 30px;
  }

  /* X animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg);
    top: 18px;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg);
    top: 18px;
  }

  /* =========================
     menu (重要)
  ========================= */
  .menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 9999;
    transition: 0.3s;
  }

  .menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* ハンバーガー */
  .hamburger {
    position: fixed;
    z-index: 10000;
  }

  /* 画像が上に来るのを防ぐ */
  .picture {
    position: relative;
    z-index: 1;
  }