/* ===== Webフォント（Google Fonts 公式CDN） ===== */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap");

:root {
  --font-jp-serif: "Noto Sans JP", "Shioukan Noto Sans JP", "Yu Gothic", "YuGothic",
    "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-jp-sans: "Noto Sans JP", "Shioukan Noto Sans JP", "Yu Gothic", "YuGothic",
    "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

/* ===== 全体の文字組み ===== */
/* Shared typography system for every renewed page. */
:root {
  --type-body-weight: 400;
  --type-action-weight: 500;
  --type-heading-weight: 600;
  --type-strong-weight: 600;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  font-family: var(--font-jp-sans);
  font-weight: var(--type-body-weight);
}

body p,
body dd,
body td,
body figcaption {
  font-weight: var(--type-body-weight) !important;
}

body a,
body button,
body input,
body select,
body textarea {
  font-family: var(--font-jp-sans) !important;
  font-weight: var(--type-action-weight) !important;
}

/* ナビゲーション・主要UI要素のゴシック体保証 */
.global,
.global a,
.global-primary a,
.global-discovery a,
.header a,
.member a,
.side a,
.side h2,
.footer,
.footer a {
  font-family: var(--font-jp-sans) !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body th,
body h1 a,
body h2 a,
body h3 a,
body h4 a,
body h5 a,
body h6 a {
  font-family: var(--font-jp-sans);
  font-weight: var(--type-heading-weight) !important;
}

body strong,
body b {
  font-weight: var(--type-strong-weight) !important;
}

/* Parent rows in the discovery menu share one visual weight, whether link or accordion. */
.side-discovery .side-feature-links > li > a,
.side-discovery .side-feature-links > li > details > summary {
  color: #332a27;
  font-weight: var(--type-heading-weight) !important;
}

/* Product-card typography: shared by every category and search-result page. */
body .search-product,
body .search-product a,
body .search-product button {
  font-family: var(--font-jp-sans);
}

body .search-product__body h2,
body .search-product__body h2 a {
  font-size: 0.9375rem;
  line-height: 1.65;
  font-weight: var(--type-action-weight) !important;
}

body .search-product__price {
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: var(--type-body-weight) !important;
}

body .search-product__meta,
body .search-product__shipping,
body .search-product__special {
  font-size: 0.75rem;
  line-height: 1.6;
  font-weight: var(--type-body-weight) !important;
}

body .search-product__bulk-discount,
body .search-product__discount {
  font-size: 0.6875rem;
  line-height: 1.5;
  font-weight: var(--type-body-weight) !important;
}

body .search-product__actions a,
body .search-product__actions span[aria-disabled="true"],
body .search-product__favorite {
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: var(--type-action-weight) !important;
}
