@charset "UTF-8";
/* ==========================================================================
   ヘッダー（DsHeader）
   高さ72px（1023px以下は56px＋ハンバーガー）・白・下線 #ECECEC
   ナビ順：法務AX診断 → 法務AXとは → 法務AI活用体験 → 研究コンテンツ → セミナー・研究会
   現在ページは青＋下線2px。「相談する」は線ボタン。
   ========================================================================== */
.lab-header {
  position: relative;
  z-index: 100;
  background: var(--lab-white);
  border-bottom: 1px solid var(--lab-line-soft);

  & .lab-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: var(--lab-container);
    height: 72px;
    margin-inline: auto;
    padding: 0 var(--lab-margin);

    @media (max-width: 1023px) {
      gap: 12px;
      height: 56px;
      padding: 0 12px 0 var(--lab-margin);
    }
  }

  & .lab-header__logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  & .lab-header__right {
    flex: none;
    display: flex;
    align-items: center;
    gap: clamp(24px, 3.3vw, 48px);

    @media (max-width: 1023px) {
      gap: 4px;
    }
  }

  & .lab-header__nav {
    @media (max-width: 1023px) {
      display: none;
    }
  }

  & .lab-header__nav-list {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 32px);
  }

  & .lab-header__nav-link {
    display: block;
    padding: 12px 0;
    font-size: var(--lab-fs-small);
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: .04em;
    white-space: nowrap;
    transition: color var(--lab-dur-fast) var(--lab-ease-out);

    &:hover {
      color: var(--lab-primary);
    }

    &[aria-current="page"] {
      color: var(--lab-primary);
      text-decoration: underline;
      text-decoration-thickness: 2px;
      text-underline-offset: 8px;
    }
  }

  & .lab-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;

    @media (max-width: 1023px) {
      gap: 4px;
    }
  }

  /* ハンバーガー（1023px以下） */
  & .lab-header__menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;

    @media (max-width: 1023px) {
      display: flex;
    }

    &:focus-visible {
      outline-offset: -2px;
    }

    &[aria-expanded="true"] .lab-header__menu-bar {
      &:nth-child(1) { transform: translateY(8px) rotate(45deg); }
      &:nth-child(2) { opacity: 0; }
      &:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    }
  }

  & .lab-header__menu-bar {
    width: 20px;
    height: 2px;
    background: var(--lab-ink);
    transition: transform var(--lab-dur-fast) var(--lab-ease-standard), opacity var(--lab-dur-fast) var(--lab-ease-standard);
  }

  /* ドロワー（ヘッダー直下に展開） */
  & .lab-header__drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--lab-line);
    background: var(--lab-white);

    @media (min-width: 1024px) {
      display: none !important;
    }
  }

  & .lab-header__drawer-list {
    display: flex;
    flex-direction: column;
    padding: 8px var(--lab-margin) 24px;
  }

  & .lab-header__drawer-link {
    display: flex;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid var(--lab-line-soft);
    font-size: var(--lab-fs-body);
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: .04em;

    &:focus-visible {
      outline-offset: -2px;
    }

    &[aria-current="page"] {
      color: var(--lab-primary);
    }
  }
}

/* ロゴ（正式ロゴ支給までは文字組みの仮置き） */
.lab-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  min-height: 44px;

  @media (max-width: 1023px) {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  /* ロゴ画像（324×51。高さで大きさを決める） */
  & .lab-logo__img {
    width: auto;
    height: 28px;

    @media (max-width: 1023px) {
      height: 24px;
    }
  }
}
