@charset "utf-8";

.header {
  position: relative;

  .w1536 {
    max-width: 1536px;
    width: 90%;
    margin: 0 auto;
    padding: 38rem 0 16rem;

    @media (max-width: 1023px) {
      padding: 16rem 0;
    }

    .h_logo {
      max-width: 400rem;
      width: 80%;
      display: block;
      transition: filter .4s ease;

      @media (max-width: 1023px) {
        max-width: 179rem;
        width: 100%;
      }
    }

    .h_logo:hover {
      filter: opacity(80%);
      transition: filter .4s ease;

    }
  }

  .fixed-menu {
    position: fixed;
    right: 0;
    top: 0;
    width: 100px;
    z-index: 100;

    .navi {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 100px;
      transition: filter .4s ease;

      p {
        font-family: var(--font-main);
        font-weight: 500;
        font-size: 12px;
        text-align: center;
        color: #fff;
      }
    }

    .navi:hover {
      filter: opacity(60%);
      transition: filter .4s ease;
      cursor: pointer;
    }

    .menu-open {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background-color: #0368B4;


    }

    .menu-open .bar {
      width: 40px;
      height: 2px;
      border-radius: 999px;
      background-color: #FFF;
      margin: 6px 0;
      transition: all 0.35s ease;
      transform-origin: center;
    }

    .menu-open .menu-text {
      position: relative;
    }

    .menu-open .menu-text::before {
      content: "メニュー";
      font-family: var(--font-main);
      font-weight: 500;
      font-size: 12px;
      text-align: center;
      color: #fff;
    }

    .menu-open.active .bar:nth-child(1) {
      transform: translateY(13px) translateX(-4px) rotate(32deg);
    }

    .menu-open.active .bar:nth-child(2) {
      opacity: 0;
    }

    .menu-open.active .bar:nth-child(3) {
      transform: translateY(-13px) translateX(-4px) rotate(-32deg);
    }



    .tel-btn {
      background-color: #01A0EA;
      gap: 8px;

      .img-wrap {
        img {
          margin: 0 auto;
        }
      }
    }

    .line-btn {
      background-color: #03C755;
      gap: 8px;

      .img-wrap {
        img {
          margin: 0 auto;
        }
      }
    }

    @media (max-width: 1023px) {
      display: flex;
      flex-direction: row-reverse;
      height: 56px;
      width: auto;

      .navi {
        height: 56px;
        width: 56px;
        gap: 0;

        p {
          font-size: 10px;
        }
      }

      .line-btn {
        img {
          width: 24px;
        }
      }

      .tel-btn {
        gap: 4px;

        img {
          width: 16px;
          height: auto;
        }

        p {
          display: none;
        }
      }

      .tel-btn::after {
        content: "TEL";
        display: inline-block;
        font-family: var(--font-main);
        font-weight: bold;
        font-size: 10px;
        text-align: center;
        color: #fff;
      }

      .menu-open .bar {
        width: 24px;
        margin: 3px 0;
      }

      .menu-open .menu-text::before {
        font-size: 10px;
      }

      .menu-open.active .bar:nth-child(1) {
        transform: translateY(6px) translateX(0) rotate(25deg);
      }

      .menu-open.active .bar:nth-child(3) {
        transform: translateY(-10px) translateX(0) rotate(-25deg);
      }
    }
  }

  .menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 360px;
    height: auto;
    background: #0368B4;
    transition: right 0.5s ease;
    z-index: 90;
    padding: 80px 0 120px;

    @media (max-width: 1023px) {
      width: 100%;
      padding: 80rem 0 144rem;
    }

    .menu-list {
      display: flex;
      flex-direction: column;
      gap: 40px;
      width: 80%;
      margin: 0 auto;

      @media (max-width: 1023px) {
        gap: 40rem;
      }

      .menu-item {
        .parent-text {
          font-family: var(--font-en);
          font-weight: 600;
          font-size: max(14px, 16rem);
          letter-spacing: 0.08em;
          line-height: calc((38 / 16) * 1em);
          text-align: left;
          color: #01a0ea;

          @media (max-width: 1023px) {
            font-size: 16rem;
            line-height: 38rem;
          }
        }

        .child-text {
          font-family: var(--font-main);
          font-weight: 600;
          font-size: max(14px, 14rem);
          letter-spacing: 0.08em;
          line-height: calc((32 / 14) * 1em);
          text-align: left;
          color: #fff;

          @media (max-width: 1023px) {
            font-size: 14rem;
            line-height: 32rem;
          }
        }

        a {
          transition: filter .4s ease;
        }

        a:hover {
          filter: opacity(60%);
          transition: filter .4s ease;
          text-decoration: none;
        }
      }
    }
  }

  .menu-panel.open {
    right: 100px;
    overflow-y: scroll;
    height: 100vh;
  }

  @media (max-width: 1023px) {
    .menu-panel.open {
      right: 0;
    }
  }

  .menu-open.active .menu-text::before {
    content: "閉じる";
  }
}

.gjs-dashed {
  .menu-panel {
    right: 0 !important;
    overflow-y: scroll!important;
    height: 100vh!important;
  }
}