/* ================================================
   会社概要ページ専用CSS
   ファイル名: company-page.css
   配置先: /wp-content/themes/horiprospeed/company-page.css
   ================================================ */

/* 会社概要ページラッパー */
.company-wrapper {
  background: #fff;
  padding: 0;
}

/* セクション共通 */
.company-section {
  padding: 80px 0;
  background: #fff;
}

.company-section.alt-bg {
  background: #fafafa;
}

.company-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.company-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #111;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid #111;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* 会社概要テーブル */
.company-info-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #eee;
}

.company-info-table th,
.company-info-table td {
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  line-height: 1.8;
}

.company-info-table th {
  width: 200px;
  font-weight: 600;
  color: #111;
  background: #fafafa;
  font-size: 15px;
}

.company-info-table td {
  color: #333;
  font-size: 15px;
}

.company-info-table tr:last-child th,
.company-info-table tr:last-child td {
  border-bottom: none;
}

/* 事業内容グリッド */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .business-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 事業カード */
.business-item {
  background: #fff;
  border: 1px solid #eee;
  padding: 35px 30px;
  transition: all 0.3s ease;
}

.business-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.business-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
}

.business-item p {
  color: #555;
  line-height: 1.8;
  font-size: 15px;
  margin: 0;
}

/* アクセスセクション */
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}

.access-item {
  background: #fff;
  padding: 35px 30px;
  border: 1px solid #eee;
}

.access-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
}

.access-item p {
  color: #555;
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 15px;
}

.access-item p:last-child {
  margin-bottom: 0;
}

.access-item strong {
  color: #111;
  font-weight: 600;
}

.access-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.access-item a:hover {
  color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .company-info-table {
    display: block;
    border: none;
  }
  
  .company-info-table thead {
    display: none;
  }
  
  .company-info-table tbody,
  .company-info-table tr,
  .company-info-table th,
  .company-info-table td {
    display: block;
    width: 100%;
  }
  
  .company-info-table tr {
    margin-bottom: 20px;
    border: 1px solid #eee;
    background: #fff;
  }
  
  .company-info-table th {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-bottom: none;
  }
  
  .company-info-table td {
    padding: 20px;
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .company-section {
    padding: 60px 0;
  }
  
  .company-section h2 {
    font-size: 22px;
    margin-bottom: 30px;
  }
  
  .business-item {
    padding: 25px 20px;
  }
  
  .business-item h3 {
    font-size: 18px;
  }
  
  .access-item {
    padding: 25px 20px;
  }
  
  .access-item h3 {
    font-size: 18px;
  }
  
  .company-info-table th,
  .company-info-table td {
    font-size: 14px;
  }
}
