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

  h3 {
    font-size: 23px;
    margin-left: 20px;
  }

  .classdata {
    display: flex;
  }

  .classdata1 {
    flex-grow: 1;
  }

  .classdata2 {
    text-align: right;
    flex-grow: 1;
  }

  .ifraimdata {
    height: 30vw;
    width: 30vw;
    margin-right: 20px;
  }

  #道場::before {
    content: "";
    display: block;
    height: 180px; /* ずらしたい高さ */
    margin-top: -180px; /* heightに対するネガティブマージン */
    visibility: hidden,
  }


  .flex-container {
    display: flex;
    flex-wrap: wrap;
  }

  .flex-item {
    width: 20vw;
    height: 20vw;
    margin-left: 5px;
    margin-top: 5px;
    object-fit: cover;
  }

  a {
    color: blue;
  }  

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


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

  .sp-nav {
    display: none;
  }

  .unlist {
    list-style: none;
  }

  .sepa {
    /* text-align: center; */
    justify-content: center;
    display: flex;
    height: 100vh;
    margin-bottom: 80px;
}

  .left {
    width: 50%;
    padding: 20px;
}

.right {
  width: 50%;
  /* padding: 20px; */
}

}






@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;
  text-align: right;
}

#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%;
}

#道場::before {
  content: "";
  display: block;
  height: 170px; /* ずらしたい高さ */
  margin-top: -170px; /* heightに対するネガティブマージン */
  visibility: hidden,
}


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

.flex-item {
  width: 35vw;
  height: 25vw;
  margin-left: 5px;
  margin-top: 5px;
  object-fit: cover;
}

.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: 20px;
  margin-right: 20px;
  min-height: 100vh;

}
.ifraimdata {
  height: 70vw;
  width: 70vw;
  margin-right: 20px;
  margin-left: 20px;
}


.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: 0 0;
  font-size: 3vw;
}

  p {
    margin-left: 10px;
    margin-right: 10px;
  }

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

  h3 {
    margin-left: 10px;
  }


  body {
    font-size: small;
    padding-top: 70px;
    padding-left: 0px;
    padding-right: 0px;
    font-family: serif;
    margin: 0;
    /* height: 100%; */
  }

  .sepa {
    margin-bottom: 30px;
  }

  .sepa h3 {
    font-size: 18px;
  }
  
}

