@charset "UTF-8";
.pcindex img {
  display: block;
  margin: 0px auto 50px auto;
}
.pc img {
  margin: 20px auto;
}
h1 img {
 padding-top: 20px;
padding-left: 20px;
}
.pcsmindex{
  display: none;
}
.pcsm {
  display: none;
}
/* 参考書画面 */
.pcsmsan{
  display: none;
}
.sm{
  display: none;
}
.smblock{
  display: block;
  margin: 0 auto;
  background-color: rgb(68, 66, 66);
  opacity: 0.7;
}
.sm ul{
  flex-direction: column;
  text-align: center;
}
.sm li{
  margin-top:30px
}
header nav{
  color: aliceblue;
  margin-top: 180px;
}
.pcsan{
  color: #6b696a;
}
nav ul{
  display: flex;
  justify-content: center;
  font-size: 20px;
  margin-left: 20px;
}

nav ul ul{
  flex-direction: column;
}
.pc li{
  position: relative;
  margin-left: 20px;
}
.pc li a{
  display:block;
  padding: 12px 10px 15px 10px;
  font-size: 1em;
}
.pc li ul{
  position: absolute;
  list-style: none;
  top: 45px;
  left: -35px;
  visibility: hidden;
}
.pc li li{
  width: 200px;
  border: solid 1px black;
  padding: 5px 20px 5px 20px;

}
.pc ul a{
  display: block;
}
.pc li:hover ul li{
  visibility: visible;
  background-color: rgb(91, 89, 89,0.5);
  z-index: 10;
}
.pc .pcsan li:hover ul li{
  visibility: visible;
  background-color: rgb(151, 172, 226);
}
.pc ul li a:hover{
  color:blue;
}
.pc .pcsan li a:hover{
  color: #fff;
}
footer {
  margin-top: 10px;
  margin-bottom: 15px;
  height: 60px;
  background-color: rgba(4, 142, 142, 0.5);
  color: whitesmoke;
}
.footerbox {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  font-size: 16px;
  width: 100%;
  margin-right: 25px;
}
.footerbox a {
  margin-right: 20px;
  margin-top: 20px;
}
.footerbox p{
  margin-top: 20px;
  margin-right: 20px;
}

@media (max-width: 1180px) {
  .hagbth{
    position: fixed;
    /* ボタン内側の基点となるためrelativeを指定 */ 
    background:#e647ce;
      width: 50px;
      height:50px;
    border-radius: 5px;
    z-index: 4;
    top:150px;
    right:30px
  }
  /*ボタン内側*/
.hagbth span{
  display: inline-block;
   transition: all .4s;/*アニメーションの設定*/
      position: absolute;
      left: 14px;
      height: 2px;
      border-radius: 5px;
      background: #fff;
      width: 45%;
    }
  .hagbth span:nth-of-type(1) {
    top:13px; 
  }
  
  .hagbth span:nth-of-type(2) {
    top:19px;
  }
  
  .hagbth span:nth-of-type(3) {
    top:25px;
  }
  
  .hagbth span:nth-of-type(3)::after {
    content:"Menu";/*3つ目の要素のafterにMenu表示を指定*/
    position: absolute;
    top:5px;
    left:-2px;
    color: #fff;
    font-size: 0.6rem;
    text-transform: uppercase;
  }
  
  /*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/
  
  .active span:nth-of-type(1) {
      top: 14px;
      left: 18px;
      transform: translateY(6px) rotate(-45deg);
      width: 30%;
  }
  
  .active span:nth-of-type(2) {
    opacity: 0;
  }
  
  .active span:nth-of-type(3){
      top: 26px;
      left: 18px;
      transform: translateY(-6px) rotate(45deg);
      width: 30%;
  }
  
  .active span:nth-of-type(3)::after {
    content:"Close";/*3つ目の要素のafterにClose表示を指定*/
      transform: translateY(0) rotate(-45deg);
    top:5px;
    left:4px;
  }
.smblock{
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100vh;
  background-color: rgb(68, 66, 66);
  opacity: 0.7;
position: fixed;
z-index: 500;
}
.sm ul{
  flex-direction: column;
  text-align: center;
}
.sm li{
  margin-top:30px
}
  header{
    margin: 0;
  }
  /* ナビの表示を無くす */
  .pc ul{
    display: none;
  }
}
@media (max-width: 740px) {
    .pcsmindex{
      display: block;
    }
    .pcsmindex img{
      margin: 20px auto 50px auto;
    }
    .pcindex img{
    display: none;
    }
  .hagbth{
    top:50px;
    right:30px
  }
  .footerbox{
    width: 100%;
    justify-content: flex-end;
    margin-top: 20px;
    margin-right: 15px;
  }
  .footerbox a{
    margin-right: 15px;
  }
  .footerbox p{
    margin-right: 15px;
  }
}
@media (max-width: 600px) {
  .pc{
    display: none;
  }
  .pcsm{
    display: block;
  }
  .pcsm img{
    margin: 20px auto 60px auto;
  }
  .pcsmsan img{
    margin: 20px auto 30px auto;
  }
  .footerbox{
    width: 200px;
    flex-direction: column;
    margin: 5px 0 0 auto;
  }
  .footerbox a{
    margin-top: 8px;
    margin-right: 0;
    margin-left: 25px;
  }
  .footerbox p{
    margin-top: 8px;
    margin-left: 25px;
  }
  .hagbth{
    top:30px;
    right:10px;
  }
}