:root {
  --electronic01-font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

body.electronic01-theme {
  --font: var(--electronic01-font-family);
  --sans: var(--electronic01-font-family);
  --serif: var(--electronic01-font-family);
  --bs-font-sans-serif: var(--electronic01-font-family);
  --bs-body-font-family: var(--electronic01-font-family);
  font-family: var(--electronic01-font-family);
}

body.electronic01-theme *:not(.material-symbols-outlined):not(.fa):not(.fas):not(.far):not(.fab):not(.bi):not(code):not(kbd):not(samp):not(pre) {
  font-family: var(--electronic01-font-family) !important;
}

body.electronic01-theme .ec-layoutRole,
body.electronic01-theme .ec-layoutRole__header,
body.electronic01-theme .ec-layoutRole__footer,
body.electronic01-theme .ec-layoutRole__legacy-wrapper,
body.electronic01-theme .ec-layoutRole__adaptive,
body.electronic01-theme .ec-layoutRole__contents,
body.electronic01-theme .ec-layoutRole__main {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

body.electronic01-theme .ec-layoutRole__adaptive {
  display: block;
}

body.electronic01-theme .ec-layoutRole__main::before,
body.electronic01-theme .ec-layoutRole__main::after {
  display: none;
}

body.electronic01-theme .new-nav-wrap {
  position: static;
}

body.electronic01-theme .mega-menu__inner {
  max-height: min(640px, calc(100vh - 124px));
  overflow-x: hidden;
  overflow-y: auto;
}

body.electronic01-theme .menu-category {
  border-top: 0;
}

body.electronic01-theme .menu-category h3 {
  margin: 0;
  font-size: 15px;
}

body.electronic01-theme .menu-category h3 a {
  min-height: 52px;
  display: flex;
  align-items: center;
}

body.electronic01-theme .menu-category ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

body.electronic01-theme .menu-category > ul > li > a {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: #555;
  font-size: 13px;
}

body.electronic01-theme .article-dialog {
  width: min(960px, calc(100% - 48px));
}

body.electronic01-theme .article-dialog.journal-dialog {
  padding: 0;
}

body.electronic01-theme .article-dialog-content {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #4f4f4f;
  font-size: 14px;
  line-height: 2;
}

body.electronic01-theme .cart-popover {
  width: 420px;
}

/* The open search field uses its dark border as the focus state. Suppress the
   browser/Tailwind ring on the nested input so it does not draw a second blue outline. */
body.electronic01-theme .search-panel .search-field:focus-within {
  border-color: #222;
  box-shadow: none;
}

body.electronic01-theme .search-panel .search-field input:focus,
body.electronic01-theme .search-panel .search-field input:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  body.electronic01-theme .article-dialog {
    width: calc(100% - 28px);
  }

  body.electronic01-theme .cart-popover {
    width: calc(100vw - 20px);
  }
}
