/* Karukku article headings. Keep headings as editable, semantic text. */
:is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) :is(h2,h3,h4) {
  position: relative;
  box-sizing: border-box;
  color: #183249;
  font-family: 'Karukku Noto','Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;
  font-style: normal;
  letter-spacing: .025em;
  line-height: 1.65;
  text-align: start;
  overflow-wrap: anywhere;
  border-radius: 0;
  box-shadow: none;
  scroll-margin-top: 150px;
}
:is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h2 {
  margin: 52px auto 22px;
  padding: 19px 52px 19px 22px;
  border: 0;
  border-inline-start: 4px solid #0066ff;
  background: #f1f6ff;
  font-size: 24px;
  font-weight: 800;
}
:is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h2::before {
  content: '';
  position: absolute;
  inset: 0 auto auto -4px;
  display: block;
  width: 4px;
  height: 20px;
  margin: 0;
  border: 0;
  background: #f0242c;
  transform: none;
}
:is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h2::after {
  content: '';
  position: absolute;
  inset: 25px 18px auto auto;
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='44 7 20 20'%3E%3Cpath d='M54 7C55 13 58 16 64 17C58 18 55 21 54 27C53 21 50 18 44 17C50 16 53 13 54 7Z' fill='%230066ff'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: none;
  pointer-events: none;
}
:is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h3 {
  margin: 34px auto 16px;
  padding: 0 0 12px 17px;
  border: 0;
  border-bottom: 1px solid #cbd9e7;
  background: none;
  font-size: 20px;
  font-weight: 700;
}
:is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h3::before {
  content: '';
  position: absolute;
  inset: .3em auto auto 0;
  display: block;
  width: 3px;
  height: 1.05em;
  margin: 0;
  border: 0;
  background: #0066ff;
  transform: none;
}
:is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h3::after {
  content: '';
  position: absolute;
  inset: auto auto -1px 0;
  display: block;
  width: 42px;
  height: 2px;
  margin: 0;
  border: 0;
  background: #0066ff;
  transform: none;
}
:is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h4 {
  margin: 28px auto 12px;
  padding: 0 0 0 15px;
  border: 0;
  background: none;
  font-size: 18px;
  font-weight: 700;
}
:is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h4::before {
  content: '';
  position: absolute;
  inset: .32em auto auto 0;
  display: block;
  width: 3px;
  height: 1em;
  margin: 0;
  border: 0;
  background: #f0242c;
  transform: none;
}
:is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h4::after { content: none; }

/* Use the same reading column for the title and article body. */
body.sg-wp .sg-native > .page-head {
  position: relative;
  max-width: 840px;
  margin: 0 auto 28px;
  padding: 34px 0 28px;
  border-bottom: 1px solid #dce5ee;
}
body.sg-wp .sg-native > .page-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 82px;
  height: 3px;
  background: linear-gradient(to right,#f0242c 0 24px,#0066ff 24px);
}
body.sg-wp .sg-native > .page-head h1 {
  max-width: none;
  font-size: 32px;
  line-height: 1.65;
  letter-spacing: .02em;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
body.sg-wp .sg-native > .page-head .eyebrow { color: #0066ff; }
/* A shared call-to-action is not an article subsection. */
body.sg-wp .sg-native .article-body .inline-cta h3 {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
}
body.sg-wp .sg-native .article-body .inline-cta h3::before,
body.sg-wp .sg-native .article-body .inline-cta h3::after { content: none; }

@media (max-width:700px) {
  :is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h2 {
    font-size: 21px;
    margin: 38px auto 18px;
    padding: 16px 38px 16px 15px;
    line-height: 1.6;
  }
  :is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h2::after {
    top: 22px;
    right: 12px;
    width: 14px;
    height: 14px;
  }
  :is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h3 {
    font-size: 19px;
    margin: 28px auto 14px;
    padding-bottom: 10px;
  }
  :is(body.sg-wp .sg-native .article-body, body.single-post .post_content, .editor-styles-wrapper) h4 {
    font-size: 17px;
    margin: 24px auto 12px;
  }
  body.sg-wp .sg-native > .page-head { padding: 18px 0 23px; margin-bottom: 23px; }
  body.sg-wp .sg-native > .page-head h1 { font-size: 26px; line-height: 1.55; }
}
@media print {
  :is(body.sg-wp .sg-native .article-body, body.single-post .post_content) :is(h2,h3,h4) {
    break-after: avoid;
    background: none;
  }
}
