/*
==========================================================================
RecruitPro Layout CSS - 緊急修復版
レイアウトスタイル
==========================================================================
*/

/* サイト全体のレイアウト */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1 0 auto;
}

/* ヘッダー */
.site-header {
  position: relative;
  z-index: 100;
  background: white;
  border-bottom: 1px solid #E5E7EB;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  min-height: 70px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-title a {
  color: #1F2937;
  text-decoration: none;
}

.site-title a:hover {
  color: #1E40AF;
}

.site-description {
  margin: 0;
  font-size: 0.875rem;
  color: #6B7280;
  margin-top: 2px;
}

/* メインコンテンツ */
.main-content {
  padding: 2rem 0;
}

/* セクション */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1F2937;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6B7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* グリッドシステム */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col {
  flex: 1;
  padding: 0 0.75rem;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* フッター */
.site-footer {
  background: #1F2937;
  color: white;
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-section p,
.footer-section li {
  color: #D1D5DB;
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: #D1D5DB;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.875rem;
}

/* ヒーローセクション */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
  color: white;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* パンくずリスト */
.breadcrumbs {
  background: #F9FAFB;
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: '>';
  margin: 0 0.75rem;
  color: #6B7280;
}

.breadcrumb-item a {
  color: #1E40AF;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6B7280;
}

/* 求人ページ パンくずリスト */
.job-breadcrumbs {
  background: #F9FAFB;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #E5E7EB;
}

.job-breadcrumbs .breadcrumb-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.job-breadcrumbs .breadcrumb-list li {
  display: flex;
  align-items: center;
}

.job-breadcrumbs .breadcrumb-list li:not(:last-child)::after {
  content: '>';
  margin: 0 0.5rem;
  color: #9CA3AF;
}

.job-breadcrumbs .breadcrumb-list a {
  color: var(--primary-navy, #1E40AF);
  text-decoration: none;
}

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

.job-breadcrumbs .breadcrumb-list .current {
  color: #6B7280;
}

/* ページネーション */
.pagination-wrapper {
  margin: 2rem 0;
  text-align: center;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.page-numbers a,
.page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-numbers a {
  background: white;
  border: 1px solid #E5E7EB;
  color: #6B7280;
}

.page-numbers a:hover {
  background: #1E40AF;
  border-color: #1E40AF;
  color: white;
}

.page-numbers .current {
  background: #1E40AF;
  color: white;
  border: 1px solid #1E40AF;
}

/* サイドバー */
.sidebar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
}

.widget {
  margin-bottom: 2rem;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1F2937;
  border-bottom: 2px solid #1E40AF;
  padding-bottom: 0.5rem;
}

/* アーカイブページ */
.archive-header {
  text-align: center;
  padding: 3rem 0;
  background: #F9FAFB;
  margin-bottom: 3rem;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1F2937;
}

.archive-description {
  font-size: 1.125rem;
  color: #6B7280;
  max-width: 600px;
  margin: 0 auto;
}

/* 投稿リスト */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .col-md-4 { flex: 0 0 50%; max-width: 50%; }
  .col-md-6 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem;
    min-height: 60px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .row {
    margin: 0 -0.5rem;
  }
  
  .col {
    padding: 0 0.5rem;
  }
  
  .col-1, .col-2, .col-3, .col-4, .col-6, .col-8, .col-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .page-numbers {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .sidebar {
    padding: 1.5rem;
  }
  
  .breadcrumb-item:not(:last-child)::after {
    margin: 0 0.5rem;
  }
}
