/* =================================================================
   企業一覧ページ専用スタイル（archive-company.php）
   ================================================================= */

/* Astraテーマのスタイルをリセット */
.ast-container .companies-container,
.ast-container .company-detail {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px !important;
}

/* コンテナ */
.companies-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ヘッダー部分 */
.companies-header {
  text-align: center;
  margin-bottom: 40px;
}

.companies-header h1 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 10px;
}

.companies-header p {
  color: #666;
  font-size: 1.1em;
}

/* 検索フィルター */
.search-filters {
  background: #f9f9f9;
  padding: 25px;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-filters form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.search-filters select,
.search-filters input[type="text"] {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  min-width: 150px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-filters select:focus,
.search-filters input[type="text"]:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.search-filters button,
.search-filters .reset-filter {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-filters button {
  background: #0073aa;
  color: white;
}

.search-filters button:hover {
  background: #005a87;
}

.search-filters .reset-filter {
  background: #6c757d;
  color: white;
}

.search-filters .reset-filter:hover {
  background: #545b62;
}

/* 企業グリッド - PC2列、スマホ1列 */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  align-items: start;
}

/* 企業カード - 新デザイン（ブルーベース） */
.company-card {
  background: #1e40af; /* blue-700相当 */
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: white;
  padding: 48px;
  border: none;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: auto;
  height: auto;
}

.company-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 企業名 - 中央配置・大きく */
.company-header {
  text-align: center;
}

.company-name {
  margin: 0 0 20px 0;
  font-size: 28px; /* 企業名サイズ28px */
  font-weight: 600; /* font-semibold相当 */
  letter-spacing: 0.1em; /* tracking-wider相当 */
  color: white; /* 企業名を白色に */
}

.company-name a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.company-name a:hover {
  opacity: 0.9;
}

/* 住所 - 中央配置 */
.company-location {
  text-align: center;
  font-size: 1rem; /* 16px - 本文統一サイズ */
  font-weight: 300; /* font-light相当 */
  letter-spacing: 0.05em; /* tracking-wide相当 */
  opacity: 0.9;
  margin-bottom: 48px;
}

/* コンテンツセクション */
.company-content {
  flex-grow: 1;
  padding: 0;
}

.company-job-details {
  margin-bottom: 32px;
}

/* 企業一覧ページの見出しスタイル */
.archive .company-job-details h2,
.post-type-archive-company .company-job-details h2,
.archive .company-job-details h3,
.post-type-archive-company .company-job-details h3,
.companies-container .company-job-details h2,
.companies-container .company-job-details h3,
.company-job-details h2,
.company-job-details h3 {
  font-size: 24px !important; /* 見出しサイズ24px */
  font-weight: 500 !important; /* font-medium相当 */
  letter-spacing: 0.05em !important; /* tracking-wide相当 */
  margin: 0 0 16px 0 !important;
  color: white !important;
}

.job-details-description {
  font-size: 16px !important; /* 16px - 本文統一サイズ */
  line-height: 1.75; /* leading-relaxed相当 */
  letter-spacing: 0.05em; /* tracking-wide相当 */
  font-weight: 300; /* font-light相当 */
  margin-bottom: 16px;
}

/* 区切り線 */
.company-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 32px 0;
}

.company-business-content {
  margin-bottom: 48px;
}

.company-description {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.7;
  font-size: 0.95em;
}

.company-meta {
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

.company-meta .meta-item {
  margin-bottom: 10px;
  font-size: 0.9em;
}

.company-meta strong {
  color: #333;
  display: inline-block;
  min-width: 80px;
}

.company-footer {
  margin-top: auto;
  text-align: center;
}

.read-more {
  display: inline-block;
  padding: 10px 20px;
  background: #0073aa;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-size: 0.9em;
}

.read-more:hover {
  background: #005a87;
}

/* 古いタグスタイル */
.tag {
  display: inline-block;
  padding: 3px 8px; /* より小さく */
  margin: 2px 4px 2px 0;
  border-radius: 15px;
  font-size: 11px !important; /* より小さく */
  font-weight: 500;
}

.tag.job-type {
  background: #e3f2fd;
  color: #1976d2;
}

.tag.industry {
  background: #f3e5f5;
  color: #7b1fa2;
}

.tag.education {
  background: #e8f5e8;
  color: #388e3c;
}

/* 企業一覧ページの事業内容見出しスタイル */
.archive .company-business-content h2,
.post-type-archive-company .company-business-content h2,
.archive .company-business-content h3,
.post-type-archive-company .company-business-content h3,
.companies-container .company-business-content h2,
.companies-container .company-business-content h3,
.company-business-content h2,
.company-business-content h3 {
  font-size: 24px !important; /* 見出しサイズ24px */
  font-weight: 500 !important; /* font-medium相当 */
  letter-spacing: 0.05em !important; /* tracking-wide相当 */
  margin: 0 0 16px 0 !important;
  color: white !important;
}

.business-description {
  font-size: 16px !important; /* 16px - 本文統一サイズ */
  line-height: 1.75; /* leading-relaxed相当 */
  letter-spacing: 0.05em; /* tracking-wide相当 */
  font-weight: 300; /* font-light相当 */
  margin-bottom: 16px;
}

/* タグ部分 - 中央配置のボタンスタイル */
.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* より小さく */
  justify-content: center;
  padding: 0;
  background: none;
  min-height: auto;
}

.tag-group {
  display: contents;
}

.tag {
  font-weight: 500; /* font-medium相当 */
  padding: 4px 12px !important; /* さらに小さく */
  border-radius: 9999px; /* rounded-full相当 */
  font-size: 12px !important; /* 12px - さらに小さく */
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: inline-block;
}

/* 職種タグ（黄色） */
.job-tag {
  background: #fbbf24; /* yellow-400相当 */
  color: #1e3a8a; /* blue-900相当 */
}

.job-tag:hover {
  background: #fcd34d; /* yellow-300相当 */
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 業種タグ（シアン） */
.industry-tag {
  background: #22d3ee; /* cyan-400相当 */
  color: #1e3a8a; /* blue-900相当 */
}

.industry-tag:hover {
  background: #67e8f9; /* cyan-300相当 */
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.education-tag {
  background: #a855f7; /* purple-500相当 */
  color: white;
}

.education-tag:hover {
  background: #9333ea; /* purple-600相当 */
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 詳細ボタン */
.company-detail-link {
  margin-top: 32px;
  text-align: center;
}

.detail-button {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 20px !important; /* より小さく */
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px !important; /* 14px - より小さく */
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.detail-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 検索結果なし */
.no-companies {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-companies p {
  font-size: 1.1em;
  margin-bottom: 15px;
}

/* ページネーション */
.pagination {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

.pagination .prev,
.pagination .next {
  font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  /* スマホ1列表示 - !important で確実に適用 */
  .companies-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .search-filters form {
    flex-direction: column;
    gap: 10px;
  }

  .search-filters select,
  .search-filters input[type="text"],
  .search-filters button {
    width: 100%;
    min-width: auto;
  }

  .companies-header h1 {
    font-size: 2em;
  }

  .company-card {
    padding: 24px !important;
  }

  .company-name {
    font-size: 22px !important; /* スマホ用企業名サイズ */
  }

  .company-location {
    font-size: 1rem !important; /* 16px */
    margin-bottom: 32px !important;
  }

  /* スマホ版見出しスタイル - 企業一覧ページ専用 */
  .archive .company-job-details h2,
  .post-type-archive-company .company-job-details h2,
  .archive .company-business-content h2,
  .post-type-archive-company .company-business-content h2,
  .archive .company-job-details h3,
  .post-type-archive-company .company-job-details h3,
  .archive .company-business-content h3,
  .post-type-archive-company .company-business-content h3,
  .companies-container .company-job-details h2,
  .companies-container .company-job-details h3,
  .companies-container .company-business-content h2,
  .companies-container .company-business-content h3 {
    font-size: 20px !important; /* スマホ用見出しサイズ */
    color: white !important;
  }

  .job-details-description,
  .business-description {
    font-size: 16px !important; /* 16px - 本文統一 */
  }

  .tag {
    font-size: 11px !important; /* 11px - スマホでさらに小さく */
    padding: 3px 10px !important;
  }

  .company-detail-link {
    margin-top: 24px !important;
  }

  .detail-button {
    padding: 6px 16px !important;
    font-size: 12px !important; /* 12px - スマホでより小さく */
  }
}

/* 企業詳細ページ */
.company-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.company-detail-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.company-detail-header .company-name {
  font-size: 2.2em;
  color: #333;
  margin: 0;
}

.company-detail-content {
  margin-bottom: 40px;
}

.company-detail .company-description {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #444;
}

.company-meta-detail {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
}

.company-meta-detail .meta-item {
  margin-bottom: 20px;
}

.company-meta-detail .meta-item:last-child {
  margin-bottom: 0;
}

.company-meta-detail strong {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 1.1em;
}

.company-meta-detail .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-navigation {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.back-to-list {
  display: inline-block;
  padding: 12px 24px;
  background: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.back-to-list:hover {
  background: #545b62;
}

/* =================================================================
   フロントページ専用スタイル
   ================================================================= */

/* ヒーローセクション */
.hero-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* カード効果 */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ボタンアニメーション */
.wp-block-button .wp-block-button__link {
  transition: all 0.3s ease;
}

/* =================================================================
   企業詳細ページのスタイル
   ================================================================= */

.company-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.company-detail-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px;
  background: linear-gradient(135deg, #1e6bb8 0%, #2980b9 100%);
  color: white;
  border-radius: 10px;
}

.company-detail-header .company-name {
  margin: 0 0 15px 0;
  font-size: 2.2em;
  font-weight: bold;
}

.company-location-detail {
  font-size: 1.1em;
  opacity: 0.9;
}

.company-detail-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

/* 企業詳細ページ専用のスタイル */
.single-company .company-business-content,
.single-company .company-job-details {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 企業詳細ページ専用のテキストスタイル */
.single-company .business-description,
.single-company .job-details-description {
  line-height: 1.8;
  color: #555;
  font-size: 1.05em;
}

/* 企業詳細ページ専用の見出しスタイル */
.single-company .company-business-content h2,
.single-company .company-job-details h2,
.single-company .company-business-content h3,
.single-company .company-job-details h3,
.company-detail .company-business-content h2,
.company-detail .company-job-details h2,
.company-detail .company-business-content h3,
.company-detail .company-job-details h3 {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #2c3e50 !important;
  margin: 0 0 15px 0 !important;
  border-bottom: 3px solid #3498db !important;
  padding-bottom: 8px !important;
}

/* 企業基本情報カード */
.company-info-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
}

.company-info-card h3 {
  margin: 0 0 20px 0;
  font-size: 1.3em;
  color: #2c3e50;
  text-align: center;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.info-grid {
  display: grid;
  gap: 20px;
}

.info-item {
  padding: 15px;
  background: white;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}

.info-item strong {
  display: inline-block;
  color: #495057;
  margin-bottom: 8px;
  font-weight: 600;
}

.tags-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

/* 詳細ページ用のタグスタイル */
.company-info-card .job-tag {
  background: #fbbf24; /* yellow-400相当 - カードコンポーネントと統一 */
  color: #1e3a8a; /* blue-900相当 */
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: 500;
  display: inline-block;
}

.company-info-card .industry-tag {
  background: #22d3ee; /* cyan-400相当 - カードコンポーネントと統一 */
  color: #1e3a8a; /* blue-900相当 */
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: 500;
  display: inline-block;
}

.company-info-card .education-tag {
  background: #a855f7; /* purple-500相当 - カードコンポーネントと統一 */
  color: white;
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: 500;
  display: inline-block;
}

/* ナビゲーション */
.company-navigation {
  text-align: center;
  margin-top: 30px;
}

.back-to-list {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.back-to-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* レスポンシブ対応（詳細ページ用） */
@media (max-width: 768px) {
  .company-detail {
    padding: 15px;
  }

  .company-detail-header {
    padding: 20px;
  }

  .company-detail-header .company-name {
    font-size: 1.8em;
  }

  .company-business-content,
  .company-job-details,
  .company-info-card {
    padding: 20px;
  }

  .info-item {
    padding: 12px;
  }

  .back-to-list {
    padding: 10px 24px !important;
    font-size: 0.95em !important;
  }
}

/* Astraテーマのデフォルトスタイルを無効化 */
.ast-container .companies-container *,
.ast-container .company-detail * {
  box-sizing: border-box;
}

/* Astraのレスポンシブ調整 */
@media (min-width: 922px) {
  .ast-container .companies-container,
  .ast-container .company-detail {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* チェックリストスタイルの改善 */
.is-style-checkmark-list li {
  padding-left: 1.5em;
  margin-bottom: 0.5em;
}

.is-style-checkmark-list li::marker {
  content: "✓ ";
  color: #0073aa;
  font-weight: bold;
}

/* グラデーションテキスト */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* カスタムヘッダー・フッターのスタイル調整 */
.header-company {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.footer-company {
  border-top: 1px solid #e1e5e9;
}

/* レスポンシブ対応 - フロントページ */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 32px !important;
  }

  .hero-section p {
    font-size: 16px !important;
  }

  .feature-cards .wp-block-columns {
    flex-direction: column;
  }

  .event-info .wp-block-columns {
    flex-direction: column;
  }
}
