/* 沿革ページ。既存company.css末尾、または追加CSSへ追記。 */
.es-history-page {
  background: #fff;
  color: #172b3e;
}

.es-company-heading {
  padding: 30px 24px 58px;
  background: linear-gradient(180deg, #063269 30%, #0053a8);
  color: #fff;
}

.es-company-breadcrumb {
  width: min(1040px, 100%);
  margin: 0 auto 26px;
  font-size: 11px;
}

.es-company-heading h1 {
  margin: 0;
  text-align: center;
  font-size: 30px;
  line-height: 1.5;
  font-weight: 700;
}

.es-history-container {
  width: min(960px, 100%);
  margin: 0 auto;
}

.es-history-body {
  padding: 65px 24px 70px;
}

.es-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.es-history-table th,
.es-history-table td {
  padding: 24px 18px;
  border-bottom: 1px solid #d1dce3;
  vertical-align: middle;
}

.es-history-table th {
  width: 180px;
  background: #dff8fc;
  color: #073553;
  text-align: center;
  white-space: nowrap;
}

.es-history-flow {
  margin: 65px 0 0;
}

.es-history-scroll {
  overflow-x: auto;
}

.es-history-scroll img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.es-history-scroll-hint {
  display: none;
  margin-bottom: 12px;
  color: #456173;
  font-size: 12px;
}

.es-history-message {
  padding: 65px 24px;
  background: #dff8fc;
  font-size: 14px;
  font-weight: 700;
}

.es-history-message h2 {
  margin-bottom: 10px;
  color: #073553;
  font-size: 20px;
}

.es-history-message ul {
  margin: 0;
  padding-left: 1.2em;
}

.es-company-subnav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: min(1120px, calc(100% - 48px));
  margin: 90px auto 65px;
}

.es-company-subnav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 8px;
  border-radius: 4px;
  background: #005cc4;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.es-company-subnav a[aria-current="page"] {
  background: #80add9;
}

.es-company-subnav a:hover {
  filter: brightness(.92);
}

.es-history-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 正式な東北電力グループロゴ（会社情報TOP用）。 */
.es-company-group-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

/* 共通フッター：既存の会社ロゴと正式グループロゴ。 */
.es-footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px 50px;
  margin-bottom: 28px;
}

.es-footer-brand-row .footer-logo {
  margin: 0;
}

.es-footer-group-logo {
  width: 240px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .es-company-heading {
    padding: 22px 20px 35px;
  }

  .es-company-heading h1 {
    font-size: 26px;
  }

  .es-history-body {
    padding: 40px 20px;
  }

  .es-history-table {
    font-size: 12px;
  }

  .es-history-table th {
    width: 100px;
  }

  .es-history-table th,
  .es-history-table td {
    padding: 18px 10px;
  }

  .es-history-flow {
    margin-top: 38px;
  }

  .es-history-scroll-hint {
    display: block;
  }

  .es-history-scroll img {
    min-width: 720px;
  }

  .es-history-message {
    padding: 35px 20px;
    font-size: 12px;
  }

  .es-history-message h2 {
    font-size: 18px;
  }

  .es-company-subnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 40px);
    margin: 40px auto;
  }

  .es-footer-brand-row {
    gap: 25px;
  }

  .es-footer-group-logo {
    width: 210px;
  }
}
