@charset "UTF-8";

/*初期設定
----------------------------------------------------*/
html {
  overflow-y: scroll;
}
body {
  min-width: 320px;
  background: url(../img/bg.png);
  line-height: 1.5;
  color: #333;
}
img {
  max-width: 100%;
  height: auto;
}
.ie8 img{
  width: auto;
}
/*clearfix*/
.clearfix {
  zoom: 1;
}
.clearfix:after {
  content: "";
  display: block;
  clear: both;
}

/*layout
----------------------------------------------------*/
a {
  color:#e5e5e5;
}
nav {
  border-bottom: 1px solid #131313;
  background: #131313;

  box-shadow: 0 1px 1px #333333;
  text-align: center;
}
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-image: none;
}
nav ul li {
  float: left;
  width: 33.33333%;
  letter-spacing: 0.1em;
  text-align: center;
  text-shadow: 1px 1px 1px #ccc;
}
.ie7 nav ul li{
  width: 33.17708%;
}
nav ul li a {
  display: block;
  padding: 10px 0;
  color: #fff;
}
header {
  margin-bottom: 1.5em;
}
header h1 {
  line-height: 1.1;
  color: #000;
  font-size: 2.5em;
  font-weight: normal;
  text-align: center;
}
header #mainImage {
  margin: 30px 0 0 20px;
  text-align: left;
}
article {
  padding: 0 10px;
}
article h2 {
  padding: 0 0 0 10px;
  border-left: 3px solid #000;
  line-height: 1.1;z
  font-size: 2em;
  font-weight: normal;
}
section {
  margin-bottom: 3em;
}
div.subImage {
  margin: 20px 0 20px 10px;
}
div.imagebox {
   margin: 5px; /* 周囲の余白 */
   width: 250px; /* 横幅 */
   float: left; /* 左に配置 */
}
div.imagebox2{
   margin: 5px auto; /* 常に中央に配置 */
    font-family:  "MS PGothic", Osaka, "MS Gothic", Gothic, sans-serif;
}
p.image, p.caption {
   text-align: center; /* 中央寄せ */
   margin: 0px;        /* 余白・間隔 */
}
p.caption {
   font-size: 80%;  /* 文字サイズ */
   color: #fff; /* 文字色 */
}
footer {
  padding: 10px 0;
  background: #131313;
  color: #fff;
  text-align: center;
}

/*media Queries
----------------------------------------------------*/
@media only screen and (min-width: 768px) {
  header h1 {
    margin: 1.1em 0;
    line-height: 1.5;
    font-size: 3em;
  }
}
@media only screen and (min-width: 840px) {
  nav ul,
  #content{
    width: 800px;
    margin: 0 auto;
  }
}
