@charset "utf-8";
body{ /*--HTMLやCSSにおいて、<body>要素にwidth（幅）とheight（高さ）を
  指定する必要性は一般的にはありません。<body>要素は通常、
  ブラウザウィンドウ全体に自動的に広がります。--*/
  border:solid px red;
  padding-top: 20px;
  font-family: sans-serif;/*--<body>要素に対してfont-sizeを指定することは一般的であり、
  推奨される方法です。デフォルトでは16px。65.4%にすれば10pxになる。remは2で20px--*/
}
header{border:solid px blue;
  width:100%; height: auto; 
  }
h1{/*--けせんの野鳥--*/
    border: solid px blueviolet;
    font-size:4vw;
    text-align:center;
    color:forestgreen ;
    margin-bottom: 10px;
    background-color:white;
    margin-top: 1vw;
  }
nav{/*--PCメニュー６つの大枠--*/    
    border:solid px red;    
    }
    ul.global-menu{/*--PC横並びメニュー６つのフォントサイズなど--*/
      border:solid px yellowgreen;
      width:78%;
      text-align: center;/*--メニュー内の文字がセンタリング--*/
      font-size: 1.5rem;
      font-weight: bold;
      padding: 0 ;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0px;
      display:flex ;/* flexで横並びにする */
      align-items: center; /* 垂直方向の中央揃え */
      justify-content: center; /* 横方向の中央揃え このプロパティはブロック要素、
      インライン要素どちらもセンタリングできる*/
      }
      nav ul li{/* PCメニューの各箱の大きさ */
        background-color: ;
        border:solid px brown;
        list-style: none; /* リストのマーカー（点）を削除 */
        height:4vw;
       width:13vw;
        display:flex ;
        justify-content: center;
        align-items: center;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-right: 3%;
      }
      nav ul a li#home {/* メニューのホームの文字色が赤にする */
            color: red;
            font-size: 2vw;
            font-weight: bolder;
            background-color: white;/* PCメニューのそれぞれの背景色 */
            /* PCメニューそれぞれの幅 */
            margin-right: 2rem;
            }
        nav ul a li#namae{
            color:;
            font-size: 2vw;
            font-weight:bolder;
            background-color: white;            
            margin-right: 2rem;
        }
        nav ul a li#media{
          color:;
          font-size: 2vw;
          font-weight:bolder;
          background-color: white;          
          margin-right: 2rem;
      }
        nav ul a li#zukan{
          color:black;
          font-size: 2vw;
          font-weight: bolder;
          background-color: white;
          
          margin-right: 2rem;
        }
        nav ul a li#keijiban{
          border:solid px rebeccapurple;
          color:black;
          font-size: 2vw;
          font-weight: bolder;
          background-color: white;
         
          margin-right: 2rem;
        }
        nav ul a li#toiawase{
          color:black;
          font-size: 2vw;
          font-weight: bolder;
          background-color: white;
        
          margin-right: 2rem;
        }
        a {
          text-decoration: none;/* メニューをリンクにした際にできる下線を消去 */
        }            
    nav ul li#home:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: yellowgreen;
              }
    nav ul li#namae:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: yellowgreen;
              }
    nav ul li#media:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: yellowgreen;
              }
    nav ul li#zukan:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: yellowgreen;
              }
    nav ul li#keijiban:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: yellowgreen;
              }
    nav ul li#toiawase:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: yellowgreen;
              }
/* ハンバーガーメニューについてのCSS */
/* ハンバーガーボタンを押してチェックがONの時だけ
   スマホ用メニューを画面左端に移動する */
   #sp-menu__check:checked ~ .sp-menu__content {/*#sp-menu__check:checkedは
    ハンバーガーメニューが開いた状態のときに、.sp-menu__content 要素にスタイルを適用します。
    さらに"~"は指定した要素の後にある要素全てに適用されます。*/
    left: 0;/* 0以外では画面から出てしまうので通常は0で使う */
  }
  .sp-menu__box {/* ハンバーガーメニューボタンに関するCSS */ 
    position: fixed;/*fixed」を使うと横から出てきたメニューは固定され、
    後ろの画面をマウスでスクロールしても出てきたメニューはスクロールしません。*/
    top: 2rem;/* ハンバーガーメニューボタンの位置で増やすと下に下がる */ 
    right: 3rem;/* ハンバーガーメニューボタンの位置で増やすと左に移動する */ 
    display: flex;
    height: 4rem;/* ハンバーガーメニューボタンの高さ 60px*/
    width: 4rem;/* ハンバーガーメニューボタンの幅 60px*/
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: transparent;/* ハンバーガーメニューボタンの色 */
  }
  .sp-menu__box span,
  .sp-menu__box span:before,
  .sp-menu__box span:after {
    content: "";
    display: none;/* 三本線を表示させる。消す場合は"none" */
    height: 3px;/* ハンバーガーメニューの三本線の太さ */
    width: 3rem;/* ハンバーガーメニューの三本線の長さ */
    border-radius: 3px;
    background: black;/* ハンバーガーメニューの三本線の色 */
    position: absolute;/* positionは、指定した要素の配置方法を決められるプロパティであり、
    absoluteは左上角の起点である絶対配置からどれだけ離れているかが指定できます。 */
  }
  .sp-menu__box span:before {
    bottom: 8px;
  }
  .sp-menu__box span:after {
    top: 8px;
  }
  #sp-menu__check {
    display: none;/*チェックボックスを表示させるかさせないか。表示させたい場合はblockにする  */
  }
  #sp-menu__check:checked ~ .sp-menu__box span {
    background: rgba(255, 255, 255, 0);/* この数字を変えるとHBメニューを
    クリックした時の✖の形が変わった。 */
  }
  #sp-menu__check:checked ~ .sp-menu__box span::before {
    bottom: 0;
    transform: rotate(45deg);/*HBボタンを押したとき線を45度回転させ✖にする。*/
  }
  #sp-menu__check:checked ~ .sp-menu__box span::after {/*HBボタンを押したとき線が
    45度元に戻り横線になる。*/
    top: 0;
    transform: rotate(-45deg);
  }
 /*HBメニューがスライドして出てくる時のCSS */
  .sp-menu__content {
    border:solid px pink;
    width: 15%;/* 出てくるHBメニューの幅 */
    height:auto;/* 出てくるHBメニューの高さ */
    position: fixed;/*fixed」を使うと横から出てきたメニューは固定され、
    後ろの画面をマウスでスクロールしても出てきたメニューはスクロールしません。*/
    top: 0;/* 出てくるメニューの上のmarginが0ということ。数を増やしていけば下に下がる */
   /* 普段は画面外にするために左端を画面右端の位置にする */
    left: 100%;/* 100%にすればHBメニューは隠れる。50％なら半分しか隠れない。 */
    z-index: 90;/*z-indexは要素の重なり順を指定するプロパティである。
    指定した値が大きい要素ほど順位が上に表示されます。数字には整数を入れます。*/
    background-color: white;/*出てくるHBメニューの色 */
    /* transitionは、ある要素の状態の変化をアニメーションとして動作させることができる。
    横にスライドし、スピードも変更できる */
    transition: all 0.5s;
    display: none;
  }
  ul.sp-menu__list {/*出てくるメニューの位置を調整する。top,left,bottom*/
    border: solid px red;
    width:95%;/*出てくるメニューの全体枠の幅*/
    height:auto;/*出てくるメニューの全体枠の高さ*/
    padding-left:3%;/*出てくるメニューそれぞれの左の余白を小さくする*/
  }
  .sp-menu__item {/*出てくるメニューそれぞれの枠の幅を調整できる。*/
    border-bottom: solid 1px white;
    list-style: none;
    width:83%;
  }
  .sp-menu__link {/*出てくるメニューの文字の並びや大きさなど。*/
    display: block;
    color: black;
    border: solid 1px silver;
    width: 100%;/*出てくるメニューのそれぞれの枠*/
    font-size: 1.3rem;/*出てくるメニューの文字の大きさ。*/
    /*box-sizing: border-box;*/    
    white-space: nowrap;
    text-decoration: none;
    padding: 5% 5% 5% 5%;
    background-color: white;
    text-align: center;
  }
  
/*ここまでがハンバーガーメニュー*/           
/*ここまでがheaderで以下がmain*/
main{border:solid px gold;
    width:100%;height: auto;
    margin-top: 10px;
}
h2{/*--野鳥の名前を調べよう--*/
    border: solid px red ;
    width:80%;min-height: 12px;
    font-size: 3vw;
    color:royalblue;
    text-align: center;
    margin-top: 10vw;
    margin-right: auto;
    margin-left: auto;
}
h3{ border:solid px palevioletred;
    font-size: 2vw;
    margin-top: 5vw;
    color:palevioletred;
} 
nav.size1{/*大きさの外枠*/
    border:solid px ;
    width:100%;
    height:auto;
    display: flex;
    margin-bottom: 20vw;
   }
  a.size2{/*大きさのそれぞれの枠*/
    border: solid 1px silver;
    width:25%;
    height: auto;
    display: flex;
  } 
   img#size3{/*大きさの画像のサイズ*/
    border: solid px red;
    width:100%;
    height: auto;
    display: flex;
  }
  nav.color{/*目立つ色の外枠*/
    border:solid 1px silver;
    width:100%;
    height:5em;
    display: flex;
    margin-bottom: 20vw;
   }
   a.colorred{/*赤の枠*/
     border:solid px;
     color:white;
     background-color: red;
     width:15%;
     height:100%;
     font-size: 2rem;
     display: flex;
     justify-content: center;
     align-items: center;
   }
   a.colorblue{/*青の枠*/
     border:solid px;
     color:white;
     background-color: blue;
     width:15%;
     height:100%;
     font-size: 2rem;
     display: flex;
     justify-content: center;
     align-items: center;
   }
   a.coloryellow{/*黄色の枠*/
     border:solid px;
     color:black;
     background-color: yellow;
     width:15%;
     height:100%;
     font-size: 2rem;
     display: flex;
     justify-content: center;
     align-items: center;
   }
   a.colorgreen{/*みどりの枠*/
     border:solid px;
     color:white;
     background-color: green;
     width:15%;
     height:100%;
     font-size: 2rem;
     display: flex;
     justify-content: center;
     align-items: center;
   }
   a.colorgray{/*灰色の枠*/
     border:solid px;
     color:white;
     background-color: gray;
     width:15%;
     height:100%;
     font-size: 2rem;
     display: flex;
     justify-content: center;
     align-items: center;
   }
   a.colorblack{/*黒の枠*/
     border:solid px;
     color:white;
     background-color: black;
     width:15%;
     height:100%;
     font-size: 2rem;
     display: flex;
     justify-content: center;
     align-items: center;
   }
   a.colorwhite{/*白の枠*/
     border:solid px silver;
     color:black;
     background-color: ;
     width:15%;
     height:100%;
     font-size: 2rem;
     display: flex;
     justify-content: center;
     align-items: center;
   }
   nav.basyo1{/*見た場所の外枠*/
    border:solid px pink;
    width:100%;
    height:auto;
    display: flex;
    margin-bottom: 20vw;
   }
  a.basyo2{/*見た場所のそれぞれの枠*/
    border: solid px silver;
    width:25%;
    height: auto;
    display: flex;
  } 
   img#basyo3{/*見た場所の画像のサイズ*/
    border: solid px red;
    width:100%;
    height: auto;
    display: flex;
  }
  a.modolu{/*戻る*/
    border:solid px;
  width:7%;
  height:2vw;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5vw;
  background-color: yellowgreen;
  margin-left: auto; margin-right: auto;
  margin-top: 13vw;
  color: white;
  }

footer{
  border:solid px ;
    width:100%;
    height: auto;
    text-align: center;
    font-size: 1.5vw;     
    margin-bottom: 0px;
    margin-top: 8vw;
}

@media screen and (max-width: 1024px){
    header{border:solid px blue;
        width:100%; height: auto; 
        }
      h1{/*--けせんの野鳥--*/
          border: solid px blueviolet;
          font-size:4vw;
          text-align:center;
          color:forestgreen ;
          margin-bottom: 10px;
          background-color:white;
          margin-top: 1vw;
        }
      nav{/*--PCメニュー６つの大枠--*/    
          border:solid px red;    
          }
          ul.global-menu{/*--PC横並びメニュー６つのフォントサイズなど--*/
            border:solid px yellowgreen;
            width:78%;
            text-align: center;/*--メニュー内の文字がセンタリング--*/
            font-size: 1.5rem;
            font-weight: bold;
            padding: 0 ;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 0px;
            display:flex ;/* flexで横並びにする */
            align-items: center; /* 垂直方向の中央揃え */
            justify-content: center; /* 横方向の中央揃え このプロパティはブロック要素、
            インライン要素どちらもセンタリングできる*/
            }
            nav ul li{/* PCメニューの各箱の大きさ */
              background-color: ;
              border:solid px brown;
              list-style: none; /* リストのマーカー（点）を削除 */
              height:4vw;
             width:13vw;
              display:flex ;
              justify-content: center;
              align-items: center;
              padding-top: 10px;
              padding-bottom: 10px;
              margin-right: 3%;
            }
            nav ul a li#home {/* メニューのホームの文字色が赤にする */
                  color: red;
                  font-size: 2vw;
                  font-weight: bold;
                  background-color: white;/* PCメニューのそれぞれの背景色 */
                  /* PCメニューそれぞれの幅 */
                  margin-right: 2rem;
                  }
              nav ul a li#namae{
                  color:black;
                  font-size: 2vw;
                  font-weight: bolder;
                  background-color: white;
                  
                  margin-right: 2rem;
              }
              nav ul a li#media{
                color:black;
                font-size: 2vw;
                font-weight: bolder;
                background-color: white;
                
                margin-right: 2rem;
            }
              nav ul a li#zukan{
                color:black;
                font-size: 2vw;
                font-weight: bolder;
                background-color: white;
                
                margin-right: 2rem;
              }
              nav ul a li#keijiban{
                border:solid px rebeccapurple;
                color:black;
                font-size: 2vw;
                font-weight: bolder;
                background-color: white;
               
                margin-right: 2rem;
              }
              nav ul a li#toiawase{
                color:black;
                font-size: 2vw;
                font-weight: bolder;
                background-color: white;
              
                margin-right: 2rem;
              }
              a {
                text-decoration: none;/* メニューをリンクにした際にできる下線を消去 */
              }            
          nav ul li#home:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
          nav ul li#birdname:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
          nav ul li#media:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
          nav ul li#zukan:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
          nav ul li#keijiban:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
          nav ul li#toiawase:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
      /* ハンバーガーメニューについてのCSS */
      /* ハンバーガーボタンを押してチェックがONの時だけ
         スマホ用メニューを画面左端に移動する */
         #sp-menu__check:checked ~ .sp-menu__content {/*#sp-menu__check:checkedは
          ハンバーガーメニューが開いた状態のときに、.sp-menu__content 要素にスタイルを適用します。
          さらに"~"は指定した要素の後にある要素全てに適用されます。*/
          left: 0;/* 0以外では画面から出てしまうので通常は0で使う */
        }
        .sp-menu__box {/* ハンバーガーメニューボタンに関するCSS */ 
          position: fixed;/*fixed」を使うと横から出てきたメニューは固定され、
          後ろの画面をマウスでスクロールしても出てきたメニューはスクロールしません。*/
          top: 2rem;/* ハンバーガーメニューボタンの位置で増やすと下に下がる */ 
          right: 3rem;/* ハンバーガーメニューボタンの位置で増やすと左に移動する */ 
          display: flex;
          height: 4rem;/* ハンバーガーメニューボタンの高さ 60px*/
          width: 4rem;/* ハンバーガーメニューボタンの幅 60px*/
          justify-content: center;
          align-items: center;
          z-index: 100;
          background: transparent;/* ハンバーガーメニューボタンの色 */
        }
        .sp-menu__box span,
        .sp-menu__box span:before,
        .sp-menu__box span:after {
          content: "";
          display: none;/* 三本線を表示させる。消す場合は"none" */
          height: 3px;/* ハンバーガーメニューの三本線の太さ */
          width: 3rem;/* ハンバーガーメニューの三本線の長さ */
          border-radius: 3px;
          background: black;/* ハンバーガーメニューの三本線の色 */
          position: absolute;/* positionは、指定した要素の配置方法を決められるプロパティであり、
          absoluteは左上角の起点である絶対配置からどれだけ離れているかが指定できます。 */
        }
        .sp-menu__box span:before {
          bottom: 8px;
        }
        .sp-menu__box span:after {
          top: 8px;
        }
        #sp-menu__check {
          display: none;/*チェックボックスを表示させるかさせないか。表示させたい場合はblockにする  */
        }
        #sp-menu__check:checked ~ .sp-menu__box span {
          background: rgba(255, 255, 255, 0);/* この数字を変えるとHBメニューを
          クリックした時の✖の形が変わった。 */
        }
        #sp-menu__check:checked ~ .sp-menu__box span::before {
          bottom: 0;
          transform: rotate(45deg);/*HBボタンを押したとき線を45度回転させ✖にする。*/
        }
        #sp-menu__check:checked ~ .sp-menu__box span::after {/*HBボタンを押したとき線が
          45度元に戻り横線になる。*/
          top: 0;
          transform: rotate(-45deg);
        }
       /*HBメニューがスライドして出てくる時のCSS */
        .sp-menu__content {
          border:solid px pink;
          width: 15%;/* 出てくるHBメニューの幅 */
          height:auto;/* 出てくるHBメニューの高さ */
          position: fixed;/*fixed」を使うと横から出てきたメニューは固定され、
          後ろの画面をマウスでスクロールしても出てきたメニューはスクロールしません。*/
          top: 0;/* 出てくるメニューの上のmarginが0ということ。数を増やしていけば下に下がる */
         /* 普段は画面外にするために左端を画面右端の位置にする */
          left: 100%;/* 100%にすればHBメニューは隠れる。50％なら半分しか隠れない。 */
          z-index: 90;/*z-indexは要素の重なり順を指定するプロパティである。
          指定した値が大きい要素ほど順位が上に表示されます。数字には整数を入れます。*/
          background-color: white;/*出てくるHBメニューの色 */
          /* transitionは、ある要素の状態の変化をアニメーションとして動作させることができる。
          横にスライドし、スピードも変更できる */
          transition: all 0.5s;
          display: none;
        }
        ul.sp-menu__list {/*出てくるメニューの位置を調整する。top,left,bottom*/
          border: solid px red;
          width:95%;/*出てくるメニューの全体枠の幅*/
          height:auto;/*出てくるメニューの全体枠の高さ*/
          padding-left:3%;/*出てくるメニューそれぞれの左の余白を小さくする*/
        }
        .sp-menu__item {/*出てくるメニューそれぞれの枠の幅を調整できる。*/
          border-bottom: solid 1px white;
          list-style: none;
          width:83%;
        }
        .sp-menu__link {/*出てくるメニューの文字の並びや大きさなど。*/
          display: block;
          color: black;
          border: solid 1px silver;
          width: 100%;/*出てくるメニューのそれぞれの枠*/
          font-size: 1.3rem;/*出てくるメニューの文字の大きさ。*/
          /*box-sizing: border-box;*/    
          white-space: nowrap;
          text-decoration: none;
          padding: 5% 5% 5% 5%;
          background-color: white;
          text-align: center;
        }
        
      /*ここまでがハンバーガーメニュー*/           
      /*ここまでがheaderで以下がmain*/
      main{border:solid px gold;
          width:100%;height: auto;
          margin-top: 10px;
      }
      h2{/*--野鳥の名前を調べよう--*/
          border: solid px red ;
          width:80%;min-height: 12px;
          font-size: 3vw;
          color:royalblue;
          text-align: center;
          margin-top: 10vw;
          margin-right: auto;
          margin-left: auto;
      }
      h3{ border:solid px palevioletred;
          font-size: 2vw;
          margin-top: 5vw;
          color:palevioletred;
      } 
      nav.size1{/*大きさの外枠*/
          border:solid px ;
          width:100%;
          height:auto;
          display: flex;
          margin-bottom: 20vw;
         }
        a.size2{/*大きさのそれぞれの枠*/
          border: solid 1px silver;
          width:25%;
          height: auto;
          display: flex;
        } 
         img#size3{/*大きさの画像のサイズ*/
          border: solid px red;
          width:100%;
          height: auto;
          display: flex;
        }
        nav.color{/*目立つ色の外枠*/
          border:solid 1px silver;
          width:100%;
          height:5em;
          display: flex;
          margin-bottom: 20vw;
         }
         a.colorred{/*赤の枠*/
           border:solid px;
           color:white;
           background-color: red;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorblue{/*青の枠*/
           border:solid px;
           color:white;
           background-color: blue;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.coloryellow{/*黄色の枠*/
           border:solid px;
           color:black;
           background-color: yellow;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorgreen{/*みどりの枠*/
           border:solid px;
           color:white;
           background-color: green;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorgray{/*灰色の枠*/
           border:solid px;
           color:white;
           background-color: gray;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorblack{/*黒の枠*/
           border:solid px;
           color:white;
           background-color: black;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorwhite{/*白の枠*/
           border:solid px silver;
           color:black;
           background-color: ;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         nav.basyo1{/*見た場所の外枠*/
          border:solid px pink;
          width:100%;
          height:auto;
          display: flex;
          margin-bottom: 20vw;
         }
        a.basyo2{/*見た場所のそれぞれの枠*/
          border: solid px silver;
          width:25%;
          height: auto;
          display: flex;
        } 
         img#basyo3{/*見た場所の画像のサイズ*/
          border: solid px red;
          width:100%;
          height: auto;
          display: flex;
        }
        a.modolu{/*戻る*/
          border:solid px;
        width:7%;
        height:2vw;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5vw;
        background-color: yellowgreen;
        margin-left: auto; margin-right: auto;
        margin-top: 13vw;
        color: white;
        }
      
      footer{
        border:solid px ;
          width:100%;
          height: auto;
          text-align: center;
          font-size: 1.5vw;     
          margin-bottom: 0px;
          margin-top: 8vw;
      }  
}/* メディアクエリmax-width: 1024pxの閉じカッコ */
@media screen and (max-width: 768px){
    header{border:solid px blue;
        width:100%; height: auto; 
        }
      h1{/*--けせんの野鳥--*/
          border: solid px blueviolet;
          font-size:4vw;
          text-align:center;
          color:forestgreen ;
          margin-bottom: 10px;
          background-color:white;
          margin-top: 1vw;
        }
      nav{/*--PCメニュー６つの大枠--*/    
          border:solid px red;    
          }
          ul.global-menu{/*--PC横並びメニュー６つのフォントサイズなど--*/
            border:solid 0px yellowgreen;
        text-align: center;/*--メニュー内の文字がセンタリング--*/
        font-size: 5vw;
        font-weight: bold;
        padding: 0 ;
        margin-bottom: 0px;
        display:flex ;/* flexで横並びにする */
        align-items: center; /* 垂直方向の中央揃え */
        justify-content: center; /* 横方向の中央揃え このプロパティはブロック要素、
        インライン要素どちらもセンタリングできる*/
            }
            nav ul li{/* PCメニューの各箱の大きさ */
                background-color: ;
                border:solid 0px brown;
                list-style: none; /* リストのマーカー（点）を削除 */
                height:4vw;
               width:13vw;
                display:flex ;
                justify-content: center;
                align-items: center;
                padding-top: 10px;
                padding-bottom: 10px; 
            }
            nav ul a li#home {/* メニューのホームの文字色が赤にする */
                color: red;
                font-size: 2.5vw;
                font-weight: bold;
                background-color: white;/* PCメニューのそれぞれの背景色 */
                /* PCメニューそれぞれの幅 */
                margin-right: 2.2vw;
                  }
              nav ul a li#namae{
                color:black;
                font-size: 2vw;
                font-weight: bolder;
                background-color: white;              
                margin-right:2.2vw;
              }
              nav ul a li#media{
                color:black;
            font-size: 2vw;
            font-weight: bolder;
            background-color: white;            
            margin-right: 2.2vw;
            }
              nav ul a li#zukan{
                color:black;
            font-size: 2vw;
            font-weight: bolder;
            background-color: white;            
            margin-right: 2.2vw;
              }
              nav ul a li#keijiban{
                border:solid 0px rebeccapurple;
            color:black;
            font-size: 2vw;
            font-weight: bolder;
            background-color: white;           
            margin-right: 2.2vw;
              }
              nav ul a li#toiawase{
                color:black;
            font-size: 2vw;
            font-weight: bolder;
            background-color: white;          
            margin-right: 2.2vw;
              }
              a {
                text-decoration: none;/* メニューをリンクにした際にできる下線を消去 */
              }            
          nav ul li#home:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
          nav ul li#birdname:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
          nav ul li#media:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
          nav ul li#zukan:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
          nav ul li#keijiban:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
          nav ul li#toiawase:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                      background-color: yellowgreen;
                    }
      /* ハンバーガーメニューについてのCSS */
      /* ハンバーガーボタンを押してチェックがONの時だけ
         スマホ用メニューを画面左端に移動する */
         #sp-menu__check:checked ~ .sp-menu__content {/*#sp-menu__check:checkedは
          ハンバーガーメニューが開いた状態のときに、.sp-menu__content 要素にスタイルを適用します。
          さらに"~"は指定した要素の後にある要素全てに適用されます。*/
          left: 0;/* 0以外では画面から出てしまうので通常は0で使う */
        }
        .sp-menu__box {/* ハンバーガーメニューボタンに関するCSS */ 
          position: fixed;/*fixed」を使うと横から出てきたメニューは固定され、後ろの画面をマウスでスクロールしても出てきたメニューはスクロールしません。*/
          top: 3vw;
          right: 9vw;/* この数を増やすと左に移動する */ 
          display: flex;
          height: 15vw;/* ハンバーガーメニューボタンの高さ 60px*/
          width: 8vw;/* ハンバーガーメニューボタン横位置　数を増やすと左に移動する*/
          justify-content: center;
          align-items: center;
          z-index: 100;
          background: transparent;/* ハンバーガーメニューボタンの色transparentは透明のこと */
        }
        .sp-menu__box span,
        .sp-menu__box span:before,
        .sp-menu__box span:after {
          content: "";
          display: block;/* 三本線を表示させる。消す場合は"none" */
          height: 0.3vw;/* ハンバーガーメニューの三本線の太さ */
          width: 10vw;/* ハンバーガーメニューの三本線の長さ */
          border-radius: 3vw;
          background: black;/* 三本線の色 */
          position: absolute;/* positionは、指定した要素の配置方法を決められるプロパティであり、
          absoluteは左上角の起点である絶対配置からどれだけ離れているかが指定できます。 */
        }
        .sp-menu__box span:before {
          bottom: 12px;/*このbottomとtopの数値を増やすと三本線の間隔は広がり減らすと狭まる*/
        }
        .sp-menu__box span:after {
          top: 12px;
        }
        #sp-menu__check {
          display: none;/*チェックボックスを表示させるかさせないか。表示させたい場合はblockにする  */
        }
        #sp-menu__check:checked ~ .sp-menu__box span {
          background: rgba(255, 255, 255, 0);/* この数字を変えるとHBメニューを
          クリックした時の✖の形が変わった。 */
        }
        #sp-menu__check:checked ~ .sp-menu__box span::before {
          bottom: 0;
          transform: rotate(45deg);/*HBボタンを押したとき線を45度回転させ✖にする。*/
        }
        #sp-menu__check:checked ~ .sp-menu__box span::after {/*HBボタンを押したとき線が
          45度元に戻り横線になる。*/
          top: 0;
          transform: rotate(-45deg);
        }
       /*HBメニューがスライドして出てくる時のCSS */
        .sp-menu__content {
          border:solid px pink;
          width: 31vw;/* 出てくるHBメニューの幅 */
          height:auto;/* 出てくるHBメニューの高さ */
          position: fixed;/*fixed」を使うと横から出てきたメニューは固定され、
          後ろの画面をマウスでスクロールしても出てきたメニューはスクロールしません。*/
          top: 0;/* 出てくるメニューの上のmarginが0ということ。数を増やしていけば下に下がる */
         /* 普段は画面外にするために左端を画面右端の位置にする */
          left: 100%;/* 100%にすればHBメニューは隠れる。50％なら半分しか隠れない。 */
          z-index: 90;/*z-indexは要素の重なり順を指定するプロパティである。
          指定した値が大きい要素ほど順位が上に表示されます。数字には整数を入れます。*/
          background-color: white;/*出てくるHBメニューの色 */
          /* transitionは、ある要素の状態の変化をアニメーションとして動作させることができる。
          横にスライドし、スピードも変更できる */
          transition: all 0.5s;
          display: block;
        }
        ul.sp-menu__list {/*出てくるメニューの位置を調整する。top,left,bottom*/
          border: solid px red;
          width:30vw;/*出てくるメニューの全体枠の幅*/
          height:50vw;/*出てくるメニューの全体枠の高さ*/
          padding-left:3%;/*出てくるメニューそれぞれの左の余白を小さくする*/
        }
        .sp-menu__item {/*出てくるメニューそれぞれの枠の幅を調整できる。*/
          border-bottom: solid 1px black;
          list-style: none;
          width:30vw;
          margin-bottom: 2vw;
        }
        .sp-menu__link {/*出てくるメニューの文字の並びや大きさなど。*/
          display: block;
          color: black;
          border: solid 1px silver;
          width: 100%;/*出てくるメニューのそれぞれの枠*/
          font-size: 2.5vw;/*出てくるメニューの文字の大きさ。*/
          /*box-sizing: border-box;*/    
          white-space: nowrap;
          text-decoration: none;
          padding: 5% 5% 5% 5%;
          background-color: white;
          text-align: center;
        }
        
      /*ここまでがハンバーガーメニュー*/           
      /*ここまでがheaderで以下がmain*/
      main{border:solid px gold;
          width:100%;height: auto;
          margin-top: 10px;
      }
      h2{/*--野鳥の名前を調べよう--*/
          border: solid px red ;
          width:80%;min-height: 12px;
          font-size: 3vw;
          color:royalblue;
          text-align: center;
          margin-top: 10vw;
          margin-right: auto;
          margin-left: auto;
      }
      h3{ border:solid px palevioletred;
          font-size: 2vw;
          margin-top: 5vw;
          color:palevioletred;
      } 
      nav.size1{/*大きさの外枠*/
          border:solid px ;
          width:100%;
          height:auto;
          display: flex;
          margin-bottom: 20vw;
         }
        a.size2{/*大きさのそれぞれの枠*/
          border: solid 1px silver;
          width:25%;
          height: auto;
          display: flex;
        } 
         img#size3{/*大きさの画像のサイズ*/
          border: solid px red;
          width:100%;
          height: auto;
          display: flex;
        }
        nav.color{/*目立つ色の外枠*/
          border:solid 1px silver;
          width:100%;
          height:5em;
          display: flex;
          margin-bottom: 20vw;
         }
         a.colorred{/*赤の枠*/
           border:solid px;
           color:white;
           background-color: red;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorblue{/*青の枠*/
           border:solid px;
           color:white;
           background-color: blue;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.coloryellow{/*黄色の枠*/
           border:solid px;
           color:black;
           background-color: yellow;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorgreen{/*みどりの枠*/
           border:solid px;
           color:white;
           background-color: green;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorgray{/*灰色の枠*/
           border:solid px;
           color:white;
           background-color: gray;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorblack{/*黒の枠*/
           border:solid px;
           color:white;
           background-color: black;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorwhite{/*白の枠*/
           border:solid px silver;
           color:black;
           background-color: ;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         nav.basyo1{/*見た場所の外枠*/
          border:solid px pink;
          width:100%;
          height:auto;
          display: flex;
          margin-bottom: 20vw;
         }
        a.basyo2{/*見た場所のそれぞれの枠*/
          border: solid px silver;
          width:25%;
          height: auto;
          display: flex;
        } 
         img#basyo3{/*見た場所の画像のサイズ*/
          border: solid px red;
          width:100%;
          height: auto;
          display: flex;
        }
        a.modolu{/*戻る*/
          border:solid px;
        width:7%;
        height:2vw;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5vw;
        background-color: yellowgreen;
        margin-left: auto; margin-right: auto;
        margin-top: 13vw;
        color: white;
        }
      
      footer{
        border:solid px ;
          width:100%;
          height: auto;
          text-align: center;
          font-size: 1.5vw;     
          margin-bottom: 0px;
          margin-top: 8vw;
      }
  
}/* メディアクエリmax-width: 768pxの閉じカッコ */
@media screen and (max-width: 480px){
    header{border:solid px blue;
        width:100%; height: auto; 
        }
        h1{/*--けせんの野鳥--*/
          border: solid px blueviolet;
          font-size:8vw;
          text-align:center;
          color:forestgreen ;
          margin-bottom: 10px;
          background-color:white;
          margin-top: 1vw;
        }
      nav{/*--PCメニュー６つの大枠--*/    
          border:solid px red;    
          }
  ul.global-menu {/*--PCメニューが消える--*/
            display: none;    
    }          
      
      /* ハンバーガーメニューについてのCSS */
      /* ハンバーガーボタンを押してチェックがONの時だけ
         スマホ用メニューを画面左端に移動する */
         #sp-menu__check:checked ~ .sp-menu__content {/*#sp-menu__check:checkedは
          ハンバーガーメニューが開いた状態のときに、.sp-menu__content 要素にスタイルを適用します。
          さらに"~"は指定した要素の後にある要素全てに適用されます。*/
          left: 0;/* 0以外では画面から出てしまうので通常は0で使う */
        }
        .sp-menu__box {/* ハンバーガーメニューボタンに関するCSS */ 
          position: fixed;/*fixed」を使うと横から出てきたメニューは固定され、
          後ろの画面をマウスでスクロールしても出てきたメニューはスクロールしません。*/
          top: 3vw;
          right: 3vw;
          display: flex;
          height: 15vw;/* ハンバーガーメニューボタンの高さ */
          width: 15vw;/* ハンバーガーメニューボタンの幅*/
          justify-content: center;
          align-items: center;
          z-index: 100;
          background: transparent;/* ハンバーガーメニューボタンの色transparentは透明のこと */
        }
        .sp-menu__box span,
        .sp-menu__box span:before,
        .sp-menu__box span:after {
          content: "";
          display: block;/* 三本線を表示させるにはblock。消す場合は"none" */
          height: 3px;/* ハンバーガーメニューの三本線の太さ */
          width: 3rem;/* ハンバーガーメニューの三本線の長さ */
          border-radius: 3px;
          background: black;/* ハンバーガーメニューの三本線の色 */
          position: absolute;/* positionは、指定した要素の配置方法を決められるプロパティであり、
          absoluteは左上角の起点である絶対配置からどれだけ離れているかが指定できます。 */
        }
        .sp-menu__box span:before {
          bottom: 8px;
        }
        .sp-menu__box span:after {
          top: 8px;
        }
        #sp-menu__check {
          display: none;/*チェックボックスを表示させるかさせないか。表示させたい場合はblockにする  */
        }
        #sp-menu__check:checked ~ .sp-menu__box span {
          background: rgba(255, 255, 255, 0);/* この数字を変えるとHBメニューを
          クリックした時の✖の形が変わった。 */
        }
        #sp-menu__check:checked ~ .sp-menu__box span::before {
          bottom: 0;
          transform: rotate(45deg);/*HBボタンを押したとき線を45度回転させ✖にする。*/
        }
        #sp-menu__check:checked ~ .sp-menu__box span::after {/*HBボタンを押したとき線が
          45度元に戻り横線になる。*/
          top: 0;
          transform: rotate(-45deg);
        }
       /*HBメニューがスライドして出てくる時のCSS */
        .sp-menu__content {
          border:solid px pink;
          width: 31vw;/* 出てくるHBメニューの幅 */
          height:auto;/* 出てくるHBメニューの高さ */
          position: fixed;/*fixed」を使うと横から出てきたメニューは固定され、
          後ろの画面をマウスでスクロールしても出てきたメニューはスクロールしません。*/
          top: 0;/* 出てくるメニューの上のmarginが0ということ。数を増やしていけば下に下がる */
         /* 普段は画面外にするために左端を画面右端の位置にする */
          left: 100%;/* 100%にすればHBメニューは隠れる。50％なら半分しか隠れない。 */
          z-index: 90;/*z-indexは要素の重なり順を指定するプロパティである。
          指定した値が大きい要素ほど順位が上に表示されます。数字には整数を入れます。*/
          background-color: white;/*出てくるHBメニューの色 */
          /* transitionは、ある要素の状態の変化をアニメーションとして動作させることができる。
          横にスライドし、スピードも変更できる */
          transition: all 0.5s;
          display: block;
        }
        ul.sp-menu__list {/*出てくるメニューの位置を調整する。top,left,bottom*/
          border: solid px red;
          width:30vw;/*出てくるメニューの全体枠の幅*/
          height:50vw;/*出てくるメニューの全体枠の高さ*/
          padding-left:3%;/*出てくるメニューそれぞれの左の余白を小さくする*/
        }
        .sp-menu__item {/*出てくるメニューそれぞれの枠の幅を調整できる。*/
          border-bottom: solid 1px black;
          list-style: none;
          width:30vw;
          margin-bottom: 2vw;
        }
        .sp-menu__link {/*出てくるメニューの文字の並びや大きさなど。*/
          display: block;
          color: black;
          border: solid 1px silver;
          width: 100%;/*出てくるメニューのそれぞれの枠*/
          font-size: 2.5vw;/*出てくるメニューの文字の大きさ。*/
          /*box-sizing: border-box;*/    
          white-space: nowrap;
          text-decoration: none;
          padding: 5% 5% 5% 5%;
          background-color: white;
          text-align: center;
        }
        
      /*ここまでがハンバーガーメニュー*/                    
      /*ここまでがheaderで以下がmain*/
      main{border:solid px gold;
          width:100%;height: auto;
          margin-top: 10px;
      }
      h2{/*--野鳥の名前を調べよう--*/
          border: solid px red ;
          width:80%;min-height: 12px;
          font-size: 3vw;
          color:royalblue;
          text-align: center;
          margin-top: 10vw;
          margin-right: auto;
          margin-left: auto;
      }
      h3{ border:solid px palevioletred;
          font-size: 2vw;
          margin-top: 5vw;
          color:palevioletred;
      } 
      nav.size1{/*大きさの外枠*/
          border:solid px ;
          width:100%;
          height:auto;
          display: flex;
          margin-bottom: 20vw;
         }
        a.size2{/*大きさのそれぞれの枠*/
          border: solid 1px silver;
          width:25%;
          height: auto;
          display: flex;
        } 
         img#size3{/*大きさの画像のサイズ*/
          border: solid px red;
          width:100%;
          height: auto;
          display: flex;
        }
        nav.color{/*目立つ色の外枠*/
          border:solid 1px silver;
          width:100%;
          height:5em;
          display: flex;
          margin-bottom: 20vw;
         }
         a.colorred{/*赤の枠*/
           border:solid px;
           color:white;
           background-color: red;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorblue{/*青の枠*/
           border:solid px;
           color:white;
           background-color: blue;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.coloryellow{/*黄色の枠*/
           border:solid px;
           color:black;
           background-color: yellow;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorgreen{/*みどりの枠*/
           border:solid px;
           color:white;
           background-color: green;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorgray{/*灰色の枠*/
           border:solid px;
           color:white;
           background-color: gray;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorblack{/*黒の枠*/
           border:solid px;
           color:white;
           background-color: black;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         a.colorwhite{/*白の枠*/
           border:solid px silver;
           color:black;
           background-color: ;
           width:15%;
           height:100%;
           font-size: 2rem;
           display: flex;
           justify-content: center;
           align-items: center;
         }
         nav.basyo1{/*見た場所の外枠*/
          border:solid px pink;
          width:100%;
          height:auto;
          display: flex;
          margin-bottom: 20vw;
         }
        a.basyo2{/*見た場所のそれぞれの枠*/
          border: solid px silver;
          width:25%;
          height: auto;
          display: flex;
        } 
         img#basyo3{/*見た場所の画像のサイズ*/
          border: solid px red;
          width:100%;
          height: auto;
          display: flex;
        }
        a.modolu{/*戻る*/
          border:solid px;
        width:7%;
        height:2vw;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5vw;
        background-color: yellowgreen;
        margin-left: auto; margin-right: auto;
        margin-top: 13vw;
        color: white;
        }
      
      footer{
        border:solid px ;
          width:100%;
          height: auto;
          text-align: center;
          font-size: 1.5vw;     
          margin-bottom: 0px;
          margin-top: 8vw;
      }
}/* メディアクエリmax-width: 480pxの閉じカッコ */