/* モーダル全体 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

/* オーバーレイ（背景） */
.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/* モーダルコンテナ */
.modal__container {
  position: relative;
  z-index: 1;
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* モーダル本体 */
.modal__inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 540px;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto;
}

/* 閉じるボタン */
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close img {
  width: 100%;
  height: 100%;
  display: block;
}

/* コンテンツエリア */
.modal__content {
  display: flex;
  height: 100%;
}

/* 左側の画像 */
.modal__image {
  width: 490px;
  flex-shrink: 0;
  overflow: hidden;
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右側のテキスト */
.modal__text {
  width: 590px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 40px 30px;
}

.modal__text-inner {
  width: 100%;
}

/* テキストコンテンツのスタイル */
.modal__text .people-card__role {
  font-size: 1.4rem;
  color: #FF5800;
  margin-bottom: 8px;
}

.modal__text .people-card__name {
  font-size: 2.4rem;
  color: #FF5800 !important;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal__text .people-card__name-en {
  font-size: 1.6rem;
  color: #FF5800 !important;
  margin-bottom: 24px;
}

.modal__text .people-card__title {
  font-size: 3.2rem;
  color: #FF5800 !important;
  font-weight: 800 !important;
  line-height: 1.6;
  padding-bottom: 4rem;
  margin-bottom: 3.2rem;
  border-bottom: 1px solid #E5E5E5;
}

.modal__text .people-card__image img {
  border-radius: 10px;
}

.modal__text .people-card__question {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  margin-top: 24px;
}

.modal__text .people-card__question:first-of-type {
  margin-top: 0;
}

.modal__text .people-card__answer {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* スマホ表示 */
@media (max-width: 769px) {

  .modal__container {
    height: 97dvh;
  }
  .modal__inner {
    width: 330px;
    /* height: 570px; */
    height: 100%;
  }

  .modal__content {
    flex-direction: column;
  }

  .modal__image {
    width: 100%;
    height: 300px;
    
  }

  .modal__image img {
    object-position: center -32px;
  }

  .modal__text {
    width: 100%;
    height: 400px;
    padding: 24px 20px;
  }

  .modal__text-inner {
    width: 100%;
  }

  .modal__close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
  }

  .modal__text .people-card__role {
    font-size: 1.1rem;
  }

  .modal__text .people-card__name {
    font-size: 1.6rem;
  }

  .modal__text .people-card__name-en {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .modal__text .people-card__title {
    font-size: 2.4rem;
    line-height: 1.5;
    padding-bottom: 2.4rem;
    margin-bottom: 2.4rem;
  }

  .modal__text .people-card__question {
    font-size: 2rem;
    margin-top: 20px;
    line-height: 1.5;
  }

  .modal__text .people-card__answer {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
}

/* bodyスクロール制御 */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .people-card__question,
  .people-card__answer,
  .people-card__question,
  .people-card__answer {
    color: #333;
  }
}