/**
 * PC Header 001
 * 
 * PC用のヘッダーセクション
 * - 固定配置（fixed）でトップに表示
 * - 76.8rem以下で非表示
 * - :where()を使用して詳細度を低く保つ
 */

@layer sections {
  /* ヘッダーコンテナ */
  :where(.pc-header-001) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--wp--custom--z-index--fixed, 1030);
    background-color: var(--wp--preset--color--white);
    border-bottom: 1px solid var(--wp--preset--color--gray-lighter);

    /* 768px以下で非表示 */
    @media (max-width: 768px) {
      display: none;
    }
  }

  /* ヘッダーラッパー */
  :where(.pc-header-001__wrapper) {
    width: 100%;
    background-color: var(--wp--preset--color--white);
  }

  /* インナーコンテナ */
  :where(.pc-header-001__inner) {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--lg, 2.4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8rem;
  }

  /* ロゴエリア */
  :where(.pc-header-001__logo) {
    flex-shrink: 0;
  }

  :where(.pc-header-001__logo a) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: var(--wp--preset--color--text);
    transition: opacity var(--wp--custom--transition--duration--base, 300ms)
      var(--wp--custom--transition--timing--ease-out);
  }

  :where(.pc-header-001__logo a:hover) {
    opacity: 0.8;
  }

  :where(.pc-header-001__logo-text) {
    font-size: var(--wp--preset--font-size--2-xl, 2.4rem);
    font-weight: var(--wp--custom--font-weight--bold, 700);
    line-height: 1;
    letter-spacing: var(--wp--custom--letter-spacing--xs, 0.015em);
  }

  :where(.pc-header-001__logo-subtext) {
    font-size: var(--wp--preset--font-size--xs, 1.2rem);
    font-weight: var(--wp--custom--font-weight--normal, 400);
    margin-top: var(--wp--preset--spacing--3-xs, 0.25rem);
    color: var(--wp--preset--color--gray-dark);
  }

  /* ナビゲーションエリア */
  :where(.pc-header-001__nav) {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  /* メニューリスト */
  :where(.pc-header-001__menu) {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--xl, 3.2rem);
  }

  /* メニューアイテム */
  :where(.pc-header-001__menu li) {
    margin: 0;
    padding: 0;
    position: relative;
  }

  /* メニューリンク */
  :where(.pc-header-001__menu a) {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--xs, 0.8rem);
    text-decoration: none;
    color: var(--wp--preset--color--text);
    font-size: var(--wp--preset--font-size--base, 1.6rem);
    font-weight: var(--wp--custom--font-weight--medium, 500);
    padding: var(--wp--preset--spacing--sm, 1.2rem) 0;
    position: relative;
    transition: color var(--wp--custom--transition--duration--fast, 150ms)
      var(--wp--custom--transition--timing--ease-out);
  }

  :where(.pc-header-001__menu a:hover) {
    color: var(--wp--preset--color--primary);
  }

  /* 現在のページ */
  :where(.pc-header-001__menu .current-menu-item a),
  :where(.pc-header-001__menu .current-menu-parent a),
  :where(.pc-header-001__menu .is-active a) {
    color: var(--wp--preset--color--primary);
  }

  /* アクティブインジケーター */
  :where(.pc-header-001__menu .current-menu-item a::after),
  :where(.pc-header-001__menu .current-menu-parent a::after),
  :where(.pc-header-001__menu .is-active a::after) {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--wp--preset--color--primary);
    border-radius: var(--wp--custom--border--radius--sm, 4px)
      var(--wp--custom--border--radius--sm, 4px) 0 0;
  }

  /* メニューアイコン */
  :where(.pc-header-001__menu .material-symbols-outlined) {
    font-size: 2rem;
  }

  /* メニューコンテンツ */
  :where(.pc-header-001__menu .menu-item-content) {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--4-xs, 0.2rem);
  }

  /* メニュータイトル */
  :where(.pc-header-001__menu .menu-item-title) {
    line-height: 1.2;
  }

  /* メニュー説明文 */
  :where(.pc-header-001__menu .menu-item-description) {
    font-size: var(--wp--preset--font-size--2-xs, 0.8rem);
    color: var(--wp--preset--color--gray);
    text-align: center;
  }

  /* バッジ */
  :where(.pc-header-001__menu .menu-item-badge) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--wp--preset--spacing--4-xs, 0.2rem)
      var(--wp--preset--spacing--xs, 0.8rem);
    background-color: var(--wp--preset--color--error);
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--2-xs, 0.8rem);
    font-weight: var(--wp--custom--font-weight--bold, 700);
    border-radius: var(--wp--custom--border--radius--full, 9999px);
    margin-left: var(--wp--preset--spacing--xs, 0.8rem);
  }

  :where(.pc-header-001__site-title) {
    width: 100%;
    color: var(--wp--preset--color-gray);
    padding: var(--wp--preset--spacing--2-xm, 0.8rem);
    font-size: var(--wp--preset--font-size--xs, 1.2rem);

    background: var(--wp--preset--color--gray-lighter);
  }

  /* ヘッダー固定時のbodyへのパディング調整 */
  :where(body:has(.pc-header-001)) {
    padding-top: 9rem;

    @media (max-width: 76.8rem) {
    }
  }
}
