body{
    background-image: url(cork.JPG);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
  
#header{
    position: fixed;/*追従ナビのためpositionをfixedにする*/
    z-index: 4;
    top:0;/*ポジション設定topを0*/
    left:0;
    height: 4.5vw;/*headerの高さを指定*/
    width:100%;/*position:fixed;にしたため、横幅100%を設定*/
    background:#333;
    color:#fff;
    text-align: center;
    padding: 20px;
}

@import url('https://fonts.googleapis.com/css2?family=Sacramento&display=swap');

.h1 {
 font-family: 'Sacramento', cursive;
 font-size: 2vw;
 color: #fff;
}


.tytle3{
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Pacifico', cursive;
  font-size: 3.5vh;
}

/*目次の書式設定*/
.notemother{
   display: block;
   width: 80vw;
   border: solid 1px; 
   position: relative;left: 50%;
   transform: translateX(-50%);
   border-color: darkolivegreen;
}
/*目次の書式設定２*/
.flex{
 display: flex;
 border-style: solid;
 border-color: darkolivegreen;
 border-width: thick;
}

.note1{
    display: block;
    position: relative; left: auto;
    width: 40vw;
    height: 700px;
    padding:0 1vw;
    background: linear-gradient(#ccc 1px, transparent 1px) #fffbf2;
    background-size: auto 2em;
    line-height: 2em;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    overflow: hidden;

    animation-name:zoomOutAnime;
	 animation-duration:0.5s;
	 animation-fill-mode:forwards;
}

.note2{
    display: block;
    position: relative; left: 0;
    width: 40vw;
    padding:0 1em;
    background: linear-gradient(#ccc 1px, transparent 1px) #fffbf2;
    background-size: auto 2em;
    line-height: 2em;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    overflow: hidden;

    animation-name:zoomOutAnime;
	 animation-duration:0.5s;
	 animation-fill-mode:forwards;
}



/*========= ページトップのためのCSS ===============*/

/*リンクの形状*/
#page-top a{
  display: flex;
  justify-content:center;
  align-items:center;
  background:#942D2F;
  border-radius: 5px;
  width: 60px;
  height: 60px;
  color: #fff;
  text-align: center;
  text-transform: uppercase; 
  text-decoration: none;
  font-size:0.6rem;
  transition:all 0.3s;
}

#page-top a:hover{
  background: #777;
}

/*リンクを右下に固定*/
#page-top {
  position: fixed;
  right: 10px;
  bottom:10px;
  z-index: 2;
    /*はじめは非表示*/
  opacity: 0;
  transform: translateY(100px);
}

/*　上に上がる動き　*/

#page-top.UpMove{
  animation: UpAnime 0.5s forwards;
}
@keyframes UpAnime{
  from {
    opacity: 0;
  transform: translateY(100px);
  }
  to {
    opacity: 1;
  transform: translateY(0);
  }
}

/*　下に下がる動き　*/

#page-top.DownMove{
  animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
    opacity: 1;
  transform: translateY(0);
  }
  to {
    opacity: 1;
  transform: translateY(100px);
  }
}




/*==================================================
ヒュッ本が出てくる
===================================*/

/* 縮小 */


@keyframes zoomOutAnime{
  from {
	 transform: scale(1.2);
  }

  to {
      transform:scale(1);
  }
}

