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

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

body {
  header#glo_header {
    position: relative;
    z-index: 1000;
    padding-top: 2rem;
    box-sizing: border-box;
    top: 0;
    left: 0;
    width: 100%;
    position: fixed;
    height: 7rem;
    transition: all 0.3s ease-out;

    .header_inner {
      margin: auto;
      padding: 0 1.3rem;
      .header_logo {
        width: 19rem;
        transition: all 0.6s ease-out;

        a {
          display: block;
        }
      }
    }
    &.on {
      background-color: rgba(255, 255, 255, 0.8);

      .header_inner {
        margin: auto;
        padding: 0 1.3rem;
      }
    }
  }
  /* フロントページ */
  &.home {
    header#glo_header {
      padding-top: 2.5rem;
      height: 8.4rem;
      .header_inner {
        .header_logo {
          width: 42rem;
        }
      }
      &.on {
        height: 7rem;
        padding-top: 2rem;
        .header_inner {
          margin: auto;
          padding: 0 1.3rem;
          .header_logo {
            width: 19rem;
          }
        }
      }
    }
  }
  @media screen and (max-width: 480px) {
    &,
    &.home {
      header#glo_header {
        /* general.cssの#page_wrapのpadding-topと連動 */
        height: 4.8rem;
        padding-top: 1.2rem;
        &,
        &.on {
          height: 4.8rem;
          .header_inner {
            .header_logo {
              width: 14rem;
            }
          }
        }
      }
    }
  }
}
/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
ハンバーガーボタン
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

/*--------------------*/
/* PC */
/*--------------------*/
@media screen and (min-width: 481px) {
  .header_nav_wrap {
    .menu_btn {
      display: none;
    }
  }
}

/*--------------------*/
/* スマートフォン */
/*--------------------*/
@media screen and (max-width: 480px) {
  .header_nav_wrap {
    .menu_btn {
      position: absolute;
      z-index: 20000;
      width: 4.8rem;
      height: 4.8rem;
      border: none;
      right: 0;
      bottom: 0;
      padding: 1rem;
      box-sizing: border-box;
      background: rgba(0, 0, 0, 0);
      transition: all 0.2s;

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

      span.bar {
        transform-origin: center;
        display: block;
        height: 2px;
        transition: all 0.2s;
        margin: 0.7rem 0;
      }

      .bar1 {
        background-color: var(--color-blue);
      }

      .bar3 {
        background-color: var(--color-orange);
      }

      &.open {
        .bar {
          background-color: #fff;
        }
        .bar1 {
          transform: rotate(45deg);
        }

        .bar3 {
          transform: rotate(-45deg);
          margin-top: -0.9rem;
        }
      }
    }
  }
}

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
メニュー
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

/*--------------------*/
/* PC */
/*--------------------*/
@media screen and (min-width: 481px) {
  .header_nav_wrap {
    z-index: 100;
    position: absolute;
    right: 12.6rem;
    top: 50%;
    transform: translateY(-50%);

    .glo_menu_wrap {
      .glo_menu {
        display: flex;

        li.menu-item {
          margin-right: 1rem;
          a {
            font-size: 1.4rem;
            line-height: 1;
            color: #000;
            padding: 0.2rem 0.5rem;
            letter-spacing: 0.045em;

            &.underline {
              position: relative;
              span {
                position: relative;
                padding: 0.5rem 0.5rem;
                &::after {
                  position: absolute;
                  left: 0;
                  content: "";
                  width: 100%;
                  height: 2px;
                  background: var(--color-blue);
                  bottom: 0;
                  transform: scale(0, 1);
                  transform-origin: right top;
                  transition: transform 0.3s;
                }
              }
            }
            &:hover {
              span::after {
                transform: scale(1, 1);
                transform-origin: left top;
              }
            }
          }
          &.contact {
            margin-right: 0;
            a {
              border: 1px solid var(--color-blue);
              border-radius: 9999px;
              color: var(--color-blue);
              padding: 0.6rem 2rem;
              box-sizing: border-box;
              &:hover {
                background-color: var(--color-blue);
                color: #fff;
              }
            }
          }
        }
      }
    }
  }
}

/*--------------------*/
/* スマートフォン */
/*--------------------*/
@media screen and (max-width: 480px) {
  .header_nav_wrap {
    .glo_menu_wrap {
      height: 100vh;
      height: 100dvh;
      padding-top: 6.2rem;
      box-sizing: border-box;
      overflow-y: auto;
      top: 0;
      position: absolute;
      background-color: var(--color-blue);
      z-index: 1010;
      transition: opacity 0.2s;
      opacity: 0;
      visibility: hidden;
      width: 100vw;

      &.open {
        opacity: 1;
        visibility: visible;
      }

      /* メニューの中身 */
      .glo_menu {
        padding: 0 2.7rem;
        li.menu-item {
          border-bottom: 1px solid #fff;
          > a {
            display: block;
            font-size: 2rem;
            padding: 2.7rem 0;
            color: #fff;
            position: relative;

            &::after {
              content: "";
              display: block;
              position: absolute;
              width: 3.3rem;
              aspect-ratio: 1 / 1;
              background-image: url(../img/common/icon-yajirushi-white-blue.svg);
              background-repeat: no-repeat;
              background-size: contain;
              background-position: center center;
              right: 0;
              top: 50%;
              transform: translateY(-50%);
            }
          }
        }
      }
    }
  }
}

/*--------------------*/
/* 翻訳ボタン */
/*--------------------*/
.gtranslate_menu_wrap {
  position: absolute;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  @media screen and (max-width: 480px) {
    right: 5rem;
  }
  .gtranslate_wrapper {
    display: flex;
    flex-direction: row-reverse;
    border-radius: 9999px;
    overflow: hidden;

    a {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 4.8rem;
      height: 3.4rem;
      box-sizing: border-box;
      background-color: #dadbdb;
      color: var(--color-blue);
      font-weight: bold;
      font-size: 1.6rem;
      line-height: 2em;
      &[data-gt-lang="ja"] {
        padding: 0 1.2rem 0 1.7rem;
      }
      &[data-gt-lang="en"] {
        padding: 0 1.7rem 0 1.2rem;
      }
      /*img {
        display: block;
        width: 1.9rem;
        opacity: 1;
      } 
      span {
        display: block;

        line-height: 1.5;
        text-align: center;
      }*/
      &.gt-current-lang {
        background-color: var(--color-blue);
        color: #fff;
      }
      @media screen and (max-width: 480px) {
        width: 3.6rem;
        height: 2.6rem;
        font-size: 1.2rem;
        &[data-gt-lang="ja"] {
          padding: 0 1rem 0 1.3rem;
        }
        &[data-gt-lang="en"] {
          padding: 0 1.3rem 0 1rem;
        }
        /*img {
          width: 1.3rem;
        }
        span {
          display: block;
          line-height: 1.2;
          text-align: center;
        }*/
      }
    }
  }
}
