@charset "utf-8";
body{ /*--HTMLやCSSにおいて、<body>要素にwidth（幅）とheight（高さ）を
  指定する必要性は一般的にはありません。<body>要素は通常、
  ブラウザウィンドウ全体に自動的に広がります。--*/
  border:solid px red;
  padding-top: 20px;
  font-size: 1.1rem;/*--<body>要素に対してfont-sizeを指定することは一般的であり、
  推奨される方法です。デフォルトでは16px。65.4%にすれば10pxになる。remは2で20px--*/
}
header{border:solid px blue;
  width:100%; height:auto;
margin-bottom: 100px; 
  }
h1{/*--このサイトの紹介--*/
    font-size:2rem;
    text-align:center;
    color:forestgreen ;
    margin-bottom: 10px;
    background-color:white;
    margin-top: 80px;
  }
nav{/*--PCメニュー６つの大枠--*/    
    border:solid px red;    
    }
    ul.global-menu{/*--PC横並びメニュー６つのフォントサイズなど--*/
      border:solid px yellowgreen;
      text-align: center;/*--メニュー内の文字がセンタリング--*/
      font-size: 1.5rem;
      font-weight: bold;
      padding: 0 ;
      margin-bottom: 0px;
      display:flex ;/* flexで横並びにする */
      align-items: center; /* 垂直方向の中央揃え */
      justify-content: center; /* 横方向の中央揃え このプロパティはブロック要素、
      インライン要素どちらもセンタリングできる*/
      }
      nav ul li{
        background-color: ;
        border:solid px brown;
        list-style: none; /* リストのマーカー（点）を削除 */
        height:3rem;
       
        display:flex ;
        justify-content: center;
        align-items: center;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-right: 3%;
      }
      nav ul a li#homecolor {/* メニューのホームの文字色が赤にする */
            color: red;
            font-weight: bold;
            background-color: white;/* PCメニューのそれぞれの背景色 */
            width:8rem;/* PCメニューそれぞれの幅 */
            margin-right: 2rem;
            }
        nav ul a li#kongetu{
            color:black;
            font-size: 1.3rem;
            font-weight: bolder;
            background-color: white;
            width:8rem;
            margin-right: 2rem;
        }
        nav ul a li#saiji{
          color:black;
          font-size: 1.3rem;
          font-weight: bolder;
          background-color: white;
          width:8rem;
          margin-right: 2rem;
      }
        nav ul a li#fax{
          color:black;
          font-size: 1.3rem;
          font-weight: bolder;
          background-color: white;
          width:8rem;
          margin-right: 2rem;
        }
        nav ul a li#osilase{
          color:black;
          font-size: 1.3rem;
          font-weight: bolder;
          background-color: white;
          width:8rem;
          margin-right: 2rem;
        }
        nav ul a li#kaisya{
          color:black;
          font-size: 1.3rem;
          font-weight: bolder;
          background-color: white;
          width:8rem;
          margin-right: 2rem;
        }
        a {
          text-decoration: none;/* メニューをリンクにした際にできる下線を消去 */
        }            
    nav ul li#homecolor:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: lightcyan;
              }
    nav ul li#kongetu:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: lightcyan;
              }
    nav ul li#saiji:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: lightcyan;
              }
    nav ul li#fax:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: lightcyan;
              }
    nav ul li#osilase:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: lightcyan;
              }
    nav ul li#kaisya:hover{/* マウスが通るとメニューの色がwhiteに変わる */
                background-color: lightcyan;
              }
/* ハンバーガーメニューについての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;
}
nav.haku{
 border:solid px;
 width:70%;
 height:5vw;
 display: flex;
  justify-content: center;
  align-items: center;
 font-size: 3vw;
 background-color: silver;
 margin: auto;
 color:black;
}
nav.waku1{/*外枠*/ 
 border:solid 1px yellowgreen;
 width:70%;
 height:5vw;
 display: flex;
  margin-left: auto;margin-right: auto;
 margin-top: 30px;
}
nav#waku2{/*中枠*/ 
    border:solid px green;
    width:27%;
    height:5vw;
    display: flex;    
    font-size: 1.5vw;
    margin-right: 1.5%;
   }
   nav#waku3{/*中枠*/ 
    border:solid px red;
    width:50%;
    height:5vw;
    display: flex;
    font-size: 1.5vw;
   }
   nav#waku4{/*中枠*/ 
    border:solid px blue;
    width:48%;
    height:5vw;
    display: flex;
    justify-content: center;
 align-items: center;
    font-size: 1.5vw;
   }
#samune{
    width:100%;
    height:auto;
}
img#mediagazou{/*メディアの画像*/ 
  width:70%;
 height: auto;
 display: block;
 justify-content: center;
 align-items: center;
 margin-left: auto;margin-right: auto;
 margin-top: 50px;
}
section.kagyo{
    border:solid px;
    width:70%;
    height:3vw;
    display: flex;
     justify-content: center;
     align-items: center;
    font-size: 2vw;
    color:white;
    background-color: blue;
    margin-left: auto;margin-right: auto;
    margin-top: 50px;
   }
   section.sagyo{
    border:solid px;
    width:70%;
    height:3vw;
    display: flex;
     justify-content: center;
     align-items: center;
    font-size: 2vw;
    color:white;
    background-color: greenyellow;
    margin-left: auto;margin-right: auto;
    margin-top: 50px;
   }
   section.tagyo{
    border:solid px;
    width:70%;
    height:3vw;
    display: flex;
     justify-content: center;
     align-items: center;
    font-size: 2vw;
    color:white;
    background-color: gold;
    margin-left: auto;margin-right: auto;
    margin-top: 50px;
   }
   section.nagyo{
    border:solid px;
    width:70%;
    height:3vw;
    display: flex;
     justify-content: center;
     align-items: center;
    font-size: 2vw;
    background-color: yellow;
    margin-left: auto;margin-right: auto;
    margin-top: 50px;
   }
   section.hagyo{
    border:solid px;
    width:70%;
    height:3vw;
    display: flex;
     justify-content: center;
     align-items: center;
    font-size: 2vw;
    color:white;
    background-color: purple;
    margin-left: auto;margin-right: auto;
    margin-top: 50px;
   }
   section.magyo{
    border:solid px;
    width:70%;
    height:3vw;
    display: flex;
     justify-content: center;
     align-items: center;
    font-size: 2vw;
    color:white;
    background-color: olive;
    margin-left: auto;margin-right: auto;
    margin-top: 50px;
   }
   section.yagyo{
    border:solid px;
    width:70%;
    height:3vw;
    display: flex;
     justify-content: center;
     align-items: center;
    font-size: 2vw;
    color:white;
    background-color: brown;
    margin-left: auto;margin-right: auto;
    margin-top: 50px;
   }
   section.lagyo{
    border:solid px;
    width:70%;
    height:3vw;
    display: flex;
     justify-content: center;
     align-items: center;
    font-size: 2vw;
    color:white;
    background-color: green;
    margin-left: auto;margin-right: auto;
    margin-top: 50px;
   }
footer{
  border:solid px ;
    width:100%;
    height: 50px;
    text-align: center;
    font-size: 15px;     
    margin-bottom: 0px;
    margin-top: 50px;
}

@media screen and (max-width: 1024px){
  header{border:solid px red;
}
h1{
    font-size: 1.2rem;        
}
h2{
    font-size: 1.2rem;
}
ul.global-menu{/*--PC横並びメニュー６つのフォントサイズなど--*/
  border:solid px yellowgreen;
  text-align: center;/*--メニュー内の文字がセンタリング--*/
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0 ;
  margin-bottom: 0px;
  display:flex ;/* flexで横並びにする */
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 横方向の中央揃え このプロパティはブロック要素、インライン要素どちらもセンタリングできる*/
  }
  nav ul li{ /* PCメニューそれぞれの高さ */   
    height:2rem;
  }
  nav ul a li#homecolor {/* メニューのホームの文字色が赤にする */
    color: red;
    font-size: 1rem;
    font-weight: bold;
    background-color: lightyellow;/* PCメニューのそれぞれの背景色 */
    width:6rem;/* PCメニューそれぞれの幅 */
    margin-right: 2rem;
    margin-left: 2rem;
    }
nav ul a li#kongetu{
    color:black;
    font-size: 1rem;
    font-weight: bolder;
    background-color: lightyellow;
    width:6rem;
    margin-right: 2rem;
}
nav ul a li#saiji{
  color:black;
  font-size: 1rem;
  font-weight: bolder;
  background-color: lightyellow;
  width:6rem;
  margin-right: 2rem;
}
nav ul a li#fax{
  color:black;
  font-size: 1rem;
  font-weight: bolder;
  background-color: lightyellow;
  width:6rem;
  margin-right: 2rem;
}
nav ul a li#osilase{
  color:black;
  font-size: 1rem;
  font-weight: bolder;
  background-color: lightyellow;
  width:6rem;
  margin-right: 2rem;
}
nav ul a li#kaisya{
  color:black;
  font-size: 1rem;
  font-weight: bolder;
  background-color: lightyellow;
  width:6rem;
  margin-right: 2rem;
}
/* ハンバーガーメニューボタンに関するCSS */    
  .sp-menu__box {
    height: 4.5rem;/* ハンバーガーメニューボタンの高さ 50px*/
    width: 4.5rem;/* ハンバーガーメニューボタンの幅 50px*/
    } 
/* 出てくるHBメニューに関するCSS */    
    .sp-menu__content {
        border:solid px lawngreen;
        width: 25%;/* 出てくる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;
      }
    ul.sp-menu__list {/*出てくるメニューの位置を調整する。top,left,bottom*/
        border: solid px olive;
        width:95%;/*出てくるメニューの全体枠の幅*/
        height:auto;/*出てくるメニューの全体枠の高さ*/
        display: flex;/* メニューリストを横並びにするために flex を設定 */
        flex-direction: column;/* 列方向に配置 */
        padding-left: 5%;/*出てくるメニューそれぞれの左の余白を小さくする*/

      }
  .sp-menu__item {/*出てくるメニューの下線などの調整。*/
        border-bottom: solid 1px white;
        list-style: none;
        width:75%;/*出てくるメニューそれぞれの枠の幅を調整できる。*/        
      }            
    .sp-menu__link {/*出てくるメニューの文字の並びや大きさなど。*/
        border: solid 1px silver;
        display: block;
        width: 100%;
        font-size: 15px;
        color: black;
        text-decoration: none;
        padding: 5%;/*出てくるメニューの文字の枠のpadding*/
        background-color: white;
      }
/*ここまでがハンバーガーメニュー*/
.onlei{
  border: solid px blue ;
  width:60%;
  font-size: 1.2rem;
  margin-top: 1.7rem;
  margin-bottom: 1.7rem;
}       
    #bangou{
        width:100%;height: auto;
        text-align: center;
        font-size: 40px;
        background-color: yellow;
    }
}
@media screen and (max-width: 768px){
    header{border:solid px green;
      padding-top:0px;
      padding-bottom:0px;
      width:100%; height: auto;;
    }   
  h1{
      font-size: 0.9rem;        
  }
  h2{
      font-size: 1rem;
  }
  nav ul li{ /* PCメニューそれぞれの高さ */   
    height:1rem;
  }
  nav ul a li#homecolor {/* メニューのホームの文字色が赤にする */
    color: red;
    font-size: 0.7rem;
    font-weight: bold;
    background-color: lightyellow;/* PCメニューのそれぞれの背景色 */
    width:4rem;/* PCメニューそれぞれの幅 */
    margin-right: 1rem;
    margin-left: 1rem;
    }
nav ul a li#kongetu{
    color:black;
    font-size: 0.7rem;
    font-weight: bolder;
    background-color: lightyellow;
    width:4rem;
    margin-right: 1rem;
}
nav ul a li#saiji{
  color:black;
  font-size: 0.7rem;
  font-weight: bolder;
  background-color: lightyellow;
  width:4rem;
  margin-right: 1rem;
}
nav ul a li#fax{
  color:black;
  font-size: 0.7rem;
  font-weight: bolder;
  background-color: lightyellow;
  width:4rem;
  margin-right: 1rem;
}
nav ul a li#osilase{
  color:black;
  font-size: 0.5rem;
  font-weight: bolder;
  background-color: lightyellow;
  width:4rem;
  margin-right: 1rem;
}
nav ul a li#kaisya{
  color:black;
  font-size: 0.5rem;
  font-weight: bolder;
  background-color: lightyellow;
  width:4rem;
  margin-right: 1rem;
}          
/* ハンバーガーメニューについての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: 4rem;
    right: 1rem;
    display: flex;
    height: 4.5rem;/* ハンバーガーメニューボタンの高さ 60px*/
    width: 4.5rem;/* ハンバーガーメニューボタンの幅 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: block;/* 三本線を表示させる。消す場合は"none" */
    height: 3px;/* ハンバーガーメニューの三本線の太さ */
    width: 2.5rem;/* ハンバーガーメニューの三本線の長さ */
    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: 45%;/* 出てくる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:90%;/*出てくるメニューの全体枠の幅*/
    height:100%;/*出てくるメニューの全体枠の高さ*/
    padding-left:3%;/*出てくるメニューそれぞれの左の余白を小さくする*/
  }
  .sp-menu__item {/*出てくるメニューそれぞれの枠の幅を調整できる。*/
    border-bottom: solid 1px white;
    list-style: none;
    width:100%;
    margin-top: 1rem;
  }
  .sp-menu__link {/*出てくるメニューの文字の並びや大きさなど。*/
    display: block;
    border: solid 1px silver;
    width: 100%;/*出てくるメニューのそれぞれの枠*/
    font-size: 1rem;
    /*box-sizing: border-box;*/    
    white-space: nowrap;
    text-decoration: none;
    padding: 5% 5% 5% 5%;
    background-color: white;
    text-align: center;
  }
  
/*ここまでがハンバーガーメニュー*/ 
    img#newmenu{        
        width:80%; height:auto; 
    }
    img#cm{        
        width:80%; height:auto; 
    }
    img#onegai{
        width:80%; height:auto; 
    }
  .onlei{
      border: solid px green ;
      width:80%;
      font-size: 1.1rem;
      margin-top: 1.5rem;
  margin-bottom: 1.5rem;
    }       
    #bangou{
        width:100%;height: auto;
        text-align: center;
        font-size: 30px;
        background-color: yellow;
    }
    

}
@media screen and (max-width: 480px){
  header{border:solid px yellow;       
  }
  h1{/*--現場への…--*/
      font-size:0.7rem;
      text-align:center;/*--幅が狭くなっていくとハンバーガーメニューと
      被ってしまうため左寄せにした--*/
      color:#808080 ;margin-bottom: 10px;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
  #sinbol{/*--オレンジ水玉とサキヤマ楕円の全体枠--*/
    border:solid px green;
   }
img.header{/*--オレンジ水玉とサキヤマ楕円の中心枠--*/
  }
h2{border: solid px;/*--大船渡、陸前高田--*/
    font-size:0.9rem;text-align:center;
    color:gray ;margin-top:10px;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}  
    ul.global-menu {/*--PCメニューが消える--*/
        display: none;    
}
/* ハンバーガーメニューのボタン */
/* ハンバーガーボタンを押してチェックが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: 3rem;
    right: 1rem;
    display: flex;
    height: 4.5rem;/* ハンバーガーメニューボタンの高さ 60px*/
    width: 4.5rem;/* ハンバーガーメニューボタンの幅 60px*/
    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: 3px;/* ハンバーガーメニューの三本線の太さ */
    width: 2.5rem;/* ハンバーガーメニューの三本線の長さ */
    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 violet;
    width: 45%;/* 出てくる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;
  }
  ul.sp-menu__list {/*出てくるメニューの位置を調整する。top,left,bottom*/
    border: solid px red;
    width:95%;/*出てくるメニューの全体枠の幅*/
    height:auto;/*出てくるメニューの全体枠の高さ*/
    padding-left:3%;/*出てくるメニューそれぞれの左の余白を小さくする*/
  }
  .sp-menu__item {/*出てくるメニューそれぞれの枠の幅を調整できる。*/
    border-bottom: solid px hotpink;
    list-style: none;
    width:100%;
    margin-top: 1rem;
  }
  .sp-menu__link {/*出てくるメニューの文字の並びや大きさなど。*/
    display: block;
    border: solid 1px silver;
    width: 100%;/*出てくるメニューのそれぞれの枠*/
    font-size: 1rem;
    font-family: sans-serif;
    white-space: nowrap;
    text-decoration: none;
    padding: 5%;
    background-color: white;
  }
  
/*ここまでがハンバーガーメニュー*/
.onlei{
  border: solid px gold ;
  width:80%;
  font-size: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}                 
img#newmenu{        
    width:100%; height:auto; 
}
img#cm{        
    width:100%; height:auto; 
}
img#onegai{
    width:100%; height:auto; 
}




}
/*ここからメイン*/
