@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;
  }

  #nav1 {
    display: flex;
  }

  .nav-list {
    margin-top: 1.5vw;
    margin-bottom: 0;
  }


  .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: 40px;
    margin-right: 40px;
    margin-bottom: auto;
  }

.main-h1-1 {
  text-align: center;
}

.main-p-1 {
  margin-left: 20px;
  margin-right: 20px;
}

.main-p-2 {
  margin-left: 20px;
  margin-right: 20px;

}


.contents-item {
  display: flex;
}  
    
  .contents-item-1 {
    display: flex;
    margin: auto;
    height: 10vw;
    width: 20vw;
    padding: 20px;
    border: 1px solid #ccc; /* 枠線 */
    background-color: #fff; /* 背景色 */
    box-shadow: 3px 3px 6px #ccc;
    text-align: center;
    margin-left: 1vw;
  }
  .contents-item-2 {
    display: flex;
    margin: auto;
    height: 10vw;
    width: 20vw;
    padding: 20px;
    border: 1px solid #ccc; /* 枠線 */
    background-color: #fff; /* 背景色 */
    box-shadow: 3px 3px 6px #ccc;
    text-align: center;
    margin-left: 1vw;
  }
  .contents-item-3 {
    display: flex;
    margin: auto;
    height: 10vw;
    width: 20vw;
    padding: 20px;
    border: 1px solid #ccc; /* 枠線 */
    background-color: #fff; /* 背景色 */
    box-shadow: 3px 3px 6px #ccc;
    text-align: center;
    margin-left: 1vw;
  }
  .contents-item-4 {
    display: flex;
    margin: auto;
    height: 10vw;
    width: 30vw;
    padding: 20px;
    border: 1px solid #ccc; /* 枠線 */
    background-color: #fff; /* 背景色 */
    box-shadow: 3px 3px 6px #ccc;
    text-align: center;
    margin-left: 1vw;
  }

  .contents-item img {
    height: 10vw;
    width: 10vw;
  
  }
  .contents-item p {
    font-size: 1.3vw;
  }
  
  .contents-item-1:hover {
    opacity: 0.7;
  }
  .contents-item-2:hover {
    opacity: 0.7;
  }
  .contents-item-3:hover {
    opacity: 0.7;
  }
  .contents-item-4:hover {
    opacity: 0.7;
  }

a {
  text-decoration: none;
  color: black;
}

.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)
}

.main-p-1 {
  text-align: center;
}

.contents-item-1-sub {
  padding-left: 10px;
}

.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 p {
  text-align: center;
  font-size: 1vw;
  margin: 0 0;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 10px;
}
.footer h2 {
  font-size: 20px;
  margin-top: 3px;
}


.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;
}

.main-visual {
  padding: 0 4%;
}

.main-p-1 {
  text-align: center;
}

.main-p-2 {
  margin: 0 10px;
}

.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;
  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); */
}

.contents-item {
  display: flex;
  flex-wrap: wrap;
}  


.contents-item-1 {
  display: flex;
  margin: auto;
  height: 10vw;
  width:30vw;
  padding: 20px;
  border: 1px solid #ccc; /* 枠線 */
  background-color: #fff; /* 背景色 */
  box-shadow: 3px 3px 6px #ccc;
  text-align: center;
  margin: 1vw;
}

.contents-item-1-sub {
  padding-left: 10px;
margin-top:0;
}

.contents-item-2 {
  display: flex;
  margin: auto;
  height: 10vw;
  width: 30vw;
  padding: 20px;
  border: 1px solid #ccc; /* 枠線 */
  background-color: #fff; /* 背景色 */
  box-shadow: 3px 3px 6px #ccc;
  text-align: center;
  margin: 1vw;
}
.contents-item-3 {
  display: flex;
  margin: auto;
  height: 10vw;
  width: 30vw;
  padding: 20px;
  border: 1px solid #ccc; /* 枠線 */
  background-color: #fff; /* 背景色 */
  box-shadow: 3px 3px 6px #ccc;
  text-align: center;
  margin: 1vw;
}
.contents-item-4 {
  display: flex;
  margin: auto;
  height: 10vw;
  width: 40vw;
  padding: 20px;
  border: 1px solid #ccc; /* 枠線 */
  background-color: #fff; /* 背景色 */
  box-shadow: 3px 3px 6px #ccc;
  text-align: center;
  margin: 1vw;
}

.contents-item img {
  height: 10vw;
  width: 10vw;

}
.contents-item p {
  font-size: 2.5vw;
}

.contents-item-1:hover {
  opacity: 0.7;
}
.contents-item-2:hover {
  opacity: 0.7;
}
.contents-item-3:hover {
  opacity: 0.7;
}
.contents-item-4:hover {
  opacity: 0.7;
}


.footer{
  width: 100%;
  background-color: #405c70;
  color: #fff;
  padding: 5px 0;

  position: absolute;/*←絶対位置*/
  bottom: 0; /*下に固定 */
}

  h1 {
    text-align: center;
  }
  body {
    font-size: small;
    padding-top: 70px;
    padding-left: 0px;
    padding-right: 0px;
    font-family: serif;
    margin: 0;
  }
  .footer h2 {
    font-size: 2vw;
    text-align: center;
    margin-top: 1px;
  }
  
    .main a {
      text-decoration: none;
      color: black;
    }

    .footer p {
      text-align: center;
      font-size: 1vw;
      margin: 0 0;
      margin-left: 20px;
      margin-right: 20px;
      margin-top: 10px;
    }
    .footer .headline {
      color: white;
      text-align: center;
      margin: 0 0;
      font-size: 3vw;
    }
    
    
    
    
    
  
}
