.type-page {
  --blue: #5f3b05;
  --colorange: #ef7b2d;
  --type-text: #3f3325;
  --type-title: #5f3b05;
  --type-accent: #f08a16;
  --type-line: #f0dfb5;
  --type-soft: #fffaf0;
  --type-soft-strong: #fff0bb;
  --type-hero-border: #f2dfad;
  --type-hero-shadow: rgba(150, 91, 8, 0.08);
  --type-table-letter-spacing: -0.02em;
  --type-table-line-height: 1.85;
  color: var(--type-text);
  margin-top: -36px;
}

.type-page p {
  margin: 0;
}

.type-service-select {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding-top: 10px;
}

.type-service-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.type-service-card {
  --type-card-bg: #FEF3EA;
  --type-card-title: #E5833F;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-end;
  min-height: 315px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(96, 59, 6, .08);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.type-service-card:hover,
.type-service-card:focus-visible,
.type-service-card.is-active {
  border-color: var(--type-card-title);
  box-shadow: 0 18px 36px rgba(150, 91, 8, .12);
  transform: translateY(-2px);
}

.type-service-card:focus-visible {
  outline: 0;
}

.type-service-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 174px;
  padding: 24px 18px 26px;
  background: #ffffff;
}

/* 제목 영역 높이를 2줄로 고정하고 텍스트는 아래 정렬 → 한 줄 제목도 설명문 바로 위에 붙고,
   설명문 시작 높이는 모든 카드에서 동일해진다 (8.31 요청 7번 예시와 동일) */
.type-service-card strong {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 2.56em;
  color: var(--type-card-title);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
}

.type-service-card span span {
  color: #666666;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
}

.type-service-card img {
  flex: 0 0 auto;
  width: 100%;
  height: 136px;
  padding: 18px 18px 12px;
  object-fit: contain;
  background: var(--type-card-bg);
}

.type-service-card--hour {
  --type-card-bg: #FEF3EA;
  --type-card-title: #E5833F;
}

.type-service-card--infant {
  --type-card-bg: #FEF7DB;
  --type-card-title: #EEA50A;
}

.type-service-card--disease {
  --type-card-bg: #FEF1E0;
  --type-card-title: #E47C01;
}

.type-service-card--agency {
  --type-card-bg: #FEF4EA;
  --type-card-title: #C76B11;
}

.type-service-card--short {
  --type-card-bg: #FFEFBB;
  --type-card-title: #F3860E;
}

.type-service-content {
  scroll-margin-top: calc(var(--hd-height, 72px) + 24px);
}

.type-content-panel[hidden] {
  display: none;
}

.type-content-panel.is-active {
  display: block;
  animation: typePanelFade .24s ease;
}

@keyframes typePanelFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.type-subnav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
  padding: 10px;
  border: 1px solid var(--type-line);
  border-radius: 18px;
  background: #fff;
}

.type-subnav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 53, 86, 0.1);
  border-radius: 16px;
  background: var(--type-tab-soft, #fffaf0);
  color: var(--type-tab-accent, var(--type-title));
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  word-break: keep-all;
}

.type-subnav__link::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--type-tab-accent, var(--type-title));
}

.type-subnav__link--hour {
  --type-tab-accent: #ef7b2d;
  --type-tab-soft: #fff4ea;
}

.type-subnav__link--infant {
  --type-tab-accent: #f0a11a;
  --type-tab-soft: #fff7dc;
}

.type-subnav__link--disease {
  --type-tab-accent: #de7a12;
  --type-tab-soft: #fff1df;
}

.type-subnav__link--agency {
  --type-tab-accent: #c96b12;
  --type-tab-soft: #fff4ea;
}

.type-subnav__link--short {
  --type-tab-accent: #f08a16;
  --type-tab-soft: #fff0bb;
}

.type-anchor-title {
  scroll-margin-top: calc(var(--hd-height, 72px) + 24px);
}

.type-page .service__header {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: 80px;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--type-hero-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(240, 138, 22, 0.12), transparent 34%),
    linear-gradient(135deg, #fffdf6 0%, #fff0bb 58%, #ffffff 100%);
  box-shadow: 0 18px 42px var(--type-hero-shadow);
}

.type-page .flx {
  display: flex;
}

.type-page .middle {
  align-items: center;
}

.type-page .do__left {
  flex: 0 0 auto;
}

.type-page .do__right {
  flex: 1 1 auto;
  min-width: 0;
}

.type-page__hero-image {
  display: block;
  width: clamp(120px, 12vw, 190px);
}

.type-page .service__header h3 {
  margin: 0 0 12px;
  color: var(--type-title);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.type-page .service__header p {
  color: #56697d;
  font-size: 1rem;
  line-height: 1.8;
}

.type-page .type-intro {
  --type-service-accent: var(--type-accent);
  --type-service-soft: rgba(239, 123, 45, 0.08);
  scroll-margin-top: calc(var(--hd-height, 72px) + 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 36px);
  margin-bottom: 40px;
  padding: 32px 34px;
  border: 1px solid rgba(23, 53, 86, 0.08);
  border-left: 8px solid var(--type-service-accent);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, var(--type-service-soft), transparent 32%),
    linear-gradient(180deg, rgba(245, 249, 253, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: 0 12px 28px rgba(21, 58, 102, 0.06);
}

.type-page .type-intro--hour {
  --type-service-accent: #ef7b2d;
  --type-service-soft: rgba(239, 123, 45, 0.14);
}

.type-page .type-intro--infant {
  --type-service-accent: #f0a11a;
  --type-service-soft: rgba(240, 161, 26, 0.16);
}

.type-page .type-intro--disease {
  --type-service-accent: #de7a12;
  --type-service-soft: rgba(222, 122, 18, 0.14);
}

.type-page .type-intro--agency {
  --type-service-accent: #c96b12;
  --type-service-soft: rgba(201, 107, 18, 0.14);
}

.type-page .type-intro__body {
  flex: 1 1 auto;
  min-width: 0;
}

.type-page .type-intro__eyebrow {
  margin-bottom: 10px;
  color: #4b6d90;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.type-page .type-intro__eyebrow::before {
  content: "◎";
  margin-right: 8px;
  color: var(--type-service-accent);
}

.type-page .type-intro__title {
  margin: 0 0 14px;
  color: var(--type-service-accent);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.type-page .type-intro__text {
  color: #33475a;
  font-size: 1rem;
  line-height: 1.95;
  word-break: keep-all;
  overflow-wrap: normal;
}

.type-page .type-intro__note {
  margin-top: 12px;
  color: #667b90;
  font-size: 0.95rem;
  line-height: 1.8;
  word-break: keep-all;
}

.type-page .type-intro__image {
  display: block;
  flex: 0 0 auto;
  width: clamp(116px, 16vw, 184px);
  max-width: 100%;
}

.type-page .type-intro__image {
  padding: 12px;
  border-radius: 22px;
  background: var(--type-service-soft);
}

.type-page .table-wrapper {
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.type-page .table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #f08a16;
  border-left: 1px solid var(--type-line);
  background: #ffffff;
}

.type-page .table--gray {
  background: #ffffff;
}

.type-page .table tr th,
.type-page .table tr td {
  border-right: 1px solid var(--type-line);
  border-bottom: 1px solid var(--type-line);
  padding: 20px 22px;
  font-size: 1rem;
  vertical-align: top;
  word-break: keep-all;
  overflow-wrap: normal;
}

.type-page .table tr th {
  background: var(--type-soft);
  color: #5f3b05;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: center;
}

.type-page .table tr td {
  color: #33475a;
  line-height: 1.85;
}

.type-page .table.tx-cent tr th,
.type-page .table.tx-cent tr td {
  text-align: center;
  vertical-align: middle;
}

.type-page .table thead th {
  background: var(--type-soft-strong);
}

.type-page .type-table-caption {
  margin: 0 0 14px;
  color: var(--type-title);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
}

.type-page .type-matrix {
  min-width: 980px;
}

.type-page .type-matrix--compact {
  min-width: 720px;
}

.type-page .type-matrix--allday {
  min-width: 560px;
}

.type-page .type-matrix--sick {
  min-width: 760px;
}

.type-page .type-matrix thead th,
.type-page .type-matrix tbody th,
.type-page .type-matrix tbody td {
  padding: 14px 10px;
  font-size: 1rem;
  line-height: 1.45;
}

.type-page .type-matrix thead th {
  word-break: keep-all;
}

.type-page .type-matrix tbody th {
  background: var(--type-soft);
  color: #5f3b05;
  font-weight: 700;
}

.type-page .type-matrix__sub {
  display: inline-block;
  margin-top: 2px;
  color: #60748a;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.type-page .type-table-notes {
  margin-bottom: 40px;
}

.type-page .type-table-notes p {
  color: #55697f;
  font-size: 0.95rem;
  line-height: 1.8;
}

.type-page .type-table-notes p::before {
  content: "- ";
}

.type-page .type-table-notes p + p {
  margin-top: 4px;
}

.type-page .table tr th,
.type-page .table tr td {
  letter-spacing: var(--type-table-letter-spacing);
}

.type-cell p {
  color: #33475a;
  font-size: 1rem;
  line-height: var(--type-table-line-height);
  letter-spacing: var(--type-table-letter-spacing);
  padding-left: 1.35em;
  text-indent: -1.35em;
  word-break: keep-all;
  overflow-wrap: normal;
}

.type-cell p + p {
  margin-top: 6px;
}

.type-list-cell {
  padding-left: 22px !important;
  text-indent: 0;
  line-height: var(--type-table-line-height);
  letter-spacing: var(--type-table-letter-spacing);
  word-break: keep-all;
  overflow-wrap: normal;
}

.type-indent {
  display: grid;
  grid-template-columns: 1.05em minmax(0, 1fr);
  column-gap: 0;
  padding-left: 0 !important;
  text-indent: 0 !important;
  text-align: left;
  letter-spacing: var(--type-table-letter-spacing);
  word-break: keep-all;
  overflow-wrap: normal;
}

.type-indent__marker {
  grid-column: 1;
}

.type-indent > span:not(.type-indent__marker) {
  grid-column: 2;
  min-width: 0;
}

.type-note-line {
  display: grid;
  grid-template-columns: 1.05em minmax(0, 1fr);
  padding-left: 0 !important;
  text-indent: 0 !important;
  color: #667b90 !important;
  font-size: 0.9rem !important;
  letter-spacing: var(--type-table-letter-spacing);
}

.type-fee-warning {
  display: grid;
  grid-template-columns: 1.05em minmax(0, 1fr);
  padding-left: 0 !important;
  text-indent: 0 !important;
  color: #b66a00 !important;
  font-size: 0.9rem !important;
  letter-spacing: var(--type-table-letter-spacing);
}

/* Keep centered note groups together, including their markers. */
.type-page .type-matrix--sick td.type-cell[colspan="2"] .type-indent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  column-gap: 0.35em;
  text-align: left;
}

.type-page .type-matrix--sick td.type-cell[colspan="2"] .type-indent__marker {
  flex: 0 0 auto;
}

.type-page .type-matrix--sick td.type-cell[colspan="2"] .type-indent > span:not(.type-indent__marker) {
  flex: 0 1 auto;
  max-width: calc(100% - 1.05em);
  text-align: left;
}

.type-subtext {
  font-size: 0.9em;
}

.type-page .type-matrix--sick {
  min-width: 0;
  table-layout: fixed;
}

.type-matrix--sick col:nth-child(1) { width: 10%; }
.type-matrix--sick col:nth-child(2) { width: 17%; }
.type-matrix--sick col:nth-child(3) { width: 20%; }
.type-matrix--sick col:nth-child(4) { width: 53%; }

/* 비고 문단: 기호 없는 일반 문장이라 내어쓰기만 해제하고 정렬은 표 기본(가운데)을 따른다 */
.type-page .type-matrix--sick td.type-cell > p:not(.type-indent) {
  padding-left: 0;
  text-indent: 0;
  text-align: center;
}

.type-page .type-matrix--sick th,
.type-page .type-matrix--sick td,
.type-page .type-matrix--sick p {
  overflow-wrap: anywhere;
}

@media (max-width: 576px) {
  .type-page .type-matrix--sick th,
  .type-page .type-matrix--sick td,
  .type-page .type-matrix--sick p { font-size: 0.875rem; }
  .type-matrix--sick col:nth-child(1) { width: 16%; }
  .type-matrix--sick col:nth-child(2) { width: 22%; }
  .type-matrix--sick col:nth-child(3) { width: 25%; }
  .type-matrix--sick col:nth-child(4) { width: 37%; }
  .type-service-card strong { min-height: 0; }
}

.type-fee-note {
  display: grid;
  grid-template-columns: 1.05em minmax(0, 1fr);
  margin: 4px 0 40px;
  color: #5f3b05;
  font-size: 0.95rem;
  line-height: 1.7;
  word-break: keep-all;
}

.type-fee-note > span:not(.type-indent__marker) {
  grid-column: 2;
  min-width: 0;
  text-align: left;
}

.type-page p.type-fee-note--agency {
  margin-bottom: 80px;
}

.type-page .type-fee-table-wrapper {
  margin-bottom: 0 !important;
}

.type-agency-child-count-title {
  margin: 0 0 20px !important;
  padding-top: 24px;
}

.type-page .type-fee-table-wrapper .table {
  margin-bottom: 0 !important;
}

.type-page .spacing150 {
  height: 24px;
}

.type-page .spacing180 {
  height: 40px;
}

.type-page h5.fw700 {
  margin: 0 0 20px;
  color: var(--type-title);
  font-size: 1.4375rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.type-col-16 {
  width: 16%;
}

.type-col-18 {
  width: 18%;
}

.type-col-20 {
  width: 20%;
}

.type-col-15 {
  width: 15%;
}

.type-col-22 {
  width: 22%;
}

.type-col-25 {
  width: 25%;
}

.type-col-26 {
  width: 26%;
}

.type-col-28 {
  width: 28%;
}

.type-col-30 {
  width: 30%;
}

.type-col-32 {
  width: 32%;
}

.type-col-34 {
  width: 34%;
}

.type-col-38 {
  width: 38%;
}

.type-col-40 {
  width: 40%;
}

.type-col-42 {
  width: 42%;
}

.type-col-82 {
  width: 82%;
}

.type-col-84 {
  width: 84%;
}

.type-matrix-col-type {
  width: 8%;
}

.type-matrix-col-income {
  width: 12%;
}

.type-matrix-col-pay {
  width: 10%;
}

@media screen and (max-width: 1200px) {
  .type-service-select {
    max-width: 900px;
  }

  .type-service-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 900px) {
  .type-service-select {
    margin-bottom: 56px;
  }

  .type-service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .type-service-card {
    min-height: 292px;
  }

  .type-service-card strong {
    font-size: 20px;
  }

  .type-service-card span span {
    font-size: 15px;
  }

  .type-service-card img {
    height: 126px;
  }

  .type-subnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .type-page .service__header {
    padding: 28px;
    border-radius: 24px;
  }

  .type-page .table tr th,
  .type-page .table tr td {
    padding: 18px;
  }

  .type-page .type-matrix thead th,
  .type-page .type-matrix tbody th,
  .type-page .type-matrix tbody td {
    padding: 12px 8px;
  }
}

@media screen and (max-width: 576px) {
  .type-service-select {
    margin-bottom: 44px;
    padding-top: 0;
  }

  .type-service-cards {
    grid-template-columns: 1fr;
  }

  .type-service-card {
    min-height: 270px;
  }

  .type-service-card strong {
    font-size: 20px;
  }

  .type-service-card span span {
    font-size: 14px;
  }

  .type-service-card img {
    height: 118px;
  }

  .type-subnav {
    grid-template-columns: 1fr;
  }

  .type-page .fdc--res---576 {
    flex-direction: column;
  }

  .type-page .service__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 56px;
    padding: 24px 20px;
    border-radius: 22px;
  }

  .type-page__hero-image {
    width: 96px;
  }

  .type-page .service__header h3 {
    margin-bottom: 10px;
    font-size: 1.375rem;
  }

  .type-page .service__header p {
    font-size: 0.95rem;
  }

  .type-page .type-intro {
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .type-page .type-intro__body {
    width: 100%;
    text-align: center;
  }

  .type-page .type-intro__title {
    margin-bottom: 12px;
    font-size: 1.35rem;
  }

  .type-page .type-intro__text {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  .type-page .type-intro__note {
    font-size: 0.9rem;
  }

  .type-page .type-intro__image {
    width: 108px;
  }

  .type-page .table tr th,
  .type-page .table tr td {
    padding: 15px 14px;
  }

  .type-page .type-table-caption {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .type-page .type-matrix thead th,
  .type-page .type-matrix tbody th,
  .type-page .type-matrix tbody td {
    padding: 10px 7px;
  }

  .type-page .type-matrix__sub {
    font-size: 0.9em;
  }

  .type-page .type-table-notes p {
    font-size: 0.9rem;
  }

  .type-page .spacing150 {
    height: 16px;
  }

  .type-page .spacing180 {
    height: 28px;
  }

  .type-page h5.fw700 {
    font-size: 1.25rem;
  }
}
