/* ============================================
   会社案内ページ専用スタイル
   company.css
   モバイルファースト / ブレークポイント: 768px
   ============================================ */

.header_nav_item.is_current {
  color: var(--color_main);
  border-bottom: 2px solid var(--color_main);
  padding-bottom: 2px;
}

/* ============================================
   ページヒーロー（SP）
   ============================================ */
.co_hero {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.co_hero_bg {
  position: absolute;
  inset: 0;
}

.co_hero_bg picture,
.co_hero_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
}

.co_hero_inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 6vw;
}

.co_hero_title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  border-left: 4px solid var(--color_main);
  padding-left: 16px;
}

/* ============================================
   経営理念（SP）
   ============================================ */
.co_philosophy {
  background: var(--color_white);
  padding: 50px 0;
}

.co_philosophy_inner {
  padding: 0 6vw;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.co_philosophy_logo img {
  height: 50px;
  width: auto;
}

.co_philosophy_text {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color_black);
  text-align: left;
}

/* ============================================
   代表メッセージ（SP）
   ============================================ */
.co_message {
  background: var(--color_sub);
  padding: 60px 0;
}

.co_message_inner {
  padding: 0 6vw;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.co_message_content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--color_white);
  border-radius: 10px;
  padding: 28px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.co_message_img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.co_message_img img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.co_message_img_caption {
  font-size: 0.875rem;
  color: var(--color_gray);
  text-align: center;
  line-height: 1.4;
}

.co_message_text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.co_message_body {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color_black);
}

.co_message_sign {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color_main);
  text-align: right;
  /* padding-top: 8px; */
  /* border-top: 1px solid #e0e0e0; */
}

/* ============================================
   会社概要（SP）
   ============================================ */
.co_overview {
  background: var(--color_white);
  padding: 60px 0;
}

.co_overview_inner {
  padding: 0 6vw;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.co_overview_tablebox {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.co_overview_table {
  width: 100%;
  border-collapse: collapse;
  min-width: 340px;
}

.co_overview_table tr {
  border-bottom: 1px solid #e0e0e0;
}

.co_overview_table tr:first-child {
  border-top: 1px solid #e0e0e0;
}

.co_overview_table th {
  padding: 14px 12px 14px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color_main);
  white-space: nowrap;
  vertical-align: top;
  width: 7em;
}

.co_overview_table td {
  padding: 14px 0 14px 16px;
  font-size: 1rem;
  color: var(--color_black);
  line-height: 1.8;
  vertical-align: top;
}

/* ============================================
   登録許可番号（SP）
   ============================================ */
.co_license {
  background: #f7f9fc;
  padding: 60px 0;
}

.co_license_inner {
  padding: 0 6vw;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.co_license_tablebox {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.co_license_table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.co_license_table tr {
  border-bottom: 1px solid #e0e0e0;
}

.co_license_table tr:first-child {
  border-top: 1px solid #e0e0e0;
}

.co_license_table th {
  padding: 16px 12px 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color_main);
  white-space: nowrap;
  vertical-align: top;
  width: 7em;
}

.co_license_table td {
  padding: 16px 0 16px 16px;
  font-size: 1rem;
  color: var(--color_black);
  line-height: 1.8;
  vertical-align: top;
}

.co_license_table td:last-child {
  color: var(--color_gray);
  font-size: 1rem;
}

/* 特定建設業バッジ */
.co_license_badge {
  display: inline-block;
  background: var(--color_main);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.6;
  white-space: nowrap;
}

/* ============================================
   沿革（SP）
   ============================================ */
.co_history {
  background: var(--color_white);
  padding: 60px 0;
}

.co_history_inner {
  padding: 0 6vw;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.co_history_list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px;
}

/* 縦ライン */
.co_history_list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color_sub);
}

.co_history_item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0 14px 20px;
  border-bottom: 1px dashed #e0e0e0;
}

/* ドット */
.co_history_item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color_main);
  opacity: 0.3;
}

.co_history_item_current::before {
  opacity: 1;
}

.co_history_item:last-child {
  border-bottom: none;
}

.co_history_year {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color_main);
  line-height: 1.4;
}

.co_history_year span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color_gray);
  margin-left: 6px;
}

.co_history_desc {
  font-size: 1rem;
  color: var(--color_black);
  line-height: 1.6;
}

.co_history_note {
  font-size: 0.8125rem;
  color: var(--color_gray);
  line-height: 1.6;
}

/* ============================================
   施設・設備写真（SP）
   ============================================ */
.co_facilities {
  background: var(--color_sub);
  padding: 60px 0;
}

.co_facilities_inner {
  padding: 0 6vw;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.co_facilities_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.co_facility_item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co_facility_img {
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

.co_facility_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.co_facility_caption {
  font-size: 0.8125rem;
  color: #555;
  text-align: center;
  line-height: 1.4;
}

/* ============================================
   アクセスマップ（SP）
   ============================================ */
.co_access {
  background: var(--color_white);
  padding: 60px 0;
}

.co_access_inner {
  padding: 0 6vw;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.co_access_content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.co_access_info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co_access_name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color_main);
  line-height: 1.4;
}

.co_access_addr {
  font-size: 0.9375rem;
  color: var(--color_black);
  line-height: 1.8;
}

.co_access_tel_row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.co_access_tel_label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color_main);
}

.co_access_tel_num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color_main);
  line-height: 1.2;
}

.co_access_hours {
  font-size: 0.875rem;
  color: var(--color_gray);
  line-height: 1.6;
}

.co_access_map_link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color_main);
  text-decoration: underline;
  margin-top: 4px;
}

.co_access_map {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.co_access_map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   関連会社（SP）
   ============================================ */
.co_related {
  background: #f7f9fc;
  padding: 60px 0;
}

.co_related_inner {
  padding: 0 6vw;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.co_related_card {
  background: var(--color_white);
  border-radius: 10px;
  padding: 28px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.co_related_name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color_main);
  line-height: 1.4;
}

.co_related_info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #eee;
}

.co_related_row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.co_related_row dt {
  width: 4em;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--color_main);
  padding: 10px 0;
}

.co_related_row dd {
  color: var(--color_black);
  padding: 10px 0 10px 12px;
}

/* ============================================
   PC レイアウト（768px 以上）
   ============================================ */
@media (min-width: 768px) {

  /* ヒーロー */
  .co_hero {
    height: 240px;
  }

  .co_hero_title {
    font-size: 2.5rem;
    padding-left: 24px;
  }

  /* 経営理念 */
  .co_philosophy_inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    padding: 0;
  }

  .co_philosophy_logo {
    flex-shrink: 0;
    padding-top: 4px;
  }

  /* 代表メッセージ */
  .co_message_inner {
    padding: 0 60px;
  }

  .co_message_content {
    flex-direction: row;
    align-items: flex-start;
    padding: 36px 40px;
    gap: 40px;
  }

  .co_message_img img {
    width: 160px;
    height: 210px;
  }

  /* 会社概要 */
  .co_overview_inner {
    padding: 0 60px;
  }

  /* 許可番号 */
  .co_license_inner {
    padding: 0 60px;
  }

  /* 沿革 */
  .co_history_inner {
    padding: 0 40px;
  }

  /* 施設写真: 3カラム */
  .co_facilities_inner {
    padding: 0;
  }

  .co_facilities_grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* アクセス */
  .co_access_inner {
    padding: 0;
  }

  .co_access_content {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .co_access_info {
    flex-shrink: 0;
    width: 280px;
  }

  .co_access_map {
    flex: 1;
    height: 340px;
  }

  /* 関連会社 */
  .co_related_inner {
    padding: 0;
  }
}
