/* =============================================
   転職エージェント比較CTA - フロントCSS
   ============================================= */

.acta-widget {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  margin: 2em 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  background: #fff;
}

/* -------------------------------------------------------
   タブバー
------------------------------------------------------- */
.acta-tab-bar {
  display: flex;
  background: #f5f5f5;
  border-bottom: 2px solid #e0e0e0;
  overflow-x: auto;
  scrollbar-width: none;
}
.acta-tab-bar::-webkit-scrollbar { display: none; }

.acta-tab {
  flex: 1 1 auto;
  min-width: 80px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-bottom .2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.acta-tab:hover { color: #333; }
.acta-tab.active {
  color: #e05a00;
  border-bottom-color: #e05a00;
  background: #fff;
}

/* -------------------------------------------------------
   テーブル
------------------------------------------------------- */
.acta-table-wrap {
  overflow-x: auto;
}

.acta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.acta-table thead th {
  padding: 10px 12px;
  background: #fafafa;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.acta-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.acta-table tbody tr:last-child { border-bottom: none; }
.acta-table tbody tr:hover { background: #fafafa; }

/* 1位行を強調 */
.acta-row--top {
  background: linear-gradient(90deg, #fff8f2 0%, #fff 100%);
  border-left: 4px solid #e05a00 !important;
}
.acta-row--top td:first-child { padding-left: 10px; }

/* -------------------------------------------------------
   エージェント名カラム
------------------------------------------------------- */
.acta-td-name {
  padding: 14px 12px;
  min-width: 150px;
  position: relative;
}

.acta-rank-badge {
  display: inline-block;
  background: #e05a00;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-bottom: 6px;
  letter-spacing: .05em;
}

.acta-agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acta-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.acta-rank-emoji {
  font-size: 16px;
  margin-right: 4px;
}

.acta-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  display: block;
}

.acta-catchcopy {
  font-size: 11px;
  color: #888;
  margin: 2px 0 0;
  line-height: 1.4;
}

/* -------------------------------------------------------
   評価軸カラム
------------------------------------------------------- */
.acta-td-col {
  padding: 14px 12px;
  vertical-align: middle;
  white-space: nowrap;
}

/* タブで非表示になるカラム */
.acta-col-hidden { display: none; }

/* バッジ：求人数 */
.acta-badge--jobs {
  display: inline-block;
  background: #e8f4ff;
  color: #0066cc;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid #b3d4f5;
}

/* バッジ：評価 */
.acta-badge--rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fffbe6;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid #ffe082;
}
.acta-stars { display: inline-flex; gap: 1px; }
.star.full  { color: #f5a623; font-size: 14px; }
.star.half  { color: #f5a623; font-size: 14px; opacity: .6; }
.star.empty { color: #ddd;    font-size: 14px; }
.acta-rating-num { font-size: 13px; font-weight: 700; color: #b8860b; }

/* タグ */
.acta-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.acta-tag {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}
.acta-row--top .acta-tag {
  background: #ffe8d6;
  color: #c04000;
}

/* こんな人向け */
.acta-for-whom {
  font-size: 12px;
  color: #555;
  max-width: 160px;
  display: inline-block;
  line-height: 1.5;
  white-space: normal;
}

/* -------------------------------------------------------
   詳細を見るボタン
------------------------------------------------------- */
.acta-td-btn {
  padding: 12px 16px 12px 8px;
  white-space: nowrap;
}

.acta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.acta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 16px rgba(0,0,0,.25);
  color: #fff;
  text-decoration: none;
}

/* 1位ボタンはオレンジ */
.acta-btn--top {
  background: linear-gradient(135deg, #ff7b1f 0%, #e05a00 100%);
  box-shadow: 0 3px 12px rgba(224,90,0,.35);
}
.acta-btn--top:hover {
  box-shadow: 0 6px 20px rgba(224,90,0,.45);
}

/* キラッと光るアニメーション */
.acta-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255,255,255,.4);
  transform: skewX(-20deg);
  animation: acta-shine 2.4s ease-in-out infinite;
}

@keyframes acta-shine {
  0%   { left: -75%; opacity: 0; }
  20%  { opacity: 1; }
  40%  { left: 130%; opacity: 0; }
  100% { left: 130%; opacity: 0; }
}

.acta-btn-arrow {
  font-size: 14px;
  transition: transform .2s;
}
.acta-btn:hover .acta-btn-arrow { transform: translateX(3px); }

/* -------------------------------------------------------
   レスポンシブ（SP: 480px以下）
   → タブで1列ずつ切り替え
------------------------------------------------------- */
@media (max-width: 600px) {
  .acta-th-col,
  .acta-td-col {
    display: none;
  }
  .acta-th-col.acta-sp-active,
  .acta-td-col.acta-sp-active {
    display: table-cell;
  }

  .acta-tab { font-size: 12px; padding: 9px 12px; }
  .acta-name { font-size: 13px; }
  .acta-btn { font-size: 12px; padding: 8px 14px; }
  .acta-td-name { min-width: 120px; }
}
