@charset "UTF-8";
/* CSS Document */
/* これが無いとモーダルウィンドウ表示の際に余白が出る */
*{
  margin: 0;
  padding: 0;
}

/* モーダル全体(背景＋本体) */
.modal{
  display: none;
  position: fixed;
  top: 0;
  height: 100vh;
  width: 100%;
}

/* モーダル背景 */
.modal-bg{
  position: absolute;
  height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
}

/* モーダル本体 */
.modal-content{
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: scroll; /* はみ出た部分はスクロールさせる */
  height: 67%;/* これが無いと「overflow:scroll」が利かない */
  width:100%;/* これが無いと「overflow:scroll」が利かない */
  background: white;
  padding: 30px 5px;
}
    /* デザインB（タブレット） */
    @media screen and (min-width: 600px) {
    /* タブレット用レイアウト 600px以上の範囲に収めるデザインはこの中に記述 */
        .modal-content{
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          overflow: scroll; /* はみ出た部分はスクロールさせる */
          height:80%;/* これが無いと「overflow:scroll」が利かない */
          width:90%;/* これが無いと「overflow:scroll」が利かない */
          background: white;
          padding: 30px;
        }
    }
    /* デザインC(PC) */
    @media screen and (min-width: 1025px) {
    /* PC用レイアウト 1,025px以上の範囲に収めるデザインはこの中に記述 */
        .modal-content{
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          overflow: scroll; /* はみ出た部分はスクロールさせる */
          height: 90%;/* これが無いと「overflow:scroll」が利かない */
          width: 70%;/* これが無いと「overflow:scroll」が利かない */
          background: white;
          padding: 20px 40px;
        }
    }

.modal-img {
    width: 100%;
}
/* モーダルウィンドウ表示中に記事本体を固定 */
body.fixed {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
}
/* CSS Document */
