/* =========================================================
  Hero
========================================================= */
.company-hero{
  position: relative;
  height: 220px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 18px 18px;
}

.company-hero-bg{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,23,42,.18) 0%, rgba(15,23,42,.08) 40%, rgba(15,23,42,0) 74%),
    url("../img/company-hero.png") center 46% / 88% no-repeat;
}

/* デフォルト：中央より少し下 */
.company-hero-inner{
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 24px;
}

.company-hero-title{
  margin: 24px 0 0; /* 少し下げる */
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 6px 18px rgba(15,23,42,.16);
}

/* PC：左下寄せ */
@media (min-width: 981px){
  .company-hero-inner{
    place-items: end start;
    padding: 0 32px 26px;
  }

  .company-hero-title{
    margin: 0;
    font-size: clamp(32px, 3.4vw, 44px);
  }
}


/* =========================================================
  Section
========================================================= */
.company-section{
  padding: 38px 0 56px;
}

.company-grid{
  display: grid;
  grid-template-columns: 1.18fr .92fr;
  gap: 24px;
  align-items: start;
}


/* =========================================================
  Card
========================================================= */
.company-card{
  padding: 24px 24px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(226,232,240,.92);
  box-shadow: 0 14px 34px rgba(15,23,42,.05);
}

.company-card-head{
  margin-bottom: 18px;
  text-align: center;
}

.company-card-title{
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .03em;
  color: #16335c;
}


/* =========================================================
  Company table
========================================================= */
.company-table{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.95);
  background: #fff;
}

.company-tr{
  display: grid;
  grid-template-columns: 148px 1fr; /* 少しだけ細く */
  border-top: 1px solid rgba(226,232,240,.86);
}

.company-tr:first-child{
  border-top: none;
}

.company-th{
  padding: 13px 16px;
  background: #f7f9fc;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  color: #28476f;
  display: flex;
  align-items: flex-start;
}

.company-td{
  padding: 13px 18px;
  background: #fff;
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}

/* アイコン非表示 */
.company-ico{
  display: none;
}


/* =========================================================
  Sub cards
========================================================= */
.company-subcards{
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.company-subcard{
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(226,232,240,.92);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15,23,42,.035);
}

.company-subhead{
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f8fc;
  border: 1px solid rgba(226,232,240,.8);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #1f2a44;
}

.company-list{
  margin: 0;
  padding-left: 1.15em;
  font-size: 15px;
  line-height: 1.9;
  color: #334155;
}

.company-list li + li{
  margin-top: 2px;
}


/* =========================================================
  Timeline
========================================================= */
.timeline{
  list-style: none;
  margin: 4px 0 0;
  padding: 4px 0 0;
  position: relative;
}

.timeline::before{
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(59,130,246,.2); /* 少し見えるように */
}

.timeline-item{
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 15px 0 17px;
}

.timeline-dot{
  width: 8px;
  height: 8px;
  margin-left: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: #8fb4ea;
  box-shadow: 0 0 0 3px rgba(143,180,234,.12);
}

.timeline-date{
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  color: #16335c;
}

.timeline-text{
  font-size: 15px;
  line-height: 1.82;
  color: #334155;
}


/* =========================================================
  Responsive
========================================================= */
@media (max-width: 980px){
  .company-hero{
    height: 190px;
    border-radius: 0 0 16px 16px;
  }

  .company-hero-bg{
    background:
      linear-gradient(180deg, rgba(15,23,42,.14) 0%, rgba(15,23,42,.08) 46%, rgba(15,23,42,0) 100%),
      url("../img/company-hero.png") center 46% / cover no-repeat;
  }

  .company-hero-title{
    font-size: clamp(26px, 6vw, 36px);
  }

  .company-section{
    padding: 28px 0 42px;
  }

  .company-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 560px){
  .company-hero{
    height: 150px;
  }

  .company-hero-inner{
    padding: 0 16px;
  }

  .company-hero-title{
    margin-top: 18px;
    font-size: 26px;
  }

  .company-card{
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .company-card-title{
    font-size: 20px;
  }

  .company-tr{
    grid-template-columns: 1fr;
  }

  .company-th{
    padding: 10px 12px;
    border-bottom: 1px solid rgba(226,232,240,.82);
  }

  .company-td{
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.75;
  }

  .company-subcard{
    padding: 14px;
    border-radius: 16px;
  }

  .company-subhead{
    padding: 9px 10px;
    font-size: 13px;
  }

  .company-list,
  .timeline-date,
  .timeline-text{
    font-size: 14px;
  }

  .timeline-item{
    grid-template-columns: 22px 1fr;
    gap: 10px;
    padding: 12px 0 14px;
  }

  .timeline::before{
    left: 9px;
  }

  .timeline-dot{
    width: 7px;
    height: 7px;
    margin-left: 6px;
    margin-top: 7px;
    box-shadow: 0 0 0 3px rgba(143,180,234,.12);
  }
}

/* グループ会社（後勝ち） */
.group-section {
  margin-top: 32px;
}

.group-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.group-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f7fb;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}

.group-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.group-link img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* SP */
@media (max-width: 768px){
  .group-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ベース */
.group-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 450;
  letter-spacing: 0.02em;
}

/* リンクあり（強調） */
.group-link--active {
  background: #fff;
  border: 1px solid #dbeafe;
  transition: 0.25s;
}

.group-link--active:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
  border-color: #93c5fd;
}

/* 非リンク */
.group-links > .group-link:not(.group-link--active) {
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
}

