/* モーダル 
===============================================*/
@media screen and (min-width:767px){
  a.modal-open:hover{
    cursor: pointer;
    opacity: 0.5;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  background-color: rgba(120, 123, 131, 0.8);
}

/* モーダルがactiveの時 */
.modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* モーダル背景のオーバーレイ部分 */
.modal__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* モーダル内のコンテンツ */
.modal__content {
  position: relative;
  background-color: #fff;
  width: 100%;
  max-width: 585px;
  height: 596px;
  padding: 55px 65px;
  border: solid 1px #EB6D8E;
}

/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container{
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100%;
	text-align: center;
	background: rgba(0,0,0,50%);
	padding: 40px 20px;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
  box-sizing: border-box;
  z-index: 9999;
}

/*モーダル本体の擬似要素の指定*/
.modal-container:before{
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}
/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active{
	opacity: 1;
	visibility: visible;
}
/*モーダル枠の指定*/
.modal-body{
	position: relative;
	display: inline-block;
	vertical-align: middle;
	max-width: 550px;
	width: 100%;
}
/*モーダルを閉じるボタンの指定*/
.modal-close{
	position: absolute;
	display: flex;
  align-items: center;
  justify-content: center;
	top: -20px;
	right: -20px;
	width: 45px;
	height: 45px;
	font-size: 28px;
	color: #fff;
	cursor: pointer;
  padding: 2px 2px 4px;
  background-color: #D71618;
  border-radius: 100vh;
}
/*モーダル内のコンテンツの指定*/
.modal-content{
	background: #fff;
	text-align: left;
	padding: 30px;
  padding: 30px 20px 40px;
}

.modal-content.inner{
  padding: 0;
}

.modal-title {
  font-size: 20px;
  letter-spacing: 0.2em;
  text-align: center;
  color: #FFF;
  border-radius: 15px;
  padding: 5px 0;
  background-color: #A9D06B;
  margin: 30px 5px 18px;
}

.modal-text {
  margin-top: 15px;
  padding: 0 30px;
  text-indent: inherit;
}

@media screen and (max-width:767px) {
  .modal-title{
    font-size: 18px;
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 767px) {
  /* 受賞作品 モーダル */
  .modal-container{
    display: flex;
    align-items: start;
  }

  .modal-body{
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

  .modal-close{
    width: 40px;
    height: 40px;
    top: -15px;
    right: -15px;
  }
}