/*==　smartphone　bottom menu　==
Customized by SimpleLifeNavi ,Dec 11,2021 updated
Based on "https://www.bambi.pro/entry/navigation-bottom-smartphone"
*/
.mini-text {
  font-size: 9px;
} /*文字の大きさ*/

ul.bottom-menu {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 65px; /*アイコン枠の高さ*/
  margin: 0;
  padding: 0;
  background-color: white; /*背景色*/
  border-top: 2px solid gray; /*バーの上線*/
  border-bottom: 2px solid gray; /*バーの下線*/
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}

ul.bottom-menu li {
  float: left;
  width: 50%;
  background-color: white; /*背景色*/
  list-style-type: none;
  text-align: center;
  font-size: 22px; /*アイコンのサイズ*/
}

.bottom-menu li a {
  display: block;
  color: dimgray; /*アイコンと文字の色*/
  padding-top: 10px;
  padding-bottom: 5px;
  line-height: 10px;
  text-decoration: none;
}

.bottom-menu li a:hover {
  color: lightgray; /*マウスオーバー時の色*/
}

/* === 展開メニュー === */
ul.menu-second-level {
  visibility: hidden;
  opacity: 0;
  z-index: 1;
}

ul.menu-second-level li a {
  border-top: 1px dotted gray; /*展開の枠点線*/
  font-size: 12px; /*展開メニューの文字サイズ*/
  line-height: 24px; /*文字の縦幅*/
}

.menu-second-level li a:hover {
  height: 100%;
  transition: 1s; /*動きを見せる*/
  background: lavender; /*マウスオーバーの色*/
}

li.menu-width-max ul.menu-second-level {
  position: absolute;
  bottom: 45px; /*メニュー高さ*/
  transition: 0.5s; /*動きを見せる*/
  left: 0;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
}

li.menu-width-max:hover ul.menu-second-level {
  bottom: 45px; /*メニュー高さ*/
  visibility: visible;
  opacity: 1;
}

li.menu-width-max ul.menu-second-level li {
  float: left;
  width: 50%; /*2階層目に2つメニューを並べる*/
  border: none;
}

/* ボトムメニューを表示しない指示 */
@media (orientation: landscape),
  /*スマホで横画面の時*/ @media(min-width: 768px) {
  /*PC表示の時*/
  .bottom-menu {
    display: none;
  }
}

/*スマホの時だけ ボトムメニュー分フッタを底上げ*/
@media (max-width: 767px) {
  #footer {
    margin-bottom: 45px;
  }

  ul.bottom-menu {
    width: 100%;
  }
}
