@charset "UTF-8";

body.hd-open {
  overflow: hidden;
}

header.hd {
  position: relative;
  z-index: 100;
}
header .hd-inr {
  position: relative;
  width: 100%;
  height: 100%;
}

header .hd-panel {
  position: relative;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 64px;
  padding: 0;
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
  transform: translateX(0);
  z-index: 105;
}
header.active .hd-panel {
  transform: initial;
}
/* hum */
header .hd-link {
  position: fixed;
  display: flex;
  gap: 10px;
  z-index: 120;
  top: 32px;
  right: 32px;
}
header .hd-link .contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: background-color 0.3s ease;
}
header .hd-link .contact-btn img {
  width: 18px;
  height: auto;
  object-fit: contain;
}
header .hd-hum {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: background-color 0.3s ease;
}
header .hd-hum span {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 14px;
  height: 2px;
  background-color: var(--color-black-2);
  transition: all 0.3s ease;
}
header .hd-hum span:first-child {
  top: calc(50% - 4px);
}
header .hd-hum span:last-child {
  top: calc(50% + 4px);
}
/* ハンバーガーが開いた時 */
header.active .hd-hum span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
  top: 50%;
}
header.active .hd-hum span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
  top: 50%;
}
@media (max-width: 600px) {
  header .hd-link {
    top: 16px;
    right: 16px;
    gap: 4px;
  }
  header .hd-hum,
  header .hd-link .contact-btn {
    width: 40px;
    height: 40px;
  }
  header .hd-hum span {
    width: 10px;
  }
  header .hd-hum span:first-child {
    top: calc(50% - 2px);
  }
  header .hd-hum span:last-child {
    top: calc(50% + 2px);
  }
  header .hd-link .contact-btn img {
    width: 14px;
  }
}

/* secondary */
header .hd-second {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  padding: 64px 40px 56px;
  display: flex;
  max-width: 240px;
  flex-direction: column;
  gap: 32px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.16);
  transform: translateX(105%);
  transition: transform 0.45s ease;
  pointer-events: none;
  z-index: 110;
  overflow-y: auto;
}
header .hd-second-logo {
  width: 100px;
  height: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}
header .hd-second nav {
  width: 100%;
  margin-bottom: 24px;
}
header.active .hd-second {
  transform: translateX(0);
  pointer-events: auto;
}

header .hd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 13, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

header.active .hd-overlay {
  opacity: 1;
  pointer-events: auto;
}

header .hd-second .cmn-nav-list {
  align-items: center;
  justify-content: center;
}

header .hd-second .cmn-nav-list .cmn-nav-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

header .hd-second .cmn-nav-list .cmn-nav-item:nth-child(1) {
  transition-delay: 0.05s;
}

header .hd-second .cmn-nav-list .cmn-nav-item:nth-child(2) {
  transition-delay: 0.1s;
}

header .hd-second .cmn-nav-list .cmn-nav-item:nth-child(3) {
  transition-delay: 0.15s;
}

header .hd-second .cmn-nav-list .cmn-nav-item:nth-child(4) {
  transition-delay: 0.2s;
}

header .hd-second .cmn-nav-list .cmn-nav-item:nth-child(5) {
  transition-delay: 0.25s;
}

header .hd-second .cmn-nav-list .cmn-nav-item:nth-child(6) {
  transition-delay: 0.3s;
}

header.active .hd-second .cmn-nav-list .cmn-nav-item {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  header .hd-panel {
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
  }

  header .hd-logo {
    margin-bottom: 32px;
  }
  header.active .hd-second {
    padding: 80px 24px 40px;
  }
  header .hd-second-logo {
    width: 64px;
  }
  header.active .hd-second .cmn-nav-list .cmn-nav-item {
    margin-bottom: 20px;
  }

  header.hd--secondary .hd-second {
    max-width: min(92vw, 360px);
    padding: 40px 24px 40px;
  }
}
