/* スマホ */
@media only screen and (max-width: 767px) {

  /* 非表示設定 */
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .modal-content {
    background-color: #f4f4f4;
    margin: 50% auto;
    width: 70%;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
    animation-name: modalopen;
    animation-duration: 1s;
    z-index: 99;
  }

  @keyframes modalopen {
    from {
      opacity: 0
    }

    to {
      opacity: 1
    }

  }

  .modal-header h1 {
    margin: 1rem 0;
    z-index: 99;
  }

  .modal-header {
    background: LightGrey;
    padding: 3px 15px;
    display: flex;
    justify-content: space-between;
    z-index: 99;
  }

  .modalClose {
    font-size: 2rem;
    z-index: 99;
  }

  .modalClose:hover {
    cursor: pointer;
    z-index: 99;
  }

  .modal-body {
    padding: 10px 20px;
    color: black;
    z-index: 99;
  }

}

/* PCとプリント */
@media screen and (min-width: 768px),
print {

  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .modal-content {
    background-color: #f4f4f4;
    margin: 10% auto;
    width: 50%;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
    animation-name: modalopen;
    animation-duration: 1s;
    z-index: 99;
  }

  @keyframes modalopen {
    from {
      opacity: 0
    }

    to {
      opacity: 1
    }

  }

  .modal-header h1 {
    margin: 1rem 0;
    z-index: 99;
  }

  .modal-header {
    background: LightGrey;
    padding: 3px 15px;
    display: flex;
    justify-content: space-between;
    z-index: 99;
  }

  .modalClose {
    font-size: 2rem;
    z-index: 99;
  }

  .modalClose:hover {
    cursor: pointer;
    z-index: 99;
  }

  .modal-body {
    padding: 10px 20px;
    color: black;
    z-index: 99;
  }

}