@charset "UTF-8";

/* ========================================
   マツシタホーム 共通ヘッダー
======================================== */

/* Cocoon標準ヘッダーを非表示 */
#header-container {
  display: none;
}

#mhome-header {
  width: 750px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  color: #666;
  line-height: 1;
}

.mhome-header-top {
  position: relative;
  width: 750px;
  height: 70px;
  margin: 0;
  padding: 0;
}

.mhome-logo {
  position: absolute;
  left: 0;
  top: 20px;
  width: 200px;
  height: 45px;
}

.mhome-logo a,
.mhome-logo img {
  display: block;
  width: 200px;
  height: 45px;
  margin: 0;
  padding: 0;
}

.mhome-logo a:hover {
  opacity: 0.6;
}

.mhome-header-right {
  position: static;
}

.mhome-header-text {
  position: absolute;
  right: 0;
  top: 20px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  white-space: nowrap;
}

.mhome-subnav {
  position: absolute;
  right: 0;
  bottom: 5px;
  display: flex;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.mhome-subnav a {
  margin: 0;
  padding: 0 5px;
  border-left: 1px solid #ccc;
  color: #666;
  font-size: 12px;
  text-decoration: none;
}

.mhome-subnav a:last-child {
  border-right: 1px solid #ccc;
}

.mhome-subnav a:hover {
  opacity: 0.6;
}

.mhome-global-nav {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.mhome-global-nav ul {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 10px 0 0;
  list-style: none;
  text-align: center;
}

.mhome-global-nav li {
  box-sizing: border-box;
  width: 20%;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ddd;
  border-right: 0;
  border-bottom: 5px solid #ddd;
}

.mhome-global-nav li:last-child {
  border-right: 1px solid #ddd;
}

.mhome-global-nav li:hover {
  border-bottom-color: #C42921;
}

.mhome-global-nav a {
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 20px 10px;
  color: #666;
  font-size: 14px;
  text-decoration: none;
}

.mhome-global-nav a:hover {
  opacity: 0.6;
}

/* PCではスマホ専用メニューを非表示 */
.mhome-menu-button,
.mhome-mobile-menu {
  display: none;
}

@media screen and (max-width: 834px) {

  #mhome-header {
    width: 100%;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
    background: #fff;
  }

  .mhome-header-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 59px;
    margin: 0;
    padding: 8px 55px 8px 0;
    box-sizing: border-box;
  }

  .mhome-logo {
    position: static;
    width: 155px;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .mhome-logo a,
  .mhome-logo img {
    display: block;
    width: 155px;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .mhome-header-right {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .mhome-header-text {
    display: none;
    position: static;
    margin: 4px 0 0;
    padding: 0;
    font-size: 10px;
    font-weight: normal;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
  }

  .mhome-subnav,
  .mhome-global-nav {
    display: none;
  }

  .mhome-menu-button {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 10;
  }

  .mhome-menu-button span {
    display: block;
    width: 32px;
    height: 2px;
    margin: 6px auto;
    padding: 0;
    background: #666;
    transition: transform 0.25s, opacity 0.25s;
  }

  .mhome-menu-button.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mhome-menu-button.is-open span:nth-child(2) {
    opacity: 0;
  }

  .mhome-menu-button.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mhome-mobile-menu {
    display: none;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
    border-top: 1px solid #ddd;
  }

  .mhome-mobile-menu.is-open {
    display: block;
  }

  .mhome-mobile-menu ul {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mhome-mobile-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #ddd;
  }

  .mhome-mobile-menu a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 12px;
    box-sizing: border-box;
    color: #444;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.3;
    text-decoration: none;
  }

  .mhome-mobile-menu a:hover {
    background: #f5f5f5;
  }

  .mhome-mobile-menu .contact-link a {
    color: #c42921;
    font-weight: bold;
  }

  .mhome-mobile-menu .sub-menu-start {
    border-top: 4px solid #eee;
  }
}
