/* =============================================
   Recruits Page - Stylesheet v1.0
   page.css の上に読み込まれることを前提
   /recruits ページ専用 — SEO Recruit Listing
   ============================================= */

/* ===== CSS Custom Properties ===== */
:root {
  /* Colors — Recruits theme */
  --recruits-primary: #667eea;
  --recruits-primary-alt: #764ba2;
  --recruits-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --recruits-secondary: #f093fb;
  --recruits-secondary-alt: #f5576c;
  --recruits-secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

  --recruits-text: #333;
  --recruits-text-heading: #1a1a2e;
  --recruits-text-muted: #666;
  --recruits-text-sub: #555;
  --recruits-text-dim: #999;
  --recruits-text-light: #9ca3af;
  --recruits-text-icon: #6b7280;

  --recruits-surface: #f8f9fa;
  --recruits-surface-hover: #e8ecf4;
  --recruits-surface-alt: #f0f0f5;
  --recruits-surface-alt-hover: #e0e0ea;
  --recruits-surface-related-hover: #f1f3f4;

  --recruits-border: #e5e7eb;
  --recruits-border-light: #eee;

  --recruits-online-bg: #e8f5e9;
  --recruits-online-bg-hover: #c8e6c9;
  --recruits-online-text: #2e7d32;

  --recruits-floating-bg-start: #f0ecfc;
  --recruits-floating-bg-mid: #f8f9fa;
  --recruits-floating-bg-end: #eef1ff;
  --recruits-floating-title-text: #4a4a6a;
  --recruits-floating-location: #888;
  --recruits-floating-inst-text: #d35fb7;

  /* Spacing */
  --recruits-radius-sm: 8px;
  --recruits-radius-md: 12px;
  --recruits-radius-lg: 16px;
  --recruits-radius-pill: 20px;
  --recruits-radius-full: 30px;

  /* Transitions */
  --recruits-transition: 0.2s ease;
  --recruits-transition-fast: 0.15s ease;
}

/* ===== Page Container ===== */
.recruits-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
  color: var(--recruits-text);
  line-height: 1.6;
}

.recruits-page h1 {
  font-size: 1.6rem;
  margin: 0 0 8px 0;
  color: var(--recruits-text-heading);
}

.recruits-page .page-desc {
  font-size: 0.95rem;
  color: var(--recruits-text-muted);
  margin: 0 0 24px 0;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.8125rem;
  padding: 0 2em;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--recruits-text-icon);
}

.breadcrumb li + li::before {
  content: '>';
  margin-right: 0.5em;
  color: var(--recruits-text-light);
}

.breadcrumb a {
  color: var(--recruits-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--recruits-text-heading);
  font-weight: 500;
}

/* ===== Summary Banner ===== */
.recruits-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--recruits-gradient);
  border-radius: var(--recruits-radius-md);
  color: #fff;
}

.recruits-summary .summary-number {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.recruits-summary .summary-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== Section ===== */
.recruits-section {
  margin-bottom: 32px;
}

.recruits-section h2 {
  font-size: 1.25rem;
  color: var(--recruits-text-heading);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--recruits-primary);
}

/* ===== Area Grid ===== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.area-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--recruits-surface);
  border-radius: var(--recruits-radius-sm);
  font-size: 0.9rem;
  transition: background var(--recruits-transition);
}

.area-item:hover {
  background: var(--recruits-surface-hover);
}

.area-item .area-name {
  font-weight: 500;
}

.area-item .area-count {
  color: var(--recruits-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.area-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.area-item.area-online {
  background: var(--recruits-online-bg);
}

.area-item.area-online:hover {
  background: var(--recruits-online-bg-hover);
}

.area-item.area-online .area-count {
  color: var(--recruits-online-text);
}

/* ===== Period Tabs ===== */
.period-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.period-tab {
  display: inline-block;
  padding: 8px 18px;
  background: var(--recruits-surface-alt);
  border-radius: var(--recruits-radius-pill);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--recruits-text-sub);
  transition: all var(--recruits-transition);
}

.period-tab:hover {
  background: var(--recruits-surface-alt-hover);
  color: var(--recruits-text);
}

.period-tab.active {
  background: var(--recruits-gradient);
  color: #fff;
  font-weight: 600;
}

/* ===== Category Tags ===== */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--recruits-surface-alt);
  border-radius: var(--recruits-radius-pill);
  font-size: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--recruits-transition);
}

.category-tag:hover {
  background: var(--recruits-surface-alt-hover);
}

.category-tag .cat-count {
  color: var(--recruits-primary);
  font-weight: 600;
}

/* ===== Recent List ===== */
.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--recruits-border-light);
  font-size: 0.95rem;
}

.recent-list li:last-child {
  border-bottom: none;
}

/* ===== CTA Section ===== */
.recruits-cta {
  text-align: center;
  margin: 36px 0 24px 0;
  padding: 28px 20px;
  background: var(--recruits-surface);
  border-radius: var(--recruits-radius-md);
}

.recruits-cta p {
  margin: 0 0 16px 0;
  font-size: 1rem;
  color: var(--recruits-text-sub);
}

.recruits-cta .cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--recruits-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: var(--recruits-radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  transition: opacity var(--recruits-transition);
}

.recruits-cta .cta-btn:hover {
  opacity: 0.9;
}

/* ===== No Data ===== */
.recruits-nodata {
  text-align: center;
  padding: 40px 20px;
  color: var(--recruits-text-dim);
  font-size: 1rem;
}

/* ===== Related Pages ===== */
.recruits-related {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--recruits-border);
}

.recruits-related-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--recruits-text-heading);
}

.recruits-related-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recruits-related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--recruits-surface);
  border: 1px solid var(--recruits-border);
  border-radius: var(--recruits-radius-md);
  text-decoration: none;
  color: var(--recruits-text);
  transition: background var(--recruits-transition-fast), box-shadow var(--recruits-transition-fast);
}

.recruits-related-card:hover {
  background: var(--recruits-surface-related-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.recruits-related-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.12);
  color: var(--recruits-primary);
  border-radius: var(--recruits-radius-sm);
  font-size: 1rem;
}

.recruits-related-body {
  flex: 1;
  min-width: 0;
}

.recruits-related-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.recruits-related-desc {
  font-size: 0.8125rem;
  color: var(--recruits-text-icon);
  line-height: 1.5;
}

.recruits-related-arrow {
  color: var(--recruits-text-light);
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: transform var(--recruits-transition-fast);
}

.recruits-related-card:hover .recruits-related-arrow {
  transform: translateX(3px);
  color: var(--recruits-primary);
}

/* ===== Bubble Chart ===== */
.bubble-section {
  margin-bottom: 28px;
}

.bubble-section h3 {
  font-size: 1.1rem;
  color: var(--recruits-text-heading);
  margin: 0 0 14px 0;
}

.bubble-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
}

.bubble-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--recruits-transition), box-shadow var(--recruits-transition);
  text-align: center;
  line-height: 1.2;
}

.bubble-item:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bubble-item.genre {
  background: var(--recruits-gradient);
}

.bubble-item.part {
  background: var(--recruits-secondary-gradient);
}

.bubble-rank {
  font-size: 0.6em;
  opacity: 0.8;
}

.bubble-name {
  font-size: 0.75em;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bubble-count {
  font-size: 0.6em;
  opacity: 0.85;
}

/* Bubble rank sizes — pre-computed from: max(46, 96 - (rank-1)*5.5) */
.bubble-rank-1  { width: 96px;   height: 96px;   font-size: 12.5px; }
.bubble-rank-2  { width: 90.5px; height: 90.5px; font-size: 11.8px; }
.bubble-rank-3  { width: 85px;   height: 85px;   font-size: 11px;   }
.bubble-rank-4  { width: 79.5px; height: 79.5px; font-size: 10.3px; }
.bubble-rank-5  { width: 74px;   height: 74px;   font-size: 10px;   }
.bubble-rank-6  { width: 68.5px; height: 68.5px; font-size: 10px;   }
.bubble-rank-7  { width: 63px;   height: 63px;   font-size: 10px;   }
.bubble-rank-8  { width: 57.5px; height: 57.5px; font-size: 10px;   }
.bubble-rank-9  { width: 52px;   height: 52px;   font-size: 10px;   }
.bubble-rank-10 { width: 46.5px; height: 46.5px; font-size: 10px;   }

/* ===== Floating Bubbles (latest recruits) ===== */
.floating-area {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--recruits-floating-bg-start) 0%, var(--recruits-floating-bg-mid) 50%, var(--recruits-floating-bg-end) 100%);
  border-radius: var(--recruits-radius-lg);
  margin-bottom: 16px;
}

.floating-area-title {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--recruits-floating-title-text);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 20px;
  border-radius: var(--recruits-radius-pill);
  white-space: nowrap;
}

.floating-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
  max-width: 280px;
  min-width: 180px;
  cursor: pointer;
  text-decoration: none;
  color: var(--recruits-text);
  transition: transform var(--recruits-transition);
}

.floating-bubble:hover {
  transform: scale(1.05);
}

.floating-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-radius: 4px;
  transform: rotate(45deg);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.floating-bubble .fb-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-bubble .fb-location {
  font-size: 0.75rem;
  color: var(--recruits-floating-location);
  margin-bottom: 4px;
}

.floating-bubble .fb-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 4px;
}

.floating-bubble .fb-tag.genre-tag {
  background: rgba(102, 126, 234, 0.15);
  color: var(--recruits-primary);
}

.floating-bubble .fb-tag.inst-tag {
  background: rgba(240, 147, 251, 0.15);
  color: var(--recruits-floating-inst-text);
}

/* ===== Music Note Decoration ===== */
.music-note {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.15;
  color: var(--recruits-primary);
  animation: noteFloat 12s ease-in-out infinite;
  pointer-events: none;
}

.music-note-1 { top: 20%; left: 10%; }
.music-note-2 { top: 50%; left: 85%; animation-delay: -4s; }
.music-note-3 { top: 70%; left: 30%; animation-delay: -8s; }
.music-note-4 { top: 15%; left: 65%; animation-delay: -6s; }

/* ===== Animations ===== */
@keyframes noteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  50% { transform: translateY(-40px) rotate(15deg); opacity: 0.25; }
}

@keyframes bubbleRise {
  0% { opacity: 0; transform: translateY(0) scale(0.8); }
  10% { opacity: 1; transform: translateY(-200px) scale(1); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-650px) scale(0.9); }
}

/* ===== Responsive: Mobile (<= 600px) ===== */
@media (max-width: 600px) {
  .recruits-page {
    padding: 1.5rem;
  }

  .recruits-page h1 {
    font-size: 1.3rem;
  }

  .recruits-summary {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .recruits-summary .summary-number {
    font-size: 1.8rem;
  }

  .area-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

/* ===== Responsive: PC (>= 768px) ===== */
@media (min-width: 768px) {
  .recruits-related-grid {
    flex-direction: row;
    gap: 12px;
  }

  .recruits-related-card {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }

  .recruits-related-arrow {
    display: none;
  }
}

/* ===== Print ===== */
@media print {
  .breadcrumb,
  .recruits-related,
  .floating-area,
  .recruits-cta {
    display: none;
  }

  .recruits-page {
    max-width: 100%;
    padding: 0;
  }
}
