body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0;
  font-feature-settings: normal;
}

body :is(h1, h2, h3, h4),
body[data-brand] :is(h1, h2, h3, h4) {
  font-weight: 700;
  letter-spacing: 0;
}

body :is(
  .page-intro > p:not(.eyebrow), .retail-hero-lead,
  .brand-hero-description, .reading-column, .reading-column p, .reading-column li,
  .article-body, .article-body p, .article-body li,
  .document-paper p, .document-paper li, .faq-answer, .faq-answer p,
  .brand-story p, .purpose-copy > p, .guide-card p, .aside-card p,
  .contact-intents p, .official-contact p, .method-card p,
  .sell-product p, .feature-tile p, .journal-card-body > p,
  .store-picker-detail p, .store-summary
) {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

body :is(
  .eyebrow, .chapter, .hero-kicker, .hero-products, .retail-intents p,
  .model-intents p, .model-hero-detail, .model-hero-visual figcaption span,
  .game-hero-visual figcaption span, .section-head p:not(.eyebrow),
  .breadcrumb, .breadcrumb .text-link, .price-notice, .price-condition,
  .price-status, .price-label, .photo-source-note, .store-notice,
  .journal-card-body time, .journal-card-body .post-store,
  .feature-tile time, .post-store, .tag, .live-status, .live-badge,
  .location-card dl, .store-detail dl, .store-source, .region-links a,
  .guide-index a, .contact-directory p, .footer-tagline,
  .footer-links, .footer-bottom, .brand-facts p,
  .game-price-card small, .retro-price-card small,
  .tournament-card dl
) {
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0;
}

/* 既存の注意書きには important があるため、同じ優先度で文字サイズを揃える。 */
body .quiet-note,
body .source-line {
  font-size: 14px !important;
  line-height: 1.8 !important;
  letter-spacing: 0;
}

body :is(.journal-toolbar, .price-tools, .store-picker) label {
  font-size: 14px;
  line-height: 1.8;
  font-weight: 500;
}

body input:not([type="checkbox"]):not([type="radio"]),
body select,
body textarea,
body :is(.journal-toolbar, .price-tools, .store-picker, .commerce-store-choice) :is(input, select, textarea) {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body :is(.text-link, .header-search, .mobile-menu a) {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
}

body .button,
body[data-brand] .button {
  min-height: 48px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
}

body .tournament-time {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
}

body .faq-item summary {
  font-size: 16px;
  line-height: 1.8;
}

body .primary-nav a {
  font-size: 14px;
  line-height: 1.7;
  white-space: nowrap;
}

body .primary-nav {
  gap: 18px;
  min-width: 0;
}

body .header-inner {
  gap: 24px;
}

body .header-actions {
  flex-shrink: 0;
  margin-left: auto;
}

body .header-search {
  min-height: 44px;
}

body .price-table .price-name b {
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

body .price-table .price-name small,
body .price-table .price-label,
body .price-value small {
  font-size: 14px;
  line-height: 1.8;
}

body .price-value,
body .price-table td.price-value,
body .price-table td .price-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

body :is(.game-price-card, .model-price-card) h2,
body[data-page="games"] .game-card-title h2 {
  font-size: 16px;
  line-height: 1.8;
}

body[data-page="games"] :is(
  .combined-game-sources p, .combined-game-sources .text-link,
  .game-card-source, .combined-game-card > .tag, .game-card-value small,
  .game-card-points, .game-card-date
) {
  font-size: 14px;
  line-height: 1.8;
}

.commerce-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.commerce-grid > .empty-state {
  grid-column: 1 / -1;
}

.commerce-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .16s, box-shadow .16s;
}

.commerce-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px #20252b0a;
}

.commerce-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.commerce-photo {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fff;
}

.commerce-photo img {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.commerce-card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.commerce-category,
.commerce-origin,
.commerce-go,
.commerce-status,
.commerce-note,
.commerce-store-choice > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.commerce-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.commerce-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: auto;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.commerce-price span {
  font-size: 14px;
  font-weight: 400;
}

.commerce-go {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.commerce-status {
  margin-bottom: 20px;
}

.commerce-status a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.commerce-note {
  max-width: 920px;
  margin-top: 20px;
}

.commerce-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

[data-brand="medio"] .commerce-channel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commerce-channel-grid > a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow-wrap: anywhere;
}

.commerce-channel-grid > a:hover {
  border-color: var(--accent);
}

.commerce-channel-grid > a > span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.commerce-channel-grid p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.commerce-tools {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: end;
}

.commerce-tools > label,
.commerce-store-choice > label {
  min-width: 0;
}

.commerce-store-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 24px;
  align-items: end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.commerce-store-choice > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.commerce-store-choice select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c8ced5;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 1100px) {
  body .header-inner {
    gap: 16px;
  }

  body .primary-nav {
    gap: 12px;
  }
}

@media (max-width: 1000px) {
  body .primary-nav {
    display: none;
  }

  body .menu-button {
    display: grid;
  }
}

@media (max-width: 700px) {
  .commerce-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .commerce-photo {
    padding: 0;
  }

  .commerce-photo img {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  .commerce-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .commerce-card-copy {
    padding: 16px;
  }

  .commerce-price {
    font-size: 22px;
  }

  .commerce-channel-grid,
  [data-brand="medio"] .commerce-channel-grid,
  .commerce-tools,
  .commerce-store-choice {
    grid-template-columns: minmax(0, 1fr);
  }

  .commerce-store-choice {
    gap: 16px;
    padding: 20px;
  }
}

@media (max-width: 640px) {
  body .mobile-dock a {
    min-height: 58px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
  }

  body .price-table tbody tr {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }

  body .price-table td:not(:first-child) {
    font-size: 14px;
    line-height: 1.8;
  }

  body .price-table td.price-value,
  body .price-table td .price-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
  }

  body .price-table td .price-label,
  body .price-table td .price-status {
    font-size: 14px;
    line-height: 1.8;
  }

  body .price-table .price-name {
    align-items: flex-start;
  }
}

@media (max-width: 359px) {
  .commerce-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body .price-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
  }

  body .price-table td:first-child {
    grid-column: auto;
  }

  body .price-table td:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .commerce-card {
    transition: none;
  }
}

body .preview-rail, body .moj-preview-label { font-size: 14px; line-height: 1.6; min-height: 36px; height: auto; }
.commerce-retry { margin: 12px 0 0 12px; }

body[data-brand="medio"] {
  --journal-surface: #eaf1f8;
  --card-outline: #73859c;
  --action-ink: #174f9b;
  --section-marker: #174f9b;
  --buyback-surface: #f3f6fa;
}

body[data-brand="ojamakan"] {
  --journal-surface: #f0ecd9;
  --card-outline: #8a7c50;
  --action-ink: #665011;
  --section-marker: #d0a82e;
  --buyback-surface: #fff8db;
}

body[data-brand] .home-journal {
  background: var(--journal-surface);
  border-top-color: var(--card-outline);
}

body[data-brand] :is(.journal-card, .feature-tile),
body[data-page="home"] :is(.sell-product, .commerce-card, .method-card) {
  border-color: var(--card-outline);
  box-shadow: none;
}

body[data-brand] :is(.journal-card, .feature-tile, .commerce-card):hover {
  border-color: var(--action-ink);
  box-shadow: none;
}

body[data-brand] :is(.journal-card, .feature-tile) .text-link,
body[data-brand] .home-journal .section-head > .text-link {
  color: var(--action-ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body[data-page="home"] :is(.sell-section, .method-section) {
  background: var(--buyback-surface);
}

body[data-page="home"] .commerce-shelf {
  background: #fff;
}

body[data-page="home"] :is(.sell-section, .commerce-shelf, .method-section) .section-head h2 {
  border-left: 4px solid var(--section-marker);
  padding-left: 14px;
}
