/**
 * 会社概要ページ専用スタイル
 * ヒーロー: FV1.png (PC) / FV4.png (SP)
 */

/* ===== 会社概要セクション（プロフィールテーブル） ===== */
.company-profile {
  background: #fff;
  padding: 80px 4vw 100px;
}

.company-profile__inner {
  max-width: 900px;
  margin: 0 auto;
}

.company-profile__title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 0 0 40px;
  letter-spacing: 0.05em;
}

.company-profile__logo {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.company-profile__logo img {
  max-height: 72px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.company-profile__logo-text {
  display: none;
  font-family: 'Barlow Semi Condensed', var(--font-en);
  font-size: 48px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.15em;
  color: transparent;
  -webkit-text-stroke: 2px #0066cc;
  text-stroke: 2px #0066cc;
}

.company-profile__table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.company-profile__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.company-profile__table th,
.company-profile__table td {
  padding: 18px 28px;
  vertical-align: top;
  border-bottom: 1px solid #d0dae5;
}

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

.company-profile__table th {
  width: 200px;
  min-width: 160px;
  background: #0066cc;
  color: #fff;
  font-weight: 700;
  text-align: left;
}

.company-profile__table td {
  background: #fff;
  color: #222;
  line-height: 1.9;
}

.company-profile__list {
  margin: 0;
  padding-left: 1em;
  list-style: none;
}

.company-profile__list li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 8px;
}

.company-profile__list li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.company-profile__list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .company-profile { padding: 60px 5vw 80px; }
  .company-profile__title { font-size: 22px; margin-bottom: 28px; }
  .company-profile__logo { margin-bottom: 28px; }
  .company-profile__logo img { max-height: 52px; max-width: 200px; }
  .company-profile__logo-text { font-size: 36px; }
  .company-profile__table { display: block; }
  .company-profile__table tbody { display: block; }
  .company-profile__table tr {
    display: block;
    border-bottom: 1px solid #d0dae5;
  }
  .company-profile__table tr:last-child { border-bottom: none; }
  .company-profile__table th,
  .company-profile__table td {
    display: block;
    width: 100% !important;
    min-width: unset;
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: none;
  }
  .company-profile__table th {
    background: #0066cc;
    color: #fff;
    padding-bottom: 6px;
  }
  .company-profile__table td {
    padding-top: 6px;
    padding-bottom: 18px;
  }
}

/* ===== 沿革セクション（タイムライン） ===== */
.company-history {
  background: #fff;
  padding: 80px 4vw 100px;
}

.company-history__inner {
  max-width: 800px;
  margin: 0 auto;
}

.company-history__title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 0 0 56px;
  letter-spacing: 0.05em;
  text-align: center;
}

.company-history__timeline {
  position: relative;
  padding-left: 180px;
}

.company-history__timeline::before {
  content: '';
  position: absolute;
  left: 135px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #1976d2;
}

.company-history__item {
  position: relative;
  padding-bottom: 40px;
}

.company-history__item:last-child {
  padding-bottom: 0;
}

.company-history__item::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: #1976d2;
  border-radius: 50%;
  transform: translateX(-50%);
}

.company-history__year {
  position: absolute;
  left: -180px;
  top: 0;
  width: 90px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(180deg, #0a3d91 0%, #1565c0 40%, #42a5f5 70%, #90caf9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: right;
}

.company-history__desc {
  font-size: 15px;
  color: #222;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .company-history { padding: 60px 5vw 80px; }
  .company-history__title {
    font-size: 22px;
    margin-bottom: 40px;
    text-align: left;
  }
  .company-history__timeline {
    padding-left: 0;
    position: relative;
  }
  .company-history__timeline::before {
    left: 81px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: #1976d2;
  }
  .company-history__item {
    display: grid;
    grid-template-columns: 70px 24px 1fr;
    gap: 0 0;
    align-items: start;
    padding-bottom: 32px;
    position: relative;
  }
  .company-history__item:last-child {
    padding-bottom: 0;
  }
  .company-history__item::before {
    left: 82px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: #1976d2;
    border-radius: 50%;
    transform: translateX(-50%);
  }
  .company-history__year {
    position: static;
    grid-column: 1;
    width: auto;
    text-align: right;
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(180deg, #0a3d91 0%, #1565c0 40%, #42a5f5 70%, #90caf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .company-history__desc {
    grid-column: 3;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
  }
}

/* ===== グループ企業紹介 ===== */
.company-groups {
  background: #fff;
  padding: 80px 4vw 100px;
}

.company-groups__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.company-groups__title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 0 0 48px;
  letter-spacing: 0.05em;
  text-align: center;
}

.company-groups__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.company-groups__item {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid #e0e9f5;
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.company-groups__item:hover {
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.12);
}

.company-groups__logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-groups__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-groups__logo--placeholder {
  background: #e8eef4;
  color: #90a4ae;
  font-size: 12px;
  font-weight: 700;
}

.company-groups__name {
  font-size: 16px;
  font-weight: 700;
  color: #1976d2;
  margin: 0 0 12px;
}

.company-groups__list {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
  text-align: left;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

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

@media (max-width: 768px) {
  .company-groups { padding: 60px 5vw 80px; }
  .company-groups__title { font-size: 22px; margin-bottom: 36px; }
  .company-groups__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== 採用ガイド（グリッドレイアウト） ===== */
.company-recruit-guide {
  background: #fff;
  padding: 80px 4vw 100px;
}

.company-recruit-guide__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.company-recruit-guide__title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 0 0 48px;
  letter-spacing: 0.05em;
  text-align: center;
}

.company-recruit-guide__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  grid-template-areas:
    "large top2 top3"
    "large bottom2 bottom3";
}

.company-recruit-guide__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 200px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.company-recruit-guide__card:hover {
  opacity: 0.95;
}

.company-recruit-guide__card--large {
  grid-area: large;
  min-height: 100%;
}

.company-recruit-guide__grid .company-recruit-guide__card:nth-child(2) { grid-area: top2; }
.company-recruit-guide__grid .company-recruit-guide__card:nth-child(3) { grid-area: top3; }
.company-recruit-guide__grid .company-recruit-guide__card:nth-child(4) { grid-area: bottom2; }
.company-recruit-guide__grid .company-recruit-guide__card:nth-child(5) { grid-area: bottom3; }

.company-recruit-guide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.company-recruit-guide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.company-recruit-guide__label {
  position: relative;
  z-index: 2;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .company-recruit-guide__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "large"
      "top2"
      "top3"
      "bottom2"
      "bottom3";
  }
  .company-recruit-guide__card--large { min-height: 320px; }
  .company-recruit-guide__card { min-height: 200px; }
}

@media (max-width: 768px) {
  .company-recruit-guide { padding: 60px 5vw 80px; }
  .company-recruit-guide__title { font-size: 22px; margin-bottom: 36px; }
  .company-recruit-guide__card--large { min-height: 260px; }
  .company-recruit-guide__card { min-height: 180px; }
  .company-recruit-guide__label { font-size: 16px; padding: 10px 20px; }
}
