.l-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line-soft);
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-left: 20px;
}

.l-header__logo {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 1.36px;
  text-decoration: none;
}

.l-header__nav {
  display: none;
}

.l-header .c-button--header {
  display: none;
}

.l-header__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 64px;
  height: 64px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-menu);
  font-size: 9px;
  letter-spacing: 1.8px;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 1100px) {
  .l-header {
    border-bottom-color: var(--color-line);
  }

  .l-header__inner {
    min-height: 94px;
    padding: 0 70px;
  }

  .l-header__logo {
    width: 212.8px;
    padding-left: 20px;
    font-size: 23px;
    line-height: 28.5px;
    letter-spacing: 2.28px;
    white-space: nowrap;
  }

  .l-header__nav {
    display: block;
    align-self: stretch;
  }

  .l-header .c-button--header {
    display: inline-flex;
  }

  .l-header__list {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 30px;
  }

  .l-header__item {
    position: relative;
    display: flex;
    align-items: center;
  }

  .l-header__link,
  .l-header__toggle {
    transition: color 160ms ease;
    font-weight: 500;
    font-size: 18px;
    line-height: 22.1px;
    letter-spacing: 1.3px;
    text-decoration: none;
  }

  .l-header__link {
    position: relative;
  }

  .l-header__toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .l-header__link[aria-current="page"],
  .l-header__toggle[aria-current="true"],
  .l-header__toggle[aria-expanded="true"] {
    color: var(--color-accent);
  }

  .l-header__link[aria-current="page"]::after,
  .l-header__toggle[aria-current="true"] .l-header__label::after,
  .l-header__toggle[aria-expanded="true"] .l-header__label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 1px;
    background: var(--color-accent);
  }

  .l-header__label {
    position: relative;
  }

  /* 「事務所案内」の真下に、リンクの文字の頭を揃えて出す */
  .l-header__dropdown {
    position: absolute;
    top: 100%;
    left: -24px;
    z-index: 20;
    width: 240px;
    padding: 8px 24px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-top: 2px solid var(--color-accent);
  }

  .l-header__dropdown[hidden] {
    display: none;
  }

  .l-header__dropdown:not([hidden]) {
    animation: header-menu-in 180ms ease-out;
  }

  .l-header__link:hover,
  .l-header__link:focus-visible,
  .l-header__dropdown-link:hover,
  .l-header__dropdown-link:focus-visible {
    color: var(--color-accent);
  }

  .l-header__chevron {
    transition: transform 180ms ease;
  }

  /* 見出しは上のボタンと同じ言葉の繰り返しなので出さない（読み上げには残す） */
  .l-header__dropdown-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .l-header__dropdown-list li + li {
    border-top: 1px solid var(--color-line-soft);
  }

  .l-header__dropdown-link {
    display: block;
    padding: 13px 0;
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 160ms ease;
  }

  .l-header__dropdown-link[aria-current="page"] {
    color: var(--color-accent);
  }

  .l-header__menu {
    display: none;
  }
}

@keyframes header-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1100px) and (max-width: 1439px) {
  .l-header__inner {
    padding: 0 32px;
    gap: 24px;
  }

  .l-header__logo {
    width: auto;
    flex: none;
    padding-left: 0;
    font-size: 20px;
    letter-spacing: 1.6px;
  }

  .l-header__list {
    gap: 20px;
  }

  .l-header__link,
  .l-header__toggle {
    font-size: 15px;
    letter-spacing: 0.8px;
    white-space: nowrap;
  }

  .l-header .c-button--header {
    width: auto;
    flex: none;
    padding: 16px 18px;
    white-space: nowrap;
  }

  .l-header__dropdown {
    left: -20px;
    width: 220px;
    padding: 6px 20px;
  }

  .l-header__dropdown-link {
    padding: 12px 0;
    font-size: 14px;
  }
}
