.page-endo .sub-visual { padding-bottom: 120px; }
.endo-clinic {
  padding-top: 0;
}

.endo-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.15fr);
  column-gap: 80px;
  align-items: start;
}

.endo-kicker {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #2f64d4;
}

.endo-intro h3,
.endo-block h3 {
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}

.endo-intro h3 {
  margin: 0 0 20px;
  font-size: 36px;
}

.endo-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.65;
  color: #121212;
  word-break: keep-all;
}

.endo-intro-copy p,
.endo-why-card p,
.endo-rail p,
.endo-note p,
.endo-ledger-row p {
  margin: 0;
  font-size: 18px;
  line-height: 1.85;
  color: #505050;
  word-break: keep-all;
}

.endo-intro-copy p + p,
.endo-rail p + p {
  margin-top: 14px;
}

.endo-intro-copy strong,
.endo-rail strong,
.endo-note strong {
  font-weight: 700;
  color: #121212;
}

.endo-photo {
  margin: 48px 0 0;
}

.endo-photo img,
.endo-close img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.endo-photo img {
  height: 440px;
}

.endo-block {
  margin-top: 108px;
}

.endo-block h3 {
  margin: 0 0 32px;
  font-size: 32px;
}

.endo-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.endo-why-grid.is-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.endo-why-grid.is-five .polyp-why-copy {
  padding: 20px 14px 24px;
}

.endo-why-grid.is-five .endo-why-card h4 {
  margin-bottom: 10px;
  font-size: 20px;
}

.endo-why-grid.is-five .endo-why-card p {
  font-size: 15px;
  line-height: 1.7;
}

.endo-why-grid.is-five .endo-why-card img {
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 0;
  object-fit: cover;
  background: #e8e8e8;
}

.endo-why-grid.is-guide {
  gap: 60px;
}

.endo-why-grid.is-guide .endo-why-card img {
  height: calc(75cqw - 120px);
  padding: 0;
  object-fit: cover;
  background: #e8e8e8;
}

.endo-why-grid.is-guide .polyp-why-copy {
  padding: 32px 0 0;
}

.endo-why-grid.is-guide .polyp-why-copy,
.endo-why-grid.is-guide .endo-why-card h4,
.endo-why-grid.is-guide .endo-why-card p {
  text-align: left;
}

.endo-why-grid.is-guide .endo-why-card p {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.endo-why-grid.is-guide .polyp-why-copy strong {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  margin-right: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #edf3fc;
  color: #2f64d4;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.endo-why-card {
  min-width: 0;
  padding: 36px 32px 40px;
  background: #f6f3ee;
}

.endo-why-card img,
.endo-rail img,
.endo-note img {
  display: block;
  width: 40px;
  height: 40px;
}

.endo-note img {
  margin-bottom: 16px;
}

.endo-why-card p {
  margin-top: 20px;
}

.endo-rail {
  margin: 0;
  padding: 0;
  list-style: none;
}

.endo-rail.is-label-bullets p strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  max-width: 100%;
  vertical-align: top;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.endo-rail.is-label-bullets p strong::before {
  content: "•";
  flex-shrink: 0;
  color: #2f64d4;
  font-weight: 700;
  line-height: 1;
  font-size: 0.85em;
}

.endo-rail li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  padding: 52px 0;
  border-top: 1px solid #dddddd;
}

.endo-rail li:first-child {
  padding-top: 32px;
  border-top: 0;
}

.endo-rail li.is-photo:first-child {
  padding-top: 0;
}

.endo-rail li.is-photo {
  grid-template-columns: 260px minmax(0, 1fr);
  column-gap: 38px;
  align-items: center;
}

.endo-rail li.is-photo .endo-rail-photo {
  width: 260px;
  height: 156px;
  padding: 0;
  border-radius: 999px;
  object-fit: cover;
  background: #e8e8e8;
}

.endo-rail li:last-child {
  padding-bottom: 32px;
  border-bottom: 0;
}

.endo-rail h4,
.endo-note h4 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.endo-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.endo-note {
  min-width: 0;
  padding-top: 22px;
  border-top: 3px solid #2f64d4;
}

.endo-note:nth-child(2) {
  border-top-color: #8a6a3b;
}

.endo-note:nth-child(3) {
  border-top-color: #c45c4a;
}

.endo-ledger-head,
.endo-ledger-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) minmax(0, 1.25fr);
}

.endo-ledger-head span,
.endo-ledger-row h4,
.endo-ledger-row p {
  padding: 22px 24px;
}

.endo-ledger-head span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  background: #1c2b3a;
}

.endo-ledger-head span:nth-child(3) {
  background: #16325c;
}

.endo-ledger-row h4 {
  margin: 0;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  background: #f7f5f1;
  word-break: keep-all;
}

.endo-ledger-row p {
  border-bottom: 1px solid #ece7df;
}

.endo-ledger-row p:last-child {
  background: #f3f7fd;
  color: #121212;
  font-weight: 600;
}

.endo-close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 108px;
  min-height: 380px;
}

.endo-close-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  background: #16325c;
  color: #fff;
}

.endo-close-copy p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  word-break: keep-all;
}

.endo-close-copy span {
  display: block;
  margin-top: 40px;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.75;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  word-break: keep-all;
}

.endo-close img {
  height: 100%;
  min-height: 320px;
}

@media (max-width: 1199px) {
  .endo-intro {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .endo-intro h3,
  .endo-block h3 {
    font-size: 28px;
  }

  .endo-photo img {
    height: 320px;
  }

  .endo-block,
  .endo-close {
    margin-top: 72px;
  }

  .endo-why-grid,
  .endo-notes {
    grid-template-columns: 1fr;
  }

  .endo-why-grid.is-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .endo-ledger-head,
  .endo-ledger-row {
    grid-template-columns: 1fr;
  }

  .endo-ledger-head {
    display: none;
  }

  .endo-ledger-row p::before {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #8a8a8a;
  }

  .endo-ledger-row p:first-of-type::before {
    content: "일반 내시경 검진";
  }

  .endo-ledger-row p:last-child::before {
    content: "본원 소화기내과 원스톱 용종 절제";
    color: #2f64d4;
  }
}

@media (max-width: 767px) {
  .page-endo .sub-visual { padding-bottom: 120px; }
  .endo-intro h3 {
    font-size: 24px;
  }

  .endo-quote,
  .endo-block h3 {
    font-size: 22px;
  }

  .endo-intro-copy p,
  .endo-why-card p,
  .endo-rail p,
  .endo-note p,
  .endo-ledger-row p {
    font-size: 16px;
  }

  .endo-photo img {
    height: 220px;
  }

  .endo-why-card {
    padding: 28px 22px 32px;
  }

  .endo-why-grid.is-five {
    grid-template-columns: 1fr;
  }

  .endo-why-grid.is-five .endo-why-card h4 {
    font-size: 22px;
  }

  .endo-why-grid.is-five .endo-why-card p {
    font-size: 16px;
  }

  .endo-rail li {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 44px 0;
  }

  .endo-rail li.is-photo {
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 16px;
  }

  .endo-rail li.is-photo .endo-rail-photo {
    width: 180px;
    height: 112px;
  }

  .endo-rail li:first-child {
    padding-top: 24px;
  }

  .endo-rail li.is-photo:first-child {
    padding-top: 0;
  }

  .endo-rail li:last-child {
    padding-bottom: 24px;
  }

  .endo-rail h4,
  .endo-note h4 {
    font-size: 18px;
  }

  .endo-close {
    grid-template-columns: 1fr;
  }

  .endo-close-copy {
    padding: 36px 24px;
  }

  .endo-block,
  .endo-close {
    margin-top: 56px;
  }
}
