/* ヘッダー */
.header {
  position: fixed;
  background: var(--base-white);
  z-index: 11000;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
}

@media screen and (min-width: 768px) {
  .header {
    padding: 0 0 0 clamp(24px, 3.33vw, 48px);
    width: calc(100% - clamp(40px, 5.56vw, 80px));
    top: 20px;
    left: clamp(20px, 2.78vw, 40px);
    border-radius: 40px 40px 3px 40px;
  }
}

@media screen and (min-width: 1441px) {
  .header {
    max-width: 1440px;
    width: calc(1440px - 80px);
    left: 50%;
    transform: translateX(-50%);
  }
}

.header__logo {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.header__logo img {
  width: 160px;
}

@media screen and (min-width: 768px) and (max-width: 900px) {
  .header__logo img {
    width: 140px;
  }
}

@media screen and (min-width: 901px) {
  .header__logo img {
    width: 191px;
  }
}

/* ハンバーガーメニュー */
.header__hamburgerMenu {
  width: 44px;
  height: 44px;
  background: var(--base-gray);
  border: 1px solid var(--brand-blue);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header__hamburgerLine {
  width: 20px;
  height: 2px;
  background: var(--brand-blue);
  margin-top: 7px;
}

.header__hamburgerLine:first-child {
  margin-top: 0;
}

/* ハンバーガーメニューのアニメーション */
.header__hamburgerMenu.isOpen {
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue);
}

.header__hamburgerMenu.isOpen .header__hamburgerLine {
  background: var(--base-white);
}

.header__hamburgerMenu.isOpen .header__hamburgerLine:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header__hamburgerMenu.isOpen .header__hamburgerLine:nth-child(2) {
  opacity: 0;
}

.header__hamburgerMenu.isOpen .header__hamburgerLine:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.header__hamburgerLine {
  transition: all 0.3s ease;
}

/* PC用ナビゲーション */
@media screen and (min-width: 768px) and (max-width: 900px) {
  .header__navList {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
  }
}

@media screen and (min-width: 901px) {
  .header__navList {
    display: flex;
    gap: clamp(16px, 2.78vw, 40px);
    align-items: center;
    justify-content: space-between;
  }
}

.header__navLink > p {
  font-size: 14px;
  color: var(--base-black);
}

.header__navLink:hover > p {
  opacity: 0.8;
}

.header__ctaButton {
  background: var(--point-yellow);
  color: var(--base-black);
  padding: 20px clamp(24px, 3.33vw, 48px);
  border-radius: 40px 40px 3px 40px;
}

.header__ctaButton > p {
  font-size: 14px;
}

/* モバイルメニュー */
.mobileMenu {
  position: fixed;
  width: 100%;
  height: calc(100dvh - 52px);
  background: var(--brand-blue);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 60px 20px;
}

.mobileMenu.isOpen {
  opacity: 1;
  visibility: visible;
}

.mobileMenu__content {
  width: 100%;
  text-align: center;
}

.mobileMenu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.mobileMenu__link {
  color: var(--base-white);
}

.mobileMenu__link:hover {
  opacity: 0.8;
}

.mobileMenu__cta {
  margin-top: 40px;
}

.mobileMenu__ctaButton {
  background: var(--point-yellow);
  color: var(--base-black);
  padding: 22px 40px;
  border-radius: 40px 40px 3px 40px;
  width: 100%;
}
