/* ========================================
   会社概要ページ専用スタイル
   ======================================== */

/* --- 会社ページ用CSS変数 --- */
:root {
  --company-accent: #ED6103;
  --company-bg: #F9F8F6;
  --company-text: #242424;
  --company-text-gray: #666666;
  --company-text-dark: #1A1A1A;
  --company-border: #E5E1DA;
  --company-bg-light: #F4F4F5;
}

/* --- ナビゲーション上書き（常に白背景） --- */
.recruit-header.is-scrolled .recruit-nav__logo-img--hero {
  display: none !important;
}

.recruit-nav__links .is-current {
  color: var(--company-accent);
  font-weight: 700;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.company-hero {
  position: relative;
  height: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.company-hero__bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.company-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 0 22px;
}

.company-hero__label {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.45;
  color: var(--company-accent);
}

.company-hero__heading {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.2;
  color: #FFFFFF;
}

.company-hero__line {
  display: block;
  width: 75px;
  height: 4px;
  background-color: var(--company-accent);
}

/* ========================================
   会社概要テーブルセクション
   ======================================== */
.company-profile {
  padding: 90px 0;
  background: #FFFFFF;
}

.company-profile__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.company-profile__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company-profile__title {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--color-primary);
}

.company-profile__subtitle {
  font-family: var(--font-gothic);
  font-weight: 900;
  font-size: 45px;
  line-height: 1.2;
  color: var(--color-dark);
}

.company-profile__table-wrap {
  border: 1px solid var(--company-border);
  border-radius: 11px;
  overflow: hidden;
}

.company-profile__table {
  width: 100%;
  border-collapse: collapse;
}

.company-profile__table tr {
  border-bottom: 1px solid var(--company-border);
}

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

.company-profile__table th,
.company-profile__table td {
  padding: 22px 30px;
  text-align: left;
  vertical-align: middle;
}

.company-profile__table th {
  width: 33%;
  background: var(--company-bg);
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  color: var(--company-text);
}

.company-profile__table td {
  font-family: var(--font-gothic);
  font-size: 15px;
  line-height: 1.6;
  color: var(--company-text);
}

/* ========================================
   沿革（タイムライン）セクション
   ======================================== */
.company-history {
  padding: 90px 0;
  background: var(--company-bg-light);
}

.company-history__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 75px;
}

.company-history__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company-history__label {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--color-primary);
}

.company-history__title {
  font-family: var(--font-gothic);
  font-weight: 900;
  font-size: 45px;
  line-height: 1.2;
  color: var(--color-dark);
}

.company-history__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* タイムラインの縦線（ドットの中央に揃える） */
.company-history__timeline::before {
  content: '';
  position: absolute;
  left: 86px; /* 年号80px + ドット14px/2 - 線2px/2 */
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--company-accent);
}

.company-history__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 30px 0;
  border-bottom: 1px solid var(--company-border);
}

.company-history__item:last-child {
  border-bottom: none;
}

.company-history__year {
  flex: 0 0 80px;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--company-accent);
}

.company-history__dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  min-width: 14px;
  border-radius: 50%;
  background: var(--company-accent);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--company-accent);
  margin-top: 5px;
}

.company-history__events {
  flex: 1;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-history__event {
  font-family: var(--font-gothic);
  font-size: 15px;
  line-height: 1.6;
  color: var(--company-text);
}

.company-history__month {
  font-weight: 700;
  margin-right: 12px;
  color: var(--company-text);
}

/* ========================================
   アクセスセクション
   ======================================== */
.company-access {
  padding: 90px 0;
  background: #FFFFFF;
}

.company-access__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  gap: 45px;
  align-items: flex-start;
}

.company-access__info {
  flex: 0 0 500px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.company-access__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company-access__label {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--color-primary);
}

.company-access__title {
  font-family: var(--font-gothic);
  font-weight: 900;
  font-size: 45px;
  line-height: 1.2;
  color: var(--color-dark);
}

.company-access__address {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.company-access__icon {
  font-size: 24px;
  color: var(--company-accent);
  line-height: 1;
}

.company-access__address-label {
  display: block;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--company-text);
  margin-bottom: 6px;
}

.company-access__address-text {
  font-family: var(--font-gothic);
  font-size: 15px;
  line-height: 1.6;
  color: var(--company-text-gray);
  display: block;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.company-access__stations {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.company-access__stations-label {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  color: var(--company-text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.company-access__station-card {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #FFFFFF;
  border-left: 2px solid var(--company-accent);
  border-bottom: 1px solid var(--company-border);
  align-items: center;
}

.company-access__station-name {
  display: block;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--company-text);
  margin-bottom: 4px;
}

.company-access__station-detail {
  display: block;
  font-family: var(--font-gothic);
  font-size: 13px;
  line-height: 1.2;
  color: var(--company-text-gray);
}

.company-access__map {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--company-border);
  min-height: 400px;
  position: relative;
}

.company-access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* ========================================
   レスポンシブ: タブレット (768px〜1023px)
   ======================================== */
@media (max-width: 1023px) {
  /* ヒーロー */
  .company-hero__heading {
    font-size: 42px;
  }

  /* 会社概要テーブル */
  .company-profile__table th {
    width: 35%;
  }

  /* 沿革タイムライン */
  .company-history__timeline::before {
    left: 76px; /* 年号70px + ドット14px/2 - 線2px/2 */
  }

  .company-history__year {
    font-size: 22px;
    flex: 0 0 70px;
  }

  .company-history__events {
    padding-left: 25px;
  }

  /* アクセス: 1カラムに変更 */
  .company-access__inner {
    flex-direction: column;
  }

  .company-access__info {
    flex: none;
    width: 100%;
  }

  .company-access__map {
    width: 100%;
    min-height: 350px;
  }
}

/* ========================================
   レスポンシブ: モバイル (〜767px)
   ======================================== */
@media (max-width: 767px) {
  /* ヒーロー */
  .company-hero {
    height: 280px;
  }

  .company-hero__heading {
    font-size: 32px;
  }

  .company-hero__label {
    font-size: 16px;
  }

  /* 会社概要テーブル */
  .company-profile {
    padding: 60px 0;
  }

  .company-profile__inner {
    gap: 30px;
  }

  .company-profile__subtitle {
    font-size: 32px;
  }

  .company-profile__table th,
  .company-profile__table td {
    display: block;
    width: 100%;
    padding: 15px 20px;
  }

  .company-profile__table th {
    padding-bottom: 8px;
  }

  .company-profile__table td {
    padding-top: 0;
  }

  /* 沿革タイムライン */
  .company-history {
    padding: 60px 0;
  }

  .company-history__inner {
    gap: 40px;
  }

  .company-history__title {
    font-size: 32px;
  }

  .company-history__timeline::before {
    left: 54px; /* 年号50px + ドット10px/2 - 線2px/2 */
  }

  .company-history__year {
    flex: 0 0 50px;
    font-size: 18px;
  }

  .company-history__dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    margin-top: 5px;
  }

  .company-history__events {
    padding-left: 18px;
  }

  .company-history__item {
    padding: 20px 0;
  }

  .company-history__event {
    font-size: 13px;
  }

  .company-history__month {
    margin-right: 8px;
  }

  /* アクセス */
  .company-access {
    padding: 60px 0;
  }

  .company-access__title {
    font-size: 32px;
  }

  .company-access__map {
    min-height: 280px;
  }

  .company-access__map iframe {
    min-height: 280px;
  }
}
