@charset "UTF-8";


 /* スマホのとき～480px(全部共通) --*/ 

body {
  text-align:center;
  -webkit-text-size-adjust: 100%;
}

#header {
  margin:0 auto;
  overflow:hidden;
  text-align:left;
}

nav {
  clear:both;
  margin:0 auto;
  width:100%;
  text-align:center;
}

#index_img {
  clear:both;
  margin:0 auto;
  margin-bottom:15px;
  height:100%;
  background-color:#202f55;
}

#content {
  clear:both;
  margin:0 auto;
  overflow:hidden;
  text-align:left;
  width:100%;
}

main {
  clear:both;
  margin:0 auto;
  width:100%;
  margin-bottom:20px;
}

aside {
  margin:0 auto;
  width:100%;
}

#footerback {
  margin:0 auto;
  margin-top:50px;
  position:relative;
  border-top:1px solid #000;
  width:100%;
}

#footerback:before {
  display:none;
  content:url("../image/footback.gif");
  position:absolute;
  width:60%;
  top:-38px;
}


footer {
  margin:0 auto;
  text-align:left;
}


@media screen and (min-width:480px){  /*タブレット用 --*/


#footerback:before {
  display:inline;
  left:10%;

}

}





@media screen and (min-width:768px) {  /*PC用 --*/

#header {
  max-width:960px;
}

#content {
  min-width:768px;
  max-width:960px;
}

main {
  max-width:70%;
  float:left;
}

aside {
  float:right;
  max-width:28%;
}

aside img{
  width: calc(100% - 20px);
  max-width: 300px;
  height:auto;
}
footer {
  max-width:960px;
}

#footerback:before {
  display:inline;
  left:20%;
}

}


@media screen and (min-width:960px) {  /*PC用 --*/
#content {
  max-width:960px;
}

main {
  float:left;
  max-width:620px; 
}

aside {
  float:right;
  max-width:320px;
}

}