/* ヘッダー */


header {
  display: flex;
  height: 100px;
  width: 100%;
  background-color: #223a70;
  align-items: center;
  position: fixed;  
  margin: 0;
  max-width: 100vw; /* ←横幅はビューポート以内に制限 */
  overflow-x: hidden; /* ←横スクロール防止 */
  overflow-y: hidden;
  
}
   
.title img {
  height: 70%;
  width: 70%;
}

.title a {
  text-decoration: none;
}

.menu-item {
    list-style: none;
    display: inline-block;
    
}
/*リンクの設定*/
 
.menu-item a:link, a:visited {
        background-color: white;
        
        padding: 15px 25px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        margin-bottom: 10px; 
        
}
          
.menu-item a:hover, a:active {
        background-color: white;
}
/* メニューのスタイル */
.nav {
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態では画面の外に隠れている */
    height: 100%;
    background-color: #223a70;
    color: white;
    transition: right 0.3s ease; /* スライドインのアニメーション */
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
    width: 100vw; /* ←これで画面幅ジャストになる */
    max-width: 100vw;
    overflow-x: hidden;
}
      
/* メニューが開いているとき */
.nav.open {
        right: 0;
}
      
      /* ボタンのスタイル */
      .hamburger {
        position: fixed;
        top: 40px;
        right: 10px;
        padding: 10px;
        width: 30px;
        cursor: pointer;
        z-index: 9999;
      }
      
      .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;
        margin: 5px 0;
        transition: 0.4s;
      }
      
      /* バツ印に変化するスタイル */
      .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
      }
      
      .hamburger.active span:nth-child(2) {
        opacity: 0;
      }
      
      .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
      }
      
      /* メニューリストのスタイル */
      .nav ul {
        list-style-type: none;
        padding: 0;
        margin-top: 80px;
      }
      
      .nav li {
        padding: 20px 0;
        border-bottom: 1px solid #444;
      }
      
      .nav li a {
        color: #333;
        background-color: white;
        text-decoration: none;
        display: block;
      }


