/* Shared mobile footer layout, including the 404 page. */
@media screen and (max-width: 768px) {
  #footer #certification.ver1 {
    height: auto;
  }
  #footer #certification.ver1 > .inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  #footer #certification.ver1 > .inner > a {
    display: block;
    width: 100%;
  }
  #footer #certification.ver1 .mark {
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 90px;
    float: none;
    margin: 0;
    padding: 0;
  }
  #footer #certification.ver1 .mark .img-wrap {
    float: none;
    flex: 0 0 80px;
    margin-right: 10px;
    padding-top: 0;
  }
  #footer #certification.ver1 .mark .img-wrap img {
    display: block;
    max-width: 80px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  #footer #certification.ver1 .mark p {
    flex: 1;
    position: static;
    transform: none;
  }
  #wrapper #footer .subnav .nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  #wrapper #footer .subnav .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    line-height: 1.5;
  }
  #wrapper #footer .subnav .nav-item > a {
    width: 100%;
  }
}
