@media screen and (min-width:768px) {
  .wrapper {
    min-height: 100vh;
    position: relative;/*←相対位置*/
    padding-bottom: 180px;/*←footerの高さ*/
    box-sizing: border-box;/*←全て含めてmin-height:100vhに*/
  
  }
  
  .header .nav-list-item {
    list-style: none;
    display:inline;
    font-size: 1.4vw;
    flex-grow: 1;
    margin-right: 1.2vw; 
    border-bottom: 0.1vw solid gray;
  }

  .nav-list {
    margin-top: 1.5vw;
    margin-bottom: 0;
  }
  
  #nav1 {
    display: flex;
  }

  .header {
    font-family: serif;
    position: fixed;           /* ヘッダーの固定 */
    top: 0px;                   /* 位置(上0px) */
    left: 0px;                  /* 位置(右0px) */
    background-color: midnightblue;     /* 背景色(濃い青) */
    padding: 5px 0 20px;      
    height:4vw;             
    width:100%;               
  }

  .header a {
    color: #fffafa;
    text-decoration: none;
    /* margin-right: 10px; */
    text-align: center; 
  }

  .header .headline {
    color: white;
    text-align: left;
    font-size: 2.1vw;
    margin-left: 1vw;
    flex-grow: 1;
    margin-top: 0.9vw;
    margin-bottom: 0;
  }

  body {
    padding-top: 5vw;
    padding-left: 0px;
    padding-right: 0px;
    font-family: serif;
    margin: 0;
  }

.main {
  margin-left: 60px;
  margin-right: 60px;
  /* min-height: calc(100vh - 3vw - 6vw); */

}
.main-p-1 {
  text-align: center;
}

.main h2 {
  font-size: 25px;
  font-weight: bold;
  padding: 1em 1em;
  margin: 40px 0;
  color: #232323;
  background: #e8f5ff;
  border-left: solid 10px rgb(40, 103, 222)
}

p {
  margin-left: 20px;
  margin-right: 20px;
}
.footer p {
  text-align: center;
  font-size: 1vw;
  margin: 0 0;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 10px;
}


.main-h1-1 {
  text-align: center;
}

table {
  width: 60vw;
  margin: 0 20px;
}

table, th, td {
  border-collapse: collapse;
  border: 1px solid black;
}

.footer {
  width: 100%;
  background-color: #405c70;
  color: #fff;
  text-align: center;
  padding: 5px 0;

  position: absolute;/*←絶対位置*/
  bottom: 0; /*下に固定*/
}

.footer .headline {
  color: white;
  text-align: center;
  margin-bottom: 0;


}
.footer h2 {
  font-size: 20px;
  margin-top: 3px;
}

h4 {
  font-weight: bold;
  font-size: 15px;
}

.sp-nav {
  display: none;
}


}












@media screen and (max-width:767px) {
.header .nav-list-item {
  display: none;
}
.sp-nav {
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: block;
  width: 100%;
  background: rgba(0, 0, 0, .8);
  transition: all .2s ease-in-out;
  opacity: 0;
  transform: translateY(-100%);
}
#hamburger {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  margin-top: 2vw;
  margin-left: auto;
  margin-right: 10px;
}

#hamburger span {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transform: translateY(-50%);
}

#hamburger::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
}

#hamburger::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70%;
  height: 2px;
  background-color: #fff;
}

.sp-nav {
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: block;
  width: 100%;
  background: rgba(0, 0, 0, .8);
  transition: all .2s ease-in-out;
}

.sp-nav ul {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.sp-nav li {
  margin: 0;
  padding: 0;
}

.sp-nav li span {
  font-size: 15px;
  color: #fff;
}

.sp-nav li a, .sp-nav li span {
  display: block;
  padding: 20px 0;
  color: white;
}
.sp-nav .close {
  position: relative;
  padding-left: 20px;
}
/*バツ印線1*/
.sp-nav .close::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 16px;
  height: 1px;
  background: #fff;
  transform: rotate( 45deg );
}
/*バツ印線2*/
.sp-nav .close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 16px;
  height: 1px;
  background: #fff;
  transform: rotate( -45deg );
}

.wrapper{
  min-height: 100vh;
  position: relative;/*←相対位置*/
  padding-bottom: 120px;/*←footerの高さ*/
  box-sizing: border-box;/*←全て含めてmin-height:100vhに*/
}

.toggle {
  transform: translateY( 0 );
  opacity: 1;
}
/* html {
  height: 100%;
} */

.main-visual {
  padding: 0 4%;
}

.main h2 {
  line-height: 1.6;
  text-align: center;
  padding: 0.5em 1em;
  margin: 25px 0;
  color: #232323;
  background: #e8f5ff;
  border-left: solid 10px cornflowerblue
  }
  .header {
    /* text-align: center; */
    font-family: serif;
    position: fixed;           /* ヘッダーの固定 */
    top: 0px;                   /* 位置(上0px) */
    left: 0px;                  /* 位置(右0px) */
    background-color: midnightblue;     /* 背景色(濃い青) */
    padding:10px 0 20px;       /* 上10px、下20pxをあける */
    width:100%;                /* 横の幅を100% */
    height: 7vw;
    display: flex;
  }

img {
  width: 100%;
}

.header .headline {
  color: white;
  text-align: left;
  width: 100%;
  font-size: 4.5vw;
  margin: 0 0;
  margin-left: 10px;
  margin-top: 5px;
}
.main {
  margin-left: 30px;
  margin-right: 30px;
  min-height: calc(100vh - 20vw - 15vw);

}

p {
  margin: 0 20px;
}


table {
  width: 60vw;
  margin: 0 20px;
}

table, th, td {
  border-collapse: collapse;
  border: 1px solid black;
}


.footer{
  width: 100%;
  background-color: #405c70;
  color: #fff;
  padding: 5px 0;

  position: absolute;/*←絶対位置*/
  bottom: 0; /*下に固定*/
}


.footer .headline {
  color: white;
  text-align: center;
  margin: 0 0;
  font-size: 3vw;
}
.footer p {
  text-align: center;
  font-size: 1vw;
  margin: 0 0;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 10px;
}

.footer h2 {
  font-size: 2vw;
  text-align: center;
  margin-top: 1px;
}



  h1 {
    text-align: center;
  }
  body {
    font-size: small;
    padding-top: 70px;
    padding-left: 0px;
    padding-right: 0px;
    font-family: serif;
    margin: 0;
  }

  .main-p-1 {
    text-align: center;
}

}
