/* Club Carry Japanese Edition Typography & Mobile Refinements */
html[lang="ja"] body {
  font-family: "Manrope", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  font-feature-settings: "palt" 1;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 82, 59, 0.25);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lang-pill:hover {
  background: rgba(20, 82, 59, 0.08);
  border-color: rgba(20, 82, 59, 0.45);
}

html[data-theme="radar"] .lang-pill {
  border-color: rgba(214, 184, 124, 0.35);
}

.jp-spec-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid #14523b;
  background: rgba(20, 82, 59, 0.055);
  font-size: 0.92rem;
  line-height: 1.72;
}

html[data-theme="radar"] .jp-spec-callout {
  border-left-color: #d6b87c;
  background: rgba(214, 184, 124, 0.08);
}

.ja-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ja-bar-svg {
  flex: 1;
  min-width: 72px;
  height: 8px;
  display: block;
  color: #14523b;
}

html[data-theme="radar"] .ja-bar-svg {
  color: #52b788;
}

.bag tr.is-cover-club {
  background: rgba(20, 82, 59, 0.09);
}

html[data-theme="radar"] .bag tr.is-cover-club {
  background: rgba(82, 183, 136, 0.15);
}

.ja-measured-input {
  width: 96px;
  padding: 6px 8px;
  border: 1px solid rgba(20, 82, 59, 0.28);
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
}

.ja-delta-pos {
  color: #146c43;
  font-weight: 700;
  margin-left: 8px;
  font-size: 0.86rem;
}

.ja-delta-neg {
  color: #b02a37;
  font-weight: 700;
  margin-left: 8px;
  font-size: 0.86rem;
}

html[data-theme="radar"] .ja-delta-pos { color: #75d6a3; }
html[data-theme="radar"] .ja-delta-neg { color: #ff8b94; }

.presets.ja-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.stage-grid > *,
.fit-grid > *,
.studio-spread > *,
.controls,
.results,
.ledger-band,
.reference-area {
  min-width: 0;
}

@media (max-width: 720px) {
  html[lang="ja"],
  html[lang="ja"] body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  .site-header {
    padding-inline: 14px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .brand small.brand-tag {
    display: none;
  }
  .header-tools {
    gap: 6px;
  }
  .lang-pill,
  .theme-switch {
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  .cockpit-masthead h1 {
    font-size: clamp(1.62rem, 6.6vw, 2.15rem);
  }
  .console-top,
  .vernier-head,
  .quick {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .matrix-frame,
  .fit-card {
    overflow-x: auto;
    max-width: 100%;
  }
  .bagtag-preview-frame canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .ja-bar-svg {
    display: none;
  }
}
