@charset "utf-8";

@media(min-width:768px) {
	.sp_only {
		display: none;
	}
}


#main {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
	height: auto;
	/*max-height: calc(100vh - 30px - 112px);*/
}
#main > div {
	width: 100%;
	text-align: center;
}
#main > div * {
	text-align: center;
}
.top {
	padding-bottom: 60px;

}
.link {
	text-align: center;
	padding-bottom: 60px;
}
.link ul {
	max-width: 600px;	
	margin: 0 auto;
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  flex-flow: column;
  -ms-flex-pack:distribute;
  justify-content:center;
	/*height: calc(100vh - (280 / 730 * 100vw) - 133px);*/
}
@media (min-width:730px) {
	.link ul {
		/*height: calc(100vh - 280px - 156px);*/
	}
}
.link li {
	width: 100%;
	padding: 15px 30px;
}
.link a {
	display: block;
	text-align: center;
	padding: 30px 0;
	background-color: #fff;
	border: 3px solid var(--base-color);
	border-radius: 5px;
	color: var(--base-color);
	transition: .3s all;
	font-size: 150%;
	text-decoration: none;
	position: relative;
}
.link a:hover {
	background-color: var(--base-color);
	color: #fff;
}
.link a.new::before {
	position: absolute;
	content:'NEW!!';
	font-size: 80%;
	font-weight: 900;
	color: red;
	margin-right: 10px;
	display: block;
	left: 30px;
	top: 50%;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
}
.link a.new:hover::before {
	color: #FFFF00;
}
.dramalink {
	text-align: center;
	padding-bottom: 60px;
}
.dramalink img {
	width: calc(100% - 60px);
	max-width: 540px;
	margin: 0 30px;
}
.catchbox {
	padding: 60px 0;
}
.catchbox .catch {
	font-family: 'M PLUS Rounded 1c', sans-serif;
	font-weight: 800;
	font-size: min(48px, 8vw);
	color: var(--base-color);
}
.catchbox .lead {
	font-family: 'M PLUS Rounded 1c', sans-serif;
	font-weight: 400;
	font-size: min(36px, 6vw);
	color: var(--base-color);
	margin-top: 30px;
}

#footer {
	margin-top: 0!important;
	padding-bottom: 0!important;
	line-height: 1!important;
}
@media (max-width:1280px) and (orientation: portrait) {
	#main {
		height: calc(100vh - 20px - (5em * .8) - 20px);
		overflow: hidden;
	}
	#main > div {
		display: flex;
		flex-direction: column;
		justify-content: space-around;
	}
	.top,.link,.dramalink {
		padding-bottom: 0;
		margin-bottom: 0;
	}
	.link {
		height: calc((100vh - 20px - (5em * .8) - 20px) - 280px - 187px);
	}
	.link ul {
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	.link ul li {
		height: calc(100% / 4 - 30px);
	}
	.link ul li a {
		padding: 0;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.top {
		height: 280px;
	}
	.top #logo {
		padding-top: 0!important;
	}
	.top #logo h1 {
		padding: 15px 0!important;
	}
	.dramalink {
		height: 147px;
		padding: 20px 0!important;
	}
}
@media (max-width:600px) and (orientation: portrait) {
	.top {
		height: calc((100vw - 130px) / 245 * 102 + 30px);
	}
	.top img {
		height: auto;
	}
	.link {
		height: calc((100vh - 20px - (5em * .8) - 20px) - ((100vw - 130px) / 245 * 102 + 30px) - ((100vw - 60px) / 120 * 26 + 30px));
	}
	.link ul {
		height: 100%;
		display: flex;
		flex-direction: column;
		padding: 0;
		margin: 0;
	}
	.link ul li {
		height: calc(100% / 4 - 30px);
		min-height: 80px;
	}
	.link ul li a {
		padding: 0;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.dramalink {
		height: calc((100vw - 60px) / 120 * 26 + 30px);
		padding: 15px 0!important;
	}
}