/* ==========================================================================
   企業情報コンテンツ専用スタイル
   ========================================================================== */

/* 背景100%（薄いグレー） */
.company-spec-wrapper {
  width: 100%;
  background-color: #f2f5f8;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* 横幅1000px制限・センター揃え */
.company-spec-inner {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 汎用パーツ */
.company-spec-bold { font-weight: bold; }
.company-spec-leading-loose { line-height: 2.0; }
.company-spec-leading-relaxed { line-height: 1.75; }
.company-spec-muted-text { font-size: 0.85em; color: #666666; display: inline-block; margin-top: 5px; }

/* テーブルの行構造 */
.company-spec-row {
  display: flex;
  border-bottom: 1px solid #b0c2de;
  padding: 24px 10px;
  box-sizing: border-box;
}
.company-spec-row.company-spec-border-none {
  border-bottom: none;
}

/* 左側：見出し */
.company-spec-label {
  width: 180px;
  flex-shrink: 0;
  font-weight: bold;
  color: #003366;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* 右側：内容 */
.company-spec-value {
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333333;
}

/* 役員テーブル */
.company-spec-officer-table {
  border-collapse: collapse;
  width: auto;
  margin: 0;
  padding: 0;
}
.company-spec-officer-table th {
  text-align: left;
  font-weight: normal;
  padding: 0 40px 8px 0;
  color: #333333;
}
.company-spec-officer-table td {
  padding: 0 0 8px 0;
  color: #333333;
}
.company-spec-officer-table tr:last-child th,
.company-spec-officer-table tr:last-child td {
  padding-bottom: 0;
}

/* 所在地グリッド（PC時は2カラム） */
.company-spec-location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
}
.company-spec-location-card p {
  margin: 0 0 4px 0;
}
.company-spec-location-card p:last-child {
  margin-bottom: 0;
}
.company-spec-location-title {
  font-weight: bold;
  color: #003366;
  margin-bottom: 8px !important;
}

/* ==========================================================================
   レスポンシブ対応（画面幅768px以下）
   ========================================================================== */
@media screen and (max-width: 768px) {
  .company-spec-wrapper {
    padding: 40px 15px;
  }
  
  .company-spec-inner {
  	width:90%;
  	margin:0 5%;
  }

  /* 縦並びにスイッチ */
  .company-spec-row {
    flex-direction: column;
    padding: 16px 5px;
  }
  
  .company-spec-label {
    width: 100%;
    margin-bottom: 12px;
  }
  
  /* 所在地を1カラムに変更 */
  .company-spec-location-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .company-spec-officer-table th {
    padding-right: 20px;
  }
}
/* ==========================================================================
   歴史セクション専用スタイル
   ========================================================================== */

/* セクション全体のラッパー */
.history-spec-wrapper {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 20px;
  box-sizing: border-box;
}

/* 外側の制限（タイトル・写真の基準幅1100px） */
.history-spec-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

/* 1. セクションヘッダー（歴史 History） */
.history-spec-header {
  text-align: center;
  margin-bottom: 40px;
}

.history-spec-title-ja {
  font-size: 32px;
  font-weight: bold;
  color: #0b316a;
  margin: 0 0 10px 0;
  letter-spacing: 0.05em;
  font-family: "Arial Black", "Impact", "Noto Sans JP", "Hiragino Sans", "Segoe UI Black", "Meiryo UI", sans-serif;
}

.history-spec-title-en {
  font-size: 15px;
  color: #777777;
  margin: 0;
  font-weight: bold;
  color: #4a72b2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 2. メインビジュアル（グレー枠の外・幅1100px・💡比率110:35固定） */
.history-spec-visual-container {
  width: 100%;
  aspect-ratio: 110 / 35; /* 💡縦横比110:35に固定 */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.history-spec-visual-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* 枠に合わせて綺麗にトリミング */
}

/* 3. コンテンツカード（最大幅900px・中央揃え・💡重なり50px） */
.history-spec-card {
  max-width: 900px;
  margin: -50px auto 0 auto; /* 💡写真との重なりを正確に50pxに設定 */
  background-color: #f2f5f8;
  /* 💡重なった50px分に、本来必要な上部余白(60px)を足して「110px」に設定 */
  padding: 110px 80px 80px 80px; 
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* カード内タイトル（創業から未来へ） */
.history-spec-card-title {
  font-size: 2rem;
  font-weight: bold;
  color: #003366;
  text-align: center;
  margin: 0 0 25px 0;
  letter-spacing: 0.05em;
}

/* 赤いアクセント線 */
.history-spec-card-divider {
  width: 40px;
  height: 4px;
  background-color: #d11a2a;
  margin: 0 auto 40px auto;
}

/* 本文テキストエリア */
.history-spec-card-text {
  width: 100%;
  margin: 0 auto;
}

.history-spec-card-text p {
  font-size: 1rem;
  line-height: 2.1;
  color: #333333;
  margin: 0 0 30px 0;
  text-align: justify;
}

.history-spec-card-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   レスポンシブ対応（画面幅940px以下 / スマートフォン向け）
   ========================================================================== */
@media screen and (max-width: 940px) {
  .history-spec-card {
  	width:90%;
    padding: 110px 40px 60px 40px;
  }
}

@media screen and (max-width: 768px) {
  .history-spec-wrapper {
    padding: 50px 15px;
  }

  .history-spec-title-ja {
    font-size: 1.8rem;
  }

  /* 画面が狭いスマホ環境でも50pxの重なりとスマートな見栄えを維持 */
  .history-spec-card {
  	width:90%;
    margin-top: -50px;
    padding: 90px 20px 40px 20px;
  }

  .history-spec-card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .history-spec-card-divider {
    margin-bottom: 25px;
  }

  .history-spec-card-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
  }
}
