/* ChatGPT導入ページの課題・比較・工程。共通部品の余白は変更しない。 */
.chatgpt-content .rn-page-lead + .rn-page-lead { margin-top: 18px; }
.cg-hero-action { margin-top: 28px; }
.cg-contents { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 28px; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.cg-contents a { text-decoration: underline; }
.cg-section { padding: 54px 0; }
.cg-section:nth-of-type(even) { background: #f7f9fc; }
.cg-section > .rn-container { max-width: 1060px; }
.cg-section h2 { margin: 0 0 24px; font-size: clamp(24px, 2.5vw, 31px); line-height: 1.5; }
.cg-section h3 { margin: 28px 0 12px; font-size: 20px; line-height: 1.6; }
.cg-section p { margin: 0 0 18px; color: var(--c-text-sub); font-size: 16px; line-height: 1.9; }
.cg-section a { color: #005bb5; text-decoration: underline; }
.cg-section .cg-source { font-size: 14px; }
.cg-problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
.cg-problems article { border-top: 2px solid #aac9e6; padding-top: 20px; }
.cg-problems h3 { margin: 0 0 12px; }
.cg-problems p { margin: 0; }
.cg-section table { width: 100%; border-collapse: collapse; margin: 24px 0 36px; text-align: left; font-size: 15px; line-height: 1.8; }
.cg-section th, .cg-section td { padding: 18px 20px; border-bottom: 1px solid #dce4ed; vertical-align: top; }
.cg-section thead th { background: #eaf3fd; color: #164c79; }
.cg-section tbody th { width: 27%; }
.cg-section td { color: var(--c-text-sub); }
.cg-section .ai-flow h3 { margin: 8px 0 10px; font-size: 18px; }
.cg-section .ai-flow p { margin: 0; font-size: 14px; }
.cg-process { list-style: none; padding: 0; margin: 32px 0 0; }
.cg-process > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; position: relative; padding-bottom: 28px; }
.cg-process > li:not(:last-child)::after { content: ''; position: absolute; left: 23px; top: 54px; bottom: 8px; border-left: 2px solid #aac9e6; }
.cg-process > li:not(:last-child)::before { content: ''; position: absolute; left: 19px; bottom: 8px; width: 8px; height: 8px; border-right: 2px solid #aac9e6; border-bottom: 2px solid #aac9e6; transform: rotate(45deg); }
.cg-step { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #0066cc; color: white; font-size: 21px; font-weight: 700; }
.cg-process h3 { margin: 5px 0 10px; }
.cg-process p { margin: 0 0 10px; }
.cg-output { padding: 12px 16px; background: #edf4fc; }
.cg-output strong { display: block; color: #164c79; margin-bottom: 4px; }
@media (max-width: 768px) {
  .cg-section { padding: 38px 0; }
  .cg-section h3 { font-size: 18px; }
  .cg-problems { grid-template-columns: 1fr; gap: 24px; }
  .cg-section table, .cg-section tbody { display: block; }
  .cg-section thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cg-section tbody tr { display: block; padding: 18px 0; border-top: 1px solid #ccdbe8; }
  .cg-section tbody th, .cg-section td { display: block; width: auto; padding: 7px 0; border: 0; }
  .cg-section tbody th { font-size: 17px; }
  .cg-section td::before { content: attr(data-label); display: block; color: #164c79; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
  .cg-process > li { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .cg-step { width: 38px; height: 38px; font-size: 18px; }
  .cg-process > li:not(:last-child)::after { left: 18px; top: 44px; }
  .cg-process > li:not(:last-child)::before { left: 14px; }
}

/* 情報の役割に応じて、業務イメージ・事例・詳細・比較を読み分ける。 */
.chatgpt-content .cg-visual-hero { background: #fff; padding-top: 140px; padding-bottom: 40px; }
.cg-visual-hero .rn-people-grid { grid-template-columns: 1fr 1.05fr; gap: 42px; align-items: center; }
.cg-visual-hero .rn-page-title { font-size: clamp(20px, 2vw, 25px); font-weight: 600; color: #005bb5; line-height: 1.6; }
.cg-hero-message { display: block; margin: 20px 0; font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 1.55; letter-spacing: -.025em; color: #173751; }
.cg-hero-description { display: block; max-width: 32em; font-size: 17px; line-height: 1.9; }
.cg-visual-hero .cg-hero-art { overflow: visible; margin: 0; }
.cg-visual-hero .cg-hero-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 0; }
.cg-section { padding: 76px 0; }
.cg-section > .rn-container > p { max-width: none; }
.cg-section .cg-source { max-width: none; }
.cg-problems { gap: 28px; }
.cg-problems .cg-problem { border: 0; padding: 0 0 20px; display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 24px; align-content: start; }
.cg-problem-scene { grid-row: 1 / 4; color: #356b9f; align-self: start; text-align: center; }
.cg-problem-scene svg { display: block; width: 100%; height: auto; }
.cg-problem-scene > span { font-size: 11px; line-height: 1.6; display: block; }
.cg-problems h3 { font-size: 19px; }
.cg-problems .service-example { grid-column: 2; background: transparent; padding: 0; font-size: 14px; }
.cg-problems .service-example strong { color: #173751; }
.cg-stories { margin-top: 48px; }
.cg-story { padding: 38px 0 44px; border-top: 1px solid #c9d8e5; }
.cg-story header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
.cg-story .cg-story-problem { grid-column: 1 / -1; color: #536c80; font-size: 14px; margin: 0 0 10px; }
.cg-story header h3 { margin: 0 0 24px; font-size: clamp(22px, 2.2vw, 29px); line-height: 1.55; color: #173751; }
.cg-story header > p:last-child { margin: 0 0 24px; }
.cg-story-change { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; }
.cg-story-change > div { padding: 25px 28px; }
.cg-before { background: #f1f4f7; }
.cg-after { background: #e9f4f2; border-left: 3px solid #167a72; }
.cg-story-change h4 { margin: 0 0 12px; color: #536c80; font-size: 14px; }
.cg-after h4 { color: #12645e; }
.cg-story-change p { margin: 0; }
.cg-story .cg-story-method { font-size: 14px; margin: 18px 0 0; }
.cg-story-method strong { color: #173751; margin-right: 16px; }
.cg-details { margin: 36px 0; border-top: 1px solid #c9d8e5; }
.cg-detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 0 4px 24px; }
.cg-detail-body h3 { font-size: 14px; color: #005bb5; margin: 0 0 10px; }
.cg-detail-body p { margin-bottom: 0; }
.cg-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 36px 0 44px; }
.cg-paths article { border-top: 2px solid #9cbad3; }
.cg-paths svg { display: block; width: 200px; max-width: 100%; height: auto; margin: 16px auto 20px; color: #356b9f; }
.cg-paths h3 { margin: 0 0 18px; font-size: 20px; }
.cg-process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.cg-process > li { display: block; padding: 0; }
.cg-process > li:not(:last-child)::after { top: 23px; bottom: auto; left: 58px; right: -16px; border-left: 0; border-top: 2px solid #aac9e6; }
.cg-process > li:not(:last-child)::before { top: 19px; bottom: auto; left: auto; right: -15px; transform: rotate(-45deg); }
.cg-process h3 { margin: 22px 0 14px; font-size: 19px; }
.cg-process p { font-size: 15px; }
.cg-process .cg-output { padding: 14px 0; background: transparent; border-top: 1px solid #dce4ed; font-size: 13px; }
.cg-process + p { margin-top: 30px; }
.cg-section a:focus-visible { outline: 3px solid #0066cc; outline-offset: 5px; }
@media (max-width: 1000px) {
  .cg-problems .cg-problem { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
  .cg-process { grid-template-columns: 1fr 1fr; gap: 30px 40px; }
  .cg-process > li:nth-child(2)::before, .cg-process > li:nth-child(2)::after { display: none; }
}
@media (max-width: 768px) {
  .chatgpt-content .cg-visual-hero { padding: 116px 0 22px; }
  .cg-visual-hero .rn-people-grid { grid-template-columns: 1fr; gap: 8px; }
  .cg-hero-message { font-size: clamp(27px, 7.5vw, 36px); }
  .cg-hero-description { font-size: 16px; }
  .cg-visual-hero .cg-hero-art { max-width: 440px; margin: 0 auto; }
  .cg-section { padding: 46px 0; }
  .cg-problems .cg-problem { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
  .cg-problems .service-example { grid-column: 1 / -1; padding-left: 0; margin-top: 0; }
  .cg-story header, .cg-story-change, .cg-detail-body, .cg-paths { grid-template-columns: 1fr; }
  .cg-story { padding: 28px 0 34px; }
  .cg-story header h3 { margin-bottom: 14px; }
  .cg-story-change > div { padding: 20px; }
  .cg-after { border-left: 0; border-top: 3px solid #167a72; }
  .cg-detail-body { gap: 24px; }
  .cg-paths { gap: 30px; }
  .cg-paths article { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 16px; padding-top: 20px; }
  .cg-paths svg { grid-row: 1 / 4; width: 84px; margin: 0; }
  .cg-process { display: block; }
  .cg-process > li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding-bottom: 26px; }
  .cg-process > li:not(:last-child)::after { display: block; left: 18px; top: 44px; bottom: 8px; right: auto; border-top: 0; border-left: 2px solid #aac9e6; }
  .cg-process > li:not(:last-child)::before { display: block; top: auto; bottom: 8px; left: 14px; right: auto; transform: rotate(45deg); }
  .cg-process h3 { margin: 4px 0 14px; }
}

/* 説明は操作なしで読める形にし、節全体の横幅を活かす。 */
.cg-overview-columns, .cg-cost-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; }
.cg-cost-columns { margin-bottom: 24px; }
.cg-cost-columns h3 { margin-top: 0; }
.cg-guidance { padding: 28px 0; border-bottom: 1px solid #c9d8e5; }
.cg-guidance-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; margin-bottom: 22px; }
.cg-guidance-heading h3 { margin: 0; color: #173751; }
.cg-guidance-heading p { margin: 0; font-size: 15px; color: #536c80; }
.cg-detail-body { padding-bottom: 0; }
.cg-path-detail { border-top: 1px solid #c9d8e5; padding-top: 16px; }
.cg-path-detail h4 { font-size: 14px; color: #005bb5; margin: 0 0 10px; }
.cg-path-detail p { font-size: 15px; margin-bottom: 0; }
@media (max-width: 768px) {
 .cg-overview-columns, .cg-cost-columns { grid-template-columns: 1fr; gap: 8px; }
 .cg-cost-columns { gap: 22px; }
 .cg-path-detail { grid-column: 1 / -1; margin-top: 4px; }
}

.cg-overview-columns { align-items: start; grid-template-columns: 1.05fr .95fr; }
.cg-report-flow { margin: 0; padding: 28px; background: #edf4fc; }
.cg-flow-stage { display: flex; align-items: center; gap: 18px; padding: 16px; background: white; }
.cg-flow-stage strong, .cg-flow-stage span { display: block; }
.cg-flow-stage strong { font-size: 16px; color: #173751; }
.cg-flow-stage div > span { margin-top: 5px; font-size: 13px; line-height: 1.6; color: #536c80; }
.cg-flow-sheet { width: 32px; height: 42px; border: 2px solid #5885b0; flex: 0 0 32px; padding: 9px 5px; background: #fff; }
.cg-flow-sheet i { display: block; height: 2px; margin-bottom: 6px; background: #9cbad3; }
.cg-flow-arrow { display: block; text-align: center; line-height: 1.5; color: #5885b0; font-size: 22px; }
.cg-flow-review { border-left: 3px solid #167a72; }
.cg-flow-check { font-size: 30px; color: #167a72; width: 32px; flex: 0 0 32px; }
.cg-report-flow figcaption { font-size: 12px; color: #536c80; margin-top: 16px; text-align: center; }
.cg-cost-columns > div { padding: 26px; background: #fff; border-top: 3px solid #9cbad3; }
@media (max-width: 768px) {
 .cg-overview-columns { grid-template-columns: 1fr; gap: 20px; }
 .cg-report-flow { padding: 18px; }
 .cg-flow-stage { padding: 14px; gap: 12px; }
 .cg-cost-columns > div { padding: 22px; }
}
