/* =================================
   HEADER BASE
================================= */

.p-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #000;
}

.p-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
}


/* =================================
   LOGO
================================= */

.p-header__logo {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}


/* =================================
   PC NAV
================================= */

.p-header__nav {
  display: flex;
  align-items: center;
}

.p-header__menu {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-header__menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}


/* =================================
   HAMBURGER
================================= */

.p-header__hamburger {
  display: none;
  width: 28px;
  height: 22px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.p-header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  transform-origin: center;
}


/* 開いたとき：≡ → × */

.p-header__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.p-header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.p-header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =================================
   MOBILE MENU
================================= */

.p-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #000;
  z-index: 900;
  transition: right 0.4s ease;
}

.p-mobile-menu.is-open {
  right: 0;
}


/* =================================
   MOBILE HEADER
================================= */

.p-mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 24px;
}

.p-mobile-menu__logo {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
}


/* =================================
   CLOSE BUTTON
   ※ 今後使うなら残す / 使わないならHTMLごと削除可
================================= */

.p-mobile-menu__close {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
}

.p-mobile-menu__close span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}

.p-mobile-menu__close span:nth-child(1) {
  transform: rotate(45deg);
}

.p-mobile-menu__close span:nth-child(2) {
  transform: rotate(-45deg);
}


/* =================================
   MOBILE BODY
================================= */

.p-mobile-menu__body {
  padding: 60px 24px;
}


/* =================================
   MENU LIST
================================= */

.p-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-mobile-menu__list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.p-mobile-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  color: #fff;
  text-decoration: none;
}


/* =================================
   MENU TEXT
================================= */

.p-mobile-menu__title {
  font-size: 22px;
  font-weight: 600;
  margin-right: 12px;
}

.p-mobile-menu__desc {
  font-size: 14px;
  opacity: 0.7;
}

.p-mobile-menu__arrow {
  font-size: 22px;
  opacity: 0.7;
}


/* =================================
   RESPONSIVE
================================= */

@media (max-width: 900px) {

  .p-header__nav {
    display: none;
  }

  .p-header__hamburger {
    display: block;
  }

  .p-header__inner {
    padding: 18px 24px;
  }

}