/* ==========================================================================
   Company Archive & Single Pages
   企業一覧・詳細ページ
   ========================================================================== */

/* ---------- Hide Default Header on Company Pages ---------- */
.page-companies .site-header,
.page-companies .floating-nav,
.page-companies .back-to-top {
  display: none !important;
}

/* ---------- CSS Variables ---------- */
:root {
  --cp-primary: #6366f1;
  --cp-primary-light: #818cf8;
  --cp-web3: #7c3aed;
  --cp-ai: #a21caf;
  --cp-deeptech: #047857;
  --cp-fintech: #0284c7;
  --cp-saas: #ea580c;
}

/* ==========================================================================
   Archive Page Styles
   ========================================================================== */

.cp-archive {
  background: var(--color-bg, #0f172a);
  min-height: 100vh;
  padding-top: 68px; /* portal-headerの高さ分 */
}

/* ---------- Main Layout ---------- */
.cp-main {
  padding: 40px 0 60px;
  background: var(--color-bg, #0f172a);
}

.cp-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- Sidebar ---------- */
.cp-sidebar {
  position: sticky;
  top: 100px;
  padding-right: 30px;
}

.cp-sidebar__section {
  margin-bottom: 32px;
}

.cp-sidebar__section:last-child {
  margin-bottom: 0;
}

.cp-sidebar__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 16px;
  font-weight: 500;
}

.cp-search-input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border, #374151);
  color: var(--color-text, #fff);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.cp-search-input::placeholder {
  color: var(--color-text-muted, #6b7280);
}

.cp-search-input:focus {
  outline: 2px solid transparent;
  border-bottom-color: var(--color-text, #fff);
}

.cp-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cp-sidebar__list li {
  margin-bottom: 2px;
}

.cp-sidebar__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: var(--color-text-secondary, #9ca3af);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.cp-sidebar__link:hover {
  color: var(--color-text, #fff);
}

.cp-sidebar__link.is-active {
  color: var(--color-text, #fff);
  font-weight: 500;
}

.cp-sidebar__count {
  font-size: 0.8rem;
  color: var(--color-text-muted, #6b7280);
}

.cp-sidebar__link.is-active .cp-sidebar__count {
  color: var(--color-text-secondary, #9ca3af);
}

.cp-sidebar__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-secondary, #9ca3af);
  cursor: pointer;
}

.cp-sidebar__checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-text, #fff);
}

.cp-sidebar__section--cta {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border, #374151);
}

.cp-sidebar__cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary, #9ca3af);
  text-decoration: none;
  transition: color 0.2s;
}

.cp-sidebar__cta-link:hover {
  color: var(--color-text, #fff);
}

.cp-sidebar__cta-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}

.cp-sidebar__cta-link:hover .cp-sidebar__cta-arrow {
  transform: translateX(4px);
}

/* ---------- Content Area ---------- */
.cp-content {
  min-width: 0;
}

.cp-content__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border, #374151);
}

.cp-content__count {
  font-size: 0.9rem;
  color: var(--color-text-secondary, #9ca3af);
}

.cp-content__filters {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cp-content__filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-secondary, #9ca3af);
}

.cp-content__filter label {
  white-space: nowrap;
}

.cp-content__filter select {
  padding: 6px 12px;
  background: var(--color-bg-section, #1e293b);
  border: 1px solid var(--color-border, #374151);
  border-radius: 4px;
  color: var(--color-text, #fff);
  font-size: 0.85rem;
  cursor: pointer;
}

.cp-content__filter select:focus {
  outline: 2px solid transparent;
  border-color: #6366f1;
}

/* ---------- Card Grid ---------- */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ---------- Card ---------- */
.cp-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-section, #1e293b);
  border: 1px solid var(--color-border, #374151);
  transition: all 0.3s ease;
}

.cp-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Card Visual — badge bar */
.cp-card__visual {
  position: relative;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(160deg, #1e293b 0%, #312e81 60%, #6d28d9 100%);
}

.cp-card__visual--web3       { background: linear-gradient(160deg, #1e293b 0%, #312e81 60%, #6d28d9 100%); }
.cp-card__visual--ai         { background: linear-gradient(160deg, #1e293b 0%, #701a75 60%, #a21caf 100%); }
.cp-card__visual--deeptech   { background: linear-gradient(160deg, #1e293b 0%, #064e3b 60%, #047857 100%); }
.cp-card__visual--fintech    { background: linear-gradient(160deg, #1e293b 0%, #075985 60%, #0284c7 100%); }
.cp-card__visual--saas       { background: linear-gradient(160deg, #1e293b 0%, #9a3412 60%, #ea580c 100%); }
.cp-card__visual--startup    { background: linear-gradient(160deg, #1e293b 0%, #92400e 60%, #d97706 100%); }
.cp-card__visual--innovator { background: linear-gradient(160deg, #1e293b 0%, #991b1b 60%, #dc2626 100%); }

.cp-card__hiring-badge {
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.9);
  border-radius: 2px;
  font-size: 0.65rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.cp-card__cat {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  font-size: 0.65rem;
  color: #fff;
  font-weight: 500;
  margin-left: auto;
  flex-shrink: 0;
}

/* Category badge colors */
.cp-card__visual--web3 .cp-card__cat       { background: rgba(124, 58, 237, 0.4); color: #e0d4fc; }
.cp-card__visual--ai .cp-card__cat         { background: rgba(192, 38, 211, 0.4); color: #f0d4f5; }
.cp-card__visual--deeptech .cp-card__cat   { background: rgba(5, 150, 105, 0.4); color: #d1fae5; }
.cp-card__visual--fintech .cp-card__cat    { background: rgba(2, 132, 199, 0.4); color: #e0f2fe; }
.cp-card__visual--saas .cp-card__cat       { background: rgba(234, 88, 12, 0.4); color: #fed7aa; }
.cp-card__visual--startup .cp-card__cat    { background: rgba(217, 119, 6, 0.4); color: #fef3c7; }
.cp-card__visual--innovator .cp-card__cat { background: rgba(220, 38, 38, 0.4); color: #fecaca; }

/* Card Body */
.cp-card__body {
  padding: 16px 20px 20px;
}

.cp-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text, #fff);
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.cp-card__tagline {
  font-size: 0.8rem;
  color: var(--color-text-muted, #6b7280);
  margin: 0 0 12px;
  line-height: 1.4;
}

/* Tags — subtle gradient strip */
.cp-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 12px;
}

.cp-card__tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.15) 0%, rgba(109, 40, 217, 0.05) 100%);
  color: #fff;
}

/* Tag gradient per category */
.cp-card__tags--web3 .cp-card__tag {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.18) 0%, rgba(109, 40, 217, 0.04) 100%);
  color: #c4b5fd;
}
.cp-card__tags--ai .cp-card__tag {
  background: linear-gradient(135deg, rgba(162, 28, 175, 0.18) 0%, rgba(162, 28, 175, 0.04) 100%);
  color: #e879f9;
}
.cp-card__tags--deeptech .cp-card__tag {
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.18) 0%, rgba(4, 120, 87, 0.04) 100%);
  color: #6ee7b7;
}
.cp-card__tags--fintech .cp-card__tag {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.18) 0%, rgba(2, 132, 199, 0.04) 100%);
  color: #7dd3fc;
}
.cp-card__tags--saas .cp-card__tag {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.18) 0%, rgba(234, 88, 12, 0.04) 100%);
  color: #fdba74;
}
.cp-card__tags--startup .cp-card__tag {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.18) 0%, rgba(217, 119, 6, 0.04) 100%);
  color: #fbbf24;
}
.cp-card__tags--innovator .cp-card__tag {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.18) 0%, rgba(220, 38, 38, 0.04) 100%);
  color: #f87171;
}

.cp-card__read {
  font-size: 0.85rem;
  color: var(--color-text-secondary, #9ca3af);
  font-weight: 400;
  transition: color 0.2s;
}

.cp-card:hover .cp-card__read {
  color: var(--color-text, #fff);
}

/* ---------- CTA Section ---------- */
.cp-cta {
  padding: 80px 0;
  background: transparent;
  border-top: 1px solid var(--color-border, #374151);
}

.cp-cta__inner {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.cp-cta__title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text, #fff);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.cp-cta__text {
  color: var(--color-text-muted, #6b7280);
  margin: 0 0 24px;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cp-layout {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .cp-layout {
    grid-template-columns: 1fr;
  }

  .cp-sidebar {
    display: none;
  }

  .cp-content__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .cp-archive {
    padding-top: 68px; /* portal-headerの高さ分（モバイルも同じ高さ） */
  }

  .cp-main {
    padding: 16px 0 40px;
  }

  .cp-main > .container {
    padding: 0 12px;
  }

  .cp-content__header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cp-content__filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cp-content__filter {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .cp-content__filter label {
    font-size: 0.7rem;
  }

  .cp-content__filter select {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .cp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cp-card__visual {
    padding: 8px 10px;
  }

  .cp-card__cat {
    font-size: 0.55rem;
    padding: 3px 6px;
  }

  .cp-card__hiring-badge {
    font-size: 0.5rem;
    padding: 2px 5px;
  }

  .cp-card__name {
    font-size: 0.75rem;
  }

  .cp-card__tagline {
    font-size: 0.6rem;
    margin-bottom: 8px;
  }

  .cp-card__body {
    padding: 10px;
  }

  .cp-card__read {
    font-size: 0.65rem;
  }

  .cp-cta {
    padding: 40px 16px;
  }

  .cp-cta__title {
    font-size: 1.1rem;
  }

  .cp-cta__text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .cp-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Single Company Page (cps- prefix)
   ========================================================================== */

/* ---------- Main ---------- */
.cps-main {
  background: var(--color-bg, #fff);
}

/* ---------- Hero ---------- */
.cps-hero {
  padding: 80px 0 60px;
  color: #fff;
}

.cps-hero--web3       { background: linear-gradient(160deg, #0f172a 0%, #312e81 50%, #7c3aed 100%); }
.cps-hero--ai         { background: linear-gradient(160deg, #0f172a 0%, #701a75 50%, #a21caf 100%); }
.cps-hero--deeptech   { background: linear-gradient(160deg, #0f172a 0%, #064e3b 50%, #047857 100%); }
.cps-hero--fintech    { background: linear-gradient(160deg, #0f172a 0%, #075985 50%, #0284c7 100%); }
.cps-hero--saas       { background: linear-gradient(160deg, #0f172a 0%, #9a3412 50%, #ea580c 100%); }
.cps-hero--startup    { background: linear-gradient(160deg, #0f172a 0%, #92400e 50%, #d97706 100%); }
.cps-hero--innovator { background: linear-gradient(160deg, #0f172a 0%, #991b1b 50%, #dc2626 100%); }

.cps-hero__inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 16px 40px;
  align-items: start;
}

.cps-hero__logo {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  grid-row: 1 / 3;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cps-hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cps-hero__logo-placeholder {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
}

.cps-hero__header {
  padding-top: 8px;
}

.cps-hero__badges {
  display: flex;
  gap: 10px;
  grid-column: 2;
  align-self: start;
}

.cps-hero__cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
}

.cps-hero__cat:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.cps-hero__cat--web3       { background: rgba(124, 58, 237, 0.5); color: #e0d4fc; }
.cps-hero__cat--ai         { background: rgba(192, 38, 211, 0.5); color: #f0d4f5; }
.cps-hero__cat--deeptech   { background: rgba(5, 150, 105, 0.5); color: #d1fae5; }
.cps-hero__cat--fintech    { background: rgba(2, 132, 199, 0.5); color: #e0f2fe; }
.cps-hero__cat--saas       { background: rgba(234, 88, 12, 0.5); color: #fed7aa; }
.cps-hero__cat--startup    { background: rgba(217, 119, 6, 0.5); color: #fef3c7; }
.cps-hero__cat--innovator { background: rgba(220, 38, 38, 0.5); color: #fecaca; }

.cps-hero__hiring {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #10b981;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
}

.cps-hero__hiring:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.cps-hero__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px;
}

.cps-hero__tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #fff;
  margin: 0 0 20px;
}

.cps-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  grid-column: 2;
}

.cps-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cps-hero__meta-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}

.cps-hero__meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.cps-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  grid-column: 2;
}

.cps-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.cps-hero__btn--primary {
  background: #fff;
  color: #0f172a;
}

.cps-hero__btn--primary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.cps-hero__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cps-hero__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- Content Sections ---------- */
.cps-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.cps-section:last-child {
  border-bottom: none;
}

.cps-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text, #1f2937);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cps-section__title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--cp-primary);
  border-radius: 2px;
}

/* ---------- Quick Info Bar ---------- */
.cps-quickinfo {
  background: var(--color-bg-section, #f8fafc);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  padding: 16px 0;
}

.cps-quickinfo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cps-quickinfo__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-secondary, #4b5563);
}

.cps-quickinfo__item svg {
  color: var(--color-text-muted, #9ca3af);
}

.cps-quickinfo__label {
  color: var(--color-text-muted, #9ca3af);
  font-size: 0.8rem;
}

.cps-quickinfo__value {
  font-weight: 600;
  color: var(--color-text, #1f2937);
}

.cps-quickinfo__links {
  display: flex;
  gap: 12px;
}

.cps-quickinfo__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  color: var(--color-text-secondary, #6b7280);
  transition: all 0.2s;
}

.cps-quickinfo__link:hover {
  background: var(--cp-primary);
  border-color: var(--cp-primary);
  color: #fff;
}

/* ---------- About Section ---------- */
.cps-about {
  padding: 60px 0;
}

.cps-about__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.cps-about__main {
  min-width: 0;
}

.cps-about__sidebar {
  position: sticky;
  top: 100px;
}

.cps-about__content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary, #4b5563);
}

.cps-about__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text, #1f2937);
  margin: 32px 0 16px;
}

.cps-about__content p {
  margin-bottom: 16px;
}

/* Section Title */
.cps-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text, #1f2937);
  margin: 0 0 32px;
}

.cps-section-title__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--cp-primary, #6366f1);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* Company Details */
.cps-details {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.cps-details__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text, #1f2937);
  margin: 0 0 16px;
}

.cps-details__list {
  margin: 0;
  padding: 0;
}

.cps-details__row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border, #f3f4f6);
}

.cps-details__row:last-child {
  border-bottom: none;
}

.cps-details__label {
  flex-shrink: 0;
  width: 140px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted, #6b7280);
}

.cps-details__value {
  font-size: 0.9rem;
  color: var(--color-text, #1f2937);
  margin: 0;
}

/* Tech Stack */
.cps-tech {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.cps-tech__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text, #1f2937);
  margin: 0 0 16px;
}

.cps-tech__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cps-tech__item {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
}

/* Benefits */
.cps-benefits {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.cps-benefits__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text, #1f2937);
  margin: 0 0 16px;
}

.cps-benefits__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cps-benefits__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-secondary, #4b5563);
}

.cps-benefits__item svg {
  flex-shrink: 0;
  color: #10b981;
}

/* Sidebar Card */
.cps-sidebar-card {
  background: var(--color-bg-section, #f8fafc);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.cps-sidebar-card__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}

.cps-sidebar-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cps-sidebar-card__tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 16px;
  font-size: 0.8rem;
  color: var(--color-text-secondary, #4b5563);
  text-decoration: none;
  transition: all 0.2s;
}

.cps-sidebar-card__tag:hover {
  border-color: var(--cp-primary);
  color: var(--cp-primary);
}

/* Sidebar CTA */
.cps-sidebar-cta {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
}

.cps-sidebar-cta__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.cps-sidebar-cta__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.cps-sidebar-cta__text {
  font-size: 0.85rem;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.5;
}

.cps-sidebar-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.3);
}

.cps-sidebar-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(129, 140, 248, 0.5);
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
}

.cps-sidebar-cta__link-secondary {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
  opacity: 0.7;
}

.cps-sidebar-cta__link-secondary:hover {
  opacity: 1;
}

/* ---------- Jobs Section ---------- */
.cps-jobs {
  padding: 60px 0;
  background: var(--color-bg-section, #f8fafc);
}

.cps-jobs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .cps-jobs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cps-jobs__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cps-jobs__more {
  text-align: center;
  margin-top: 32px;
}

.cps-jobs__more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border: 2px solid var(--job-color-primary, #2563eb);
  border-radius: 8px;
  color: var(--job-color-primary, #2563eb);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.cps-jobs__more-link:hover {
  background: var(--job-color-primary, #2563eb);
  color: #fff;
}

/* ---------- Interviews Section ---------- */
.cps-interviews {
  padding: 60px 0;
  background: var(--color-bg-section, #f8fafc);
}

/* iv-grid（interviews.css）をそのまま利用。3件表示に最適化 */

/* ---------- PR Times Section ---------- */
.cps-prtimes {
  padding: 60px 0;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.cps-prtimes__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-border, #e5e7eb);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
}

.cps-prtimes__item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-bg, #fff);
  text-decoration: none;
  transition: background 0.2s;
}

.cps-prtimes__item:hover {
  background: var(--color-bg-section, #f8fafc);
}

.cps-prtimes__date {
  font-size: 0.85rem;
  color: var(--color-text-muted, #9ca3af);
  font-family: var(--font-mono, monospace);
}

.cps-prtimes__title {
  font-size: 0.9rem;
  color: var(--color-text, #1f2937);
  font-weight: 500;
}

.cps-prtimes__arrow {
  color: var(--color-text-muted, #9ca3af);
  flex-shrink: 0;
}

.cps-prtimes__source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted, #9ca3af);
  margin-top: 16px;
}

/* ---------- Bottom CTA Section ---------- */
.cps-bottom-cta {
  padding: 80px 0;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
}

.cps-bottom-cta__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.cps-bottom-cta__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
}

.cps-bottom-cta__content {
  flex: 1;
}

.cps-bottom-cta__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.cps-bottom-cta__text {
  font-size: 0.9rem;
  color: #fff;
  margin: 0;
  line-height: 1.6;
}

.cps-bottom-cta__actions {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
}

.cps-bottom-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.cps-bottom-cta__btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.cps-bottom-cta__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.cps-bottom-cta__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cps-bottom-cta__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* About Section (legacy) */
.cps-about__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary, #4b5563);
}

/* Tags Section */
.cps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cps-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-bg-section, #f3f4f6);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-text-secondary, #4b5563);
  transition: all 0.2s;
}

.cps-tag:hover {
  background: var(--cp-primary);
  color: #fff;
}

/* Positions Section */
.cps-positions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cps-position-card {
  display: block;
  padding: 20px;
  background: var(--color-bg-section, #f9fafb);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.cps-position-card:hover {
  border-color: var(--cp-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.cps-position-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text, #1f2937);
  margin: 0 0 8px;
}

.cps-position-card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted, #6b7280);
}

/* CTA Section */
.cps-cta {
  padding: 80px 0;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  text-align: center;
}

.cps-cta__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.cps-cta__text {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 32px;
}

.cps-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.cps-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* ---------- Single Page Responsive ---------- */
@media (max-width: 1024px) {
  .cps-about__grid {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }

  .cps-bottom-cta__inner {
    flex-wrap: wrap;
  }

  .cps-bottom-cta__content {
    flex: 1 1 400px;
  }

  .cps-bottom-cta__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .cps-hero {
    padding: 72px 0 32px;
  }

  .cps-hero > .container {
    padding: 0 12px;
    max-width: 100%;
  }

  .cps-hero__inner {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 8px 10px;
    align-items: center;
  }

  .cps-hero__logo {
    width: 72px;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 6px;
    border-radius: 8px;
    grid-row: 1;
    grid-column: 1;
  }

  .cps-hero__logo-placeholder {
    font-size: 1.1rem;
  }

  .cps-hero__header {
    grid-row: 1;
    grid-column: 2;
    padding-top: 0;
  }

  .cps-hero__badges {
    justify-content: flex-start;
    grid-row: 2;
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .cps-hero__title {
    font-size: 1.1rem;
    margin-bottom: 2px;
    line-height: 1.3;
  }

  .cps-hero__tagline {
    font-size: 0.7rem;
    margin-bottom: 0;
    line-height: 1.4;
    opacity: 0.85;
  }

  .cps-hero__meta {
    justify-content: flex-start;
    grid-row: 3;
    grid-column: 1 / -1;
    gap: 0;
    padding: 14px 0;
    margin: 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .cps-hero__meta-item {
    flex: 1;
    text-align: center;
    padding: 0 4px;
  }

  .cps-hero__meta-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .cps-hero__meta-label {
    font-size: 0.55rem;
  }

  .cps-hero__meta-value {
    font-size: 0.75rem;
  }

  .cps-hero__actions {
    justify-content: stretch;
    grid-row: 4;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 8px;
  }

  .cps-hero__btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .cps-section {
    padding: 40px 0;
  }

  .cps-quickinfo {
    display: none;
  }

  .cps-about__grid {
    grid-template-columns: 1fr;
  }

  .cps-about__sidebar {
    position: static;
  }

  .cps-prtimes__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cps-prtimes__date {
    font-size: 0.75rem;
  }

  .cps-bottom-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .cps-bottom-cta__icon {
    display: none;
  }

  .cps-bottom-cta__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cps-bottom-cta__btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   Company Single FAB (Floating Action Button)
   ========================================================================== */

.cps-fab {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 999;
  display: none;
}

@media (max-width: 768px) {
  .cps-fab {
    display: block;
  }
}

/* FAB Button */
.cps-fab__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cps-fab__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.cps-fab__icon {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cps-fab__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.cps-fab.is-open .cps-fab__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.cps-fab.is-open .cps-fab__bar:nth-child(2) {
  opacity: 0;
}

.cps-fab.is-open .cps-fab__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* FAB Panel */
.cps-fab__panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  overflow: hidden;
}

.cps-fab.is-open .cps-fab__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* FAB Sections */
.cps-fab__section {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cps-fab__section:last-child {
  border-bottom: none;
}

.cps-fab__section--cta {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 16px;
}

.cps-fab__section-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* FAB CTA */
.cps-fab__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cps-fab__cta--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.cps-fab__cta--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* FAB Links */
.cps-fab__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.cps-fab__link:hover {
  color: #6366f1;
}

.cps-fab__link svg {
  flex-shrink: 0;
  color: #9ca3af;
}

.cps-fab__link:hover svg {
  color: #6366f1;
}

/* FAB Share */
.cps-fab__share {
  display: flex;
  gap: 10px;
}

.cps-fab__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.cps-fab__share-btn:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: #f5f3ff;
}

.cps-fab__share-btn--x:hover {
  border-color: #000;
  color: #000;
  background: #f3f4f6;
}

.cps-fab__share-btn--copy.is-copied {
  border-color: #10b981;
  color: #10b981;
  background: #ecfdf5;
}

.cps-fab__share-btn--copy.is-copied::after {
  content: "✓";
  position: absolute;
  font-size: 0.7rem;
}

/* ==========================================================================
   CTA Banner — Dark Mode Override (Company Page)
   ========================================================================== */
.dark-mode .ptg-cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.dark-mode .ptg-cta-banner__title {
  color: #f1f5f9;
}

.dark-mode .ptg-cta-banner__text {
  color: #94a3b8;
}

.dark-mode .ptg-cta-banner__btn--secondary {
  border-color: #475569;
  color: #e2e8f0;
}

.dark-mode .ptg-cta-banner__btn--secondary:hover {
  border-color: #818cf8;
  color: #818cf8;
}

/* ==========================================================================
   共通CTAバナー — .page-companies コンテキストでの明示的スタイル
   他ページと同様に詳細度を揃え、配置・色が確実に適用されるようにする。
   ========================================================================== */
.page-companies .ptg-cta-banner {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 40%, #fdf2f8 100%);
}

.page-companies .ptg-cta-banner__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.page-companies .ptg-cta-banner__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: #1f2937;
}

.page-companies .ptg-cta-banner__text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.8;
  margin: 0 0 2rem;
}

.page-companies .ptg-cta-banner__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-companies .ptg-cta-banner__btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.page-companies .ptg-cta-banner__btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.page-companies .ptg-cta-banner__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
  color: #fff;
}

.page-companies .ptg-cta-banner__btn--secondary {
  background: transparent;
  border: 1.5px solid #d1d5db;
  color: #1f2937;
}

.page-companies .ptg-cta-banner__btn--secondary:hover {
  border-color: #6366f1;
  color: #6366f1;
  transform: translateY(-2px);
}

/* ダークモード時 — .page-companies コンテキスト */
.dark-mode.page-companies .ptg-cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.dark-mode.page-companies .ptg-cta-banner__title {
  color: #f1f5f9;
}

.dark-mode.page-companies .ptg-cta-banner__text {
  color: #94a3b8;
}

.dark-mode.page-companies .ptg-cta-banner__btn--secondary {
  border-color: #475569;
  color: #e2e8f0;
}

.dark-mode.page-companies .ptg-cta-banner__btn--secondary:hover {
  border-color: #818cf8;
  color: #818cf8;
}

@media (max-width: 768px) {
  .page-companies .ptg-cta-banner {
    padding: 3rem 1.5rem;
  }
  .page-companies .ptg-cta-banner__buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-companies .ptg-cta-banner__btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ==========================================================================
   Company Tag Taxonomy Page (.ctag-*)
   企業タグ別アーカイブ — ロゴグリッド表示
   ========================================================================== */

/* ---------- Hero ---------- */
.ctag-hero {
  padding: 3rem 2rem 2.5rem;
  background: linear-gradient(165deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  text-align: center;
}

.ctag-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.ctag-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #fff;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ctag-hero__breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.ctag-hero__breadcrumb a:hover {
  color: #a5b4fc;
}

.ctag-hero__label {
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #a5b4fc;
  margin: 0 0 0.75rem;
}

.ctag-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.ctag-hero__desc {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.ctag-hero__count {
  display: inline-block;
  padding: 6px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  margin: 0;
}

/* ---------- Logo Grid ---------- */
.ctag-logos {
  padding: 3rem 2rem 4rem;
  background: var(--portal-bg, #f8fafc);
}

.ctag-logos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.ctag-logos__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--portal-border, #e5e7eb);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.ctag-logos__card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.ctag-logos__card--hiring {
  border-color: rgba(99, 102, 241, 0.25);
}

/* Hiring Badge */
.ctag-logos__hiring {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 12px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  border-radius: 0 14px 0 10px;
  pointer-events: none;
}

/* Logo Visual */
.ctag-logos__visual {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: #f9fafb;
  border: 1px solid #f0f0f3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}

.ctag-logos__visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ctag-logos__placeholder {
  font-size: 1.5rem;
  font-weight: 800;
  color: #cbd5e1;
}

/* Info */
.ctag-logos__info {
  flex: 1;
  min-width: 0;
}

.ctag-logos__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctag-logos__tagline {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ctag-logos__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ctag-logos__cat {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.ctag-logos__cat--web3       { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.ctag-logos__cat--ai         { background: rgba(162, 28, 175, 0.12); color: #a21caf; }
.ctag-logos__cat--deeptech   { background: rgba(4, 120, 87, 0.12); color: #047857; }
.ctag-logos__cat--fintech    { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.ctag-logos__cat--saas       { background: rgba(234, 88, 12, 0.12); color: #ea580c; }
.ctag-logos__cat--startup    { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.ctag-logos__cat--innovator  { background: rgba(220, 38, 38, 0.12); color: #dc2626; }

.ctag-logos__funding {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ---------- Related Tags ---------- */
.ctag-related {
  padding: 2.5rem 2rem;
  background: #fff;
  border-top: 1px solid var(--portal-border, #e5e7eb);
}

.ctag-related__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ctag-related__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem;
}

.ctag-related__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ctag-related__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ctag-related__tag:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.3);
}

.ctag-related__tag-count {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
}

/* ---------- CTA ---------- */
.ctag-cta {
  padding: 4rem 2rem;
  background: linear-gradient(165deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  text-align: center;
}

.ctag-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.ctag-cta__title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.ctag-cta__text {
  font-size: 0.9rem;
  color: #fff;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.ctag-cta__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ctag-cta__btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  letter-spacing: 0.02em;
}

.ctag-cta__btn:hover {
  transform: translateY(-2px);
}

.ctag-cta__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.ctag-cta__btn--primary:hover {
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}

.ctag-cta__btn--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ctag-cta__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .ctag-hero {
    padding: 2rem 1rem 2rem;
  }

  .ctag-hero__title {
    font-size: 1.5rem;
  }

  .ctag-logos {
    padding: 2rem 1rem 3rem;
  }

  .ctag-logos__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ctag-logos__card {
    padding: 16px;
  }

  .ctag-logos__visual {
    width: 56px;
    height: 56px;
  }

  .ctag-related {
    padding: 2rem 1rem;
  }

  .ctag-cta {
    padding: 3rem 1rem;
  }

  .ctag-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .ctag-cta__btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ctag-logos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
