.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    background: none;
    border: none;
    line-height: 1;
    z-index: 10001;
  }
  
  #image-modal img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
    border-radius: 8px;
    background: #fff;
    padding: 4px;
  }
  
  .modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .modal-content {
    background: #fff;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
    padding: 20px 20px 95px 20px; /* 下部に40pxの余白を追加 */
    width: 70%;
    max-width: 600px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .modal-content button.btn.btn-delete {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    font-size: 14px;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    margin-right: 12px;
    align-self: flex-end;
  }
  
  button.btn.btn-delete:hover {
    background-color: #eee;
  }
  
  .modal-content .button-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
  }
  
  .modal-content .button-footer button {
    min-width: 80px;
  }
  
  .modal-content .button-footer .btn-delete {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    color: #333;
  }
  
  .modal-content .button-footer .btn-delete:hover {
    background-color: #eee;
  }