:root {
  --fashion04-font-family: "Noto Sans JP", sans-serif;
}

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

body.fashion04-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(--fashion04-font-family) !important;
}

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

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

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

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

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

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

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

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

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

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

body.fashion04-theme .cart-popover {
  width: 480px;
  max-width: calc(100vw - 32px);
  color: var(--f4-ink, #111516);
  background: #fff;
}

/* This field has two children: the flexible input and a compact submit button. */
body.fashion04-theme .search-field {
  grid-template-columns: minmax(0, 1fr) 88px;
  min-width: 0;
  background: #fff;
  color: #111516;
}

body.fashion04-theme .search-field input {
  width: 100%;
  padding-inline: 14px;
  border: 0;
}

body.fashion04-theme .search-field button {
  min-width: 44px;
  color: #fff;
}

body.fashion04-theme .search-panel .search-form {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

/* Keep the normal field border without an extra focus frame around the input. */
body.fashion04-theme .search-panel .search-field:focus-within {
  border-color: #bbb;
  outline: 0;
  box-shadow: none;
}

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

@media (max-width: 600px) {
  body.fashion04-theme .search-panel .search-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  body.fashion04-theme .search-field {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
}

/* 共通フォントと商品画像の表示 */
body.fashion04-theme code,body.fashion04-theme kbd,body.fashion04-theme samp,body.fashion04-theme pre{font-family:var(--fashion04-font-family)}
body.fashion04-theme .product-card__media img,body.fashion04-theme .fashion04-detail-main-image,body.fashion04-theme .cart-item img{object-fit:contain}

body.fashion04-theme .f4-header .cart-wrap{position:relative;flex:none}
body.fashion04-theme .f4-header .search-panel{left:0;right:0;top:100%;background:#fff;color:#111}
body.fashion04-theme .f4-mega h2{font-size:18px;font-weight:700;border-bottom:1px solid #ddd;padding-bottom:8px}
body.fashion04-theme .f4-header .cart-count{color:white}
body.fashion04-theme .f4-news>.f4-section-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px}
body.fashion04-theme .f4-header-actions .icon-button{border:0;border-radius:0;color:inherit}
body.fashion04-theme .f4-header-actions .f4-icon-button:is(:hover,:focus-visible){color:#ff7441}
@media(max-width:600px){body.fashion04-theme .f4-header .cart-popover{position:fixed;top:120px;left:16px;right:16px;width:calc(100vw - 32px)}}

body.fashion04-theme.fashion04-home-page{background:#fff}
