@media screen and (max-width: 850px){
    body {width: 100%;
    }
}
@media screen and (min-width: 851px){
    body {width: 850px;
    }
}

body { 
  border: 1px solid #ccc;
  margin:0 auto;
  font-size:0.75em;
  line-height:1.4em;
  color: #033;
  font-family:"Arial";
} 

section{
  margin:10px;
}

a:link  {
  color:#033;
  text-decoration: none; 
}

a:visited{
  color:#033;
  text-decoration: none; 
}
a:hover {
  color: #069;
  text-decoration: underline;
}



#lang{
  text-align: right;
  width: 100%;
  height: 22px;
}

@media screen and (min-width: 851px){
  header {
    width: 100%;
    height:114px;
    background-image: url(../image/esora.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: right bottom;
  }
  header h1{
    color: #106bb1;
    font-size: 1.2em;
    text-align: left;
  }
}

@media screen and (max-width: 850px){
  header {
    width: 100%;
    border-bottom:1px solid #106bb1;
    background-image: url(../image/main.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-color:#106bb1;
    border-top:1px solid white;
  }
  header h1{
    color: #fff;
    font-size: 1.1em;
    text-align: left;
    padding-left:1em;
  }
  article h2{
    margin-top:2em;
  }
}

nav {
  background-image: url(../image/menuback.gif);
  background-repeat: repeat-x;
  background-position: right bottom;
  text-align: center;
  margin: 0 auto;
  padding: 0; 
  width: 100%; 
  height: 20px; 
  border-right: 1px solid silver;
}

@media screen and (max-width: 620px){
  nav ul {
    width: 100%;
  }
}

@media screen and (min-width: 621px){
  nav ul {
    width: 620px;
  }
}

nav ul { 
  list-style-type : none; 
  margin : 0 auto; 
  padding : 0;
} 

nav li { 
  float: left;
  margin: 0 auto; 
  padding: 0;
  width: 100px;
 }

nav img{
  display:block;
}

.container{
 width:100%; 
 padding:0 auto;
}

aside{
 float:left;
 background-color: gray;
 width: 190px;
 border-right: 1px solid gray; 
 border-bottom: 1px solid silver;
 font-size:12px;
}

aside .bigcate   {
  color: white;
  font-weight: bold;
  line-height: 20px;
  background-color: navy;
  background-image: url(../image/bigcate.gif);
  padding-left: 12px; 
  height: 20px;
}

aside ul  {
  list-style-type: none;
  margin: 0;
  padding-left: 0;
}

aside .smcate a{
  color: black;
  line-height: 20px;
  text-decoration: none;
  background-image: url(../image/smcatelink.gif);
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: 0 100%;
  display: block;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 19px;
  padding-left: 14px;
  width: 157px;
  height: 20px;
  border-bottom: 1px solid silver;
  }

aside .smcate a:hover{
  background-image: url(../image/smcatehover.gif); 
}

@media screen and (max-width: 630px){
  article {
    width: 100%;
  }
}
@media screen and (min-width: 631px){
  article {
    width: 630px;
  }
}

article{
  margin:0 auto;
  background-color:white;
  padding-bottom:20px;
}

footer{
  clear:both;
  color: white;
  line-height: 1.5em;
  background-color: gray;
  text-align: center;
  margin: 0 auto; 
}

footer a:link {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: #99ffff;
  text-decoration: underline;
}
footer a:visited {
  color: white;
  text-decoration: none;
 }

h2 {
  color: navy;
  font-size: 1.2em;
  font-weight: bold;
  background-image: url("../image/h2pr.gif");
  background-repeat:no-repeat;
  margin: 10px 0 10px 10px;
  padding: 3px 20px 4px;
  border-bottom: 1px solid silver;
  line-height:1.2em;
 }

h3 {
  color:#000;
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1em;
  margin-bottom: 12px;
  margin-left: 6px;
  padding-left: 6px;
  border-left: 6px solid navy;
}

h4 {   
    color: #4e5f6e;
    font-size: 1.2em;
    font-weight: bold;
    background-color: #f5f5f5;
    margin-left: 10px;
    padding: 3px 6px;
    border-top: 1px solid #357db3;
    border-bottom: 1px solid #357db3;
    }

h5 {
    color: gray;
    font-size: 1em;
    font-weight: bold;
    background-repeat: no-repeat;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 18px
    }

h6 {
    color: navy;
    font-size: 1em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0
    } 

p {
  /*margin:10px;*/
}

table {
  border-collapse: collapse;
}

th {
  color: white;
  line-height: 120%;
  background: silver;
  text-align: center;
  white-space: nowrap;
  margin: 0;
  padding: 5px 5px 5px 10px;
  border: solid 1px;
}

td{
  margin: 0;
  padding: 5px 5px 5px 10px;
  border: solid 1px silver;
 }


.red {
  color: #c00;
}

.waku {
  margin: 10px;
  padding: 10px;
  border: solid 1px navy;
}

.rsi img {
  width:100%;
  height:auto;
 }

.center{
  text-align:center;
}

.smtitle {
  font-size: 1.3em;
  font-weight: bold; 
  line-height: 1.5em;
  background-color: #f0ffff;
  padding: 6px 12px; 
  width: 95%; 
  border: dashed 1px teal;
 }

.koshi {
  color: #58e;
  font-weight: bold;
  padding-left:30px;
}

.tai {
  font-weight: bold;
  background-color: #e6e6fa;
}

