/* ==========================================================================
   Company — /company/ (spec §37). Trust first: calm tables, clear hierarchy.
   ========================================================================== */

.company-toc {
  border-bottom: 1px solid var(--color-line);
}

.company-toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 34px;
  padding: 10px 0;
}

.company-toc__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
}

.company-toc__list a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.company-section__inner {
  display: grid;
  gap: 28px;
}

.company-section__title {
  margin-top: 10px;
  font-size: clamp(26px, 2.6vw, 48px);
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--color-hero-ink);
}

@media (min-width: 1024px) {
  .company-section__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 6vw;
  }
}

/* ---------- message ---------- */

.company-message__text {
  line-height: 2.1;
  letter-spacing: .05em;
}

.company-message__text p + p {
  margin-top: 1.4em;
}

.company-message__sign {
  margin-top: 32px;
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 600;
  letter-spacing: .14em;
}

.company-message__sign span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--color-muted);
}

/* ---------- history ---------- */

.company-history {
  border-top: 1px solid var(--color-ink);
}

.company-history__item {
  display: grid;
  gap: 4px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line);
}

.company-history__date {
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--color-brand-text);
}

@media (min-width: 768px) {
  .company-history__item { grid-template-columns: 12em minmax(0, 1fr); }
}

/* ---------- access ---------- */

.company-access__body {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.company-access__address {
  line-height: 2;
}

.company-access__name {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 600;
}

.company-access__stations {
  display: grid;
  gap: 6px;
}

.company-access__stations li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  background: var(--color-brand);
  vertical-align: middle;
}

.company-access__tel a {
  text-decoration: underline 1px;
  text-underline-offset: .25em;
}

.company-access__map {
  min-width: min(100%, 280px);
  justify-content: space-between;
}

/* ---------- related ---------- */

.company-related {
  border-top: 1px solid var(--color-ink);
}

.company-related__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-line);
  font-weight: 600;
  letter-spacing: .06em;
}

@media (hover: hover) and (pointer: fine) {
  .company-related__link:hover span,
  .company-toc__list a:hover {
    text-decoration: underline 1px;
    text-underline-offset: .3em;
  }
}
