@charset "utf-8";
@import url("reset.css"); /* 削除禁止 */
/* CSS Document */

/* =================================================
全体指定
================================================= */

body {
	background:#fff;
	color:#666;
	font-family:"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,Osaka,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
}

/* =================================================
リンク
================================================= */

a{
	text-decoration:none;
}

a:link{
	color:#1ba5d3;
}

a:visited{
	color:#1ba5d3;
}

a:hover {
	color:#b9e1ed;
}

a:active {
	color:#1ba5d3;
}

/* =================================================
ヘッダー・見出し・文字
================================================= */

/* wrapper（全体囲み） */

#wrapper{
	margin:auto;
	padding:120px 40px;
	width:900px;
	background-color: rgba(255,255,255,0.9);
	box-sizing:border-box;
}

/* 小説のタイトル */

h1{
	margin-bottom:80px;
	font-size:48px;
	line-height: 56px;
	font-family: 'Noto Serif SC', serif;
	text-align:center;
}

/* 文字幅（<p>でくくる場合） */

p{
	margin:20px 0px; /* 上下の余白 */
}

/* =================================================
コンテンツ
================================================= */

/*メイン小説の部分*/

main{
	display:block; /* IE対策 */
	padding:40px 0px;
	border-top:1px solid #111;
	border-bottom:1px solid #111;
}

/* =================================================
フッター
================================================= */

footer{
	padding-top:60px;
	font-size:90%;
}

footer .atogaki{
	margin-bottom:40px;
	line-height: 26px;
}

footer .atogaki h2{
	margin-bottom:10px;
	font-size:120%;
}

footer p.written{
	margin:0px !important;
	text-align:center;
}

footer ul{
	display:flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top:5px;
	list-style: none;
	list-style-position: inside;
}

footer ul li{
	padding:0px 10px;
	border-right:1px dotted #111;
}

footer ul li:last-child{
	border-right:0px;
}


/* =================================================
背景用カスタマイズ
================================================= */

/*青空*/
body.bg1::before {
	display: block;
	position: fixed;
	background:url('../images/textbg_1.jpg') no-repeat;
	background-size: cover;
	background-position:center;
	top: 0;
	left: 0;
	width: 100%;
	height:100%;
	content: "";
	z-index: -1;
}

/*彼岸花*/
body.bg2::before {
	display: block;
	position: fixed;
	background:url('../images/textbg_2.jpg') no-repeat;
	background-size: cover;
	background-position: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: "";
	z-index: -1;
}

/*彼岸花*/
body.bg2::before {
	display: block;
	position: fixed;
	background:url('../images/textbg_2.jpg') no-repeat center;
	background-size: cover;
	background-position: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: "";
	z-index: -1;
}

/*教室*/
body.bg3::before {
	display: block;
	position: fixed;
	background:url('../images/textbg_3.jpg') no-repeat;
	background-size: cover;
	background-position: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: "";
	z-index: -1;
}

/*本と眼鏡*/
body.bg4::before {
	display: block;
	position: fixed;
	background:url('../images/textbg_4.jpg') no-repeat;
	background-size: cover;
	background-position: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: "";
	z-index: -1;
}

/*夜桜*/
body.bg5::before {
	display: block;
	position: fixed;
	background:url('../images/textbg_5.jpg') no-repeat;
	background-size: cover;
	background-position: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: "";
	z-index: -1;
}


/*以下色の微調整など*/

/*bg2（彼岸花）用*/

.bg2 #wrapper{
	background-color: rgba(0,0,0,0.8);
	color:#eee;
}

.bg2 main{
	border-top:1px solid #eee;
	border-bottom:1px solid #eee;
}

.bg2 a:link{
	color:#8cd4df;
}

.bg2 a:visited{
	color:#8cd4df;
}

.bg2 a:hover {
	color:#666666;
}

.bg2 a:active {
	color:#8cd4df;
}

.bg2 footer ul li{
	border-right:1px dotted #eee;
}

.bg2 footer ul li:last-child{
	border-right:0px;
}

/*bg3（教室）用*/

.bg3 a:link{
	color:#a4896e;
}

.bg3 a:visited{
	color:#a4896e;
}

.bg3 a:hover {
	color:#b6a282;
}

.bg3 a:active {
	color:#a4896e;
}

/*bg4（本と眼鏡）用*/

.bg4 #wrapper{
	background-color: rgba(90,72,67,0.7);
	color:#eee;
}

.bg4 main{
	border-top:1px solid #eee;
	border-bottom:1px solid #eee;
}

.bg4 a:link{
	color:#cdbaac;
}

.bg4 a:visited{
	color:#cdbaac;
}

.bg4 a:hover {
	color:#37363c;
}

.bg4 a:active {
	color:#cdbaac;
}

.bg4 footer ul li{
	border-right:1px dotted #eee;
}

.bg4 footer ul li:last-child{
	border-right:0px;
}

/*bg5（夜桜）用*/

.bg5 #wrapper{
	background-color: rgba(139,60,65,0.8);
	color:#eee;
}

.bg5 main{
	border-top:1px solid #eee;
	border-bottom:1px solid #eee;
}


.bg5 a:link{
	color:#f2d0c6;
}

.bg5 a:visited{
	color:#f2d0c6;
}

.bg5 a:hover {
	color:#f6eae0;
}

.bg5 a:active {
	color:#f2d0c6;
}

.bg5 footer ul li{
	border-right:1px dotted #eee;
}

.bg5 footer ul li:last-child{
	border-right:0px;
}


/*スマホ
================================================= */

@media screen and (min-width:0px) and (max-width:736px){


	/* =================================================
	全体指定
	================================================= */

	* {
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		-o-box-sizing: border-box;
		-ms-box-sizing: border-box;
		box-sizing: border-box;
	}

	html{
		font-size: 62.5%;
		height: 100%;
	}

	body {
		width:100%;
		font-size: 1.3rem;
		line-height:1.7em;
		overflow-x: hidden;
		-webkit-text-size-adjust: 100%;
		overflow-y: scroll;
		overflow-x: hidden;
	}

	img {
		height: auto;
		width: auto;
		max-width:100%;
		vertical-align: bottom;
	}


	/* =================================================
	ヘッダー・見出し・文字
	================================================= */

	/*wrapper（全体囲み）*/

	#wrapper{
		padding:40px 10px;
		width:95%; /* 文字背景の横幅を%で調整 */
	}

	/* 小説のタイトル */

	h1{
		margin-bottom: 20px;
		font-size:24px;
		line-height: 30px;
	}

	/* =================================================
	コンテンツ
	================================================= */

	/*メイン小説の部分*/

	main{
		padding:10px 0px;
	}

	/* =================================================
	フッター
	================================================= */

	footer {
		padding-top: 30px;
	}

	footer .atogaki {
		margin-bottom: 20px;
		line-height: 24px;
	}

	footer .atogaki p{
		margin:10px 0px !important;
	}

}


/* タブレット端末
================================================= */

@media screen and (min-width:737px) and (max-width:1024px){

	/* =================================================
	全体指定
	================================================= */

	body {
		font-size:14px;
		line-height:2em;
		overflow-y: scroll;
		overflow-x: hidden;
		height: 100%;
	}

	img {
		max-width: 100%;
		height: auto;
		width: auto;
		vertical-align: bottom;
	}

	/* =================================================
	ヘッダー・その他・見出し・文字
	================================================= */

	/*wrapper（全体囲み）*/

	#wrapper{
		padding:80px 30px;
		width:80%;
	}

	/* 小説のタイトル */

	h1{
		margin-bottom: 40px;
		font-size:32px;
		line-height: 42px;
	}

	/* =================================================
	コンテンツ
	================================================= */


	/*メイン小説の部分*/

	main{
		padding:20px 0px;
	}


	/* =================================================
	フッター
	================================================= */

	footer{
		padding-top:40px;
	}

	footer .atogaki p{
		margin:10px 0px !important;
	}

	/* =================================================
	背景用カスタマイズ
	================================================= */

}

/*パソコン
================================================= */

@media screen and (min-width:1025px){

	/* =================================================
	全体指定
	================================================= */

	html {
		scrollbar-arrow-color:#555;
		scrollbar-face-color:#555;
		scrollbar-3dlight-color:#555;
		scrollbar-darkshadow-color:#555;
		scrollbar-highlight-color:#555;
		scrollbar-shadow-color:#555;
		scrollbar-track-color:#fff;
		height: 100%;
	}

	body {
		font-size:16px;
		line-height:2em;
		overflow-y: scroll;
		overflow-x: hidden;
		height: 100%;
	}

	img {
		max-width: 100%;
		height: auto;
		width: auto;
		vertical-align: bottom;
	}

	/* =================================================
	背景用カスタマイズ
	================================================= */

	body::before{
		display:none !important; /* 消さないで！ */
	}

	/*青空*/

	body.bg1{
		background:#fff url(../images/textbg_1.jpg);
		background-size: cover;
		background-attachment: fixed;
		background-position: center;
		background-repeat: no-repeat;
	}

	/*彼岸花*/
	body.bg2{
		background:#fff url(../images/textbg_2.jpg);
		background-size: cover;
		background-attachment: fixed;
		background-position: center;
		background-repeat: no-repeat;
	}

	/*教室*/
	body.bg3{
		background:#fff url(../images/textbg_3.jpg);
		background-size: cover;
		background-attachment: fixed;
		background-position: center;
		background-repeat: no-repeat;
	}

	/*本と眼鏡*/
	body.bg4{
		background:#fff url(../images/textbg_4.jpg);
		background-size: cover;
		background-attachment: fixed;
		background-position: center;
		background-repeat: no-repeat;
	}

	/*夜桜*/
	body.bg5{
		background:#fff url(../images/textbg_5.jpg);
		background-size: cover;
		background-attachment: fixed;
		background-position: center;
		background-repeat: no-repeat;
	}

}
