@charset "utf-8";
/* CSS Document */

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
ヘッダー
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

header#glo_header {
  position: relative;
  z-index: 1000;
  margin: 7.8rem auto 0;
  width: 100%;
  max-width: 99.6rem;
  padding: 3rem 4rem;
  height: 5.6rem;
  top: 4rem;
  position: sticky;
  /* general.cssの#page_wrapのpadding-topと連動 */
  border-radius: 9999px;

  @media screen and (max-width: 480px) {
    top: 0;
    position: fixed;
    border-radius: 0;
    height: 6.4rem;
    margin: 0;
    padding: 0 1.7rem;
    box-sizing: border-box;
  }

  .header_inner {
    position: relative;
    height: 100%;
    box-sizing: border-box;
    @media screen and (max-width: 480px) {
      padding-top: 1.8rem;
    }
    .header_logo {
      z-index: 1020;
      position: relative;
      width: 28rem;
      transition: all 0.2s;
      @media screen and (max-width: 480px) {
        width: 12.4rem;
      }
      a {
        display: block;
      }
    }

    /* ハンバーガーボタン */

    .header_nav_wrap {
      .menu_btn {
        position: absolute;
        z-index: 20000;
        width: 5.6rem;
        height: 5.6rem;
        border: none;
        right: 0;
        top: 0;
        box-sizing: border-box;
        transition: all 0.2s;
        background: transparent;
        padding: 0;
        &:focus {
          /*ボタンクリック時の枠線消し*/
          outline: 0;
        }

        span.bar {
          transform-origin: center;
          display: block;
          height: 2px;
          background-color: #000;
          transition: all 0.2s;
          margin: 1.1rem 0;
        }

        &.open {
          .bar1 {
            transform: rotate(45deg);
          }

          .bar2 {
            opacity: 0;
          }

          .bar3 {
            transform: rotate(-45deg);
            margin-top: -2.4rem;
          }
        }
        @media screen and (max-width: 480px) {
          width: 3.8rem;
          height: 3.8rem;
          top: 1.3rem;
          span.bar {
            height: 1px;
            margin: 0.8rem 0;
          }
          &.open {
            .bar3 {
              margin-top: -1.8rem;
            }
          }
        }
      }

      /* メニュー */

      .glo_menu_wrap {
        height: 100vh;
        height: 100dvh;
        padding-top: 4.8rem;
        box-sizing: border-box;
        overflow-y: auto;
        top: 0;
        left: 0;
        position: fixed;
        background-color: var(--color_top_blown);
        z-index: 1010;
        transition: 0.3s;
        width: 100vw;
        display: none;
        @media screen and (max-width: 480px) {
          height: auto;
        }
        .inner {
          width: 48rem;
          margin: 14rem auto 0;
          @media screen and (max-width: 480px) {
            margin: 3.8rem auto 0;
            width: 100%;
          }
          ul {
            margin: auto;
            @media screen and (max-width: 480px) {
              max-width: 30rem;
            }
            li {
              border-bottom: 1px solid #000;

              &:last-child {
                border-bottom: none;
              }
              a {
                display: block;
                padding: 3rem 0;
                transition: 0.2s;
                color: #000;
                text-decoration: none;
                @media screen and (max-width: 480px) {
                  padding: 2.6rem 0;
                }
                &:hover {
                  opacity: 0.8;
                }
                .img-text {
                  height: 4rem;
                  @media screen and (max-width: 480px) {
                    height: 2.5rem;
                  }
                }
                .instagram {
                  height: 6rem;
                  @media screen and (max-width: 480px) {
                    height: 3.8rem;
                  }
                }
                span {
                  font-size: 1.4rem;
                  letter-spacing: 0.05em;
                  font-weight: 700;
                  display: inline-block;
                  margin-top: 1.3em;
                  @media screen and (max-width: 480px) {
                    font-size: 1rem;
                  }
                }
                img {
                  height: 100%;
                  width: auto;
                }
              }
            }
          }

          a.otoiawase {
            display: block;
            background-color: #000;
            color: var(--color_top_blown);
            padding: 2.8rem 0;
            text-align: center;
            text-decoration: none;
            margin-top: 3rem;
            span {
              display: inline-block;
              font-size: 2rem;
              letter-spacing: 0.18em;
              padding-left: 0.18em;
            }
          }
        }

        &.open {
          display: block;
          animation: manufadein 0.1s ease-in;
        }
      }
    }
  }

  &.on {
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.15);
    @media screen and (min-width: 481px) {
      .header_inner {
        .header_nav_wrap {
          .glo_menu_wrap {
            .inner {
              margin: 6rem auto 0;
            }
          }
        }
      }
    }
  }

  @media screen and (min-width: 481px) {
    &.on {
      height: 3.8rem;
      padding: 1.7rem 3rem;
      box-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.15);
      .header_inner {
        .header_logo {
          width: 16rem;
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
        }
        .header_nav_wrap {
          .menu_btn {
            width: 3.8rem;
            height: 3.8rem;
            span.bar {
              height: 1px;
              margin: 0.8rem 0;
            }
            &.open {
              .bar3 {
                margin-top: -1.8rem;
              }
            }
          }
        }
      }
    }
  }
}
@keyframes manufadein {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
