@charset "UTF-8";
/*
Header Styles
SEO Service Site - Migrated from WordPress theme
*/

/* header */
header {
  width: 100%;
  height: 7rem;
  position: fixed;
  background-color: #fff;
  border-bottom: 1px solid #0c1e84;
  z-index: 99;
  font-style: normal;
  font-weight: bold;
  display: flex;
  align-items: center;
}
header .inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-box {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  margin-right: auto;
}
.header-logo {
  width: 100%;
  max-width: 20rem;
  margin-right: auto;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-cta_contact a {
  font-size: 1.6rem;
  width: 17rem;
  background-color: #fff500;
  border-radius: 100vw;
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

header nav {
  font-size: 1.4rem;
}
.header-menu {
  display: flex;
  gap: 2rem;
}
.header-menu > li {
  text-align: center;
}
.header-menu > li > a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 2px solid #fff;
}
.header-menu > li > a:hover,
.header-menu_sub:hover > a {
  color: #0c1e84;
  border-bottom: 2px solid #0c1e84;
}
.header-menu_sub:hover .sub-menu-list {
  visibility: visible;
  opacity: 1;
  transition: all 0.3s;
}
.header-menu_sub .sub-menu-list {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background-color: #0c1e84;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s 0.2s; /*  閉じる時だけ遅延 */
  text-align: left;
  color: #fff;
}
.header-menu_sub .sub-menu-list ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 2rem 5rem;
}
.header-menu_sub .sub-menu-list li::before {
  content: "-";
  color: #fff;
  margin-right: 2px;
}
.header-menu_sub .sub-menu-list a:hover {
  color: #d2e4ff;
}
.hamburger {
  display: none;
}
.overlay {
  display: none;
}
.header-cta_sp {
  display: none;
}
.sub-menu-btn_sp {
  display: none;
}
.sub-menu-btn_pc {
  display: inline;
}

@media screen and (max-width: 980px) {
  header .inner {
    display: block;
  }
  .header-logo {
    width: 60%;
  }
  .header-cta {
    display: none;
  }
  .header-cta_sp {
    display: flex;
    flex-direction: column;
  }
  .header-cta_contact a {
    width: 100%;
    border-radius: 0;
    color: #0a0a0a;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  header nav {
    color: #fff;
  }
  .header-menu {
    display: grid;
    grid-template-columns: auto;
    gap: 0;
  }
  .header-menu > li {
    text-align: left;
  }
  .header-menu > li > a {
    padding: 1.5rem;
    background-color: #0c1e84;
    border-bottom: 1px solid #d2e4ff;
  }
  .header-menu > li > a:hover,
  .header-menu_sub:hover > a {
    border-bottom: 1px solid #d2e4ff;
    color: inherit;
  }
  .header-menu > li:last-child > a,
  .header-menu > li:last-child > a:hover {
    border-bottom: none;
  }
  .header-menu_sub:hover .sub-menu-list {
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  .header-menu_sub {
    position: relative;
  }
  .header-menu_sub .sub-menu-list {
    color: #0c1e84;
    position: static;
    background-color: #f0f6ff;
    visibility: visible;
    opacity: 1;
    overflow: hidden;
    display: none;
  }
  .header-menu_sub .sub-menu-list ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 3rem;
  }
  .header-menu_sub .sub-menu-list li::before {
    color: #0c1e84;
  }
  .sub-menu-btn_pc {
    display: none;
  }
  .sub-menu-btn_sp {
    height: 2.1rem;
    width: 2.1rem;
    color: #0c1e84;
    background-color: #fff;
    border-radius: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
  }
  .sub-menu-btn_sp.active {
    transform: rotate(-45deg);
  }
  .hamburger {
    display: block;
    position: relative;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 5px;
  }
  /*ボタン内側*/
  .hamburger span {
    display: inline-block;
    transition: all 0.4s; /*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #0a0a0a;
    width: 45%;
  }

  .hamburger span:nth-of-type(1) {
    top: 15px;
  }
  .hamburger span:nth-of-type(2) {
    top: 23px;
  }
  .hamburger span:nth-of-type(3) {
    top: 31px;
  }
  /*activeクラスが付与されると線が回転して×に*/
  .hamburger.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
  }
  .hamburger.active span:nth-of-type(2) {
    opacity: 0; /*真ん中の線は透過*/
  }
  .hamburger.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
  }
  .hamburger_open {
    z-index: 900;
    overflow: scroll;
    width: 100%;
    max-height: calc(100% - 70px);
    position: fixed;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }
  .hamburger_open.active {
    visibility: visible;
    opacity: 1;
  }
  body.overflow {
    overflow-y: hidden;
  }
  /* オーバーレイ */
  .overlay {
    display: none;
    position: fixed;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    z-index: 10;
  }
}
