ヘッダー+ドロワーメニュー

ヘッダー+開閉メニュー。単一メニュー、アコーディオンメニューを選択可。

スマートフォン上の表示
パソコン上の表示

ソースコード

ソースコードである HTML および CSS を利用するページにコピーし、ご利用ください。

HTML

<header class="mfc-header-001-002-1 mf-width-fullexpand">
    <nav class="mfc-navbar fixed-top" role="navigation" aria-label="main navigation" id="header_gcmf">
        <div class="mfc-navbar-brand mfc-navbar-brand-center">
            <a class="mfc-navbar-item" href="#"><img alt="サイトタイトル" src="https://via.placeholder.com/320x100/e0e0e0/000000?text=SiteName"><span>サイトタイトル</span></a>
            <a role="button" class="mfc-navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="#header_menu">
                <span aria-hidden="true"></span>
                <span aria-hidden="true"></span>
                <span aria-hidden="true"></span>
            </a>
        </div>

        <div class="mfc-navbar-menu" id="header_menu">
            <div class="mfc-navbar-bg"><a data-target="#header_menu">></a></div>
            <div class="mfc-navbar-content">
                <div class="mfc-navbar-close"><a data-target="#header_menu"><span></span><span></span><span></span></a></div>
                <div class="mfc-navbar-content-inner">
                    <div class="mfc-navbar-start">
                        <div class="mfc-navbar-item has-dropdown is-hoverable">
                            <a class="mfc-navbar-link">Menu1</a>
                            <div class="mfc-navbar-dropdown">
                                <a class="mfc-navbar-item" href="#">Menu Item1</a>
                                <a class="mfc-navbar-item" href="#">Menu Item2</a>
                                <a class="mfc-navbar-item" href="#">Menu Item3</a>
                            </div>
                        </div>
                        <div class="mfc-navbar-item has-dropdown is-hoverable">
                            <a class="mfc-navbar-link">Menu2</a>
                            <div class="mfc-navbar-dropdown">
                                <a class="mfc-navbar-item" href="#">Menu Item1</a>
                                <a class="mfc-navbar-item" href="#">Menu Item2</a>
                                <a class="mfc-navbar-item" href="#">Menu Item3</a>
                            </div>
                        </div>
                        <div class="mfc-navbar-item has-dropdown is-hoverable">
                            <a class="mfc-navbar-link">Menu3</a>
                            <div class="mfc-navbar-dropdown">
                                <a class="mfc-navbar-item" href="#">Menu Item1</a>
                                <a class="mfc-navbar-item" href="#">Menu Item2</a>
                                <a class="mfc-navbar-item" href="#">Menu Item3</a>
                            </div>
                        </div>
                        <a class="mfc-navbar-item" href="#">Menu4</a>
                        <a class="mfc-navbar-item" href="#">Menu5</a>
                        <a class="mfc-navbar-item" href="#">Menu6</a>
                        <div class="mfc-navbar-end">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </nav>
</header>

以下のコードをbodyタグ内のできるだけ後ろに配置します。

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
  jQuery(function($) {
    var $header = $(".mfc-header-001-002-1");
    //nav
    var $nav = $header.find(".mfc-navbar");
    var headerHeight = $nav.prevAll().outerHeight();
    var navPosition = function() {
      var st = $(window).scrollTop();
      if (st > headerHeight) {
        $("body").css("padding-top",headerHeight);
        $nav.addClass("is-fixed-top");
      } else {
        $("body").css("padding-top",0);
        $nav.removeClass("is-fixed-top");
      }
    }
    $(window).scroll(navPosition);
    navPosition();

    var current_scrollY;

    $header.find(".mfc-navbar-burger, .mfc-navbar-close a, .mfc-navbar-bg a").on("click", function() {
      var $this = $(this);
      var $wrap = $("body");

      if (!$wrap.hasClass("mfc-navbar-open")) {
        current_scrollY = $(window).scrollTop();
        if ($nav.hasClass("is-fixed-top")) {
          current_scrollY = current_scrollY + headerHeight
        }
        $wrap.css({top: -1 * current_scrollY});
        $($this.data("target")).toggleClass("is-active");
        $wrap.toggleClass("mfc-navbar-open");
        $(".mfc-navbar-burger").hide();
      }else{
        $($this.data("target")).toggleClass("is-active");
        $wrap.toggleClass("mfc-navbar-open");
        $wrap.css({top:'auto'});
        $("html, body").scrollTop(current_scrollY);
        $(".mfc-navbar-burger").show();
        navPosition();
      }

    });

    //accordion
    $header.find(".mfc-navbar-item.has-dropdown").on("click", function() {
      var $this = $(this);
      $this.toggleClass("is-active");
      $this.find(".mfc-navbar-dropdown").slideToggle();
    });

  });
</script>

CSS

/* ---------------------------
    header-001-002-1
--------------------------- */
body.mfc-navbar-open {
  position: fixed;
  width: 100%;
}
.has-dropdown:not(.is-arrowless) .mfc-navbar-link::after {
  border-color: #000000;
  margin-top: -0.375em;
  right: 1.125em;
}
.has-dropdown:not(.is-arrowless).is-active .mfc-navbar-link::after {
  transform: rotate(135deg);
}
.has-dropdown:not(.is-arrowless) .mfc-navbar-dropdown {
  display: none;
}
.mfc-header-001-002-1 {
  background: #333333;
  min-height: auto;
  color: #fff;
  padding: 0;
  text-align: center;
  position: fixed;
  width: 100%;
  z-index: 10;
}
.mfc-header-001-002-1 .mfc-navbar {
  background-color: transparent;
}
.mfc-header-001-002-1 .mfc-navbar {
  background-color: white;
  min-height: 3.25rem;
  position: relative;
  z-index: 30;
}
.mfc-header-001-002-1 .mfc-navbar > .container {
  align-items: stretch;
  display: flex;
  min-height: 3.25rem;
  width: 100%;
}
.mfc-header-001-002-1 .mfc-navbar.has-shadow {
  box-shadow: 0 2px 0 0 whitesmoke;
}
.mfc-header-001-002-1 .mfc-navbar.is-fixed-bottom,
.mfc-header-001-002-1 .mfc-navbar.is-fixed-top {
  left: 0;
  position: fixed;
  right: 0;
  z-index: 30;
}
.mfc-header-001-002-1 .mfc-navbar.is-fixed-bottom {
  bottom: 0;
}
.mfc-header-001-002-1 .mfc-navbar.is-fixed-bottom.has-shadow {
  box-shadow: 0 -2px 0 0 whitesmoke;
}
.mfc-header-001-002-1 .mfc-navbar.is-fixed-top {
  top: 0;
}
.mfc-header-001-002-1 .mfc-navbar-brand,
.mfc-header-001-002-1 .mfc-navbar-tabs {
  align-items: stretch;
  display: flex;
  flex-shrink: 0;
  min-height: 3.25rem;
}
.mfc-header-001-002-1 .mfc-navbar-brand a.mfc-navbar-item:focus,
.mfc-header-001-002-1 .mfc-navbar-brand a.mfc-navbar-item:hover {
  background-color: transparent;
}
.mfc-header-001-002-1 .mfc-navbar-tabs {
  -webkit-overflow-scrolling: touch;
  max-width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
}
.mfc-header-001-002-1 .mfc-navbar-burger {
  color: #4a4a4a;
  cursor: pointer;
  display: block;
  height: 3.25rem;
  position: relative;
  width: 3.25rem;
  margin-left: auto;
}
.mfc-header-001-002-1 .mfc-navbar-burger span {
  background-color: currentColor;
  display: block;
  height: 1px;
  left: calc(50% - 8px);
  position: absolute;
  -webkit-transform-origin: center;
  transform-origin: center;
  transition-duration: 86ms;
  transition-property: background-color, opacity, -webkit-transform;
  transition-property: background-color, opacity, transform;
  transition-property: background-color, opacity, transform, -webkit-transform;
  transition-timing-function: ease-out;
  width: 16px;
}
.mfc-header-001-002-1 .mfc-navbar-burger span:nth-child(1) {
  top: calc(50% - 6px);
}
.mfc-header-001-002-1 .mfc-navbar-burger span:nth-child(2) {
  top: calc(50% - 1px);
}
.mfc-header-001-002-1 .mfc-navbar-burger span:nth-child(3) {
  top: calc(50% + 4px);
}
.mfc-header-001-002-1 .mfc-navbar-burger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.mfc-header-001-002-1 .mfc-navbar-burger.is-active span:nth-child(1) {
  -webkit-transform: translateY(5px) rotate(45deg);
  transform: translateY(5px) rotate(45deg);
}
.mfc-header-001-002-1 .mfc-navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}
.mfc-header-001-002-1 .mfc-navbar-burger.is-active span:nth-child(3) {
  -webkit-transform: translateY(-5px) rotate(-45deg);
  transform: translateY(-5px) rotate(-45deg);
}
.mfc-header-001-002-1 .mfc-navbar-menu {
  display: none;
}
.mfc-header-001-002-1 .mfc-navbar-item,
.mfc-header-001-002-1 .mfc-navbar-link {
  color: #4a4a4a;
  display: block;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  position: relative;
}
.mfc-header-001-002-1 .mfc-navbar-item .icon:only-child,
.mfc-header-001-002-1 .mfc-navbar-link .icon:only-child {
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}
.mfc-header-001-002-1 a.mfc-navbar-item,
.mfc-header-001-002-1 .mfc-navbar-link {
  cursor: pointer;
}
.mfc-header-001-002-1 a.mfc-navbar-item:focus,
.mfc-header-001-002-1 a.mfc-navbar-item:focus-within,
.mfc-header-001-002-1 a.mfc-navbar-item:hover,
.mfc-header-001-002-1 a.mfc-navbar-item.is-active,
.mfc-header-001-002-1 .mfc-navbar-link:focus,
.mfc-header-001-002-1 .mfc-navbar-link:focus-within,
.mfc-header-001-002-1 .mfc-navbar-link:hover,
.mfc-header-001-002-1 .mfc-navbar-link.is-active {
  background-color: #fafafa;
  color: #3273dc;
}
.mfc-header-001-002-1 .mfc-navbar-item {
  display: block;
  flex-grow: 0;
  flex-shrink: 0;
}
.mfc-header-001-002-1 .mfc-navbar-item img {
  max-height: 1.75rem;
}
.mfc-header-001-002-1 .mfc-navbar-item.has-dropdown {
  padding: 0;
}
.mfc-header-001-002-1 .mfc-navbar-item.is-expanded {
  flex-grow: 1;
  flex-shrink: 1;
}
.mfc-header-001-002-1 .mfc-navbar-item.is-tab {
  border-bottom: 1px solid transparent;
  min-height: 3.25rem;
  padding-bottom: calc(0.5rem - 1px);
}
.mfc-header-001-002-1 .mfc-navbar-item.is-tab:focus,
.mfc-header-001-002-1 .mfc-navbar-item.is-tab:hover {
  background-color: transparent;
  border-bottom-color: #3273dc;
}
.mfc-header-001-002-1 .mfc-navbar-item.is-tab.is-active {
  background-color: transparent;
  border-bottom-color: #3273dc;
  border-bottom-style: solid;
  border-bottom-width: 3px;
  color: #3273dc;
  padding-bottom: calc(0.5rem - 3px);
}
.mfc-header-001-002-1 .mfc-navbar-content {
  flex-grow: 1;
  flex-shrink: 1;
}
.mfc-header-001-002-1 .mfc-navbar-link:not(.is-arrowless) {
  padding-right: 2.5em;
}
.mfc-header-001-002-1 .mfc-navbar-link:not(.is-arrowless)::after {
  border-color: #3273dc;
  margin-top: -0.375em;
  right: 1.125em;
}
.mfc-header-001-002-1 .mfc-navbar-dropdown {
  font-size: 0.875rem;
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
}
.mfc-header-001-002-1 .mfc-navbar-dropdown .mfc-navbar-item {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.mfc-header-001-002-1 .mfc-navbar-divider {
  background-color: whitesmoke;
  border: none;
  display: none;
  height: 2px;
  margin: 0.5rem 0;
}
.mfc-header-001-002-1 .mfc-navbar > .container {
  display: block;
}
.mfc-header-001-002-1 .mfc-navbar-brand .mfc-navbar-item,
.mfc-header-001-002-1 .mfc-navbar-tabs .mfc-navbar-item {
  align-items: center;
  display: flex;
}
.mfc-header-001-002-1 .mfc-navbar-link::after {
  display: none;
}
.mfc-header-001-002-1 .mfc-navbar-menu {
  background-color: white;
  box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
  padding: 0.5rem 0;
}
.mfc-header-001-002-1 .mfc-navbar-menu.is-active {
  display: block;
}
.mfc-header-001-002-1 .mfc-navbar.is-fixed-bottom-touch,
.mfc-header-001-002-1 .mfc-navbar.is-fixed-top-touch {
  left: 0;
  position: fixed;
  right: 0;
  z-index: 30;
}
.mfc-header-001-002-1 .mfc-navbar.is-fixed-bottom-touch {
  bottom: 0;
}
.mfc-header-001-002-1 .mfc-navbar.is-fixed-bottom-touch.has-shadow {
  box-shadow: 0 -2px 3px rgba(10, 10, 10, 0.1);
}
.mfc-header-001-002-1 .mfc-navbar.is-fixed-top-touch {
  top: 0;
}
.mfc-header-001-002-1 .mfc-navbar.is-fixed-top .mfc-navbar-menu,
.mfc-header-001-002-1 .mfc-navbar.is-fixed-top-touch .mfc-navbar-menu {
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 3.25rem);
  overflow: auto;
}
.mfc-header-001-002-1 a {
  color: #2c2c2c;
}
.mfc-header-001-002-1 a:hover,
.mfc-header-001-002-1 a:visited,
.mfc-header-001-002-1 a:focus {
  color: #2c2c2c;
}
.mfc-header-001-002-1 .mfc-navbar-burger {
  align-items: flex-end;
}
.mfc-header-001-002-1 .mfc-navbar-burger span {
  background-color: #fff;
}
.mfc-header-001-002-1 .mfc-navbar-brand {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #333333;
}
.mfc-header-001-002-1 .mfc-navbar-brand {
  min-height: calc(3.25rem + 1px);
}
.mfc-header-001-002-1 .mfc-navbar-brand .mfc-navbar-item {
  overflow: hidden;
  padding: 0.5rem 0 0.5rem 1rem;
  align-items: center;
  text-decoration: none;
}
.mfc-header-001-002-1 .mfc-navbar-brand .mfc-navbar-item img {
  width: 100px;
}
.mfc-header-001-002-1 .mfc-navbar-brand .mfc-navbar-item span {
  margin-left: 1rem;
  color: #fff;
  font-size: 10px;
}
.mfc-header-001-002-1 .mfc-navbar-menu {
  display: block;
  position: fixed;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 16px;
  font-family: 'Noto Sans JP', 'Yu Gothic Medium', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
  z-index: 1100;
  top: 0;
  right: -100%;
  overflow: visible;
}
.mfc-header-001-002-1 .mfc-navbar-menu.is-active {
  right: 0;
}
.mfc-header-001-002-1 .mfc-navbar-menu.is-active .mfc-navbar-bg {
  opacity: 1;
  display: block;
}
.mfc-header-001-002-1 .mfc-navbar-menu.is-active .mfc-navbar-close a span {
  width: 20px;
  height: 2px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  transform-origin: center center;
}
.mfc-header-001-002-1 .mfc-navbar-menu.is-active .mfc-navbar-close a span:nth-of-type(1),
.mfc-header-001-002-1 .mfc-navbar-menu.is-active .mfc-navbar-close a span:nth-of-type(3) {
  left: 15px;
  top: 24px;
  transform: rotate(45deg);
}
.mfc-header-001-002-1 .mfc-navbar-menu.is-active .mfc-navbar-close a span:nth-of-type(2) {
  left: 15px;
  top: 24px;
  transform: rotate(-45deg);
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-bg {
  opacity: 0;
  transition: 0.4s;
  display: none;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.16);
  cursor: pointer;
  z-index: 1100;
  position: fixed;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-bg a {
  width: 100%;
  height: 100%;
  display: block;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-close a {
  background: #333333;
  position: absolute;
  left: -3.25rem;
  top: 0;
  width: 3.25rem;
  height: calc(3.25rem + 1px);
  margin: 0;
  padding: 7px 0 0 0;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 10px;
  text-align: center;
  cursor: pointer;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-close a::after {
  display: block;
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 10px;
  font-weight: 400;
  text-align: center;
  line-height: 1;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-close a span {
  background-color: #ffffff;
  height: 1px;
  left: calc(50% - 8px);
  position: absolute;
  -webkit-transform-origin: center;
  transform-origin: center;
  width: 16px;
  transition: all 0.3s ease-in-out;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-close a span:nth-child(1) {
  top: calc(50% - 6px);
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-close a span:nth-child(2) {
  top: calc(50% - 1px);
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-close a span:nth-child(3) {
  top: calc(50% + 4px);
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content {
  display: block;
  position: relative;
  margin: 0 0 0 3.25rem;
  padding: 0;
  box-sizing: border-box;
  z-index: 1101;
  background: #fff;
  height: 100%;
  border-left: #313131 1px solid;
  background-color: #333333;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner {
  overflow-y: auto;
  height: 100%;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start {
  border-bottom: #646464 1px solid;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .has-dropdown:not(.is-arrowless) .mfc-navbar-link:before,
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .has-dropdown:not(.is-arrowless) .mfc-navbar-link:after {
  display: block;
  content: '';
  background-color: #fff;
  position: absolute;
  width: 1rem;
  height: 2px;
  bottom: 50%;
  right: 10px;
  transition: 0.4s;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .has-dropdown:not(.is-arrowless) .mfc-navbar-link:before {
  width: 2px;
  height: 1rem;
  right: calc(1rem + 1px);
  transform: translateY(7px);
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .has-dropdown:not(.is-arrowless).is-active .mfc-navbar-link:after {
  width: 1rem;
  height: 2px;
  right: 10px;
  transform: none;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .has-dropdown:not(.is-arrowless).is-active .mfc-navbar-link:before {
  transform: translateY(7px) rotate(90deg);
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-item {
  min-height: 3.25rem;
  border-top: #646464 1px solid;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-item:first-child {
  border-top: 0;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-link {
  height: 3.25rem;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-item,
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-link {
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-item,
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-link,
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-item:hover,
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-link:hover,
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-item:focus,
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-link:focus,
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-item:visited,
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-link:visited,
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-item:active,
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-link:active {
  color: #fff;
  text-decoration: none;
  background-color: #333333;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-dropdown {
  padding: 0;
  width: 100%;
}
.mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .mfc-navbar-dropdown .mfc-navbar-item {
  background-color: #404040;
  padding-left: 2rem;
  width: 100%;
}
.mf-converted body.mfc-navbar-open {
  position: static;
}
.mf-converted .mfc-header-001-002-1 .mfc-navbar-brand {
  position: static;
}
.mf-converted .mfc-header-001-002-1 .mfc-navbar-menu {
  box-shadow: none;
  width: 400px;
  right: auto;
  left: 100%;
}
.mf-converted .mfc-header-001-002-1 .mfc-navbar-menu.is-active {
  left: calc(100% - 400px);
}
.mf-converted .mfc-header-001-002-1 .mfc-navbar-menu.is-active .mfc-navbar-bg {
  display: block;
  position: fixed;
}
.mf-converted .mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-bg {
  position: fixed;
  display: none;
}
.mf-converted .mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .has-dropdown:not(.is-arrowless) .mfc-navbar-link::after {
  right: calc(10px + 1rem);
}
.mf-converted .mfc-header-001-002-1 .mfc-navbar-menu .mfc-navbar-content .mfc-navbar-content-inner .mfc-navbar-start .has-dropdown:not(.is-arrowless) .mfc-navbar-link::before {
  right: calc(1px + 2rem);
}

バリエーション

PC向けレイアウト調整

mf-widthによる表示幅が指定できます。

コンテンツ幅
<header class="mfc-header-001-002-1 mf-width-expand">
       :
</header>