body{
    background-image: url(cork.JPG);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
  
#header{
    position: fixed;/*追従ナビのためpositionをfixedにする*/
    z-index: 5;
    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;
}


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


.notemother{
  width: 1000px;
  border: solid 10px; 
  position: relative;left: 50%;
  transform: translateX(-50%);
  border-color: #fffbf2;
}

.flex{
 display: flex;
}



.note1{
  position: relative;left: auto;
  width: 500px;
  background-color: #fffbf2; /* 背景色 */
  background-image: linear-gradient(180deg, #ccc 1px, transparent 1px); /* 罫線の色と太さ  */
  background-size: 100% 2.5em; /* 行の高さ */
  line-height: 2.5em; /* 文字の高さ */
  padding-bottom: 1px; /* 最終行の下にも罫線を引く */
}


.note2{
  position: relative;left: 0;
  width: 500px;
  background-color: #fffbf2; /* 背景色 */
  background-image: linear-gradient(180deg, #ccc 1px, transparent 1px); /* 罫線の色と太さ  */
  background-size: 100% 2.5em; /* 行の高さ */
  line-height: 2.5em; /* 文字の高さ */
  padding-bottom: 1px; /* 最終行の下にも罫線を引く */
}



/*========= ページトップのための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);
  }
}