/* Project - Company Page */
.p-company .c-sub-heading {
  text-align: left;
  margin-bottom: 60px;
}
.company-content {
  margin: 0 auto;
  padding: 0;
}
.company-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  height: 380px;
}
.company-hero.fullwidth-bg-section::before {
  background: url("../../images/company/company-header@2x.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.company-content-inner {
  overflow: hidden;
  padding: 70px 20px 20px 20px;
}
.company-content-inner p {
  text-align: center;
  font-size: 18px;
}
.company-content-title {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: none;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 3.875rem;
  padding: 0 0 50px;
}
.company-sub-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  display: none;
}
.company-sub-menu ul {
  display: flex;
  gap: 20px;
}
.company-sub-menu a {
  display: block;
}
.company-sub-menu ul li {
  list-style: none;
  background-color: var(--color-white);
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.company-sub-menu-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-direction: column;
  gap: 12px;
}
.company-sub-menu-item-icon {
}
.company-sub-menu-item-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.company-recruit .recruit-section {
  position: relative;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  background-color: var(--color-white);
  height: 222px;
  align-items: center;
  justify-content: space-between;
}
.company-recruit .recruit-title {
  display: flex;
  align-items: center; /* 垂直中央配置を維持 */
  justify-content: flex-start; /* 水平左寄せ */
  padding: 20px;
  min-height: 222px;
  flex-direction: row;
  padding: 20px 20px 20px 50px;
}
.company-recruit .recruit-title > * {
  text-align: left; /* 子要素を左寄せ */
}
.company-recruit .recruit-title h2 {
  color: var(--color-black);
  font-family: var(--font-latin);
  font-size: 65px;
  font-weight: 500;
  line-height: 3.875rem; /* 65% */
  text-transform: uppercase;
}
.company-recruit .recruit-title h2 span.en {
  display: block;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 3.875rem;
}
.company-recruit .recruit-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.875rem; /* 187.5% */
  align-items: center;
}
.company-recruit .company-recruit-image {
  height: 100%;
  max-height: 222px;
  display: flex; /* 子要素を正確に配置 */
}
.company-recruit .company-recruit-image img {
  width: 100%;
  height: 100%;
  max-height: 222px;
  object-fit: cover;
  display: block; /* inline要素による下部の隙間を解消 */
}
.company-recruit a:hover .recruit-section {
  transform: scale(1.01);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.company-navi {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
.company-navi-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 30px;
  background-color: var(--color-white);
  border-radius: 8px;
  width: 100%;
  text-align: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.875rem; /* 187.5% */
}
.company-navi a .icon.link__black {
  margin-top: 0;
  display: inline-block;
}
/* 会社概要セクション */
.company-overview {
  padding: 100px 0 100px 0;
}

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

.company-info__list {
  margin: 0;
}

.company-info__item {
  display: flex;
  padding: 20px 0;
  gap: 40px; /* 項目と内容の間に余白を追加 */
}

.company-info__term {
  width: 160px;
  font-weight: 700;
  color: var(--color-black);
  flex-shrink: 0;
  padding-bottom: 10px;
  border-bottom: 6px solid transparent;
  /* 2. その透明線にグラデーションを流し込む */
  border-image-source: linear-gradient(180deg, #004a9c, #000244);
  border-image-slice: 1; /* ← これが必須 */
  border-image-repeat: stretch; /* 好みで round などに */
}

.company-info__desc {
  flex: 1;
  color: var(--color-black);
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-black); /* 細い黒い下線 */
}

.company-info__desc ul {
  margin: 0;
  padding-left: 20px;
}

.company-info__desc li {
  margin-bottom: 5px;
}

/* ミッション・ビジョンセクション */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 100px;
}

.mission,
.vision {
  text-align: center;
  padding: 60px 40px;
  border-radius: 8px;
}

.mission__text,
.vision__text {
  font-size: 20px;
  line-height: 1.8;
  color: var(--color-black);
  margin: 0;
}

/* 沿革セクション */
.history {
  margin-bottom: 100px;
}

.history__timeline {
  margin: 0;
  position: relative;
  padding-left: 120px; /* 年号のスペースを確保 */
}

.history__timeline::before {
  content: "";
  position: absolute;
  left: 90px; /* 年号の右側に配置 */
  /* 丸の中心から上下スペース分だけずらす */
  top: calc(13px + 6px + 4px);
  bottom: calc(13px + 6px + 4px);
  width: 2px;
  background-color: var(--color-black);
}

.history__item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.history__item::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 8px;
  width: 27px;
  height: 27px;
  background: linear-gradient(180deg, #004a9c, #000244);
  border-radius: 50%;
  z-index: 1;
}

.history__year {
  font-size: 25px;
  font-weight: 500;
  color: var(--color-black);
  font-family: var(--font-latin);
  line-height: 1.25;
  margin: 0;
  width: 100px;
  flex-shrink: 0;
  position: absolute;
  left: -120px;
  top: 0;
}

.history__content {
  font-size: 16px;
  color: #000;
  line-height: 1.6;
  margin: 0;
  padding-top: 5px;
}

@media screen and (max-width: 1200px) {
  .company-overview {
    padding: 60px 0 60px 0;
  }
  .company-info__item {
    flex-direction: column;
  }
  .company-info__term {
    width: 100%;
  }
  .company-hero {
    height: 280px;
  }
  .company-content-inner {
    padding: 40px 20px 20px 20px;
  }
  .company-recruit .recruit-section {
    height: 100%;
  }
  .company-recruit .recruit-title {
    padding: 20px;
  }
  .company-recruit .recruit-text {
    font-size: 18px;
    text-align: left;
    padding: 20px;
  }
}
@media screen and (max-width: 768px) {
  .company-overview {
    padding: 40px 0 40px 0;
  }
  .company-content-title {
    font-size: 24px;
    padding: 0 0 20px;
  }
  .company-content-inner p {
    font-size: 16px;
  }
  .company-hero {
    height: 200px;
  }
  .company-navi {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }
}
