@media screen and (max-width: 768px) {
  .modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-inner {
    width: 90%;
    height: auto;
    max-width: 375px;
  }

  .close_bt{
    margin-bottom: 5px;
    margin-top: 20px;
  }

  .close_bt img {
    width: 30px;
    height: 30px;
  }
  .close_bt button {
    font-size: 0.8rem;
    padding: 0;
    margin: 0;
  }

  .modal-prev {
    left: -20px;  /* モーダル枠の外に配置したい場合 */
    top: 50%;
  }
  
  .modal-next {
    right: -20px;
    top: 50%;
  }
  .modal-prev img,
.modal-next img {
  width: 30px;
  height: 30px;
}

  .modal-title {
    font-size: 1rem;
    font-weight: bold;
    height: auto;
    padding: 5px;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
  }

  .modal-body {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 50px;
  }

  .modal-photo {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .modal-photo img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .modal-text {
    width: 100%;
    padding: 0px;
  }

  .modal-text h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .modal-text p {
    font-size: 1rem;
    line-height: 1.8;
    padding: 0px;
  }

  #cast-profile-jp {
    order: 1;
    padding-bottom: 40px;
    padding: 0px;
  }
  
  #cast-name-en {
    padding: 0px;
    line-height: 1.5;
  }
  
  
  .modal-profile-en {
    padding: 0px;
    line-height: 0.8;
  }




}