#mega-menu .dropbtn,
#dropdown-menu .dropbtn,
#logdown-menu .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: var(--secondary-font-color);
  padding: 0;
  background-color: inherit;
  font: inherit;
  margin: 0;
  cursor: pointer;
}

#mega-menu .dropbtn .fa {
  color: inherit;
  font-size: 12px;
  transition: transform .3s;
  transform: rotate(0);
  margin-left: 3px;
}

#mega-menu.open-mega-menu .dropbtn {
  background-color: var(--primary-font-color);
  color: white;
}

#mega-menu.open-mega-menu .dropbtn .fa {
  transition: transform .3s;
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
}

#mega-menu .dropdown-content {
  position: absolute;
  background-color: #fff;
  width: 100%;
  left: 0;
  z-index: 105;
  top: 0;
  height: auto;
  min-height: 100%;
  box-shadow: 0px 10px 5px -8px rgba(0, 0, 0, 0.11);
}

.dropdown-content .header {
  padding: 0;
  margin: 0;
  display: flex;
  width: 100%;
  justify-content: left;
  position: relative;
}

.dropdown-content .header .logo-mm {
  display: flex;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  width: 170px;
}

.dropdown-content .header .steps {
  margin: 16px 16px 16px 22px;
  border-left: 1px solid #e2e4e9;
  padding-left: 25px;
  font-weight: 500;
  font-size: 16px;
  line-height: 170%;
  display: flex;
  align-items: center;
}

.dropdown-content .header .close {
  position: absolute;
  top: 32px;
  right: 5px;
  cursor: pointer;
}

#mega-menu.open-mega-menu .dropdown-content,
#dropdown-menu.open-mega-menu .dropdown-content,
#logdown-menu.open-mega-menu .dropdown-content {
  display: block;
  padding-bottom: 25px;
}

#mega-menu .row {
  display: flex;
  flex-direction: row;
  padding-bottom: 40px;
  margin-left: -16px;
  margin-right: -16px;
}

#mega-menu .column {
  padding: 16px;
  flex-basis: 0;
  flex-grow: 1;
}

#mega-menu .column h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 140%;
  padding: 10px 32px 24px 0;
  border-bottom: 1px solid #e2e4e9;
  margin-top: 0;
}

#mega-menu .column h4 {
  font-weight: 600;
  font-size: 14px;
  line-height: 170%;
  margin-top: 24px;
  margin-bottom: 8px;
}

#mega-menu .column h3 a,
#mega-menu .column h4 a {
  margin: 0;
  padding: 0;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

#mega-menu .column h3 a:hover,
#mega-menu .column h4 a:hover {
  text-decoration: underline;
}

#mega-menu .column ul {
  flex-direction: column;
  border-bottom: 1px solid #e2e4e9;
  padding-bottom: 22px;
}

#mega-menu .column ul:last-child {
  border-bottom: none;
}

#mega-menu .column ul li {
  margin-left: 0;
  margin-right: 0;
  padding-left: 16px;
  background-image: url(../images/mm-list.svg);
  background-position: 0 11px;
  background-repeat: no-repeat;
}

#mega-menu  .column li a {
  float: none;
  font-weight: normal;
  font-size: 14px;
  line-height: 170%;
  padding: 4px 16px 4px 0;
  text-decoration: none;
  display: block;
  text-align: left;
}

#mega-menu .column li a:hover {
  text-decoration: underline;
}

#mega-menu  .row:after {
  content: "";
  display: table;
  clear: both;
}

#dropdown-menu,
#logdown-menu {
  position: relative;
}

#dropdown-menu .dropdown-content,
#logdown-menu .dropdown-content {
  position: absolute;
  left: -32px;
  top: 48px;
  z-index: 10;
  box-shadow: 0px 32px 64px rgba(31, 54, 94, 0.04);
}

#dropdown-menu ul,
#logdown-menu ul {
  flex-direction: column;
  background-color: #fff;
  padding: 16px 32px;
}

#dropdown-menu ul li,
#logdown-menu ul li {
  margin: 0;
  white-space: nowrap;
  font-weight: normal;
  font-size: 14px;
  line-height: 170%;
}

#dropdown-menu ul li a,
#logdown-menu ul li a {
  font-weight: normal;
  font-size: 14px;
  line-height: 170%;
  padding: 8px 0;
}

#dropdown-menu ul li:last-child a,
#logdown-menu ul li:last-child a {
  padding-bottom: 0;
}

#dropdown-menu ul li:first-child a,
#logdown-menu  ul li:first-child a {
  padding-top: 0;
}

@media screen and (min-width: 1025px) {
  #dropdown-menu .dropdown-content,
  #logdown-menu .dropdown-content {
    min-width: 130%;
  }

  #mega-menu.open-mega-menu .dropdown-content {
    overflow: hidden;
    overflow-y: scroll;
    max-height: 100vh;
  }
}

@media screen and (max-width: 1340px) {
  #mega-menu,
  #dropdown-menu,
  #logdown-menu {
    width: 100%;
  }

  #mega-menu .dropbtn,
  #dropdown-menu .dropbtn,
  #logdown-menu .dropbtn {
    padding: 15px 24px;
    border-bottom: 1px solid #e2e4e9;
    width: 100%;
    display: block;
    text-align: left;
  }

  #mega-menu .dropdown-content {
    top: -80px;
    width: calc(100% - 48px);
    padding-left: 24px;
    padding-right: 24px;
  }

  #mega-menu  .row {
    flex-wrap: wrap;
  }

  #mega-menu  .column {
    width: calc(50% - 48px);
    padding-left: 24px;
    padding-right: 24px;
  }

  #mega-menu .column a {
    width: initial;
  }

  #mega-menu .column a,
  #navi-top #mega-menu .column ul li {
    border-top: none;
    border-bottom: none;
  }

  #dropdown-menu.open-mega-menu .dropdown-content,
  #logdown-menu.open-mega-menu .dropdown-content {
    left: 0;
    top: 50px;
    width: 100%;
    padding: 0;
  }

  #dropdown-menu.open-mega-menu .dropdown-content ul,
  #logdown-menu.open-mega-menu .dropdown-content ul {
    padding: 0 0 300px 0;
  }

  #dropdown-menu.open-mega-menu .dropdown-content ul:first-child li:first-child,
  #logdown-menu.open-mega-menu .dropdown-content ul:first-child li:first-child {
    border-top: none;
  }

  #dropdown-menu.open-mega-menu .dropdown-content ul a,
  #logdown-menu.open-mega-menu .dropdown-content ul a {
    padding: 15px 24px;
  }

  #dropdown-menu.open-mega-menu .dropbtn::after,
  #logdown-menu.open-mega-menu .dropbtn::after {
    content: url(../images/close.svg);
    position: absolute;
    right: 24px;
    top: 17px;
  }
}

@media screen and (max-width: 600px) {
  #mega-menu .column {
    width: calc(100% - 48px);
  }
}

@media screen and (max-width: 1340px) {
  #mega-menu.open-mega-menu .dropdown-content,
  #dropdown-menu.open-mega-menu .dropdown-content,
  #logdown-menu.open-mega-menu .dropdown-content {
    overflow: scroll;
    height: 100vh;
  }
}
