*{
    padding: 0px;
    margin: 0px;
}

body{
    background-image: url(img/background-paper.png);
    background-size: cover;
}

@media screen and (max-width: 390px) {
    body{
        background-image: url(img/background-paper_forSP.png);
    }
    }
    

header{
    background-image: url(img/header_wisteria\ flower.jpg);
    height: 875px;
    background-size: cover;
    background-attachment: fixed;
    z-index: -1;
}

.drawer_hidden {
    display: none;
  }
  
  /* ハンバーガーアイコンの設置スペース */
  .drawer_open {
    display: flex;
    height: 34px;
    width: 98%;
    padding-top: 34px;
    margin-right: 26px;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    z-index: 100;/* 重なり順を一番上にする */
    cursor: pointer;
  }

  @media screen and (max-width:390px){
    .drawer_open {
    display: flex;
    height: 34px;
    width: 95%;
    padding-top: 30px;
    margin-right: 25px;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    z-index: 200;/* 重なり順を一番上にする */
    cursor: pointer;
    }
  }
  
  /* ハンバーガーメニューのアイコン */
  .drawer_open span,
  .drawer_open span:before,
  .drawer_open span:after {
    content: '';
    display: block;
    height: 2px;
    width: 63px;
    border-radius: 2px;
    background: #fff;
    transition: 0.5s;
    position: absolute;
  }

  @media screen and (max-width:390px){
    .drawer_open span,
    .drawer_open span:before,
    .drawer_open span:after {
        content: '';
        display: block;
        height: 1px;
        width: 29px;
        border-radius: 1px;
        background: #fff;
        transition: 0.5s;
        position: absolute;
    }
  }

  .drawer_open.change-color span,
  .drawer_open.change-color span:before,
  .drawer_open.change-color span:after{
    background-color: #704C96;
  }
  
  /* 三本線の一番上の棒の位置調整 */
  .drawer_open span:before {
    bottom: 14px;
  }
  
  /* 三本線の一番下の棒の位置調整 */
  .drawer_open span:after {
    top: 14px;
  }
  
  @media screen and (max-width: 390px){
    .drawer_open span:before {
        bottom: 7px;
    }

    .drawer_open span:after {
            top: 7px;
          }
    }

  /* アイコンがクリックされたら真ん中の線を透明にする */
  #drawer_input:checked ~ .drawer_open span {
    background: rgba(255, 255, 255, 0);
  }
  
  /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
  #drawer_input:checked ~ .drawer_open span::before {
    bottom: 0;
    transform: rotate(45deg);
  }
  
  #drawer_input:checked ~ .drawer_open span::after {
    top: 0;
    transform: rotate(-45deg);
  }
    
  /* メニューのデザイン*/
  .nav_content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%; /* メニューを画面の外に飛ばす */
    z-index: 99;
    background-color: #A490BD;
    transition: .5s;
  }

  @media screen and (max-width: 390px){
    .nav_content {
        width: 100%;
        height: 55%;
        position: fixed;
        top: 0;
        left: 100%; /* メニューを画面の外に飛ばす */
        z-index: 99;
        background-color: #A490BD;
        transition: .5s;
      }
  }
  
  /* メニュー黒ポチを消す */
  .nav_list {
    list-style: none;
    margin-left: 65px;
    margin-top: 74px;
  }

  .nav_list li{
    margin-bottom: 50px;
  }

  .nav_list a{
    font-size: 30px;
    font-family: YuMincho;
    color: #fff;
    text-decoration: none;
  }

  .nav_list a:hover{
    color: #704C96;
  }

  @media screen and (max-width:390px){
    .nav_list li{
        margin-bottom: 25px;
      }

    .nav_list a{
        font-size: 15px;
        font-family: YuMincho;
        color: #fff;
        text-decoration: none;
      }
  }
  
  /* アイコンがクリックされたらメニューを表示 */
  #drawer_input:checked ~ .nav_content {
    left: 65%;/* メニューを画面に入れる */
  }

  @media screen and (max-width:390px) {
    #drawer_input:checked ~ .nav_content {
        left: 0%;/* メニューを画面に入れる */
        bottom: 50%;
      }
  }

  #drawer_input:checked ~ .page-cover{
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 90;
	background: #000;
    opacity: 0.5;
	display: block;
}

.header-title{
    writing-mode: vertical-lr;
    margin: 0 auto;
}

.main{
    display: flex;
    margin-left: 40px;
    
}

.school-name{
    margin-top: 147px;
    font-family: 'Shippori Mincho', serif;
    color: #fff;
    font-size: 80px;
    letter-spacing: 0.25em;
    text-shadow: 1px 1px 3px #000;
}

@media  screen and (max-width: 390px){
.school-name{
    margin-top: 198px;
    font-family: 'Shippori Mincho', serif;
    color: #fff;
    font-size: 64px;
    letter-spacing: 0.25em;
    text-shadow: 1px 1px 3px #000;
    }
}

.main img{
    width: 70px;
    margin: 0 auto;
    filter: drop-shadow(1px 1px 3px #000);
}

.help{
    margin-top: 132px;
    font-family: YuMincho;
    font-weight: lighter;
    color: #fff;
    font-size: 40px;
    letter-spacing: 0.25em;
    text-shadow: 1px 1px 3px #000;
}

@media  screen and (max-width: 390px){
.main img{
    width: 60px;
    margin: 0 auto;
    filter: drop-shadow(1px 1px 3px #000);
}

.help{
    margin-top: 170px;
    font-family: YuMincho;
    font-weight: lighter;
    color: #fff;
    font-size: 32px;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 3px #000;
}  
}

.fade-in-bottom {
    opacity: 0;
    animation-name: fadein-bottom;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
 }
 @keyframes fadein-bottom {
    0% {
       opacity: 0;
       transform: translateY(20px);
    }
    100% {
       opacity: 1;
       transform: translateY(0);
    }
 }

.subject{
    font-size: 40px;
    color: #585E08;
    font-family: 'Shippori Mincho', serif;
    text-align: center;
    padding-top: 150px;
}

@media screen and (max-width:390px){
    .subject{
        font-size: 22px;
        color: #585E08;
        font-family: 'Shippori Mincho', serif;
        text-align: center;
        padding-top: 50px; 
  
    }
  }

.contact{
    margin-left: 8%;
    margin-right: 8%;
}

.contact p{
    font-family: YuMincho;
}

.contact-info{
    font-size: 18px;
    text-align: justify;
    margin-top: 160px;
}

.mail{
    font-size: 30px;
    margin-top: 0px;
    padding-top: 70px;
    margin-bottom: 250px;
}

@media screen and (max-width: 390px){
    .contact{
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-info{
        font-size: 15px;
        width: 100%;
        margin-top: 50px;

    }

    .mail{
        font-size: 22px;
        text-align: justify;
        letter-spacing: 0.04;
    }
    
}



.rest{
    width: 100%;
    vertical-align: bottom;
}

.rest-forSP{
    display: none;
}

@media screen and (max-width:390px){
    .rest{
        display: none;
    }

    .rest-forSP{
        display: block;
    }
}

footer{
    background-color: #704C96;
    padding-top: 85px;
}

.last-nav ul{
    width: 325px;
    margin-left: 70%;
    margin-bottom: 180px;
    writing-mode: vertical-rl;
    color: #fff;
    font-family: YuMincho;
    font-weight:lighter;
    font-size: 15px;
    line-height: 1.1em;
    letter-spacing: 0.2em;
}

.last-nav li{
    list-style:none;
    margin-left: 50px;
}

.copy-right{
    color: #fff;
    font-family: YuMincho;
    font-size: 13px;
    padding-left: 138px;
    padding-bottom: 48px;
}

.last-nav a{
    color: #fff;
    text-decoration: none;
}

.last-nav a:hover{
    color: #A490BD;
}

@media screen and (max-width: 390px){
    footer{
        background-color: #704C96;
        padding-top: 74px;
    }

    .last-nav ul{
        margin-left: 35px;
        margin-bottom: 235px;
        writing-mode: horizontal-tb;
        color: #fff;
        font-family: YuMincho;
        font-weight:lighter;
        font-size: 15px;
        line-height: 1.1em;
        letter-spacing: 0.2em;
    }

    .last-nav li{
        list-style:none;
        margin-left: 0px;
        margin-bottom: 30px;
        font-weight: lighter;
    }
    
    .copy-right{
        color: #fff;
        font-family: YuMincho;
        font-size: 12px;
        padding-left: 35px;
        padding-bottom: 32px;
    }
}