@charset"utf-8";
a{
  color: rgb(4, 0, 255);
}
a:hover,a img:hover{
  opacity: 0.5;
}
body {
  color: #1a1672;
  font-size: 16px;
  margin: 0;
  font-family: Meiryo,sans-serif;
}
main{
  display: block;
}
header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 9999;
}

.h-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 50px;
  line-height: 50px;
  padding: 0 1%;
  padding-top: 10px;
}

h1 {
  width: 20%;
  text-align: left;
  margin: 0;
}

.h-nav img {
  width: 100%;
}
.h-nav img:hover{
  opacity: 0.5;
}

.h-nav nav {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  text-align: center;
}

.h-nav ul {
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  margin: 0;
  padding: 0;
}

.h-nav li {
  color: #1a1672;
}

.h-nav li a {
  text-decoration: none;
  display: block;
  color: #1a1672;
}

.h-nav li a:hover {
  color: tomato;
}

.h-search {
  text-align: right;
  padding: 3px;
  padding-right: 10px;
  background-color: #1a1672;
}



footer {
  border-top: 10px solid #1a1672;
  margin: 0 auto;
}

.f-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
  justify-content: space-around;
}

.f-nav a {
  display: block;
}

.f-name {
  text-align: center;
  margin: 20px auto;
  font-size: 0.8em;
}
/* ---------------個別設定----------------------- */
input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type="number"] { 
  -moz-appearance:textfield; 
}
input[type="number"] {
  width: 50px;
}
/* ---------------------------------------------- */


@media screen and (max-width: 960px) {
  h1 {
    width: 30%;
  }
}



@media screen and (max-width: 750px) {
  .h-nav {
    padding: 0;
  }
  h1 {
    width: 70%;
  }
  .h-nav nav {
    font-size: 0.8em;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: whitesmoke;
    border-top: 10px solid #1a1672;
  }
  .h-nav li {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-left: 1px solid black;
    border-right: 1px solid black;
  }
  



  footer {
    margin-bottom: 60px;
    font-size: 0.8em;
  }
  .f-nav a:nth-of-type(-n+6) {
    display: none;
  }
  .f-name {
    margin-top: 0;
  }
}

@media print {
  body { display: none }
}