/* =========================================================
 * header.phpのcss
========================================================= */
.p_header {
  position: fixed;
  background-color: #fff;
  width: 100vw;
  z-index: 99998;
}

.p_header .headerWrapper {
  max-width: 1920px;
  padding: 23px 55px;
  margin: 0 auto;
}

.p_header .headerInner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 100px;
  width: 100%;
}

.p_header .headerLogo h1 {
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  margin: 0;
  line-height: 1;
}

.p_header .headerLogo img {
  height: 44px;
  width: 236px;
  object-fit: contain;
}

.p_header .headerNav ul {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p_header .headerNav li a {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 20px;
  position: relative;
  display: block;
  text-transform: uppercase;
}

.p_header .headerNav li.current a::after {
  position: absolute;
  content: '';
  width: 100%;
  height: 2px;
  background: #60c51d;
  bottom: -6px;
  left: 0;
}

.p_header .headerNav li.contactBtn a {
  background-color: #60c51d;
  color: #ffffff !important;
  padding: 12px 27px;
  border-radius: 25px;
  border-bottom: none !important;
  text-transform: uppercase;
}

.p_header .hamburgerMenu {
  display: none;
}

.p_header .headerNav .mobileOnly {
  display: none;
}

/* --------------------------------------------------------- 
 1280px以下
--------------------------------------------------------- */
@media (max-width: 1280px) {
  .p_header .headerWrapper {
    padding: 23px 50px;
  }

  .p_header .headerLogo img {
    height: auto;
    width: 160px;
  }

  .p_header .headerInner {
    column-gap: 24px;
  }

  .p_header .headerNav ul {
    gap: 24px;
  }
}

/* ---------------------------------------------------------
　980px以下
--------------------------------------------------------- */
@media (max-width: 980px) {
  .p_header .headerWrapper {
    padding: 24px 20px;
  }

  .p_header .headerLogo {
    z-index: 99999;
  }

  .p_header .headerNav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center;
    transform: scale(1);
  }

  .p_header .headerNav.active {
    opacity: 1;
    visibility: visible;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 79px;
    width: 100%;
  }

  .p_header .headerNav .mobileOnly {
    display: flex;
  }

  .p_header .headerNav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0 25px;
    gap: 0;
    width: 100%;
  }

  .p_header .headerNav li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #b8b8b8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .p_header .headerNav.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .p_header .headerNav li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .p_header .headerNav li:nth-child(2) {
    transition-delay: 0.15s;
  }

  .p_header .headerNav li:nth-child(3) {
    transition-delay: 0.2s;
  }

  .p_header .headerNav li:nth-child(4) {
    transition-delay: 0.25s;
  }

  .p_header .headerNav li:nth-child(5) {
    transition-delay: 0.3s;
  }

  .p_header .headerNav li:nth-child(6) {
    transition-delay: 0.35s;
  }

  .p_header .headerNav li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 0;
    font-size: 17px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    letter-spacing: 0;
    text-transform: none;
  }

  .p_header .headerNav li.contactBtn a {
    background-color: transparent;
    color: #333333 !important;
    padding: 18px 0;
    border-radius: 0;
  }

  .p_header .headerNav li.current a::after {
    display: none;
  }

  .p_header .hamburgerMenu {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1000;
    box-shadow: none;
  }

  .p_header .hamburgerMenu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333333;
    margin: 5px 0;
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    z-index: 1000;
  }
 
  .p_header .hamburgerMenu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .p_header .hamburgerMenu.active span:nth-child(2) {
    opacity: 0;
  }

  .p_header .hamburgerMenu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}