﻿/* common */
header,
article,
footer{
	width: 100%;
	max-width: 930px;
	margin: 0 auto;
}
header,
article{
	text-align: left;
}
footer{
	text-align: center;
}

p.siteID{
	text-align: left;
}

h1 img{
	max-width: 100%;
	height: auto;
	display: block;
}

p.info{
	padding: 0.5em 0;
	font-size: 120%;
	line-height: 1.5em;
	font-weight: bold;
}

section{
	margin: 30px auto;
	padding: 0.5em;
}

section p{
	line-height: 1.8;
	word-break: break-all;
}

footer{
	font-size: 80%;
	border-top: 2px solid #000;
	padding: 10px 0;
}
address {
	font-family: Impact,Charcoal;
	font-style: normal;
	padding-top: 10px;
}

/* for smartphone */
@media only screen and (max-width:480px){
  article {
	width: 90%;
  }

  p.siteID img{
	max-width: 50%;
  }

  p.info{
	font-size: 90%;
	font-weight: normal;
	margin-bottom: 1em;
	padding: 0.5em;
  }

  section{
	margin: 0 auto;
  }

  section p{
	text-align: left;
	line-height: 1.5;
	font-size: 90%;
  }

  footer{
	width: 90%;
  }
}



/* -- to header scroll｜for PC -- */
#page_top {
	position: fixed;
	bottom: 10px;
	right: 10px;
}
#page_top a {
	background: rgba(0,0,0,0.6);
	text-decoration: none;
	color: #fff;
	width: 2.5em;
	padding: 15px 0;
	font-size: 180%;
	text-align: center;
	display: block;
}
#page_top a:hover {
    text-decoration: none;
    background: #29a5e1;
}

/* smartphonet｜display none! */
@media only screen and (max-width:480px){
  #page_top {
	display: none;
	position: static;
  }
  #page_top a {
	display: none;
  }
}


/* -- to header button｜for smartphone -- */
.page_top_sp{
	text-align: right;
	border-top: 1px dashed #000;
	margin-top: 20px;
}
.page_top_sp img{
	padding: 10px 0;
}
/* PC｜display none! */
@media only screen and (min-width:481px){
  .page_top_sp{
	display: none;
  }
}



/* -- top page -- */

.topMenu1 img,
.topMenu2 img,
.topMenu3 img{
	width: 80%;
	height: auto;
}

h2{
	border-bottom: 1px solid #cecece;
	font-size: 160%;
	padding: 0.7em 0;
	margin: 0.7em 0;
}

ul.textBox{
	background: #f0f0f0;
	margin: 0.7em 0 2em;
	padding: 1em;
}

ul.textBox li{
	font-size: 120%;
	line-height: 1.5em;
	font-weight: bold;
	padding: 0.3em 0;
}

/* top page｜for smartphone */
@media only screen and (max-width:480px){
  .topMenu1{
	border: 0px;
  }

  .topMenu2{
	border: 0px;
  }

  .topMenu3{
	border: 0px;
  }

  .topMenu1,
  .topMenu2,
  .topMenu3{
	border-top: 1px dashed #000;
  }

  h2{
	border-bottom: 0;
	font-size: 100%;
	width: 100%;
	margin: 0.7em auto 0;
  }

  ul.textBox{
	width: 100%;
	margin: 0.7em auto;
	padding: 0;
  }

  ul.textBox li{
	font-weight: normal;
	font-size: 90%;
	text-align: left;
	padding: 0 1em 0.5em;
  }
  ul.textBox li:first-child{
	text-align: center;
	font-weight: bold;
	padding-top: 0.5em;
  }
}



/* -- discountSale page -- */

/* campaign period */
ul.period{
	display: -webkit-flex; /* Safari */
	display: flex;
	-webkit-justify-content: center; /* Safari */
	justify-content:         center;
}

ul.period li{
	background: #f0f0f0;
	padding: 1em;
	color: #ff0010;
	font-weight: bold;
	font-size: 150%;
}

ul.period li:first-child{
	background: #f5ac0f;
	color: #fff;
	font-weight: normal;
}

@media only screen and (max-width:480px){
  ul.period{
	display: block;
	text-align:center;
  }
  ul.period li{
	background: #fff;
	padding: 0.7em;
 	font-size: 80%;
  }
  ul.period li:first-child{
	background: #fff;
	color: #f5ac0f;
	border: 1px solid #f5ac0f;
	font-weight: bold;
  }
}
@media only screen and (max-width:320px){
  ul.period li{
 	font-size: 70%; /*for iPhone5*/
  }
}

/* thumbnail list */
.thumbnail_list ul {
	display: -webkit-flex; /* Safari */
	display: flex;
	-webkit-flex-wrap: wrap; /* Safari */
	flex-wrap:         wrap;
}

.thumbnail_list ul li{
	width: 20%; /* 5 lines */
}
.thumbnail_list ul li img {
	width: 90%;
	height: auto;
	margin-top: 2em;
}

.thumbnail_list ul li .book_info{
	margin: 0 8px;
	font-size: 80%;
	text-align: left;
}
.thumbnail_list ul li .book_info a{
	text-decoration: none;
}

@media only screen and (max-width:480px){
  .thumbnail_list ul {
	-webkit-justify-content: space-between; /* Safari */
	justify-content:         space-between;
  }
  .thumbnail_list ul li {
	width: 33%; /* 3 lines */
	text-align: center;
  }
}

/* mouseOver effect */
.thumbnail_list ul li a:hover img {
	opacity: 0.7;
	filter: alpha(opacity=70);
	-ms-filter: "alpha(opacity=70)";
}

p.next{
	border-bottom: 5px solid #d7360a;
	border-top: 1px solid #cecece;
	border-right: 1px solid #cecece;
	border-left: 1px solid #cecece;
	margin: 30px auto;
	text-align: center;
	padding: 1em 0;
	font-weight: bold;
	width: 60%;
}

@media only screen and (max-width:480px){
  p.next{
	font-weight: bold;
	font-size: 90%;
	width: 100%;
  }
}



/* partial style */
.bold{
	font-weight: bold;
}

.large{
	font-size: 110%;
}

.blue{
	color: #528ff5;
}

.green{
	color: #34a853;
}

.gray{
	color: #aaa;
}

.red{
	color: #eb3618;
}

.center{
	text-align: center;
}

/* for smartphone br */
@media only screen and (max-width:480px){
  .br:before {
	content: "\A" ;
	white-space: pre ;
  }
}
