/**
 * PC Header 002
 * 
 * PC用のヘッダーセクション
 * - 固定配置（fixed）でトップに表示
 * - 76.8rem以下で非表示
 * - :where()を使用して詳細度を低く保つ
 */

/* ヘッダーコンテナ */
:where(.pc-header-002) {
  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-002__wrapper) {
  width: 100%;
  background-color: var(--wp--preset--color--white);
}

/* インナーコンテナ */
:where(.pc-header-002__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-002__logo) {
  flex-shrink: 0;
}
:is(.pc-header-002__logo-image) {
  height: 5rem;
}
:where(.pc-header-002__logo a) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--wp--preset--color--basic-text);
  transition: opacity var(--wp--custom--transition--duration--base, 300ms)
    var(--wp--custom--transition--timing--ease-out);
}

:where(.pc-header-002__logo a:hover) {
  opacity: 0.8;
}

:where(.pc-header-002__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-002__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-002__nav) {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* メニューリスト */
:where(.pc-header-002__menu) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--xl, 3.2rem);
}

/* メニューアイテム */
:where(.pc-header-002__menu li) {
  margin: 0;
  padding: 0;
  position: relative;
}

/* メニューリンク */
:where(.pc-header-002__menu a) {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--xs, 0.8rem);
  text-decoration: none;
  color: var(--wp--preset--color--basic-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-002__menu a:hover) {
  color: var(--wp--preset--color--primary);
}

/* 現在のページ */
:where(.pc-header-002__menu .current-menu-item a),
:where(.pc-header-002__menu .current-menu-parent a),
:where(.pc-header-002__menu .is-active a) {
  color: var(--wp--preset--color--primary);
}

/* アクティブインジケーター */
:where(.pc-header-002__menu .current-menu-item a::after),
:where(.pc-header-002__menu .current-menu-parent a::after),
:where(.pc-header-002__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-002__menu .material-symbols-outlined) {
  font-size: 2rem;
}

/* メニューコンテンツ */
:where(.pc-header-002__menu .menu-item-content) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--4-xs, 0.2rem);
}

/* メニュータイトル */
:where(.pc-header-002__menu .menu-item-title) {
  line-height: 1.2;
}

/* メニュー説明文 */
:where(.pc-header-002__menu .menu-item-description) {
  font-size: var(--wp--preset--font-size--sm, 0.8rem);
  color: var(--wp--preset--color--gray);
  text-align: center;
}

/* バッジ */
:where(.pc-header-002__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--sm, 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-002__site-title) {
  width: 100%;
  color: var(--wp--preset--color--white);
  padding: var(--wp--preset--spacing--2-xm, 0.8rem);
  font-size: var(--wp--preset--font-size--xs, 1.2rem);

  background: var(--wp--preset--color--primary);
}

/* お気に入りトリガーボタン */
:where(.pc-header-002__favorite-trigger) {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

:where(.pc-header-002__favorite-icon) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

:where(.pc-header-002__favorite-icon-svg) {
  width: 2rem;
  height: 2rem;
  color: var(--wp--preset--color--secondary, #db57a5);
}

:where(.pc-header-002__favorite-badge) {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--wp--preset--spacing--3-xs, 0.25rem);
  background-color: var(--wp--preset--color--secondary, #db57a5);
  color: var(--wp--preset--color--white, #ffffff);
  font-size: var(--wp--preset--font-size--xs, 1.2rem);
  font-weight: var(--wp--custom--font-weight--semibold, 600);
  border-radius: var(--wp--custom--border--radius--full, 9999px);
  border: 2px solid var(--wp--preset--color--white, #ffffff);
}

:where(.pc-header-002__favorite-badge[data-count="0"]) {
  display: none;
}

/* ヘッダー固定時のbodyへのパディング調整 */
:where(body:has(.pc-header-002)) {
  padding-top: 9rem;

  @media (max-width: 76.8rem) {
  }
}
