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

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

header {
  &#glo_header {
    position: relative;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    padding: 3.8rem 5.8rem 2.8rem;
    @media screen and (max-width: 1024px) {
      padding: 2rem 3rem;
    }
    @media screen and (max-width: 480px) {
      padding: 2.4rem 0 0;
      top: 0;
      left: 0;
      /* general.cssの#page_wrapのpadding-topと連動 */
      height: 7.1rem;
    }
    .header_inner {
      display: flex;
      align-items: center;
      gap: 12rem;
      @media screen and (max-width: 1024px) {
        gap: 4rem;
      }
      @media screen and (max-width: 480px) {
        display: block;
      }
      /* ロゴ */
      .header_logo {
        width: 15rem;
        flex-shrink: 0;
        @media screen and (max-width: 480px) {
          margin: auto;
        }
      }

      /* ハンバーガーボタン */
      .menu_btn {
        display: none;
        @media screen and (max-width: 480px) {
          position: fixed;
          z-index: 20000;
          width: 4.3rem;
          height: 4.3rem;
          border: 0.3rem solid #fff;
          border-radius: 12px;
          background-color: var(--color-deep-blue);
          right: 1.4rem;
          top: 1.4rem;
          padding: 0.7rem 1rem;
          box-sizing: border-box;
          display: block;

          &:focus {
            /*ボタンクリック時の枠線消し*/
            outline: 0;
          }

          span.bar {
            transform-origin: center;
            display: block;
            height: 0.2rem;
            background-color: #fff;
            transition: all 0.2s;
            margin: 0.4rem 0;
            border-radius: 0.1rem;
          }

          &.open {
            .bar {
              background-color: #fff;
            }

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

            .bar2 {
              opacity: 0;
            }

            .bar3 {
              transform: rotate(-45deg);
              margin-top: -1.2rem;
            }
          }
        }
      }
      /*--------------------*/
      /* ナビゲーション */
      .header_nav_wrap {
        @media screen and (max-width: 480px) {
          position: fixed;
          top: 0;
          left: 0;
          display: none;
          width: 100vw;
          height: 100vh;
          height: 100dvh;
          overflow: scroll;
          &.open {
            display: block;
            animation: manufadein 0.3s ease-in;
            background-color: #e9e0c7;
          }
        }
        /* メニュー */
        .glo_menu_wrap {
          @media screen and (max-width: 480px) {
            background-image: url(../img/common/sp_header_menu_bg.webp);
            background-repeat: no-repeat;
            background-size: 100% auto;
            overflow: scroll;
            padding: 22rem 1.9rem 3.8rem;
          }
          .glo_menu {
            @media screen and (min-width: 481px) {
              display: flex;
              margin: auto;
              gap: 4.2rem;
              @media screen and (max-width: 1024px) {
                gap: 2rem;
              }
              .menu_item {
                a {
                  display: block;
                  padding: 0 0 0.8rem 1.6rem;
                  position: relative;
                  &::before {
                    content: "";
                    display: block;
                    width: 0.5rem;
                    height: 0.7rem;
                    clip-path: polygon(0 0, 100% 50%, 0 100%);
                    background-color: var(--color-fluorescent-green);
                    position: absolute;
                    left: 0;
                    top: 1.6rem;
                    transform: translateY(-50%);
                  }
                  span {
                    display: block;
                    &.en {
                      font-size: 1.6rem;
                      letter-spacing: 0.25em;
                      line-height: 2;
                      font-weight: 700;
                      color: var(--color-deep-blue);
                    }
                    &.ja {
                      font-size: 1.2rem;
                      font-weight: 700;
                      color: #949f99;
                    }
                  }
                  &:hover {
                    span {
                      &.ja {
                        font-size: 1.2rem;
                        font-weight: 700;
                        color: var(--color-deep-blue);
                      }
                    }
                  }
                }
              }
            }
            @media screen and (max-width: 480px) {
              .menu_item {
                border-bottom: 1px solid #cfc3a2;
                a {
                  display: flex;
                  align-items: center;
                  gap: 1rem;
                  padding: 2.2rem 0 2rem 0;
                  .en {
                    font-size: 2.1rem;
                    font-weight: 700;
                    color: var(--color-deep-blue);
                    letter-spacing: 0.2em;
                  }
                  .ja {
                    font-size: 1.2rem;
                    font-weight: 700;
                    color: #949f99;
                  }
                }
              }
            }
          }
          .sp_menu {
            display: none;
            @media screen and (max-width: 480px) {
              display: block;
              .menu_item {
                border-bottom: 1px solid #cfc3a2;
                a {
                  display: block;
                  padding: 2.4rem 0 2.2rem 0;
                  color: var(--color-blown);
                  span {
                    font-size: 2.1rem;
                    font-weight: 700;
                    letter-spacing: 0.2em;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

/* メニューの開閉アニメーション */
@keyframes manufadein {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

body.home {
  @media screen and (max-width: 480px) {
    header {
      &#glo_header {
        position: absolute;
      }
    }
  }
  @media screen and (min-width: 481px) {
    header {
      &#glo_header {
        position: absolute;
        padding: 0;
        .header_inner {
          display: block;
          /* ロゴ */
          .header_logo {
            max-width: 15rem;
            width: 13vw;
            position: absolute;
            left: 50%;
            top: min(7.6vw, 11rem);
            transform: translateX(-50%);
            position: relative;
            &::before {
              content: "";
              display: block;
              position: absolute;
              max-width: 11rem;
              width: 80%;
              aspect-ratio: 110/82;
              background-image: url(../img/top/logo_illust.webp);
              background-repeat: no-repeat;
              background-size: contain;
              top: 0;
              left: 50%;
              transform: translate(-50%, -100%);
            }
          }
          .header_nav_wrap {
            position: absolute;
            top: min(13.19vw, 19rem);
            left: 50%;
            transform: translateX(-50%);
            .glo_menu_wrap {
              .glo_menu {
                .menu_item {
                  min-width: 10rem;
                  a {
                    span {
                      display: block;
                      &.en {
                        font-size: 2.1rem;
                      }
                      &.ja {
                        text-align: center;
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
