/* メニューボタンのデザイン */
.menu-btn {
    position: fixed;  /* 固定位置に設定 */
    top: 10px;  /* 上部から10px */
    right: 20px;  /* 右側から20px */
    background-color: #2aa035; /* 背景に薄い黒を追加 */
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    padding: 0;
    z-index: 1000; /* メニューが他の要素に隠れないようにする */
    border-radius: 3px; /* 角を丸める */
}

.menu-btn span,
.menu-btn span::after,
.menu-btn span::before {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.5s;
}

.menu-btn span::before {
  top: -8px;
}
.menu-btn span::after {
  bottom: -8px;
}

.menu-btn.open span {
  background-color: transparent;
}
.menu-btn.open span::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-btn.open span::after {
  bottom: 0;
  transform: rotate(-45deg);
}


/* メニュー全体のスタイル */
.menu {
    position: fixed;
    top: 0;
    right: 0;  /* 右側に固定 */
    width: 300px;  /* メニューの幅 */
    height: 100%;
    background-color: #dff2d9;
    background-image: url(img/bg-002.png);
    display: flex;
    z-index: 999;
    flex-direction: column;
    overflow-y: auto;  /* メニューが長すぎるとスクロール */
    transform: translateX(100%);  /* 画面の外（右側）に隠す */
    transition: transform 0.5s ease;  /* スライドインのアニメーション */
}

/* メニューが表示されたとき */
.menu.active {
    transform: translateX(0);  /* メニューを右から表示 */
}

/* メニュー内のリスト */
.menu ul {
    list-style: none;
    text-align: center;
	padding-inline-start: 14px;
}

.menu ul li {
    margin: 8px 0;
    text-align: left;
    margin: 10px 0;
    background-color: #fff;
    border-radius: 5px;
    padding: 5px;
    color: #333;
}

.menu ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.menu ul li .submenu a{
    background-color: #f9f9f9;
    border-radius: 5px;
}


/* サブメニューの初期状態（非表示） */
.submenu {
    max-height: 0;  /* サブメニューは初期状態で高さが0 */
    overflow: hidden;  /* はみ出さないように隠す */
    opacity: 0;  /* 初期状態で透明 */
    transition: max-height 0.1s ease, opacity 0.5s ease; /* アニメーション */
}

.has-submenu .submenu.active {
    max-height: 100%;  /* 固定値に設定（十分大きな値に変更） */
    opacity: 1;  /* 不透明にする */
    overflow: visible; /* サブメニューがはみ出ないように設定 */
}


.submenu img {
float: left;
display: block;
}

/* サブメニュー内のリンク */
.submenu a {
    clear: left;  /* 左寄せした要素の回り込みを解除 */
    color: white;
    text-decoration: none;
    padding: 5px;
    display: block;
}


.has-submenu ul {
    padding-inline-start: 10px;
}


.submenu ul li {
    margin: 20px 0;
    text-align: left
}

/* デフォルトで「+」を表示 */
.has-submenu::before {
  content: "+";
  margin-right: 10px;
  color: #333; /* 必要に応じて色を指定 */
}

/* 「open」クラスが付与された場合は「-」を表示 */
.has-submenu.open::before {
  content: "-";
  color: #333; /* 必要に応じて色を指定 */
}

.menu-kensaku {
margin: 0 auto;
width: 85%;
}

.menu h3 {
color: #fff;
width: 95%;
margin: 10px auto 0;
}

/* フッター固定バー */

.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff8e8;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 20px 10px 10px;
  flex-wrap: wrap;
}

.footer-left img,
.footer-center img,
.footer-right img {
  max-width: 100%;
  height: auto;
}

.footer-left,
.footer-center,
.footer-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
}

.footer-label {
  position: absolute;
  top: -18px;
  background-color: #218c2d;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-center-box {
  background-color: #fff;
  padding: 10px;
  padding-top: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-right-box {
  background-color: #ffff33;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-right-text p {
  margin: 0;
  font-size: 1.2rem;
  color: #000;
  line-height: 1.4;
}

.footer-bar a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bar a:hover {
  transform: translateY(-3px);
  opacity: 0.95;
}

/* スマホ対応：50% 50% 表示＆文字サイズ縮小 */
@media (max-width: 768px) {
  .footer-bar {
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: hidden;
    gap: 0;
  }

  .footer-left {
    display: none;
  }

  .footer-center,
  .footer-right {
    width: 50%;
    max-width: 50%;
    box-sizing: border-box;
    padding: 0;
    flex-shrink: 0;
    flex-grow: 0;
  }

  .footer-center-box {
    width: 100%;
    text-align: center;
    padding: 15px 5px 5px;
    box-sizing: border-box;
  }

  .footer-center-box img {
    width: 90%;
    height: auto;
    max-width: 100%;
  }

  .footer-right-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-right-box img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .footer-right-text {
    flex: 1;
    text-align: left;
  }

  .footer-right-text p {
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
  }

  .footer-label {
    font-size: 0.65rem;
    padding: 2px 8px;
  }
}