@charset "UTF-8" ;

.modal {
	padding: 0 20px;
}

.modal .inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

/* モーダルを開くボタン */
.modal__trigger {
  cursor: pointer;
}

.modal__trigger:nth-child(n + 2) {
  margin-top: 10px;
}

/* モーダル本体 */
.modal__wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
}

.modal__layer {
  height: 100%;
  background: rgba(50, 50, 50, .85);
  cursor: pointer;
}

.modal__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /*width: 830px;*/
	width: calc(100% - 40px);
  /*height: calc(100% - 40px);*/
  padding: 0;
  background: #fff;
}

.modal__inner {
  position: relative;
  height: 100%;
  padding: 0;
}

/* モーダルを閉じるボタン */
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(50, 50, 50, 1);
  cursor: pointer;
  transition: opacity .6s;
}

.modal__close:hover {
  opacity: .6;
}

.modal__close:before,
.modal__close:after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #fff;
  content: '';
}

.modal__close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーダル内のコンテンツ */
.modal__content {
}

.modal__text {
  margin-top: 30px;
  line-height: 2.875;
}

@media screen and (min-width: 595px) {
	.modal__container {
		width: 555px;
	}
}
@media screen and (min-width: 895px) {
	.modal {
		padding: 0;
	}
}
@media screen and (min-width: 1255px) {
	.modal__container {
		width: 830px;
	}
}
