/* ===================================
   companies-layout.css
   レイアウト専用スタイル
   =================================== */

/* 基本レイアウト */
.companies-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.companies-content {
  flex: 1;
  width: 100%;
}

/* グリッドレイアウト - 企業セクション */
.company-section {
  display: block;
  width: 100%;
  margin-bottom: 50px;
}

/* フレックスレイアウト - 検索・フィルター */
.companies-search {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 10px;
}

.region-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

/* パンくずナビゲーション */
.breadcrumbs {
  padding: 10px 0;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumbs a {
  color: #5DB8E8;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 8px;
  color: #999;
}

/* メインコンテンツ配置 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* セクション間の配置 */
.companies-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 0;
}

/* テーブル配置 */
.company-table {
  width: 100%;
  margin-bottom: 30px;
  display: table;
  table-layout: fixed;
}

.company-table th:nth-child(1) {
  width: 15%;
}

.company-table th:nth-child(2) {
  width: 30%;
}

.company-table th:nth-child(3) {
  width: 55%;
}

/* セクション区切り */
.company-section + .company-section {
  border-top: 1px solid #eee;
  padding-top: 40px;
}

/* フッター配置 */
.site-footer {
  margin-top: 60px;
  width: 100%;
}

/* ボタングループ配置 */
.region-filter {
  max-width: 1000px;
  margin: 0 auto 40px;
}

/* 検索結果表示エリア */
.no-results {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  margin: 40px 0;
}

/* コンテンツ幅制御 */
.companies-content {
  width: 100%;
  overflow-x: auto;
}

/* セクション内要素の配置 */
.section-intro {
  margin: 0 0 25px 0;
  width: 100%;
}

/* 固定要素の配置調整 */
.back-to-top {
  position: fixed;
  z-index: 999;
}

/* 広告コンテナ配置 */
.ad-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  text-align: center;
}

/* 更新日表示 */
.update-date {
  text-align: center;
  margin-top: 20px;
  padding: 10px 0;
}