header#Header {
  top: 0;
  left: 0;
  z-index: 10;
  font-size: 16px;
  color: var(--color);
  background-color: #fff;
  position: fixed;
  border-top: 3px solid #00a8a9;
}


#Header.UpMove {
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}

#Header.DownMove {
  animation: DownAnime 0.5s forwards;
  width: 100%;
}

@keyframes DownAnime {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#Header a {
  color: var(--color);
  font-weight: var(--bolder);
  line-height: 1.5;
  display: flex;
  align-items: center;
}

#Header .language a {
  display: inline-block;
  height: fit-content;
  padding: .4em 1em .5em;
}

#Header .language {
  margin-left: 1.5em;
  display: none;
}

#Header .language a {
  line-height: 1;
}

#Header .language a:first-child {
  border: 1px solid #ccc;
  border-right: none;
  border-top-left-radius: 1.5em;
  border-bottom-left-radius: 1.5em;
}

#Header .language a:last-child {
  border: 1px solid #ccc;
  border-top-right-radius: 1.5em;
  border-bottom-right-radius: 1.5em;
}

#Header .language a.current {
  background-color: #f5f5f5;
  color: var(--link-color);
}

#Header .language a:hover {
  background-color: #3366cc;
  color: var(--light-color);
  text-decoration: none;
}

#Header a img:hover {
  transform: rotateX(360deg)
}

.entry-content header nav>ul {
  margin: 0;
}

header#Header>a {
  position: fixed;
  top: 18px;
  left: 15px;
  z-index: 1;
}

/*========= ナビゲーションドロップダウンのためのCSS ===============*/

header h1 {
  width: 357px;
}


/*ナビゲーションを横並びに*/
#g-navi {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  top: 0;
  left: 0;
  background: var(--background-color);
  margin: 0;
  width: 100%;
  padding-right: 24px;
  height: 80px;
}


/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
#g-navi li {}

/*ナビゲーションのリンク設定*/
#g-navi li a {
  display: block;
  text-decoration: none;
  padding: .5em 1.5em;
  transition: var(--transition);
  position: relative;
}

#g-navi li a:hover {
  color: var(--color-primary);
}

#Header .HeaderLogo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#Header .Header__inner {
  justify-content: space-between;
  position: relative;
  top: 0;
  z-index: 50;
  background-color: var(--white);
  max-width: 100%;
}

#Header .header__group {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 60;
  width: 100%;
}

#g-navi .entry {
  background-color: var(--color-secondary);
  color: var(--white);
  border-radius: var(--border-radius-S);
}

#g-navi .entry:hover {
  background-color: #bf262e;
  color: var(--white);
}

#g-navi li:last-child {
  margin-left: 1.5em;
}



/* スマホ */
@media (max-width:1200px) {

  #Header {
    border-bottom: var(--border);
    width: 100%;
    position: relative;
    z-index: 3;
  }

  #Header .header__inner {
    padding: 0;
    height: 80px;
  }

  #Header h1 {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
  }

  #g-navi {
    position: absolute;
    top: 81px;
    width: 100%;
    height: auto;
    padding: 0;
    z-index: 2;
    flex-wrap: wrap;
    opacity: 0;
    pointer-events: none;
  }

  #g-navi.active {
    animation-name: name;
    animation-duration: 0.2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    opacity: 0;
    transition: var(--transition);
    pointer-events: all;
  }

  @keyframes name {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }

  #g-navi::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .8);
    height: 100vh;
    display: block;
    width: 100%;
    z-index: -1;
  }

  #g-navi li {
    width: 100%;
  }

  #g-navi li a {
    padding: 1em 1.5em;
    background-color: var(--white);
  }


  #Header .header__group {}

  a.top-button {
    scale: .7;
    right: 0;
  }


  .openbtn1 span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: calc(50% + -13px);
    height: 2px;
    background-color: var(--color-primary);
    width: 26px;
  }

  .openbtn1 span:nth-of-type(1) {
    top: calc(31% - 1px)
  }

  .openbtn1 span:nth-of-type(2) {
    top: calc(50% - 1px)
  }

  .openbtn1 span:nth-of-type(3) {
    top: calc(69% - 1px)
  }

  .openbtn1.active span:nth-of-type(1) {
    top: 15px;
    left: 9px;
    transform: translateY(6px) rotate(-45deg);
    width: 60%
  }

  .openbtn1.active span:nth-of-type(2) {
    opacity: 0
  }

  .openbtn1.active span:nth-of-type(3) {
    top: 27px;
    left: 9px;
    transform: translateY(-6px) rotate(45deg);
    width: 60%
  }

  .openbtn1 {
    position: fixed;
    z-index: 9999;
    top: 20px;
    right: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 50%;
  }

  header#Header>a {
    display: none
  }

  header nav {
    padding: 0;
    width: 100%;
  }

  #g-navi li.has-child a.level1::before {
    right: 1em;
  }

  header nav li.has-child ul,
  header nav li.has-child ul ul {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    visibility: visible;
    /*JSで制御するため一旦表示*/
    opacity: 1;
    /*JSで制御するため一旦表示*/
    display: none;
    /*JSのslidetoggleで表示させるため非表示に*/
    transition: none;
    /*JSで制御するためCSSのアニメーションを切る*/
  }

  #g-navi li a {
    border-bottom: 1px solid #ccc;
  }

  /*矢印の位置と向き*/

  #g-navi li.has-child::before {
    left: 20px;
  }

  #g-navi ul li.has-child::before {
    transform: rotate(135deg);
    left: 20px;
  }

  #g-navi li.has-child.active::before {
    transform: rotate(-45deg);
  }
}

/* スマホ */
@media (max-width: 599px) {

  #g-navi li a {
    padding: 1em 1.5em;
  }
}