:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: #f6f7fb;
  color: #1a1a1a;
}

.variant-compare {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.nw-header,.input-panel,.preset-panel,.result-summary,.difference-hints,.variant-card,.risk-panel,.reference-links,.nw-footer {
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.nw-lang-switch { display:flex; gap:8px; margin-bottom:10px; }
.nw-lang-btn { border:1px solid #9bb0d7; background:#fff; border-radius:6px; padding:6px 10px; cursor:pointer; }
.nw-lang-btn.active { background:#204a9a; color:#fff; }
.ad-slot { text-align:center; border:1px dashed #bcc8e4; padding:10px; margin-bottom:14px; border-radius:8px; }

textarea { width:100%; padding:10px; border:1px solid #b8c4df; border-radius:8px; font-size:16px; }
.copy-actions, .preset-buttons { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
button { border:1px solid #6886c8; background:#f4f7ff; color:#173d85; border-radius:8px; padding:8px 12px; cursor:pointer; }

.comparison-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:12px; }
.glyph-large { font-size:56px; line-height:1.1; text-align:center; padding:8px 0; }
.glyph-font-grid,.code-grid { display:grid; gap:6px; }
.glyph-font-row,.code-row { display:grid; grid-template-columns: 110px 1fr; gap:6px; align-items:start; }
.code-row code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.glyph-serif { font-family: "Times New Roman", "Noto Serif JP", serif; }
.glyph-sans { font-family: "Helvetica Neue", "Noto Sans JP", sans-serif; }
.glyph-system { font-family: system-ui, sans-serif; }

.compatibility-note { margin-top:8px; padding:8px; border-left:4px solid #8d5b00; background:#fff8e8; }
.risk-panel { border-color: #d49800; background:#fff9ea; }
.privacy-note { font-size: 0.95rem; color:#333; }
.toast { position: fixed; right: 12px; bottom: 12px; background:#1f3e82; color:#fff; padding:8px 12px; border-radius:8px; opacity:0; pointer-events:none; transition:opacity .2s; }
.toast.show { opacity:1; }

@media (max-width: 360px) {
  .variant-compare { padding: 10px; }
  .glyph-font-row,.code-row { grid-template-columns: 1fr; }
  .glyph-large { font-size: 48px; }
  button { width: 100%; }
}

.okj-pro-panel { background:#fff; border:1px solid #d8deea; border-radius:12px; padding:14px; margin:12px 0; }
.okj-pro-badge { font-weight:700; margin:0 0 6px; }
.okj-pro-price { margin:0 0 10px; font-weight:600; }
.okj-pro-panel__features { border:1px solid #e5e7eb; border-radius:10px; padding:10px; margin-bottom:10px; overflow-wrap:anywhere; }
.okj-pro-locked-button[disabled] { opacity:.7; cursor:not-allowed; width:100%; }
.okj-pro-panel__note { margin:10px 0 0; font-size:.92rem; }
