.heading {
  min-width: 15%;
  /* font-weight: var(--font-weight-bold); */
}
.heading.narrow {
  min-width: 62px;
}
#message .switcher {
  align-items: center;
  gap: var(--space-x-large);
}
#message .switcher > :first-child {
  flex-grow: 2;
}
#message .switcher > :last-child {
  flex-grow: 1.5;
}
#message .switcher > * {
  flex-basis: calc(( 880px - 100%) * 999);
}

#profile {
  margin-block-start: var(--space-initial);
}
@media (width <= 1019px) {
  #profile {
    margin-block-start: 0;
  }
}
#profile .heading {
  color: #8a7b70;
}
#profile #profile_items > .profile-item,
#history #history_items > .history-item {
  border-block-start: 1px solid var(--border-color-dark-secondary);
  padding-block: var(--space-initial);
}
#profile #profile_items > .profile-item:last-child,
#history #history_items > .history-item:last-child {
  border-block-end: 1px solid var(--border-color-dark-secondary);
}

/* 会社情報リスト */
#profile #profile_items > .grid {
  grid-template-columns: 1fr 5fr;
}


#locations .heading {
  color: #355E52;
}
/* 拠点リスト */
#locations #locations_items > .grid {
  grid-template-columns: 1fr 4fr;
}


#history {
  color: var(--text-color-light-primary);
  background-color: var(--bg-color-quinary);
}
#history h2 {
  border-block-end-color: var(--border-color-light-primary);
}
#history .heading {
  color: #B8C8D8;
}
/* 沿革リスト: 年(左) + 説明(右) を各行Gridにして折り返しを揃える */
#history #history_items > .grid {
  grid-template-columns: max-content 1fr;
}
/* History: 左25% / 右75% をGridで固定 */
#history .images-and-items.grid {
  grid-template-columns: 1fr 4fr;
  gap: var(--space-large);
}
#history .frame {
  --n: 4;
  --d: 3;
}
#history #history_items > .history-item:has(.frame) {
  display: none;
}
#profile #profile_items > .grid,
#locations #locations_items > .grid,
#history #history_items > .grid {
  align-items: baseline;
  column-gap: var(--space-larger);
  row-gap: var(--space-small);
}
@media (width < 769px) {
  #profile #profile_items > .grid,
  #locations #locations_items > .grid,
  #history #history_items > .grid,
  #history .images-and-items.grid {
    grid-template-columns: 1fr; /* 小さい画面は縦積み */
  }
  #history #history_items > .history-item:has(.frame) {
    display: block;
  }
  #history .images-and-items.grid > :first-child {
    display: none;
  }
}

