#header {
  color: #fff;
}

@media(max-width:768px) {
  .header__pc {
    display: none;
  }
}

.header-absolute {
  width: 100%;
  padding-top: 1rem;
  position: absolute;
  z-index: 10;
}

.header-fixed {
  width: 100%;
  height: 8rem;
  background-color: rgba(255, 255, 255, .8);
  color: #001362;
  padding-top: 1.5rem;
  position: fixed;
  z-index: 8;
}

.header__inner {
  width: 97%;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-absolute__logo {
  width: 37.8rem;
}

.header-fixed__logo {
  width: 23.9rem;
}

.header__contents {
  display: flex;
  align-items: center;
}

.header__nav {
  font-size: 1.5rem;
  font-weight: 500;
}

.header__nav-list {
  display: flex;
}

.header__nav-item {
  margin-left: 3rem;
  position: relative;
  transition: .3s;
}

@media(max-width:936px) {
  .header__nav-item {
    margin-left: 2.4rem;
  }
}

.underbar.header__nav-item::after {
  content: "";
  width: 100%;
  height: .3rem;
  background-color: #61CED8;
  position: absolute;
  transform: translateY(100%);
  left: 0;
  bottom: -.6rem;
}

.header__nav-item::after {
  content: "";
  width: 100%;
  height: .3rem;
  background-color: #61CED8;
  position: absolute;
  left: 0;
  bottom: -.6rem;
  transform: translateY(100%) scale(0, 1);
  transform-origin: left top;
  transition: .3s;
}

.header__nav-item:hover::after {
  transform: translateY(100%) scale(1, 1);
}

.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 4rem;
}

.header__contact--fixed {
  flex-direction: row;
  align-items: center;
  margin-left: 6.4rem;
}

.header__tel {
  display: flex;
  margin-bottom: .5rem;
}

.header__tel-icon {
  width: 2.636rem;
  height: 2.636rem;
}

.header__number {
  font-size: 2.4rem;
  margin-left: .67rem;
}

.header__btn {
  background-color: #001362;
  width: 21rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .3s;
}

.header__btn:hover {
  background-color: #61CED8;
}

.header__btn--fixed {
  width: 5rem;
  margin-left: 2rem;
}

.header__btn-icon {
  width: 2.925rem;
  height: auto;
}

.header__btn-text {
  font-size: 1.8rem;
  letter-spacing: .05em;
  margin-left: 1.34rem;
}

.header__sp {
  display: none;
}

@media(max-width:768px) {
  .header__sp {
    display: block;
    position: relative;
  }

  .header__inner-sp {
    width: 100%;
    height: 10rem;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 15;
    transition: .2s;
  }

  .header__inner-sp.click {
    background-color: #0065BB;
  }

  .header__inner-sp.scroll {
    background-color: #0065BB;
  }

  .header__inner-sp.color {
    background-color: #0065BB;
  }

  .header__sp-logo {
    width: 42rem;
  }

  .header__hamburger-sp {
    width: 5rem;
    height: 4rem;
    position: relative;
  }

  .header__hamburger-sp .header__line-sp,
  .header__hamburger-sp::before,
  .header__hamburger-sp::after {
    content: "";
    background-color: #fff;
    width: 5rem;
    height: .3rem;
    border-radius: .2rem;
    position: absolute;
    transition: .3s;
  }

  .header__hamburger-sp::before {
    top: 0;
    transform-origin: top left;
  }

  .header__hamburger-sp::after {
    bottom: 0;
    transform-origin: bottom left;
  }

  .header__hamburger-sp.transform::before,
  .header__hamburger-sp.transform::after {
    width: 105%;
  }

  .header__hamburger-sp.transform::before {
    transform: rotate(45deg);
  }

  .header__hamburger-sp.transform::after {
    transform: rotate(-45deg);
  }

  .header__line-sp {
    top: 45%;
  }

  .header__hamburger-sp .header__line-sp.transform {
    transform: scale(0);
  }

  .header__sp-contents {
    background-color: #0065BB;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    transform: translateY(-100%);
    z-index: 10;
    overflow-y: scroll;
    transition: .2s ease-out;
  }

  .header__sp-contents.show {
    transform: none;
  }

  .header__sp-contents-inner {
    width: 100%;
    height: 100%;
    min-height: 90rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10rem;
  }

  .header__nav-sp {
    margin: 6rem 0;
  }

  .header__nav-sp-item {
    font-size: max(20px, 3rem);
    font-weight: 700;
    width: max-content;
    display: block;
    margin: 0 auto;
    position: relative;
  }

  .header__nav-sp-item:not(:last-of-type) {
    margin-bottom: 6rem;
  }

  .underbar.header__nav-sp-item::after {
    content: "";
    width: 100%;
    height: .4rem;
    background-color: #61CED8;
    position: absolute;
    transform: translateY(100%);
    left: 0;
    bottom: -.6rem;
  }

  .header__tel-sp {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
  }

  .header__tel-icon-sp {
    width: 4.5rem;
    height: auto;
    margin-right: .8rem;
  }

  .header__tel-number-sp {
    font-size: max(24px, 4.5rem);
  }

  .header__btn-sp {
    background-color: #fff;
    color: #222;
    width: 80%;
    height: 8rem;
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header__btn-icon {
    width: 3.6rem;
  }
  
  .header__btn-text {
    font-size: max(14px, 2rem);
  }
}