/* リセット */
body, h1, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    color: #004a99;
}

/* コンテナ */
#container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 20px 0;
}

/* ヘッダー */
#header {
  display: flex;
  align-items: center;
  background: #0066cc;
  color: white;
  padding: 20px;
  position: relative;
}

#header a {
  order: 1;
}

#header h1 {
  order: 2;
  margin-left: 10px; /* ロゴとテキストの間に適度なスペースを追加 */
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 100%;
    height: 4px;
    background: white;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.hamburger.open div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open div:nth-child(2) {
    opacity: 0;
}

.hamburger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* メニューボディ */
.side-menu {
   
    width: 300px;
    height: 100%;
    background: #6495ed;
    color: white;

    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.side-menu.open {
    right: 0;
}

.side-menu a {
    color: white;
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.side-menu a:hover {
    color: #ffcc00;
}

/* グローバルメニュー */
#gmenu_box {
    background: #004a99;
    padding: 10px;
}

#gmenu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#gmenu li a {
    color: white;
    font-weight: bold;
}

#gmenu li a:hover {
    color: #ffcc00;
}

/* コンテンツ */
#contents {
    display: flex;
    gap: 20px;
}

#left {
    flex: 3;
}

#left img {
    max-width: 100%;
    border-radius: 8px;
}

#right {
    flex: 1;
}

#right_waku1 {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



/* 右サイドメニュー */


  .search {
    margin-bottom: 20px;
  }

  .search input[type="text"] {
    width: calc(100% - 40px);
    padding: 10px;
    border: 2px solid #aad4ff;
    border-radius: 25px;
    outline: none;
    box-sizing: border-box;
    font-size: 14px;
  }

  .search button {
    background-color: #aad4ff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  .search button img {
    width: 16px;
    height: 16px;
  }

  .lmenu {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 10px;
    background-color: #aad4ff;
    padding: 5px;
  }

  .lmenu a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
  }

  .lmenu a:hover {
    background-color: #aad4ff;
    color: #fff;
  }



  .search-container {
    position: relative;
  }





/* フッター */
#footer {
    text-align: center;
    padding: 20px;
    background: #004a99;
    color: white;
    font-size: 14px;
    margin-top: 40px;
    border-radius: 0 0 8px 8px;

}

/* レスポンシブ対応 */
@media (max-width: 950px) {
#header {
  display: block; /* ブロックレベル要素として指定 */
  width: 96%; /* 必要に応じて幅を指定 */
  padding: 2%;
  min-height: 50px; /* 必要に応じて高さを指定 */
  background-color: #0066cc; /* 背景色を青に指定 */
  margin-top: 0px;
}

#header h1 {
    margin: 0;
    font-size: 20px;
    text-align: center;
    order: 0; 
}
#header a {
    order: 0; 
}
#header img {
    display: block;
    margin: 10px auto 0;
}
#container {
    width: 98%;
    max-width: 900px;
    margin: 0 auto;
    padding: 5px 0 20px 0;
}

.hamburger {
    display: block;
}

#gmenu_box {
    display: none;
}

#contents {
    flex-direction: column;
}
    /* メニューボディ */
.side-menu {
    position: fixed;
    top: 0;
    right: -380px;
    width: 260px;
    height: 100%;
    background: #6495ed;
    color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.side-menu.open {
    right: 0;
}

.side-menu a {
    color: white;
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.side-menu a:hover {
    color: #ffcc00;
}



}