/* ===================================
   companies-main.css
   企業ページメインスタイル
   =================================== */

/* 上部に戻るボタンスタイル */
.back-to-top {
  position: fixed;
  right: 80px; /* 翻訳ボタンと重ならないよう調整 */
  bottom: 40px;
  width: 50px;
  height: 50px;
  background-color: #5DB8E8;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(93, 184, 232, 0.3);
  z-index: 999; /* 翻訳ボタンより下に */
  text-decoration: none;
}

.back-to-top:hover {
  background-color: #4CA8D8;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(93, 184, 232, 0.4);
}

.back-to-top i {
  color: white;
}

/* 既存の.page-top-linkを非表示 */
.page-top-link {
  display: none;
}

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

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

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

.companies-header p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  max-width: 800px;
  margin: 0 auto 20px;
}

.update-date {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}

/* 検索セクション */
.companies-search {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
}

.companies-search input {
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 25px;
  width: 300px;
  outline: none;
  transition: border-color 0.3s ease;
}

.companies-search input:focus {
  border-color: #5DB8E8;
}

.companies-search button {
  padding: 12px 24px;
  background-color: #5DB8E8;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.companies-search button:hover {
  background-color: #4CA8D8;
}

/* 地域フィルター */
.region-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.region-filter button {
  padding: 8px 16px;
  border: 2px solid #ddd;
  background-color: white;
  color: #666;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.region-filter button:hover {
  border-color: #5DB8E8;
  color: #5DB8E8;
}

.region-filter button.active {
  background-color: #5DB8E8;
  border-color: #5DB8E8;
  color: white;
}

/* 企業セクション */
.company-section {
  margin-bottom: 50px;
}

.company-section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 3px solid #5DB8E8;
  padding-bottom: 10px;
}

.country-flag {
  margin-right: 10px;
  font-size: 1.2em;
}

.section-intro {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
}

/* 企業テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.company-table thead {
  background-color: #5DB8E8;
  color: white;
}

.company-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}

.company-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.company-table tbody tr:hover {
  background-color: #f8f9fa;
}

.company-name {
  font-weight: 600;
  color: #333;
  min-width: 120px;
}

.model-name {
  color: #555;
  line-height: 1.5;
}

.highlight-point {
  color: #444;
  line-height: 1.6;
}

.highlight-point strong {
  color: #2c5aa0;
  font-weight: 600;
}

/* 検索結果なし */
.no-results {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 1.1rem;
}

/* 広告コンテナ */
.ad-container {
  text-align: center;
  margin: 40px auto;
  padding: 20px 0;
  max-width: 1200px;
}