header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 1);
  backdrop-filter: blur(1px) contrast(110%);
  box-shadow: 0 0 10px 0 rgba(0, 165, 154, 0.40);
  z-index: 20;
  @media screen and (max-width: 1279px){
    display: block;
  }
  @media screen and (max-width: 767px){
    padding: 12px;
  }
  .header-logo{
    img{
      display: block;
      @media screen and (max-width: 767px){
        width: 115px;
      }
    }
  }
  .header-main-nav{
    display: flex;
    justify-content: end;
    align-items: center;
    letter-spacing: .9px;
    a:not(.btn-base){
      display: block;
      font-size: 18px;
      color: #333;
      font-weight: 700;
      padding: 8px 16px;
      transition: all .3s;
      &:hover{
        background: #DBF0EF;
        border-radius: 4px;
        color: #008D84;
      }
    }
    .navbtn1{
      margin-left: 24px;
    }
    .navbtn2{
      margin-left: 16px;
    }
    .btn-nav{
      font-size: 18px;
      font-weight: 700;
      padding: 8px 16px;
      transition: all .3s;
      @media screen and (max-width: 1279px){
        margin-top: 24px;
        text-align: center;
      }
    }
    @media screen and (max-width: 1279px){
      display: none;
      opacity: 0;
      padding: 24px;
      transition: all .3s;
      &.is-visible{
        opacity: 1;
      }
      &.menu-open{
        display: block;
      }
    }
  }
  .sp-menu-icon{
    display: none;
    @media screen and (max-width: 1279px){
      position: absolute;
      right: 40px;
      top: 18px;
      width: 20px;
      height: 20px;
      cursor: pointer;
      display: inline-block;
      transition: all .3s;
      box-sizing: border-box;
      span{
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #333;
        border-radius: 4px;
        display: inline-block;
        transition: all .3s;
        box-sizing: border-box;
        &:nth-of-type(1){
          top: 0;
          animation: bartop .75s forwards;
        }
        &:nth-of-type(2){
          top: 9px;
          transition: all .25s .25s;
          opacity: 1;
        }
        &:last-child{
          bottom: 0;
          animation: barlast .75s forwards;
        }
      }
      &.active{
        span{
          &:nth-of-type(1){
            animation: active-bartop .75s forwards;
          }
          &:nth-of-type(2){
            opacity: 0;
          }
          &:last-child{
            animation: active-barlast .75s forwards;
          }
        }
      }
    }
    @media screen and (max-width: 767px){
      right: 12px;
      top: 15px;
    }
  }


  .header-sub-menu{
    position: absolute;
    top: 69px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    backdrop-filter: blur(1px) contrast(110%);
    box-shadow: 0 10px 10px 0 rgba(0, 165, 154, 0.40);
    z-index: 10;
    border-top: 1px solid #DBF0EF;
    display: none;
    opacity: 0;
    transition: all .3s;
    width: 100%;
    max-width: 1200px;
    &.is-active{
      display: block;
    }
    &.is-view{
      opacity: 1;
    }
    &.header-sub-menu-consulting{
      max-width: 600px;
    }
  }
}
.header-sub-menu-consulting{
  .header-sub-menu-main-link-items{
    padding-bottom: 24px;
    li{
      margin-bottom: 8px;
      &:last-child{
        margin-bottom: 0;
      }
    }
  }
  .header-sub-menu-main-link-item-title{
    font-size: 18px;
  }
  .header-sub-menu-main-link-item-read{
    font-size: 16px;
    font-weight: 400;
  }
}

/* Gnav renewal */
.header-sub-menu-wrap{
  display: flex;
}
.header-sub-menu-main-links,
.header-sub-menu-products-links{
  width: 100%;
  max-width: 600px;
  padding: 24px 24px 0;
}
.header-sub-menu-products-links{
  background: #F4F4F4;
}

.header-sub-menu-titles{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-sub-menu-title{
  font-size: 18px;
  color: #333;
}
.header-sub-menu-all{
  font-size: 14px;
  a{
    display: flex;
    justify-content: end;
    gap: 4px;
    color: #00766E;
    &::after{
      content: "";
      display: block;
      width: 20px;
      height: 20px;
      background: url(/images/rn2026/common/icon/arrow-right.svg) no-repeat;
    }
    &:hover{
      text-decoration: underline;
    }
  }
}
.header-sub-menu-main-link-title{
  font-size: 16px;
  color: #333;
  font-weight: 400;
  &.mt24{
    margin-top: 24px;
  }
}
.header-sub-menu-main-link{
  margin-top: 24px;
  li{
    font-size: 18px;
    font-weight: 700;
    padding: 8px 8px 10px;
    border-radius: 8px;
    transition: background .3s;
    &:hover{
      background: #DBF0EF;
    }
    a{
      color: #00766E;
      display: block;
    }
  }
  &.header-sub-menu-col-2{
    .header-sub-menu-main-link-items{
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 24px;
    }
    li{
      width: calc((100% - 16px) / 2);
    }
  }
}
.header-sub-menu-products-items{
  padding: 24px 0;
  &.mt24{
    border-top: 1px solid #fff;
    padding-top: 32px;
  }
}
.header-sub-menu-products-item{
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 8px;
  transition: background .3s;
  a{
    display: flex;
    align-items: center;
    figure{
      width: 200px;
      margin-right: 16px;
      &.img-s{
        width: 40px;
      }
    }
  }
  &:hover{
    background: #DBF0EF;
  }
}
.header-sub-menu-products-item-title{
  h3{
    color: #00766E;
  }
  p{
    color: #333;
  }
}


@keyframes bartop {
  0% {
    transform: translateY(9px) rotate(45deg);
  }
  50% {
    transform: translateY(9px) rotate(0);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}
@keyframes barlast {
  0% {
    transform: translateY(-9px) rotate(-45deg);
  }
  50% {
    transform: translateY(-9px) rotate(0);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes active-bartop {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(9px) rotate(0);
  }
  100% {
    transform: translateY(9px) rotate(45deg);
  }
}
@keyframes active-barlast {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-9px) rotate(0);
  }
  100% {
    transform: translateY(-9px) rotate(-45deg);
  }
}