/* Header
-------------------------*/
.header-logo {
  max-width: 560px;
}
.header-logo p {
  padding: 6px 8px;
}

.nav-submenu {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1560px) {
  .header .container {
    position: relative;
    gap: 16px;
    padding: 0 4px 0 16px;
    height: var(--header-sp-height);
  }

  .header-logo img {
    max-width: 200px;
  }

  .header-logo p {
    display: none;
    font-size: 1rem;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 32px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    background-color: var(--main-color);
    max-height: calc(100vh - var(--header-sp-height));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s ease;
    z-index: 10;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links-list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-links-item {
    width: 100%;
    height: auto;
  }

  .nav-links-item > a {
    overflow: inherit;
    color: #fff;
    font-weight: 600;
    justify-content: space-between;
    width: 100%;
    height: auto;
    border-bottom: 1px solid #fff;
    padding: 12px 0;
  }

  .nav-links-item > a::before {
    content: none;
  }

  .nav-links-item > a::after {
    content: none;
  }

  .nav-links-item.current > a,
  .nav-links-item:has(.nav-submenu-item.current) > a,
  .nav-links-item > a:hover,
  .nav-links-item > a:focus-visible {
    color: #fff;
  }

  .nav-links-item--has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.24s ease;
  }

  .nav-links-item--has-children.is-expanded > a::after {
    width: 16px;
    border-right: 0;
    border-bottom-color: #fff;
    transform: rotate(0deg);
    margin-top: -2px;
  }

  .nav-links-item--has-children > .nav-submenu-wrapper {
    position: static;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: transparent;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    overflow: hidden;
    transition:
      max-height 0.32s ease,
      opacity 0.28s ease,
      transform 0.32s ease;
  }

  .nav-links-item--has-children.is-expanded > .nav-submenu-wrapper {
    max-height: 480px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 0;
  }

  .nav-submenu-wrapper {
    border-top: 0;
  }

  .nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
  }

  .nav-submenu-item a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
    padding: 8px 0;
  }

  .nav-submenu-item a:hover,
  .nav-submenu-item a:focus-visible {
    color: #fff;
  }

  .nav-submenu-item.current a {
    color: #fff;
    font-weight: 600;
  }

  .nav-submenu-item a::before {
    content: none;
  }

  .header-icons {
    flex-wrap: wrap;
  }

  .header-icons__item {
    width: 100%;
    border-radius: 0;
  }

  .header-icons__item.pc,
  .header-icons__item .pc {
    display: none;
  }

  .header-icons__item.sp,
  .header-icons__item .sp {
    display: flex;
  }

  .header-fontsize {
    color: #fff;
  }

  .header-fontsize:hover {
    background-color: transparent;
  }

  .header-search__button {
    background-color: transparent;
    border: 0;
    width: 100%;
  }

  .header-search__button > img {
    display: none;
  }

  .header-search {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    position: static;
    width: 100%;
    padding: 0;
  }

  .header-search form {
    width: 100%;
  }

  .header-hamburger {
    display: block;
  }

  .header.is-open .header-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    height: auto;
  }
}

/* Main
-------------------------*/
@media (max-width: 1560px) {
  .main {
    padding-top: var(--header-sp-height);
  }
}
