.modal-wrapper {
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 60px 10px;
  text-align: center;
}

.modal-wrapper:not(:target) {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.modal-wrapper:target {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s, visibility .4s;
}

.modal-wrapper::after {
  display: inline-block;
  height: 100%;
  margin-left: -.05em;
  vertical-align: middle;
  content: ""
}

.modal-wrapper .modal-window {
  box-sizing: border-box;
  display: inline-block;
  z-index: 20;
  position: relative;
  width: 98%;
  max-width: 800px;
  padding: 16px 16px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, .6);
  vertical-align: middle
}

.modal-wrapper .modal-window .modal-content {
  max-height: 75vh;
  overflow-y: auto;
  padding-bottom: 2em;
}

.modal-content {
	text-align: left;
  padding: 0.5%;
}

.modal-overlay {
  z-index: 10;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .8)
}

.modal-wrapper .modal-close {
  z-index: 20;
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  color: #95979c !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 35px;
  text-align: center;
  text-decoration: none;
  text-indent: 0
}

.modal-wrapper .modal-close:hover {
  color: #2b2e38 !important
}
/*
.open {
	cursor:pointer; /* マウスオーバーでカーソルの形状を変えることで、クリックできる要素だとわかりやすいように */
/*
}
/*
#pop-up {
	display: none; /* label でコントロールするので input は非表示に */
/*}
/*
.overlay {
	display: none; /* input にチェックが入るまでは非表示に */
/*}
/*
#pop-up:checked + .overlay {
	display: block;
	z-index: 9999;
	background-color: #00000070;
	position: fixed;
	width: 100%;
	height: 100vh;
	top: 0;
	left: 0;
}
.window {
	width: 90vw;
	max-width: 800px;
	height:90vh;
	background-color: #ffffff;
	border-radius: 6px;
	display: block;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 2%;
	overflow-y: scroll;
}
.text {
	font-size: 18px;
	margin: 0;
}
.close {
	cursor:pointer;
	position: absolute;
	top: 4px;
	right: 4px;
	font-size: 6vh;
	background-color: #FFF;
	line-height: 1em;
	padding: 0 0.25em;
}
*/

.titlemain{
	position: relative;
	width:100%;
	overflow: hidden;
	z-index: -99;
	border-radius: 8px;
	background-color:#333333;
}

.titlemain:before{
	content: "";
	display: block;
	padding-top: 56.25%;
}

.titlemain img{
	position: absolute;
	top:0;
	left: 0;
	z-index: -999;
	border-radius: 8px;
}

.titlemain img.pos-5{
	top:-5%;
}

.titlemain img.pos-20{
	top:-20%;
}

.titlemain img.pos-33{
	top:-33%;
}

.titlemain img.pos-50{
	top:-50%;
}

.titlemain h3{
	position: absolute;
	bottom:0;
	left: 0;
	z-index: -98;
	width: 100%;
	height:auto;
	border: none !important;
	background-color: #333333;
	margin: 0 !important;
	text-align: center;
	padding: 0 !important;
	font-weight: bold;
  color:#F5F5F5;
}

.modal-content .link{
	text-align: center;
	margin-top: 1.5em;
}

@media screen and (max-width:480px)
{
  .titlemain:before{
  	padding-top: 100%;
  }
  .titlemain img.pos-5,
  .titlemain img.pos-20,
  .titlemain img.pos-33,
  .titlemain img.pos-50{
  	top:0;
  }
  .titlemain h3{
    font-size:1.25em !important;
  }
  .modal-content .link a{
    font-size:1em !important;
  }
}

.prof .modal-content img{
  width:100%;
}

.prof .modal-content h3{
  text-align: center;
}
.prof .modal-content .link{
  font-size:1.5em;
  margin-top: 0;
}

.prof .modal-content .link a{
  text-decoration: none;
  color:#66B0FF;
}

.prof .modal-content .link a:hover{
  color:#CCE5FF;
}

.prof.l .modal-content .link a{
  text-decoration: none;
  color:#FF6966;
}

.prof.l .modal-content .link a:hover{
  color:#FFCDCC;
}
