header {
  width: 100vw;
  height: 72px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  position: fixed;
  z-index: 1;
  top: 0;
}
@media screen and (max-width: 768px) {
  header {
    width: 100vw;
    height: 72px;
    padding: 0 20px 0 16px;
    display: block;
    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
  }
}
   /* ------- ハンバーガーメニューのボタン ------ */
  .sp-hamburger {
    display: none;
  }
  @media screen and (max-width: 768px) {
    .sp-hamburger {
      display: block;
      position: absolute;
      right: 0;
      height: 72px;
      top: 0;
      width: 60px;
      z-index: 100;
    }
    .sp-hamburger.is-clicked {
       right: 20px;
       top: 20px;
       animation-name: fadeIn;
       animation-duration: .5s;
       animation-timing-function: ease-in;
    }

    .hamburger-top {
      top: 28px;
    }
    .hamburger-middle{
      top: 36px;
    }
    .hamburger-bottom {
      top: 44px;
    }
    .sp-hamburger-bar {
      position: absolute;
      right: 20px;
      width: 24px;
      background: #000;
      height: 1px;
    }
  }
  .header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  @media screen and (max-width: 768px) {
    .header-left {
      display: block;
    }
  }
  .header-logo {
    margin-right: 32px;
    margin-top: 3px;
  }
  .header-logo-img {
    width: 220px;
  }
  .logo-single {
    display: none;
  }
  .header-single-img {
    width: 40px;
    height: 40px;
  }
  @media screen and (max-width: 960px) {
    .header-logo {
      display: none;
     }
    .logo-single {
      display: block;
      margin-right: 24px;
    }
  }
  @media screen and (max-width: 768px) {
    .header-logo {
      display: block;
      position: absolute;
      margin: 0;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
     }
     .logo-single {
      display: none;
    }
  }
  .header-lists {
      display: flex;
      font-family: 'Playfair Display', serif;
  }
  @media screen and (max-width: 768px) {
    .header-lists {
      display: block;
      background: #fff;
      width: 100vw;
      height: 100vh;
      position: absolute;
      right: -100vw;
      overflow: scroll;
      -webkit-overflow-scrolling: touch;
      opacity: 0;
      transition: .5s;
      padding: 49px 40px 0 32px;
    }
    @keyframes fadeIn{
      0% {
          opacity: 0;
          transform: translateX(0);
      }
      100% {
          opacity: 1;
          transform: translateX(0);
      }
  }
  }
  /* ハンバーガーメニューがクリックされた時 */
  @media screen and (max-width: 768px) {
      .header-lists.is-clicked {
        right: 0;
        opacity: 1;
      }
       .is-clicked .hamburger-top {
       transform: rotate(45deg);
       top: 41px;
     }
      .is-clicked .hamburger-middle{
       width: 0;
       left: 50%;
     }
      .is-clicked .hamburger-bottom {
       transform: rotate(-45deg);
       top: 41px;
     }
   }
 .header-lists > li > a {
   height: 72px;
   line-height: 72px;
   position: relative;
 }
 @media screen and (max-width: 768px) {
  .header-lists > li > a {
    height: auto;
    line-height: 1;
    margin-bottom: 16px;
  }
}
 .header-lists > li > a:after {
  position: absolute;
  top: 47px;
  left: 0;
  content: "";
  width: 100%;
  height: 1px;
  background: #BE1E2D;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform .45s;
}
@media screen and (max-width: 768px) {
  .header-lists > li > a:after {
    position: absolute;
    content: none;
  }
}
 .header-lists > li > a:hover:after {
   transform-origin: left top;
   transform: scale(1, 1);
 }
  .header-lists a {
    margin-right: 24px;
    color: #222A42;
    position: relative;
    font-weight: normal;
    display: inline-block;
  }
  .header-lists a:hover:after {
    transform-origin: left top;
    transform: scale(1, 1);
  }
  .header-lists a:after {
    position: absolute;
    bottom: -4px;
    left: 0;
    content: "";
    width: 100%;
    height: 1px;
    background: #BE1E2D;
    transform: scale(0, 1);
    transform-origin: right top;
    transition: transform .45s;
  }
  .sub-menu-list a {
    position: relative;
  }
  .sub-menu-list a:hover:after {
    transform-origin: left top;
    transform: scale(1, 1);
  }
  .sub-menu-list a:after {
    position: absolute;
    bottom: -4px;
    left: 0;
    content: "";
    width: 100%;
    height: 1px;
    background: #BE1E2D;
    transform: scale(0, 1);
    transform-origin: right top;
    transition: transform .45s;
  }
  /* ホバー時のサブメニューの表示部分*/
  .sub-menu-list {
    position: absolute;
    top: 72px;
    left: 0;
    display: flex;
    align-items: center;
    height: 80px;
    width: 100vw;
    background:  #222A42;
    z-index: 2;
    visibility: hidden;
    opacity: 0;
   }
   @media screen and (max-width: 768px) {
    .sub-menu-list {
      position: static;
      display: block;
      height: auto;
      width: 100%;
      background: #fff;
      z-index: 2;
      visibility: visible;
      opacity: 1;
      transition: none;
      margin-bottom: 16px;

     }
  }

   .sub-menu-title {
     width: 288px;
     text-align: center;
     position: relative;
     font-size: 20px;
     font-weight: 400;
     color: #fff;
   }
   .sp-menu {
     display: none;
   }
   @media screen and (max-width: 768px) {
    .sub-menu-title {
      display: none;
     }
     .header-home {
      display: none;
     }
     .sp-menu {
       display: block;
       font-weight: 700;
       font-family: 'Playfair Display', serif;
       font-size: 24px;
       line-height: 28.8px;
       position: relative;
       margin-bottom: 50px;
     }
     .sp-menu:after {
       content: "";
       width: 32px;
       height: 1px;
       background: #222A42;
       position: absolute;
       left: 88px;
       top: 50%;
       transform: translateY(-50%);
     }
  }
   .sub-menu-item {
     margin-right: 48px !important;
     margin-left: 44px;
     display: block;
     font-family: "YuMincho Demibold", "Yu Mincho Demibold", "游明朝体", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
     font-weight: bold;
     position: relative;
     color: #fff !important;
   }

   .sub-menu-item span {
     font-family: "YuMincho Medium", "Yu Mincho Regular", "游明朝体", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
     font-weight: normal;
   }
   @media screen and (max-width: 768px) {
    .sub-menu-item {
     margin: 0 0 16px 42px !important;
     color: #222A42!important;
    }
    .sub-menu-item:before {
      content: url(/img/external-link-sp.svg) !important;
      position: absolute;
      top: 50%;
      transform: translateY(-40%);
      left: -42px !important;
    }
  }
   .sub-menu-item:before {
     content: url(/img/external-link-white.svg);
     position: absolute;
     top: 50%;
     transform: translateY(-40%);
     left: -44px;
   }
   .header-solution .sub-menu-title:before {
     content: "";
     width: 24px;
     height: 24px;
     position: absolute;
     background:#222A42;
     top: -34px;
     left: 388px;
     transform: rotate(-45deg);
   }
   @media screen and (max-width: 960px) {
    .header-solution .sub-menu-title:before {
      left: 198px;
    }
  }
   @media screen and (max-width: 768px) {
    .header-solution .sub-menu-title:before,
    .job .sub-menu-title:before,
    .company .sub-menu-title:before
     {
      content: none;
    }
  }
   .job .sub-menu-title:before {
     content: "";
     width: 24px;
     height: 24px;
     position: absolute;
     background:  #222A42;
     top: -34px;
     left: 465px;
     transform: rotate(-45deg)
   }
   @media screen and (max-width: 960px) {
    .job .sub-menu-title:before {
      left: 276px;
    }
  }
   .company .sub-menu-title:before {
     content: "";
     width: 24px;
     height: 24px;
     position: absolute;
     background: #222A42;
     top: -34px;
     left: 542px;
     transform: rotate(-45deg)
   }
   @media screen and (max-width: 960px) {
    .company .sub-menu-title:before {
      left: 355px;
    }
  }

   .header-solution:hover .sub-menu-list,
   .job:hover .sub-menu-list,
   .company:hover .sub-menu-list{
     opacity: 1;
     visibility: visible;
   }
  /* ヘッダーのボタン部分 */
  .header-right {
    display: flex;
    align-items: center;
  }
  @media screen and (max-width: 768px) {
    .header-right {
      display: none;
    }
  }
  .header-right span {
    display: block;
  }
  .header-corporate,
  .header-professionals {
    text-align: center;
  }
  .header-companies-heading,
  .header-applicant-heading {
    font-size: 12px;
    font-weight: 500;
    line-height: 14.4px;
  }
  .header-applicant-text,
  .header-companies-text {
    font-family: "YuMincho Demibold", "Yu Mincho Demibold", "游明朝体", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
    font-weight: bold;
  }
  .header-corporate {
    background: #FFFFFF;
    border: 1px solid #222A42;
    box-sizing: border-box;
    width: 160px;
  }
  .header-corporate a {
      color:#222A42;
      display: block;
      height: 48px;
      padding: 7px 0;
  }
  .header-professionals {
    background: #BE1E2D;
    border: 1px solid #BE1E2D;
    box-sizing: border-box;
    width: 160px;
    margin-left: 12px;
  }
  .header-professionals a {
      color: #fff;
      display: block;
      height: 48px;
      padding: 7px 0;
  }

  /* sp版のcontact */
  .sp-contact {
    display: none;
  }
  @media screen and (max-width: 768px) {
    .sp-contact {
      display: block;
    }
  }
