.header {
  width: 100%;
  position: sticky;
  top: 0;
  background: var(--bg-color);
  z-index: 1;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}

.header-container {
  display: grid;
  width: 100%;
  max-width: var(--page-width);
}

/* PC */
@media (min-width: 768px) {
  .header-container {
    height: 88px;
    padding: 0 var(--page-margin-pc);
    grid-template-areas: "logo nav aside";
    grid-template-columns: auto 1fr auto;
    justify-content: space-between;
    align-items: center;
  }
}

/* SP */
@media (max-width: 768px) {
  .header-container {
    grid-template-areas:
      "logo aside"
      "nav nav";
    grid-template-columns: 1fr auto; /* logo を左寄せ、aside を右寄せ */
    grid-template-rows: 52px 40px;
    align-items: center;
  }
}

.header-logo {
  grid-area: logo;
  height: auto;
}

/* PC */
@media (min-width: 768px) {
  .header-logo {
    width: 170px;
  }
}

/* SP */
@media (max-width: 768px) {
  .header-logo {
    width: 124px;
    margin-top: 8px;
    margin-left: var(--page-margin-sp);
  }
}

.header-aside {
  grid-area: aside;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* SP */
@media (max-width: 768px) {
  .header-aside {
    margin-right: var(--page-margin-sp);
    margin-top: 4px;
  }
}

.header-sns {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* SP */
@media (max-width: 768px) {
  .header-sns {
    display: none;
  }
}

.header-sns-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-menu {
  cursor: pointer;
  display: block;

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* PC */
@media (min-width: 768px) {
  .header-menu {
    width: 24px;
    height: 20px;
  }
}

/* SP */
@media (max-width: 768px) {
  .header-menu {
    width: 20px;
    height: 16px;
  }
}

.header-menu span {
  display: block;
  width: 100%;
  background-color: var(--main-color);
}

/* PC */
@media (min-width: 768px) {
  .header-menu span {
    height: 2.5px;
  }
}

/* SP */
@media (max-width: 768px) {
  .header-menu span {
    height: 2px;
  }
}


.header-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
}

/* PC */
@media (min-width: 768px) {
  .header-nav {
    gap: 30px;
  }
}

/* SP */
@media (max-width: 768px) {
  .header-nav {
    height: 100%;
  }
}

.header-nav-link {
  font-weight: 500;
}

.header-nav-link[data-active="true"] {
  
}

.header-nav-link:not([data-active="true"]) {
  color: var(--disabled-color);
}

/* PC */
@media (min-width: 768px) {
  .header-nav-link {
    font-size: 15px;
    position: relative;
  }

  .header-nav-link[data-active="true"]::before {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: var(--main-color);
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* SP */
@media (max-width: 768px) {
  .header-nav-link {
    font-size: 14px;
    flex-basis: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
  }

  .header-nav-link[data-active="true"]::before {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: var(--main-color);
    position: absolute;
    bottom: 0;
    left: 0;
  }

  .header-nav-link:nth-child(n + 5) {
    display: none;
  }
}