.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: none; /* 最初は非表示 */
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.modal.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}


.modal-inner {
  position: relative;
  width: 80%;
  max-width: 960px;
  margin: auto;
  padding: 0;
}

.close_bt{
  width: 100%;
  text-align: right;
  margin-bottom: 5px;
}

.close_bt img {
  width: 40px;
  height: 40px;
}


.close_bt button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0.5;
}
  

.modal-title {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EFE463;
  font-size: 1.3rem;
}

.modal-body {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  background-color: white;
  gap: 0px;
  padding: 0px;
}

.modal-photo img {
  width: 300px;
  height: auto;
}

.modal-text {
  flex: 1;
  min-width: 280px;
}

.modal-text h3 {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.modal-text p {
  line-height: 2;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.2);
  padding: 10px;
  cursor: pointer;
  z-index: 9999;
}

.modal-prev {
  left: -100px;  /* モーダル枠の外に配置したい場合 */
}

.modal-next {
  right: -100px;
}

.modal-prev img,
.modal-next img {
  width: 70px;
  height: 70px;
}

.modal-close {
  background: none;
  border: none;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 9999;
}

#cast-modal {
  opacity: 0;
  transition: opacity 0.4s ease;
}

#cast-modal.show {
  opacity: 1;
}

/* モーダル英語プロフィール用 */

.modal-text {
  display: flex;
  flex-direction: column;
}

#cast-profile-jp {
  order: 1;
  padding: 20px 40px 0px 40px;
}

#cast-name-en {
  order: 2;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0; 
  padding: 0px 40px 0px 40px;
  display: block;
  line-height: 1;
}


.modal-profile-en {
  font-size: 0.8rem ;
  line-height: 0.8 ;
  padding: 0px 40px 30px 40px;
}

.modal-profile-en-block {
  margin-top: 0;
  order: 3;
  padding: 0;
  background-color: transparent;
}

.modal-photo {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  align-self: flex-start;
  padding: 20px 0px 0px 20px;
}



