/* =========================================================
 * sgt.AI Solution Page 共通スタイル / simple reading edition
 * SP01, SP02, SP03 ... 共通利用
 *
 * 方針:
 * - LPのようなカード・囲み・グラデーションを使わない
 * - 白背景 + 大きめの本文 + 十分な行間
 * - 色ではなく、文字サイズと余白で情報の階層を作る
 * - 通常サイトの style.css / addstyle.css に依存しない
 * ========================================================= */

:root {
  --sp-text: #24292f;
  --sp-subtext: #59636e;
  --sp-heading: #1f2328;
  --sp-link: #0969da;
  --sp-line: #d8dee4;
  --sp-reading-width: 820px;
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

body.sp-solution-page {
  margin: 0;
  background: #fff;
  color: var(--sp-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.sp-solution-page *,
body.sp-solution-page *::before,
body.sp-solution-page *::after {
  box-sizing: border-box;
}

a {
  color: var(--sp-link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- article shell ---------- */
.ly-wrapper,
.sp-main,
.sp-article {
  width: 100%;
}

.sp-main {
  margin: 0 auto;
  padding: 26px 24px 72px;
}

.sp-main article {
  width: min(100%, var(--sp-reading-width));
  margin: 0 auto;
}

/* ---------- hero ---------- */
.sp-hero {
  position: static !important;
  margin: 0 0 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sp-kicker {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  color: var(--sp-subtext);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
}

.sp-hero h1 {
  position: static !important;
  margin: 0;
  padding: 0;
  color: var(--sp-heading);
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
}

.sp-hero-lead {
  margin: 28px 0 0;
  color: var(--sp-text);
  font-size: 19px;
  line-height: 2.05;
}

/* ---------- answer / toc ---------- */
.sp-answer {
  margin: 44px 0 46px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.sp-answer-label {
  display: block;
  margin: 0 0 10px;
  color: var(--sp-heading);
  font-size: 18px;
  font-weight: 700;
}

.sp-answer p {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.95;
}

.sp-toc {
  margin: 0 0 58px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.sp-toc-title {
  margin: 0 0 12px;
  color: var(--sp-heading);
  font-size: 18px;
  font-weight: 700;
}

.sp-toc ol {
  margin: 0;
  padding-left: 1.5em;
}

.sp-toc li {
  margin: 8px 0;
  padding-left: .2em;
  font-size: 17px;
  line-height: 1.75;
}

.sp-toc a {
  color: var(--sp-link);
  text-decoration: none;
}

.sp-toc a:hover {
  text-decoration: underline;
}

/* ---------- article typography ---------- */
.sp-section {
  margin: 0;
  padding: 0 0 54px;
  scroll-margin-top: 24px;
}

.sp-section h2 {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  color: var(--sp-heading);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.6;
}

.sp-section h3 {
  margin: 38px 0 16px;
  color: var(--sp-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.65;
}

.sp-section p {
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 2.05;
}

.sp-section strong,
.sp-answer strong {
  color: var(--sp-heading);
  font-weight: 700;
}

/* Strong point: no card. Just a larger paragraph and whitespace. */
.sp-emphasis {
  margin: 36px 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--sp-heading);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.95;
}

/* ---------- comparison ---------- */
.sp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px;
  margin: 34px -40px 40px 0;
}

.sp-compare-box {
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0;
  border-radius: 0;
}

.sp-compare-box + .sp-compare-box {
  padding-left: 24px;
  border-left: 1px solid var(--sp-line);
}

.sp-compare-box h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.sp-compare-box ul,
.sp-roadmap ol,
.sp-checklist ul {
  margin: 0;
  padding-left: 1.45em;
}

.sp-compare-box li,
.sp-roadmap li,
.sp-checklist li {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.9;
}

/* ---------- case study ---------- */
.sp-case {
  margin: 36px 0 42px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.sp-case > h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.sp-case-intro {
  margin-bottom: 26px !important;
  color: var(--sp-text) !important;
  font-size: 19px !important;
}

.sp-case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.sp-case-card {
  margin: 0;
  padding: 24px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--sp-line);
  border-radius: 0;
}

.sp-case-card:last-child {
  border-bottom: 1px solid var(--sp-line);
}

.sp-case-card span {
  display: block;
  margin: 0 0 7px;
  color: var(--sp-subtext);
  font-size: 15px;
  font-weight: 600;
}

.sp-case-card strong {
  display: block;
  margin: 0 0 8px;
  color: var(--sp-heading);
  font-size: 20px;
}

.sp-case-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.95;
}

/* ---------- roadmap / checklist ---------- */
.sp-roadmap,
.sp-checklist {
  margin: 34px 0 42px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.sp-roadmap h3,
.sp-checklist h3 {
  margin-top: 0;
}

.sp-roadmap li + li {
  margin-top: 18px;
}

.sp-roadmap strong {
  display: block;
  margin-bottom: 4px;
  color: var(--sp-heading);
}

.sp-byline {
  margin: 14px 0 0;
  color: var(--sp-subtext);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- product bridge ---------- */
.sp-product-bridge {
  margin: 8px 0 54px;
  padding: 48px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--sp-line);
  border-radius: 0;
}

.sp-product-bridge h2 {
  border: 0;
}


/* ---------- author note ---------- */
.sp-author-note {
  margin: 8px 0 0;
  padding: 34px 0 0;
  border-top: 1px solid var(--sp-line);
  color: var(--sp-subtext);
}

.sp-author-note p {
  margin: 0;
  color: var(--sp-subtext);
  font-size: 15px;
  line-height: 1.9;
}

.sp-pc-only { display: inline; }

@media screen and (max-width: 767px) {
  .sp-main {
    padding: 18px 18px 54px;
  }

  .sp-kicker {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .sp-hero h1 {
    font-size: 31px;
    line-height: 1.5;
  }

  .sp-hero-lead,
  .sp-section p {
    font-size: 18px;
    line-height: 2;
  }

  .sp-answer {
    margin: 38px 0 42px;
  }

  .sp-answer p {
    font-size: 19px;
    line-height: 1.9;
  }

  .sp-toc {
    margin-bottom: 48px;
  }

  .sp-toc li {
    font-size: 16px;
  }

  .sp-section {
    padding-bottom: 46px;
  }

  .sp-section h2 {
    font-size: 25px;
    line-height: 1.65;
  }

  .sp-section h3 {
    font-size: 21px;
  }

  .sp-emphasis {
    font-size: 19px;
  }

  .sp-compare {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sp-compare-box + .sp-compare-box {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--sp-line);
  }

  .sp-compare-box li,
  .sp-roadmap li,
  .sp-checklist li,
  .sp-case-card p {
    font-size: 17px;
  }

  .sp-case-card {
    padding: 20px 0;
  }



  .sp-pc-only { display: none; }
}

@media print {
  .sp-main {
    padding: 0;
  }
}
