/* uxdt-common.css — Astro/WP 共通ヘッダー・フッタートークン */
:root {
  --uxdt-purple: #6b46c1;
  --uxdt-purple-light: #8b7ae8;
  --uxdt-navy: #1a1a3e;
  --uxdt-text: #1a1a1a;
  --uxdt-text-sub: #595959;
  --uxdt-max-width: 1200px;
}

/* Header */
.uxdt-hub-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
}

.uxdt-hub-header *,
.uxdt-hub-header *::before,
.uxdt-hub-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.uxdt-hub-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  max-width: var(--uxdt-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.uxdt-hub-header .uxdt-hub-logo {
  flex-shrink: 0;
  text-decoration: none;
}

.uxdt-hub-header .uxdt-hub-logo svg {
  display: block;
  height: 28px;
  width: auto;
}

.uxdt-hub-header .uxdt-hub-logo svg path {
  fill: var(--uxdt-purple);
}

.uxdt-hub-header .uxdt-hub-search {
  flex-shrink: 0;
}

.uxdt-hub-header .uxdt-hub-search .search__def {
  position: relative;
  display: flex;
  align-items: center;
}

.uxdt-hub-header .uxdt-hub-search input[type="search"] {
  width: 180px;
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f8f8f8;
  outline: none;
  font-family: inherit;
}

.uxdt-hub-header .uxdt-hub-search input[type="search"]:focus {
  border-color: var(--uxdt-purple);
  background: #fff;
}

.uxdt-hub-header .uxdt-hub-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.uxdt-hub-header .uxdt-hub-search button img {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.uxdt-hub-header .uxdt-hub-nav {
  flex: 1;
}

.uxdt-hub-header .uxdt-hub-nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.uxdt-hub-header .uxdt-hub-nav-item {
  position: relative;
}

.uxdt-hub-header .uxdt-hub-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--uxdt-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

.uxdt-hub-header .uxdt-hub-nav-link:hover {
  color: var(--uxdt-purple);
  text-decoration: none;
}

.uxdt-hub-header .uxdt-hub-dropdown-arrow {
  font-size: 10px;
  opacity: 0.6;
}

.uxdt-hub-header .uxdt-hub-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px 0;
  min-width: 140px;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.uxdt-hub-header .uxdt-hub-has-dropdown:hover .uxdt-hub-dropdown {
  display: block;
}

.uxdt-hub-header .uxdt-hub-dropdown li a {
  display: block;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--uxdt-text);
  text-decoration: none;
}

.uxdt-hub-header .uxdt-hub-dropdown li a:hover {
  color: var(--uxdt-purple);
  background: #f8f7ff;
}

.uxdt-hub-header-sns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.uxdt-hub-header-sns a {
  color: var(--uxdt-text-sub);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1;
}

.uxdt-hub-header-sns a:hover {
  color: var(--uxdt-purple);
}

.uxdt-hub-header-sns svg {
  display: block;
}

@media (max-width: 768px) {
  .uxdt-hub-header .uxdt-hub-nav,
  .uxdt-hub-header-sns {
    display: none;
  }
}

/* Footer */
.uxdt-hub-footer {
  padding: 64px 0 40px;
  background: var(--uxdt-navy);
  color: #fff;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
}

.uxdt-hub-footer *,
.uxdt-hub-footer *::before,
.uxdt-hub-footer *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.uxdt-hub-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: var(--uxdt-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.uxdt-hub-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uxdt-hub-footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--uxdt-purple-light);
}

.uxdt-hub-footer-sns {
  display: flex;
  gap: 16px;
}

.uxdt-hub-footer-sns a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1;
}

.uxdt-hub-footer-sns a:hover {
  color: #fff;
}

.uxdt-hub-footer-sns svg {
  display: block;
}

.uxdt-hub-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
}

.uxdt-hub-footer-nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.uxdt-hub-footer-nav a:hover {
  color: #fff;
}

.uxdt-hub-footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .uxdt-hub-footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
