/* =================================================================
   company.css
   会社概要ページ用のスタイルシート
================================================================= */

/* --- 1. メインコンテンツエリア --- */
.main-content {
  padding: 60px 0 80px;
}

/* --- 2. 会社概要テーブル --- */
.company-profile-table {
  width: 100%;
  max-width: 900px; /* コンテンツの最大幅を調整 */
  margin: 0 auto;
  border-collapse: collapse;
  border-top: 1px solid var(--color-border);
}

.company-profile-table th,
.company-profile-table td {
  padding: 24px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

.company-profile-table th {
  width: 28%;
  font-weight: 600;
  background-color: var(--color-light-gray);
}

.company-profile-table td {
  width: 72%;
}

/* --- 3. レスポンシブ対応 (768px以下) --- */
@media (max-width: 768px) {
  .main-content {
    padding: 40px 0 60px;
  }

  .company-profile-table {
    border-top: none; /* スマホでは各行の下線で区切る */
  }

  /* テーブルの各行をブロック要素として扱う */
  .company-profile-table tr {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .company-profile-table tr:first-child {
    border-top: 1px solid var(--color-border);
  }
  
  /* thとtdを縦並びにする */
  .company-profile-table th,
  .company-profile-table td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background-color: transparent;
    padding:0 20px;
  }

  .company-profile-table th {
    font-weight: 600;
    margin-bottom: 8px;
  }
}
