
.worker-container {
  position: relative;
  padding: 4%;
  background: #7485c1;
}
.worker-container > * + * {
  margin-top: 40px;
}
.lead--worker {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.worker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 1rem;
  column-gap: 1rem;
}
.worker-list__item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  row-gap: 8px;
}
/* .worker-list__item > * + * {
  margin-top: 16px;
} */
.worker-list__img {
  width: 100px;
}
.worker-list__title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .01em;
  line-height: 1.44;
}
.btn--modal {
  margin-top: auto;
  padding: .5em 2em;
  font-weight: 700;
  font-size: 13px;
}
dialog {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8); /* 初期状態で少し縮小 */
  width: calc(100% - 40px);
  max-width: 800px;
  max-height: calc(90vh - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s ease-in-out; /* スムーズなアニメーション */
  overflow: hidden;
  z-index: 1000;
}
dialog[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease-in-out;
}
dialog[open]::backdrop {
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.5s ease-in-out;
}
.dialog-inner {
  overflow-y: auto;
  max-height: calc(90vh - 40px);
  padding: 32px;
  min-height: 0;
  box-sizing: border-box;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, auto);
  row-gap: 16px;
  column-gap:  32px;
  flex-shrink: 0;
}
.modal-figure {
  width: 100%;
  height: fit-content;
}
.modal-img {
  width: 100%;
  height: auto;
}
.modal-profile {
  padding: 20px;
  background: #fafafa;
}
.modal-profile__name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .025em;
}
.modal-profile__name span {
  font-size: 13px;
}
.modal-profile__title {
  margin-top: 0;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: .025em;
}
.modal-profile__txt {
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.0014em;
  font-weight: 500;
  margin-top: 6px;
}
.modal-content {
  grid-column: unset;
}
#article h2.modal-content__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.0014em;
}
.modal-content__text {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0em;
  font-weight: 500;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
}
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 2px;
  background-color: #333;
  transform-origin: center;
}
.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
@media (min-width: 768px) {
  .worker-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  dialog {
    max-width: 600px;
    max-height: 90vh;
  }

  .dialog-inner {
    padding: 40px;
  }
}
@media (min-width: 1024px) {
  .modal-grid {
    grid-template-columns: 262px 1fr;
    grid-template-rows: repeat(2, auto);
    column-gap: 32px;
    row-gap: 32px;
  }
  .worker-list__title {
    font-size: 14px;
  }
  dialog {
    max-width: 800px;
  }
  .dialog-inner {
    padding: 60px;
  }
  .modal-profile__name {
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.0014em;
    font-weight: 700;
  }
  .modal-profile__title {
    margin-top: 8px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.0014em;
  }
  .modal-profile__txt {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6166666667;
    letter-spacing: 0.0014em;
    font-weight: 500;
  }
  .modal-content {
    grid-column: 1 / 3;
  }
  #article h2.modal-content__title {
    font-size: 24px;
  }
  .modal-content__text {
    font-size: 16px;
  }
}
@media (min-width: 1280px) {
  .lead--worker {
    font-size: 16px;
  }
  .worker-list__img {
    width: 196px;
    height: auto;
  }
  .worker-list__title {
    font-size: 16px;
  }
  .btn--modal {
    font-size: 15px;
  }
}