/* ==========================================================================
   キャリアナビ (CareerNavi) - CSS Style Definition
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #0f172a;
  --accent-orange: #ff6b00;
  --accent-orange-hover: #e05d00;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --gold: #f59e0b;
  --silver: #94a3b8;
  --bronze: #d97706;
  
  --pill-agent: #3b82f6;
  --pill-purple: #8b5cf6;
  --pill-green: #10b981;
  --pill-cyan: #06b6d4;
  --pill-red: #ef4444;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 36px rgba(15,23,42,0.12);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* レイアウトコンテナ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 信頼性宣言ヘッダー */
.top-announcement {
  background: #0f172a;
  color: #94a3b8;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.badge-new {
  background: #2563eb;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 6px;
}
.update-date {
  color: #cbd5e1;
  font-weight: 500;
}

/* メインナビゲーション */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-icon {
  font-size: 24px;
}
.logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--secondary);
  letter-spacing: -0.5px;
}
.logo-sub {
  color: var(--primary);
  font-size: 16px;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.btn-header {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}
.btn-header:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* ヒーローエリア */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e1b4b 100%);
  color: #fff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 900;
  margin: 0 0 20px;
}
.hero-title .highlight {
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 30px;
}
.hero-stats {
  display: flex;
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}
.stat-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #38bdf8;
}
.stat-label {
  font-size: 12px;
  color: #94a3b8;
}

/* 診断ガラスカード */
.hero-card {
  position: relative;
  z-index: 10;
}
.card-glass {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.card-glass h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #fff;
}
.card-subtitle {
  margin: 0 0 20px;
  font-size: 13px;
  color: #94a3b8;
}
.quick-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filter-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-tag:hover, .filter-tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.search-input-box {
  position: relative;
}
.search-input-box input {
  width: 100%;
  padding: 14px 45px 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.search-input-box input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.3);
}
.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}

/* ショートカットグリッド */
.section {
  padding: 70px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: var(--secondary);
}
.section-subtitle {
  color: var(--text-muted);
  margin-top: 5px;
  font-size: 14px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.shortcut-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.shortcut-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.icon-agent { background: #eff6ff; }
.icon-sidebiz { background: #ecfdf5; }
.icon-freelance { background: #f3e8ff; }
.icon-skill { background: #ecfeff; }

.shortcut-card h4 {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 700;
}
.shortcut-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
  flex-grow: 1;
}
.shortcut-arrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* ランキングカード */
.ranking-section {
  background: #f1f5f9;
}
.btn-criteria-modal {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}
.btn-criteria-modal:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ranking-cards-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ranking-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.ranking-card:hover {
  box-shadow: var(--shadow-lg);
}

/* 順位冠 */
.rank-crown {
  position: absolute;
  top: -16px;
  left: 24px;
  color: #fff;
  font-weight: 800;
  padding: 4px 18px;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.rank-crown span { font-size: 20px; }

.rank-gold { border-color: var(--gold); }
.rank-gold .rank-crown { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.rank-silver { border-color: var(--silver); }
.rank-silver .rank-crown { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); }

.rank-bronze { border-color: var(--bronze); }
.rank-bronze .rank-crown { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }

.number-badge { background: #475569; }

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.category-pill {
  display: inline-block;
  background: var(--pill-agent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.pill-purple { background: var(--pill-purple); }
.pill-green { background: var(--pill-green); }
.pill-cyan { background: var(--pill-cyan); }
.pill-red { background: var(--pill-red); }

.service-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--secondary);
}
.service-catch {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}

.rating-box {
  text-align: right;
  background: #f8fafc;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
}
.rating-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--secondary);
}
.rating-score span {
  font-size: 12px;
  color: var(--text-muted);
}

.card-main-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .card-main-grid {
    grid-template-columns: 1fr;
  }
}

/* ダミーバナー（アフィリエイトリンク用コンポーネント） */
.affiliate-banner-box {
  width: 100%;
}
.affiliate-img-link {
  text-decoration: none;
  display: block;
}
.dummy-banner {
  height: 160px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #fff;
  text-align: center;
  transition: var(--transition);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}
.dummy-banner:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}
.banner-gradient-blue { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); }
.banner-gradient-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.banner-gradient-green { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.banner-gradient-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%); }
.banner-gradient-red { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }

.banner-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.banner-sub {
  font-size: 12px;
  opacity: 0.9;
}

/* 強みリスト */
.points-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.points-list li {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.icon-check {
  color: #10b981;
  font-weight: bold;
}

/* スペック比較テーブル */
.spec-table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  text-align: center;
}
.spec-table th {
  background: #e2e8f0;
  color: var(--secondary);
  font-weight: 700;
}
.highlight-free {
  color: #ef4444;
  font-weight: 800;
}

/* CTAエリア */
.cta-box {
  text-align: center;
}
.btn-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  color: #fff !important;
  font-weight: 800;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.btn-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.btn-orange { background: linear-gradient(135deg, #ff6b00 0%, #ff8800 100%); }
.btn-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.btn-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.btn-cyan { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.btn-red { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }

.cta-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 2px;
}
.cta-main {
  font-size: 18px;
  letter-spacing: 0.5px;
}
.cta-secondary {
  margin-top: 8px;
}
.trust-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ガイドセクション */
.guide-section {
  background: #fff;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.guide-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
}
.guide-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 10px;
}
.guide-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--secondary);
}
.guide-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* 信頼性セクション */
.trust-section {
  background: #0f172a;
  color: #fff;
}
.trust-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.trust-box h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.trust-box p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 24px;
}
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.trust-badge-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: #cbd5e1;
}

/* モーダル */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  margin: 0;
  font-size: 18px;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-body {
  padding: 24px;
  font-size: 14px;
}
.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}
.modal-table th, .modal-table td {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  font-size: 13px;
}
.modal-table th { background: #f8fafc; }
.modal-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 15px;
}

/* フッター */
.site-footer {
  background: #090d16;
  color: #64748b;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
.footer-info .logo-text {
  color: #fff;
}
.footer-desc {
  font-size: 13px;
  margin-top: 12px;
}
.footer-links h4 {
  color: #f8fafc;
  font-size: 15px;
  margin: 0 0 16px;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
}
