/* M'S STYLE header/footer for EC-CUBE 2.13.5
   PC/SP display is explicitly separated to avoid theme CSS conflicts. */
#ms-ec-header, #ms-ec-footer,
#ms-ec-header *, #ms-ec-footer * { box-sizing: border-box; }
#ms-ec-header ul, #ms-ec-header li,
#ms-ec-footer ul, #ms-ec-footer li { margin: 0; padding: 0; list-style: none; }
#ms-ec-header a, #ms-ec-footer a { color: inherit; text-decoration: none; }

#ms-ec-header.ms-ec-header {
  position: relative;
  z-index: 10000;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #ececec;
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
#ms-ec-header .ms-ec-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(1200px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
}
#ms-ec-header .ms-ec-header__logo {
  display: block;
  flex: 0 0 190px;
  width: 190px;
  height: 35px;
  margin: 0 42px 0 0;
  line-height: 0;
}
#ms-ec-header .ms-ec-header__logo img {
  display: block;
  width: 190px !important;
  max-width: 190px !important;
  height: 35px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: contain;
}
#ms-ec-header .ms-ec-global-nav {
  display: block;
  flex: 1 1 auto;
  width: auto;
  margin: 0;
  padding: 0;
}
#ms-ec-header .ms-ec-global-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: 100%;
}
#ms-ec-header .ms-ec-global-nav__list > li { position: relative; }
#ms-ec-header .ms-ec-global-nav__list > li > a,
#ms-ec-header .ms-ec-submenu-button {
  display: flex;
  align-items: center;
  min-height: 88px;
  margin: 0;
  padding: 0 10px;
  color: #30343d;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
}
#ms-ec-header .ms-ec-global-nav__list > li > a:hover,
#ms-ec-header .ms-ec-submenu-button:hover { opacity: .58; }
#ms-ec-header .ms-ec-submenu-button::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -4px 0 0 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
#ms-ec-header .ms-ec-submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  z-index: 30;
  display: block;
  min-width: 230px;
  padding: 10px 0;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
#ms-ec-header .ms-ec-nav-parent:hover > .ms-ec-submenu,
#ms-ec-header .ms-ec-nav-parent:focus-within > .ms-ec-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
#ms-ec-header .ms-ec-submenu a {
  display: block;
  padding: 11px 18px;
  color: #30343d;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}
#ms-ec-header .ms-ec-submenu a:hover { background: #f7f7f7; }

/* SP menu button: hidden on PC with high specificity and !important */
#ms-ec-header .ms-ec-menu-button,
#ms-ec-header button.ms-ec-menu-button,
body #ms-ec-header .ms-ec-menu-button {
  display: none !important;
  visibility: hidden !important;
}

#ms-ec-footer.ms-ec-footer {
  width: 100%;
  margin: 60px 0 0;
  color: #30343d;
  background: #f7f7f7;
  border-top: 1px solid #e9e9e9;
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
#ms-ec-footer .ms-ec-footer__inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 36px;
}
#ms-ec-footer .ms-ec-footer__brand { margin: 0 0 32px; line-height: 0; }
#ms-ec-footer .ms-ec-footer__brand img {
  display: block;
  width: 190px !important;
  max-width: 190px !important;
  height: 35px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: contain;
}
#ms-ec-footer .ms-ec-footer__contents {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 42px;
}
#ms-ec-footer .ms-ec-footer__section h2 {
  margin: 0 0 13px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#ms-ec-footer .ms-ec-footer__section p,
#ms-ec-footer .ms-ec-footer__section li {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.8;
}
#ms-ec-footer a:hover { opacity: .58; }
#ms-ec-footer .ms-ec-social { display: flex; flex-wrap: wrap; gap: 8px 18px; }
#ms-ec-footer .ms-ec-social a { border-bottom: 1px solid #bfc1c5; }
#ms-ec-footer .ms-ec-footer__copyright {
  padding: 17px 20px;
  color: #767b84;
  border-top: 1px solid #e1e1e1;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

#container, #wrapper { min-width: 0 !important; }

@media screen and (max-width: 1100px) and (min-width: 992px) {
  #ms-ec-header .ms-ec-header__inner { width: calc(100% - 24px); }
  #ms-ec-header .ms-ec-header__logo { margin-right: 18px; }
  #ms-ec-header .ms-ec-global-nav__list > li > a,
  #ms-ec-header .ms-ec-submenu-button { padding-right: 6px; padding-left: 6px; font-size: 11px; }
}

@media screen and (max-width: 991px) {
  #ms-ec-header .ms-ec-header__inner {
    width: 100%;
    min-height: 68px;
    padding: 0 16px;
  }
  #ms-ec-header .ms-ec-header__logo {
    flex-basis: 152px;
    width: 152px;
    height: 28px;
    margin: 0;
  }
  #ms-ec-header .ms-ec-header__logo img {
    width: 152px !important;
    max-width: 152px !important;
    height: 28px !important;
  }
  #ms-ec-header .ms-ec-menu-button,
  #ms-ec-header button.ms-ec-menu-button,
  body #ms-ec-header .ms-ec-menu-button {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    display: flex !important;
    visibility: visible !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
    cursor: pointer;
  }
  #ms-ec-header .ms-ec-menu-button__line {
    display: block !important;
    width: 25px !important;
    height: 1px !important;
    margin: 3px 0 !important;
    padding: 0 !important;
    background: #30343d !important;
    border: 0 !important;
    transition: transform .2s ease, opacity .2s ease;
  }
  #ms-ec-header .ms-ec-menu-button[aria-expanded="true"] .ms-ec-menu-button__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #ms-ec-header .ms-ec-menu-button[aria-expanded="true"] .ms-ec-menu-button__line:nth-child(2) { opacity: 0; }
  #ms-ec-header .ms-ec-menu-button[aria-expanded="true"] .ms-ec-menu-button__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  #ms-ec-header .ms-ec-global-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    width: 100%;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  #ms-ec-header .ms-ec-global-nav.is-open { display: block; }
  #ms-ec-header .ms-ec-global-nav__list { display: block; padding: 8px 18px 20px; }
  #ms-ec-header .ms-ec-global-nav__list > li > a,
  #ms-ec-header .ms-ec-submenu-button {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 0;
    padding: 14px 4px;
    border-bottom: 1px solid #ededed;
    font-size: 13px;
    text-align: left;
  }
  #ms-ec-header .ms-ec-submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 6px 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  #ms-ec-header .ms-ec-nav-parent.is-open > .ms-ec-submenu { display: block; }
  #ms-ec-header .ms-ec-submenu a { padding: 10px 4px; white-space: normal; }
  #ms-ec-footer .ms-ec-footer__contents { grid-template-columns: 1fr; gap: 25px; }
}

@media screen and (max-width: 480px) {
  #ms-ec-footer .ms-ec-footer__inner { width: calc(100% - 32px); padding-top: 34px; }
  #ms-ec-footer .ms-ec-footer__brand img {
    width: 152px !important;
    max-width: 152px !important;
    height: 28px !important;
  }
}
