.globalNav {
  display: flex;
  justify-content: space-between;
  height: 50px;
}
.globalNav > li {
  width: calc(100% / 5);
  position: relative;
}
.globalNav li {
  line-height: 50px;
  text-align: center;
  transition: all 0.3s;
  color: #fff;
}
.globalNav .subNav li:last-of-type a {
  border-bottom: none;
}
.globalNav .subNav {
  /* display: none;  こちらは非表示 */

  /* 以下を追加 */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  transform: translateY(-5px);
  position: relative;
  z-index: -1;
}
.globalNav .subNav li {
}
.globalNav li:hover {
}
.globalNav li a {
  font-size: 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}
.globalNav > li:not(last-child) > a {
  border-left: 1px solid #ddd;
}

.globalNav > li:last-child > a {
  border-right: 1px solid #ddd;
}
.globalNav .subNav li:hover {
}
/* 以下を追加 */
.globalNav li:hover .subNav {
  opacity: 1;
  visibility: visible;
  transition: all 0.3s;
  transform: translateY(0);
}

.home ul.globalNav li.menu_home > a::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--key);
  position: absolute;
  bottom: 0;
}
.treatment ul.globalNav li.menu_treatment > a::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--key);
  position: absolute;
  bottom: 0;
}
.price ul.globalNav li.menu_price > a::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--key);
  position: absolute;
  bottom: 0;
}
.greeting ul.globalNav li.menu_greeting > a::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--key);
  position: absolute;
  bottom: 0;
}
.info ul.globalNav li.menu_info > a::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--key);
  position: absolute;
  bottom: 0;
}
ul.globalNav li a:hover {
  color: var(--main);
}
ul.globalNav > li > a::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: var(--main);
  position: absolute;
  bottom: 0;
  left: 0;
  transform: scale(0, 1);
  transition: 0.3s;
}
ul.globalNav li a:hover::after {
  transform: scale(1, 1);
}
/*子階層以降共通*/
.globalNav li li {
  height: 0rem;
  overflow: hidden;
  transition: 0.5s;
  background: #fff;
  xmargin-top: 1px;
  font-size: 14px;
  text-align: left;
  position: relative;
}
.globalNav li li::after {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--key);
  position: absolute;
  bottom: 0;
}

.globalNav li li a {
  position: relative;
  padding-left: 8px;
  height: 40px;
  display: flex;
  align-items: center;
}

.globalNav li:hover > ul > li {
  height: 40px;
  overflow: visible;
  overflow: hidden;
}
