body {
	margin: 0;
	color: #666;
	font-family: Helevetica,Arial,sans-serif;
	font-size: 16px;
	line-height: 1.5em; 
	background-image: url(../images/novels/templatemo_body.jpg);
}

#templatemo_body_wrapper {
	width: 100%;
	background: url(../images/novels/templatemo_wrapper.jpg) repeat-x top
}

#templatemo_wrapper {
	margin: 0 auto;
	background: url(../images/novels/templatemo_header.jpg) top center no-repeat
}

#templatemo_header {
	max-width: 808px;
	padding: 10px 4px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#templatemo_menu ul { padding: 0; margin: 0; list-style: none; }
#templatemo_menu ul li { margin: 0; padding: 0; display: inline-block }
#templatemo_menu ul li a {
	display: block;
	width: 94px;
	line-height: 30px;
	color: #fff;	
	margin-left: 2px;
	text-align: center;
	text-decoration: none;
}

#templatemo_menu ul li a:hover, #templatemo_menu ul .current {
	color: #000;
	background: url(../images/novels/templatemo_menu_hover.png) no-repeat
}

#templatemo_menu #toggle_menu {
	display: none;
}

@media (max-width: 650px) {
	#templatemo_menu ul {
		position: fixed;
		right: 0;
		width: 160px;
		z-index: 100;
		margin-top: 5px;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	#templatemo_menu ul li {
		background: #fff;
		display: block;
		box-shadow: -4px 6px 10px 4px rgba(0, 0, 0, .4);
		text-align: center;
		transform: translateX(160px);
		opacity: 0;
		transition: .5s;
		border-left: 10px solid #7cc842;
	}

	#templatemo_menu ul.open {
		position: absolute;
	}

	#templatemo_menu ul.open li {
		transform: translateX(0);
		opacity: 1;
	}

	#templatemo_menu ul li:nth-child(2) {
		transition-delay: .1s;
	}
	#templatemo_menu ul li:nth-child(3) {
		transition-delay: .2s;
	}
	#templatemo_menu ul li:nth-child(4) {
		transition-delay: .3s;
	}

	#templatemo_menu ul li a {
		color: #000;
		font-size: 16px;
		width: 100%;
        padding: 10px;
        text-align: left;
        text-indent: 20px;
	}

	#templatemo_menu ul li a:hover, #templatemo_menu ul .current {
		background: none;
	}

	#templatemo_menu #toggle_menu {
		display: inline-block;
		font-size: 32px;
		vertical-align: middle;
		color: #fff;
	}
}

#templatemo_main {
	max-width: 808px;
	margin: 0 auto;
}

@media screen and (max-width: 840px) {
	#templatemo_header, #templatemo_main {
		margin: 0 0px;
	}
}

.content_title { position: relative; }
.content_main {
	background: #fff;
	box-shadow: -4px 0 3px -3px rgba(0, 0, 0, .2), 4px 0 3px -3px rgba(0, 0, 0, .2);
	margin: 0 4px;
}
.content_main h2 {
	background: rgb(124, 200, 66);
	padding: 20px;
    margin: 0;
    font-size: 20px;
	font-weight: normal;
	color: #fff;
}
.content_main h2 a {
	text-decoration: none;
	color: #fff;
}

.ct {
	display: block;
    width: calc(100% - 200px);
    height: 24px;
	margin: 0 auto;
    background: url(../images/novels/tc.png);
}

.ct::before, .ct::after {
	content: '';
	display: block;
	width: 100px;
	height: 24px;
	position: absolute;
}
.ct::before {
	left: 0px;
	background: url(../images/novels/tl.png);
}
.ct::after {
	right: 0px;
	background: url(../images/novels/tr.png);
}
.content_ct .ct::before {
	background: url(../images/novels/tcl.png);
}

.content_ct .ct::after {
	background: url(../images/novels/tcr.png);
}

.content { padding: 30px; }

.content.menu {
	display: flex;
	gap: 10px;
}
.content.menu > div {
	width: 100%;
}

@media (max-width: 500px) {
	.content.menu {
		display: block;
	}
}

.content_bottom { height: 24px; }
.content_cb, .content_cbf {
	position: relative;
}
.cb {
	display: block;
    width: calc(100% - 200px);
    height: 24px;
	margin: 0 auto;
    background: url(../images/novels/bc.png) bottom;
}

.cb::before, .cb::after {
	content: '';
	display: block;
	width: 100px;
	height: 24px;
	position: absolute;
}
.cb::before {
	left: 0px;
	background: url(../images/novels/bcl.png) bottom;
}
.cb::after {
	right: 0px;
	background: url(../images/novels/bcr.png) bottom;
}
.content_cbf .cb::before {
	background: url(../images/novels/bl.png) bottom;
}
.content_cbf .cb::after {
	background: url(../images/novels/br.png) bottom;
}

.gototop {
	position: absolute;
	top: -8px;
	width: 100%;
}
.gototop a { 
	display: block;
    width: 100px;
    margin: 0 auto;
	text-align: center;
    color: #6bb41e;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
	font-size: 12px;
 }
.gototop a:hover { color: #3f3b2a }
 
#templatemo_footer {
	padding: 20px 4px;
	text-align: center;
	color: #333333;
}

#templatemo_introduce {
	display: grid;
	grid-template-columns: 2fr 1fr;
	column-gap: 10px;
	margin-bottom: 20px;
}

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

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

#novels {
    display: flex;
    gap: 4px;
}

#novels a {
    width: 100%;
}

#novels img {
    width: 100%;
	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;
	}
}

a.novel_title {
	padding: 10px 0;
	border-bottom: 1px solid;
	display: flex;
    justify-content: space-between;
	align-items: center;
	color: #666;
    text-decoration: none;

	&.last {
		margin-top: 20px;
		font-weight: 700;
	}
}

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

.novel_text {
    text-align: justify;
	display: none;
}
.novel_text.active {
    margin-bottom: 20px;
	padding: 10px 0;
	display: block;
}
.novel_text.one {
	display: block;
	border: none;
}

.pagination {
	display: flex;
	justify-content: center;
	margin-top: 40px;
	gap: 10px;
}
.pagination .list {
	border: 1px solid #666;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	text-decoration: none;
	color: #666;
	display: flex;
    justify-content: center;
    align-items: center
}
.pagination .list.current {
	background-color: #666;
	color: #fff;
}

.loading { text-align: center; }
.loading span {
	display: inline-block;
	vertical-align: middle;
	color: #666;
	line-height: 1;
	width: 1em;
	height: 1em;
	border: 0.12em solid rgba(102, 102, 102, 0.3);
	border-top-color: currentColor;
	border-radius: 50%;
	box-sizing: border-box;
	animation: rotate 1s linear infinite;
}
  
@keyframes rotate {
	0% { transform: rotate(0); }
	100% { transform: rotate(360deg); }
}

.youtube {
	position: relative;
	height: 0;
	overflow: hidden;
	padding: 0 0 56.25% 0;	
}
.youtube iframe {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;	
}