/**
 * 会社概要ページ専用スタイル
 * ヒーロー: 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;
}

.company-profile__note {
  margin: 12px 0 0;
  font-size: 14px;
  color: #666;
}

.company-section__note {
  margin-top: 28px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.company-history .company-section__note {
  margin-top: 32px;
}

@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: 15px;
    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: 36px 28px;
  align-items: start;
}

.company-groups__item {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 20px 18px 22px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e0e9f5;
  border-radius: 8px;
  transition: box-shadow 0.2s;
  overflow: hidden;
}

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

.company-groups__link {
  display: grid;
  grid-template-rows: clamp(100px, 32%, 136px) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.company-groups__link:focus-visible {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

/* ロゴエリア：高さ固定で直下の「株式会社…」開始位置をカード間で揃える */
.company-groups__logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 6px 8px;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}

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

.company-groups__brand {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #0d1b2a;
  text-align: center;
  font-family: inherit;
  max-height: 100%;
  overflow: hidden;
}

.company-groups__body {
  min-height: 0;
  padding-top: 10px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  color: #222;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.company-groups__names {
  margin: 0 0 10px;
}

.company-groups__names .company-groups__name {
  margin-bottom: 6px;
}

.company-groups__names .company-groups__name:last-child {
  margin-bottom: 0;
}

.company-groups__name {
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: #1565c0;
  margin: 0 0 10px;
  line-height: 1.5;
}

.company-groups__meta {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #111;
  line-height: 1.7;
}

.company-groups__biz {
  margin-top: 4px;
}

.company-groups__biz-label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #111;
  line-height: 1.7;
}

.company-groups__biz-list {
  margin: 0;
  padding: 0 0 0 1em;
  list-style: none;
  font-size: 14px;
  font-family: inherit;
  font-weight: 400;
  color: #222;
  line-height: 1.85;
}

.company-groups__biz-list li {
  position: relative;
  padding-left: 0.85em;
  margin-bottom: 2px;
}

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

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

@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: 20px; margin-bottom: 32px; line-height: 1.45; }
  .company-groups__grid { grid-template-columns: 1fr; gap: 24px; }
  .company-groups__item { padding: 18px 16px 20px; }
  .company-groups__link {
    grid-template-rows: clamp(88px, 30%, 120px) minmax(0, 1fr);
  }
  .company-groups__logo-area { padding: 4px 6px; }
  .company-groups__brand { font-size: clamp(20px, 5vw, 24px); }
  .company-groups__body { padding-top: 8px; font-size: 15px; }
  .company-groups__name { font-size: 15px; margin-bottom: 8px; }
  .company-groups__meta,
  .company-groups__biz-label,
  .company-groups__biz-list { font-size: 15px; }
}

/* ===== 採用ガイド（グリッドレイアウト） ===== */
.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 {
  --recruit-guide-frame: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 200px;
  text-decoration: none;
  transition: opacity 0.2s;
  background: linear-gradient(180deg, #0d47a1 0%, #1565c0 40%, #42a5f5 70%, #90caf9 100%);
  box-sizing: border-box;
}

.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;
  top: var(--recruit-guide-frame);
  right: var(--recruit-guide-frame);
  bottom: var(--recruit-guide-frame);
  left: var(--recruit-guide-frame);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.company-recruit-guide__overlay {
  position: absolute;
  top: var(--recruit-guide-frame);
  right: var(--recruit-guide-frame);
  bottom: var(--recruit-guide-frame);
  left: var(--recruit-guide-frame);
  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; }
}
