/**
 * Section: Unified PICKUP
 * 統合PICKUPセクション - タブ切り替え
 */

:where(.s-pickup-unified-001) {
  padding: var(--wp--preset--spacing--3-xl) var(--wp--preset--spacing--lg);
}

:where(.s-pickup-unified-001__container) {
  max-width: var(--wp--style--global--wide-size);
  margin: 0 auto;
}

/* Title */
:where(.s-pickup-unified-001__title) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--sm);
  font-size: var(--wp--preset--font-size--3-xl);
  font-weight: var(--wp--custom--font-weight--bold);
  text-align: center;
  margin: 0 0 var(--wp--preset--spacing--3-xl) 0;
  color: var(--wp--preset--color--basic-text);
}

:where(.s-pickup-unified-001__title .material-symbols-outlined) {
  font-size: 4rem;
  color: var(--wp--preset--color--warning);
}

/* Tabs Navigation */
:where(.s-pickup-unified-001__tabs) {
  display: flex;
  gap: var(--wp--preset--spacing--sm);
  margin-bottom: var(--wp--preset--spacing--2-xl);
  border-bottom: var(--wp--custom--border--width--2) solid
    var(--wp--preset--color--gray-light);
  justify-content: center;
}

:where(.s-pickup-unified-001__tab) {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--xs);
  padding: var(--wp--preset--spacing--base) var(--wp--preset--spacing--xl);
  background: transparent;
  border: none;
  border-bottom: var(--wp--custom--border--width--2) solid transparent;
  font-size: var(--wp--preset--font-size--base);
  font-weight: var(--wp--custom--font-weight--medium);
  color: var(--wp--preset--color--gray-dark);
  cursor: pointer;
  transition: all var(--wp--custom--transition--duration--base)
    var(--wp--custom--transition--timing--ease);
  margin-bottom: calc(var(--wp--custom--border--width--2) * -1);
}

:where(.s-pickup-unified-001__tab .material-symbols-outlined) {
  font-size: 2.4rem;
}

:where(.s-pickup-unified-001__tab:hover) {
  opacity: 0.9;
}

/* Active tab colors - theme-specific */
:where(.s-pickup-unified-001__tab[data-tab="clinic"].is-active) {
  color: var(--wp--preset--color--tertiary);
  border-bottom-color: var(--wp--preset--color--tertiary);
}

:where(.s-pickup-unified-001__tab[data-tab="treatment"].is-active) {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--primary);
}

:where(.s-pickup-unified-001__tab[data-tab="column"].is-active) {
  color: var(--wp--preset--color--success);
  border-bottom-color: var(--wp--preset--color--success);
}

/* Tab Panels */
:where(.s-pickup-unified-001__panel) {
  display: none;
}

:where(.s-pickup-unified-001__panel.is-active) {
  display: block;
}

/* Remove inner section padding and background (handled by parent) */
:where(.s-pickup-unified-001__panel > section) {
  padding: 0 !important;
  background: transparent !important;
  margin: 0;
}

/* Inner wrapper - unified layout */
:where(.s-pickup-unified-001__panel .s-clinic-new-001__inner),
:where(.s-pickup-unified-001__panel .s-treatment-ranking-001__inner),
:where(.s-pickup-unified-001__panel .s-column-pickup-001__inner) {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Hide section titles (parent has unified title) */
:where(.s-pickup-unified-001__panel .s-clinic-new-001__title),
:where(.s-pickup-unified-001__panel .s-treatment-ranking-001__title),
:where(.s-pickup-unified-001__panel .s-column-pickup-001__title) {
  display: none !important;
}

/* Ensure grid displays correctly - single column layout */
:where(.s-pickup-unified-001__panel .s-clinic-new-001__grid),
:where(.s-pickup-unified-001__panel .s-treatment-ranking-001__grid),
:where(.s-pickup-unified-001__panel .s-column-pickup-001__grid) {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--wp--preset--spacing--xl);
}

/* Remove card margins (grid gap handles spacing) */
:where(.s-pickup-unified-001__panel .c-card-unified) {
  margin-bottom: 0 !important;
}

/* Ensure buttons and links display correctly */
:where(.s-pickup-unified-001__panel .s-clinic-new-001__button),
:where(.s-pickup-unified-001__panel .s-treatment-ranking-001__button),
:where(.s-pickup-unified-001__panel .s-column-pickup-001__button) {
  margin-top: var(--wp--preset--spacing--3-xl);
}

/* SEO links styling */
:where(.s-pickup-unified-001__panel .s-clinic-new-001__seo-links) {
  margin: var(--wp--preset--spacing--3-xl) 0;
}

/* Responsive */
@media (max-width: 768px) {
  :where(.s-pickup-unified-001) {
    padding: var(--wp--preset--spacing--2-xl) var(--wp--preset--spacing--base);
  }

  :where(.s-pickup-unified-001__title) {
    font-size: var(--wp--preset--font-size--2-xl);
    margin-bottom: var(--wp--preset--spacing--2-xl);
  }

  :where(.s-pickup-unified-001__title .material-symbols-outlined) {
    font-size: 3rem;
  }

  :where(.s-pickup-unified-001__tabs) {
    gap: var(--wp--preset--spacing--xs);
    margin-bottom: var(--wp--preset--spacing--xl);
  }

  :where(.s-pickup-unified-001__tab) {
    padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--base);
    font-size: var(--wp--preset--font-size--sm);
  }

  :where(.s-pickup-unified-001__tab .material-symbols-outlined) {
    font-size: 2rem;
  }

  :where(.s-pickup-unified-001__tab-text) {
    display: none;
  }

  /* モバイルではアイコンのみ表示 */
  :where(.s-pickup-unified-001__tab) {
    flex-direction: column;
    padding: var(--wp--preset--spacing--sm);
  }
}

@media (min-width: 769px) {
  :where(.s-pickup-unified-001__tab-text) {
    display: inline;
  }
}
