@charset "Shift_JIS";
body{
  width:100%;
  text-align:center;
  font-family:serif;

}
section{
  width:98%;
  margin:0 auto;
}

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

#nav a{
  width: 8%;
  text-align:center;
  background:linear-gradient(135deg, #ff9966,#ffff00, #ffffff);
  height:50px;
  border-radius : 100px;
  border-bottom-right-radius : 0px;
  border-top-left-radius : 0px;
  border-bottom-left-radius : 100px;
  line-height:50px;
  margin-bottom:1%;
  margin-right:-0.5%;
  color: #000080;
  font-size:110%;
  display: inline-block;
  text-decoration: none;
  -webkit-box-shadow: 0px 1px 10px #666;
  -moz-box-shadow: 0px 1px 10px #666;
  box-shadow: 0px 1px 10px #666;
  border: 1px solid #808080; 
  perspective: 100px; 
  width: 8%;
  height: 8%;
  position: relative;
  transform-style: preserve-3d; /* ← 子要素を3Dで配置する */
  transform: rotateX(-20deg) rotateY(20deg); /* ← 立体を回転させる */
  animation: spin 10s infinite linear;
  text-shadow:
    1px 1px 0 #ccc,
    1px 1px 0 #bbb,
    1px 1px 0 #aaa,
    1px 1px 0 #999,
    1px 1px 0 #000;
}
#nav a:hover{
  color:#ff0000;
  font-size:105%;
  border-radius : 20px;
  border-bottom-right-radius : 20px;
  border-top-left-radius : 20px;
  border-bottom-left-radius : 20px;
  position: relative;
  transform-style: preserve-3d; /* ← 子要素を3Dで配置する */
  transform: rotateX(20deg) rotateY(-20deg); /* ← 立体を回転させる */
  animation: spin 10s infinite linear;
  
}

@media only screen and (max-width: 1440px){
#nav{
     font-size:100%;
}

#nav a{
     width:6%;
     margin:0 10 0 10;
}

@media only screen and (max-width: 1920px){
#nav{
     width:99%;
      font-size:100%;
}
#nav a{
     width:14%;
     margin:0 10 0 10;
}
}

@media only screen and (max-width: 900px){
#nav{
     font-size:93%;
}
}
@media only screen and (max-width: 700px){
#nav{
  text-align:center;
  font-size:90%;
  width:100%;
  overflow:hidden;
}

#nav a{
  width:28%;
  height:15px;
  line-height:30px;
  border-radius : 100px;
  border-bottom-right-radius : 0px;
  border-top-left-radius : 0px;
  border-bottom-left-radius : 100px;
  margin:2%;
  font-size:100%;
  padding-bottom:5%;
}
section{
  width:98%;
  margin-left:-1.5%;
  text-align:center;
}
}

