/* ===== 制作事例ページの型 sg-work ===== */
.sg-work { max-width: 820px; margin: 0 auto; color: #333; font-size: 16px; line-height: 1.9; }
.sg-work p { margin: 0 0 1.4em; }
.sg-work img { display: block; width: 100%; height: auto; border-radius: 10px; }
.sg-work__hero { margin: 0 0 28px; }
.sg-work__lead { font-size: 18px; font-weight: 700; color: #1f2d5a; line-height: 1.8; }

/* 見出し（テーマの飾りを消す） */
body .sg-work h2, body .sg-work h3 { background: none; border: 0; padding: 0; }
body .sg-work h2::before, body .sg-work h2::after,
body .sg-work h3::before, body .sg-work h3::after { content: none; }
body .sg-work h2 {
  margin: 64px 0 20px; padding: 14px 18px; border-left: 6px solid #1f2d5a;
  background: linear-gradient(90deg, #eef1f7, #fff); font-size: 23px; line-height: 1.5; color: #1f2d5a;
}
body .sg-work h3 {
  margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #1f2d5a;
  font-size: 19px; color: #1f2d5a;
}
.sg-work__marker { background: linear-gradient(transparent 60%, #fbe0c6 60%); font-weight: 700; }

/* 概要表 */
.sg-work__spec { display: grid; grid-template-columns: 8em 1fr; margin: 0 0 32px; border-top: 1px solid #dde1ea; font-size: 15px; }
.sg-work__spec dt, .sg-work__spec dd { margin: 0; padding: 10px 12px; border-bottom: 1px solid #dde1ea; }
.sg-work__spec dt { background: #f4f6fa; color: #1f2d5a; font-weight: 700; }

/* ポイント枠 */
.sg-work__points { margin: 0 0 32px; padding: 22px 24px; border-left: 5px solid #1f2d5a; background: #f4f6fa; border-radius: 0 10px 10px 0; }
body .sg-work .sg-work__points-title { margin: 0 0 10px; font-weight: 700; color: #1f2d5a; }
body .sg-work .sg-work__point { position: relative; z-index: 0; margin: 0 0 6px; padding-left: 2em; }
.sg-work__point span { position: absolute; z-index: 1; left: 0; top: 0.25em; width: 1.5em; height: 1.5em; border-radius: 50%; background: #c8702f; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.5em; text-align: center; }

/* 画像 */
.sg-work__fig { margin: 28px auto; }
.sg-work__fig--s { max-width: 400px; }
.sg-work__fig--m { max-width: 600px; }
.sg-work__fig figcaption { margin-top: 8px; font-size: 13px; color: #777; text-align: center; }

/* 関連リンク */
.sg-work__related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 0; }
body .sg-work .sg-work__related a {
  display: block; padding: 16px; border: 1px solid #dde1ea; border-radius: 10px; background: #fff;
  color: #1f2d5a; font-size: 14px; font-weight: 700; line-height: 1.6; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
body .sg-work .sg-work__related a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(31,45,90,0.12); }
.sg-work__related small { display: block; margin-bottom: 4px; color: #c8702f; font-size: 12px; }

/* CTA */
.sg-work__cta { margin: 64px 0 24px; padding: 32px 24px; border-radius: 12px; background: #1f2d5a; color: #fff; text-align: center; }
body .sg-work .sg-work__cta p { margin: 0 0 18px; color: #fff; }
body .sg-work .sg-work__cta-btn {
  display: inline-block; padding: 14px 36px; border-radius: 999px; background: #c8702f;
  color: #fff; font-weight: 700; text-decoration: none; transition: transform 0.2s;
}
body .sg-work .sg-work__cta-btn:hover { transform: translateY(-2px); }
.sg-work__next { font-size: 14px; color: #555; text-align: center; }
body .sg-work .sg-work__next a { color: #c8702f; font-weight: 700; }

@media (max-width: 781px) {
  .sg-work { font-size: 15px; }
  body .sg-work h2 { font-size: 20px; margin-top: 48px; }
  .sg-work__spec { grid-template-columns: 6.5em 1fr; font-size: 14px; }
  .sg-work__related { grid-template-columns: 1fr; }
  .sg-work__cta { padding: 26px var(--sg-sp-pad, 12px); }
}

/* Emanonの見出し飾りを強制的に消す */
html body .sg-work h2::before,
html body .sg-work h2::after,
html body .sg-work h3::before,
html body .sg-work h3::after {
  content: none !important;
  display: none !important;
}
html body .sg-work h2,
html body .sg-work h3 {
  box-shadow: none !important;
  background-image: none;
}
html body .sg-work h2 {
  background: linear-gradient(90deg, #eef1f7, #fff) !important;
}

/* h2：文字を線の上下まん中にそろえる */
html body .sg-work h2 {
  display: flex !important;
  align-items: center;
  min-height: 56px;
  margin: 64px 0 20px !important;
  padding: 12px 18px !important;
  border: 0 !important;
  border-left: 6px solid #1f2d5a !important;
  line-height: 1.5 !important;
}
html body .sg-work h2 > * {
  margin: 0 !important;
}
@media (max-width: 781px) {
  html body .sg-work h2 {
    min-height: 48px;
    margin-top: 48px !important;
    padding: 10px 14px !important;
  }
}
