@charset "UTF-8";

.middle_menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    font-size: .95rem;
    /**border-bottom: solid 1px rgba(245, 130, 31, 0.9);**/
    border-bottom: solid 1px rgba(12, 38, 120, 0.6);
    background: rgba(233, 231, 226, 0.85);
    margin-bottom: 25px;
}
.middle_menu_sp {
    display : none;
    width: 100%;
    height: 40px;
    margin-top: -2px !important;
}

.middle_menu-item {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.middle_menu-item a {
  position: relative;
  text-decoration: none !important;
  display:block;
  align-items: center;
  color: initial;
  padding: 10px 0;
}

.middle_submenu {
  position: absolute;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  height: 0px;
  padding :30px 0 10px 0;
  left: 0;
  list-style: none;
  z-index: 10;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-30px);
  transition: transform .3s ease;

}

/** 上のメニューをホバーした時の動作 **/
.middle_menu-item:hover .middle_submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: transform .3s ease;
}


.middle_menu-item ul {
    top: 14px;
    z-index: 4;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-40px);
}

.middle_menu-item ul li {
    white-space: nowrap;
    position: relative;
    width: 100%;
    background: rgba(233, 231, 226, 0.9);
    border-bottom: solid 1px #ccccce;
}

.middle_submenu a{
    padding: 8px 16px;
}

.middle_menu_item{
    display: flex;
    margin-left: 1.5rem;
}

.middle_submenu li:hover {
    background: rgba(227, 223, 215, 0.9);
}

/* 現在表示中 */
.middle_menu-item.current a {
    color: #F5821F !important;
    font-weight: bold;
}
.middle_menu-item.current .middle_menu_item::after {
  color: #F5821F;
}
.middle_menu-item.current .middle_submenu a {
    color: initial !important;
    font-weight: normal !important;
}
.middle_menu-item.current::after {
  transform: scaleX(1);
  transform-origin: left;
}


/** メニューの縦棒  **/
.middle_menu_item::after{
    display: block;
    width: 1px;
    margin-left: 1.5em;
    background: rgba(12, 38, 120, 0.6);
    /**background: rgba(245, 130, 31, 0.9);**/
    content: "";
}
.middle_menu_item2{
    display: flex;
    margin-left: .75em;
}


/* アンダーライン */
.middle_menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 4px;
  background: #F5821F;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 11;
  pointer-events: none;
  transform-origin: left;
}
.middle_menu-item a {
  position: relative;
  z-index: 12;
}

/* hover中は中央から左右へ広がる */
.middle_menu-item.hovering::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* hover解除で中央に向かって縮む */
.middle_menu-item.leaving::after {
  transform: scaleX(0);
  transform-origin: right;
}



.acMenu {
    margin: 0 !important;
    width: 100%;
    z-index: 10000;
}
.acMenu dt {
    padding-left: 10px;
    display: block;
    line-height: 42px;
    cursor: pointer;
    color: white;
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #0d308a;
}

.acMenu dd {
    width: 100%;
    height: 20px;
    text-align: left;
    display: none;
    position: absolute;
}

.acMenu dd ul {
    background-color: rgba(12, 38, 120, .8);
    padding: 20px 0;
}
.acMenu_title_head {
    text-align: center;
    margin: 0 auto 20px auto;
    white-space: nowrap;
    position: relative;
    width: 90%;
}
.acMenu dd ul li a {
    border-top: solid 1px white;
    border-bottom: solid 1px white;
    display: block;
    color: white;
    text-align: center;
    line-height: 30px;
    background: rgba(42, 130, 229, 0.9);
}
.acMenu .acMenu_title_head ul {
    background-color: initial;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 0 6px;
    padding-top: initial;
    padding-bottom: initial;
}
.acMenu .acMenu_title_head ul li a {
    border-top: initial;
    border-bottom: initial;
    padding: 10px;
    padding-bottom: 0;
    background: initial;
    line-height: 16px;
    font-weight: normal;
}

