/* ============================================================
   company.css - 法人概要（サブページ再設計版）
   ワイヤーフレーム_サブページ再設計.md §4 company＝D定義表型
   参考: zelvia /club/overview/ 末尾の企業プロフィール式＋年号タイムライン
   ※style.cssは編集禁止。ページ固有はすべて本ファイルに記述
   ============================================================ */

/* ---------- 法人プロフィール（定義リスト） ---------- */
.cmp-profile {
  margin: 0;
  border-top: 1px solid var(--border);
  max-width: 1000px;
}

.cmp-profile__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--border);
}

.cmp-profile__row dt {
  padding: 22px 24px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.cmp-profile__row dd {
  margin: 0;
  padding: 22px 28px;
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- 年号タイムライン（沿革・チームの歩み共通） ---------- */
.cmp-timeline {
  position: relative;
  max-width: 900px;
  padding-left: 4px;
}

.cmp-tl {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  padding: 0 0 48px 0;
}

.cmp-tl:last-child {
  padding-bottom: 0;
}

/* 縦ライン（年号カラムの右端） */
.cmp-tl::before {
  content: "";
  position: absolute;
  left: 190px;
  top: 10px;
  bottom: -10px;
  width: 1px;
  background: var(--border);
}

.cmp-tl:last-child::before {
  bottom: auto;
  height: calc(100% - 10px);
}

/* 金のドット */
.cmp-tl::after {
  content: "";
  position: absolute;
  left: 186px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.cmp-tl__year {
  text-align: right;
  padding-right: 28px;
}

.cmp-tl__num {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

.cmp-tl__era {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.cmp-tl__body {
  padding-left: 28px;
  padding-top: 2px;
}

.cmp-tl__body p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 6px;
}

.cmp-tl__body p:last-child {
  margin-bottom: 0;
}

.cmp-tl__body strong {
  font-weight: 700;
}

/* 濃紺帯上でも使えるように（現状は白/Surfaceのみ） */
.sec--dark .cmp-tl__num {
  color: var(--text-inverse);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 767px) {
  .cmp-profile__row {
    grid-template-columns: 1fr;
  }

  .cmp-profile__row dt {
    padding: 12px 16px;
  }

  .cmp-profile__row dd {
    padding: 16px;
  }

  .cmp-tl {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 24px;
    padding-bottom: 36px;
  }

  .cmp-tl::before {
    left: 4px;
    top: 8px;
  }

  .cmp-tl::after {
    left: 0;
    top: 6px;
  }

  .cmp-tl__year {
    text-align: left;
    padding-right: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .cmp-tl__num {
    font-size: 22px;
  }

  .cmp-tl__era {
    margin-top: 0;
  }

  .cmp-tl__body {
    padding-left: 0;
  }
}
