/* ============================================================
   Modal - Speaker Profile
   ============================================================ */

/* オーバーレイ */
.modal_overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 49, 91, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal_overlay.is_active {
  opacity: 1;
  visibility: visible;
}

/* モーダル本体 */
.modal_dialog {
  position: relative;
  background: #f8f6f2;
  width: 100%;
  max-width: 760rem;
  max-height: 90vh;
  overflow-y: auto;
  background: url(../img/deco_triangle_gold.svg) left top no-repeat #f8f6f2;
  background-size: 22rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal_overlay.is_active .modal_dialog {
  transform: translateY(0);
}

/* 閉じるボタン */
.modal_close {
  position: absolute;
  top: 16rem;
  right: 16rem;
  width: 40rem;
  height: 40rem;
  background: var(--color-navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.25s ease;
}

.modal_close:hover {
  background: var(--color-gold);
}

.modal_close::before,
.modal_close::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 2px;
  background: #ffffff;
}

.modal_close::before {
  transform: rotate(45deg);
}

.modal_close::after {
  transform: rotate(-45deg);
}

/* コンテンツ内部レイアウト */
.modal_content {
  display: flex;
  gap: 40rem;
  padding: 48rem 48rem 48rem 48rem;
  align-items: flex-start;
}

/* 写真エリア */
.modal_photo {
  flex-shrink: 0;
  width: 180rem;
}

.modal_photo img,
.modal_photo .modal_photoPlaceholder {
  width: 180rem;
  height: 180rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.modal_photoPlaceholder {
  background: linear-gradient(135deg, var(--color-navy-mid), var(--color-gray));
  border-radius: 50%;
}

/* テキストエリア */
.modal_body {
  flex: 1;
  min-width: 0;
}

/* 名前 */
.modal_name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22rem;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 4rem;
}

.modal_nameReading {
  font-size: 13rem;
  font-weight: 400;
  color: var(--color-navy);
  display: block;
  margin-top: 4rem;
  letter-spacing: 0.05em;
}

/* 肩書き */
.modal_role {
  font-size: 13rem;
  color: #97734b;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 20rem;
  padding-bottom: 16rem;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.03em;
}

/* プロフィール */
.modal_profile {
  font-size: 14rem;
  color: var(--color-text);
  line-height: 1.9;
}

/* ============================================================
   クリック可能なプログラムアイテムのスタイル
   ============================================================ */

.bl_programItem[data-speaker] {
  cursor: pointer;
}

.bl_programItem[data-speaker]:hover {
  opacity: 0.88;
}

/* ホバー時のインジケーター */
.bl_programItem[data-speaker] .bl_programItem_body_inner {
  position: relative;
}

.bl_programItem_profileLink {
  display: inline-flex;
  align-items: center;
  gap: 6rem;
  margin-top: 16rem;
  font-size: 13rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.bl_programItem_profileLink::after {
  content: "";
  display: inline-block;
  width: 16rem;
  height: 16rem;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8h8M9 5l3 3-3 3' stroke='%23b8966a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

/* ============================================================
   スマホ対応
   ============================================================ */

@media only screen and (max-width: 767px) {
  .modal_overlay {
    padding: 16rem;
    align-items: flex-end;
  }

  .modal_dialog {
    max-height: calc(100vh - 32rem);
    max-width: 100%;
    border-radius: 0;
  }

  .modal_content {
    flex-direction: column;
    align-items: center;
    padding: 40rem 24rem 32rem;
    gap: 24rem;
    text-align: center;
  }

  .modal_photo {
    width: 120rem;
  }

  .modal_photo img,
  .modal_photo .modal_photoPlaceholder {
    width: 120rem;
    height: 120rem;
  }

  .modal_name {
    font-size: 18rem;
  }

  .modal_role {
    font-size: 12rem;
    text-align: left;
  }

  .modal_profile {
    font-size: 13rem;
    text-align: left;
  }

  .modal_close {
    top: 12rem;
    right: 12rem;
    width: 36rem;
    height: 36rem;
  }
}
