body {
	margin: 0px;
	padding: 0px;
	color: #666;
	font-family: Helevetica,Arial,sans-serif;
	font-size: 16px;
	line-height:1.5em; 
	background-color: #fff;
	background-image: url(../images/home/templatemo_body.jpg);
	background-repeat: repeat-x;
	text-align: justify;
}

a, a:link, a:visited {
	color: #c21302;
	text-decoration: none;
}

a:hover {
	color: #0066CC;
	text-decoration: underline;
}

p { margin: 0px; }
.cleaner { clear: both; }
.hidden { display: none!important; }

.flex-center {
	display: flex;
    justify-content: center;
    align-items: center;
}

#template_wrapper {
	max-width: 940px;
	margin: 0 auto;
	padding: 0 15px; 
	background: #fff url(../images/home/templatemo_wrapper.jpg) top repeat-x;
}

#content_wrapper {
	float: left;
	padding: 32px 0 30px;
	width: calc(100% - 272px);
}

#templatemo_introduce {
	padding: 20px;
	margin-bottom: 30px;
	background: linear-gradient(to right, rgb(163, 188, 105), rgb(188, 205, 133));
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
	display: grid;
	grid-template-columns: 2fr 1fr;
	column-gap: 10px;
}

#templatemo_introduce .title {
	background: #000;
    padding: 6px;
    color: #fff;	
}

#templatemo_introduce img {
	border: 5px solid #93a350;
	box-sizing: border-box;
}

#novels img {
    width: calc(50% - 2.3px);
	max-height: 245px;
}

#youtubes img {
	width: 100%;
	max-height: 120px;
}

@media (max-width: 768px) {
	#templatemo_introduce {
		display: block;
	}

	#novels {
		margin-bottom: 10px;
	}

	#youtubes {
		display: flex;
		justify-content: space-between;
		gap: 4px;
	}
}

#sidebar {
	float: right;
	width: 242px;
	margin-top: 17px;
}

#logo-sp {
	grid-column: 1 / 3;
	display: none;
	margin-bottom: 10px;
}

#logo-sp img { border: none; }
#logo-sp span { cursor: pointer; }

@media (max-width: 599px) {
	#logo-sp {
		display: flex;
        justify-content: space-between;
	}

	#sidebar {
		float: none;
		position: absolute;
		top: 0;
		right: 10px;
		height: 0;
		overflow: hidden;
		transition: .5s;
		z-index: 20;
	}

	#content_wrapper { width: 100%; }
	#sidebar.open { height: 500px; }
	.sp_hidden { display: none; }
}

#overlay {
	position: fixed;
	inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;	
}

.sitebar_bg {
	width: 242px;
	height: 36px;
}

.templatemo_sitebar_top {
	background: url(../images/home/site_title_top.png) top no-repeat;
}

.templatemo_sitebar {
	width: 202px;
	padding: 15px 20px;
	background: url(../images/home/sidebar.png) repeat-y;
}

.templatemo_sidebar_bottom_01 {
	background: url(../images/home/sidebar_bottom_01.png) no-repeat;
}

.templatemo_sidebar_bottom_02 {
	background: url(../images/home/sidebar_bottom_02.png) no-repeat;
}

#templatemo_menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

#templatemo_menu li {
	margin: 0 0 2px;
	padding: 0;
}

#templatemo_menu li a {
	display: block;
	height: 25px;
	font-size: 14px;
	color: #333;
	padding: 5px 10px;
	font-weight: bold;
	text-decoration: none;
	background: url(../images/home/templatemo_menu_bg.png) repeat-x;
}

#templatemo_menu li a:hover, #templatemo_menu li .current {
	color: #8b1a0f;
	border-left: 5px solid #8b1a0f;
	background: url(../images/home/templatemo_menu_hover_bg.png) repeat-x;
}

.news_box {
	margin-bottom: 10px;
	border-left: 5px solid #969696;
	padding-left: 15px;
}

.news_box p {
	padding-bottom: 0;
	margin-bottom: 0;
}

.news_box span {
	background: #969696;
	color: #fff;
	padding: 0 4px;
	margin-right: 4px;
	font-size: 14px;
}

#tabs {
	margin-bottom: 10px;
    border-bottom: 1px solid #969696;
    padding-bottom: 5px;
}

#tabs span {
	padding: 8px 16px;
    background: #eee;
    cursor: pointer;
}

#tabs span.active {
	background: #969696;
	color: #fff;
}

#contact-form form {
	margin: 0px;
	padding: 0px;
}

#contact-form form label {
	display: block;
}

#contact-form form label div {
	display: inline-block;
	margin-left: 10px;
	color: #c21302;
}

#contact-form form input,
#contact-form form textarea {
	width: 100%;
	padding: 8px;
	background: #FFFFFF;
	border: 1px solid #AAAAAA;
	margin-bottom: 10px;
	box-sizing: border-box;
}

#contact-form form textarea {
	height: 200px;
}

#contact-form form .is-invalid {
	border: solid 1px #c21302;
}

#contact-form form button {
	margin-right: 100px;
	padding: 5px 15px;
	background: #EEEEEE;
	border: 1px solid #AAAAAA;
}

.alert-success {
	background: rgb(163, 188, 105);
    padding: 8px;
    margin-bottom: 10px;
    color: #fff;
    border: solid 2px #93a350;	
}

#templatemo_footer_wrapper {
	width: 100%;
	background: url(../images/home/templatemo_footer.png) repeat-x;
}

#templatemo_footer {
	padding: 10px 30px;
	text-align: center;
	color: #fff;
	margin: 0 auto;
}

#modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.4);
	overflow: auto;
	box-sizing: border-box;	
	transition: .5s;
	z-index: 100;
}

#modal.close {
	opacity: 0;
	visibility: hidden;
}

.modal-container{
	position: relative;
	max-width: 600px;
	width: 90%;
	background: #fff;
	border-radius: 10px;
}

.modal-content {
	margin: 20px;
}

.modal-title {
	font-size: 24px;
	color: #c21302;
	margin-bottom: 10px;
	justify-content: space-between;
}

.modal-close{
	width: 30px;
	height: 30px;
	color: #fff;
	background: #000;
	border-radius: 50%;
	cursor: pointer;
	font-size: 24px;
}

@media (max-width: 599px) {
	.modal-container {
		position: fixed;
		inset: 0;
		border-radius: 0;
		width: 100%;
	}
}