/**
 * Novelumo Article Layouts: base
 * Scope: .novelumo-article.nla-root
 */

.novelumo-article.nla-root {
  --nla-color-primary: #1769e0;
  --nla-color-primary-dark: #173f73;
  --nla-color-accent: #f0a51a;
  --nla-color-text: #273444;
  --nla-color-muted: #667085;
  --nla-color-link: #0f62c9;
  --nla-color-border: #dce5f0;
  --nla-color-info-bg: #f3f8ff;
  --nla-color-good: #2f7d32;
  --nla-color-good-bg: #edf8ee;
  --nla-color-bad: #b42318;
  --nla-color-bad-bg: #fff1f0;
  --nla-color-text-key: #c62828;
  --nla-color-text-negative: #245a96;
  --nla-color-marker: #fff176;
  --nla-space-section: 64px;
  --nla-space-component: 40px;
  --nla-radius: 12px;
  color: var(--nla-color-text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.novelumo-article.nla-root,
.novelumo-article.nla-root *,
.novelumo-article.nla-root *::before,
.novelumo-article.nla-root *::after {
  box-sizing: border-box;
}

.novelumo-article.nla-root p {
  margin: 0 0 1.45em;
}

.novelumo-article.nla-root > :last-child,
.novelumo-article.nla-root .nla-section > :last-child {
  margin-bottom: 0;
}

.novelumo-article.nla-root h2 {
  margin: var(--nla-space-section) 0 40px;
  padding: 17px 20px 17px 24px;
  border: 0;
  border-left: 7px solid var(--nla-color-accent);
  border-radius: 9px;
  background: var(--nla-color-primary-dark);
  color: #fff;
  font-size: clamp(25px, 2.1vw, 27px);
  font-weight: 700;
  line-height: 1.45;
}

.novelumo-article.nla-root h3 {
  margin: 52px 0 22px;
  padding: 10px 14px 10px 18px;
  border: 0;
  border-left: 5px solid var(--nla-color-primary);
  border-radius: 0 7px 7px 0;
  background: #e8f1fb;
  color: #0b1f3a;
  font-size: clamp(20px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.55;
}

.novelumo-article.nla-root h4 {
  margin: 38px 0 18px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--nla-color-border);
  color: #17324f;
  font-size: 1.08em;
  font-weight: 700;
  line-height: 1.6;
}

.novelumo-article.nla-root ul:not([class]),
.novelumo-article.nla-root ol:not([class]) {
  margin: 24px 0 30px;
  padding-left: 1.6em;
}

.novelumo-article.nla-root li + li {
  margin-top: 0.55em;
}

.novelumo-article.nla-root p a,
.novelumo-article.nla-root li a {
  color: var(--nla-color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.novelumo-article.nla-root img {
  max-width: 100%;
  height: auto;
}

.novelumo-article.nla-root strong {
  font-weight: 700;
}

.novelumo-article.nla-root .nla-emphasis {
  font-weight: 700;
}

.novelumo-article.nla-root .nla-emphasis--key {
  color: var(--nla-color-text-key);
}

.novelumo-article.nla-root .nla-emphasis--negative {
  color: var(--nla-color-text-negative);
  text-decoration: none;
}

.novelumo-article.nla-root .nla-marker {
  padding: 0 0.08em;
  background: linear-gradient(transparent 58%, var(--nla-color-marker) 58%);
  color: inherit;
}

.novelumo-article.nla-root .nla-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* THE THORの本文内目次：細すぎない中程度の太さに限定調整 */
.content .outline,
.content .outline a,
.content .outline button {
  font-weight: 600 !important;
}

@media (max-width: 767px) {
  .novelumo-article.nla-root {
    --nla-space-section: 48px;
    --nla-space-component: 32px;
    font-size: 16px;
    line-height: 1.85;
  }

  .novelumo-article.nla-root h2 {
    margin-bottom: 30px;
    padding: 14px 15px 14px 18px;
    border-left-width: 6px;
    font-size: clamp(22px, 6vw, 24px);
  }

  .novelumo-article.nla-root h3 {
    margin-top: 40px;
    margin-bottom: 18px;
    padding: 9px 11px 9px 14px;
    font-size: clamp(19px, 5.3vw, 21px);
  }

  .novelumo-article.nla-root h4 {
    margin-top: 32px;
  }
}

@media print {
  .novelumo-article.nla-root {
    color: #000;
    font-size: 11pt;
  }

  .novelumo-article.nla-root h2,
  .novelumo-article.nla-root h3 {
    break-after: avoid;
    color: #000;
    background: #fff;
    border-color: #555;
  }

  .novelumo-article.nla-root .nla-marker {
    background: transparent;
    text-decoration: underline;
  }
}
