@import url(base.css);
@import url(common.css);
@import url(lib.css);
/* ---------------------------------
Index
---------------------------------- */
body {
  width: 100%;
  background: #0d4d9e;
  color: white;
  overflow-x: hidden;
}

header {
  background: #eaeaea;
  height: 400px;
  position: relative;
}
header #head_all span#wave {
  display: block;
  position: absolute;
  bottom: -1px;
  width: 100%;
  height: 200px;
  background: url(../img/index/wave.png) repeat bottom left;
  background-size: 100%;
  overflow: hidden;
}
header p#s501 {
  width: 308px;
  position: absolute;
  top: 250px;
  left: 180px;
  z-index: 0;
}
header p#s501 img {
  width: 100%;
}
header p#flag {
  position: absolute;
  top: 0px;
  left: 0px;
}
header p#sh60 {
  width: 240px;
  position: absolute;
  top: 5px;
  right: 30px;
  animation: anime1 1.5s ease 0s infinite alternate;
}
header p#sh60 img {
  width: 100%;
}
header #header {
  height: 350px;
  position: relative;
}
header #header h1 {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  width: 507px;
  height: 158px;
  top: 40px;
  left: -50px;
}

@keyframes anime1 {
  0% {
    top: 40px;
  }
  50% {
    top: 45px;
  }
  100% {
    top: 40px;
  }
}
nav#gnav {
  width: 860px;
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 100px;
}
nav#gnav ul {
  zoom: 1;
}
nav#gnav ul:after {
  display: table;
  clear: both;
  content: "";
}
nav#gnav ul:before {
  display: table;
  content: "";
}
nav#gnav ul li {
  float: left;
  margin-right: 15px;
}
nav#gnav ul li:last-child {
  margin-right: 0;
}

/*SP*/
@media (max-width: 640px) {
  header {
    background: #eaeaea;
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
  }
  header #head_all span#wave {
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: url(../img/index/wave.png) repeat-x bottom left;
    background-size: 100%;
  }
  header p#s501 {
    position: absolute;
    top: 180px;
    left: 100px;
    z-index: 0;
  }
  header p#s501 img {
    width: 200px;
  }
  header p#flag {
    width: 100px;
    position: absolute;
    top: 0px;
    left: 0px;
  }
  header p#flag img {
    width: 100%;
  }
  header p#sh60 {
    width: 100px;
    position: absolute;
    top: 10px;
    right: 60px;
  }
  header p#sh60 img {
    width: 100%;
  }
  @keyframes anime1 {
    0% {
      top: 10px;
    }
    50% {
      top: 12px;
    }
    100% {
      top: 10px;
    }
  }
  header #header {
    height: 250px;
    position: relative;
  }
  header #header h1 {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 290px;
    height: inherit;
    top: 150px;
  }
  header #header h1 img {
    width: 100%;
  }

  nav#gnav {
    width: 860px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 100px;
  }
  nav#gnav ul {
    zoom: 1;
  }
  nav#gnav ul:after {
    display: table;
    clear: both;
    content: "";
  }
  nav#gnav ul:before {
    display: table;
    content: "";
  }
  nav#gnav ul li {
    float: left;
    margin-right: 15px;
  }
  nav#gnav ul li:last-child {
    margin-right: 0;
  }
}
article {
  text-align: center;
  width: 860px;
  margin: 0 auto;
  margin-bottom: 50px;
}
article h2 {
  margin-bottom: 20px;
}
article ul {
  zoom: 1;
}
article ul:after {
  display: table;
  clear: both;
  content: "";
}
article ul:before {
  display: table;
  content: "";
}
article ul li {
  display: inline-block;
  vertical-align: top;
  margin-right: 45px;
}
article ul li:last-child {
  margin-right: 0;
}
article:last-child {
  margin-bottom: 100px;
}

/*SP*/
@media (max-width: 640px) {
  nav#gnav {
    margin-bottom: 0;
  }

  article {
    text-align: center;
    width: 100%;
    padding: 15px;
    margin-bottom: 50px;
  }
  article h2 {
    margin-bottom: 20px;
  }
  article h2 img {
    width: 100%;
  }
  article ul {
    zoom: 1;
  }
  article ul:after {
    display: table;
    clear: both;
    content: "";
  }
  article ul:before {
    display: table;
    content: "";
  }
  article ul li {
    width: 200px;
    margin: 0 auto;
    text-align: center;
    display: block;
    vertical-align: top;
    margin-bottom: 20px;
  }
  article ul li img {
    width: 100%;
  }
  article ul li:last-child {
    margin: 0 auto;
  }
  article:last-child {
    margin: 0 auto;
  }
}
