/* 両ページで共通の組織図・拡大表示。 */
.org-chart {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 2rem;
  background: #f4f4f4;
}

.org-chart__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.org-chart__zoom:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.org-chart__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.org-chart__hint {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.3rem;
  text-align: right;
}

.org-chart__dialog {
  width: min(calc(100% - 32px), 1600px);
  max-width: none;
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: 1.2rem;
  color: var(--ink);
  background: #f4f4f4;
}

.org-chart__dialog::backdrop {
  background: rgba(7, 25, 40, .7);
}

.org-chart__dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 1.6rem;
  background: #fff;
}

.org-chart__close {
  padding: .8rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  color: var(--blue);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.org-chart__expanded {
  max-height: calc(90dvh - 80px);
  overflow: auto;
  overscroll-behavior: contain;
}

.org-chart__expanded-image {
  width: 100%;
  min-width: 1200px;
  height: auto;
  object-fit: contain;
}

.org-chart__note {
  margin: 1.6rem 0 0;
  font-size: 1.4rem;
  line-height: 1.8;
  text-align: left;
}

@media (max-width: 767px) {
  .org-chart { padding: 1rem; }
}
