/* ══════════════════════════════════════════════════
   para12 — 갤러리 스플릿형 (치아보험)
   큰 이미지 카드 + 오른쪽 세로 카드 2단(폼 / 진행 순서·신뢰 지표), 긴 선 화살표, 01 / 04 숫자 표기,
   아쿠아→민트 그라데이션 카드, 둥근 갤러리 카드(그림 칸 + 아래 글)
   ══════════════════════════════════════════════════ */
:root {
  --main-color: #087D96;        /* 덴탈 아쿠아 — 이 값 하나로 전체 색이 바뀐다 */
  --main-dark: #06637A;         /* 메인 hover / 눌림 */
  --main-ink: #fff;             /* 메인컬러 바탕 위 글씨색 (서브페이지 sub.css 도 쓴다) */
  --main-text: var(--main-color); /* 흰 바탕 위 메인컬러 강조 글씨색 (서브페이지 sub.css 도 쓴다) */
  --main-soft: color-mix(in srgb, var(--main-color) 6%, #fff);    /* 선택된 칸 · 목록 hover */
  --main-tint: color-mix(in srgb, var(--main-color) 12%, #fff);   /* 태그 바탕 */
  --main-line: color-mix(in srgb, var(--main-color) 26%, #fff);   /* 포커스 링 · 연결선 */

  /* 카드 바탕 — 진한 메인컬러는 진행 순서 마지막 칸·버튼에만. 큰 면은 연한 색으로 둔다 */
  --grad-soft: linear-gradient(135deg, color-mix(in srgb, var(--main-color) 11%, #fff) 0%, color-mix(in srgb, var(--main-color) 6%, #fff) 55%, #E4F7F0 100%);
  --grad-strong: linear-gradient(135deg, color-mix(in srgb, var(--main-color) 86%, #fff) 0%, var(--main-color) 55%, var(--main-dark) 100%);
  --pastel-1: color-mix(in srgb, var(--main-color) 9%, #fff);     /* 연아쿠아 */
  --pastel-2: #E7F6F0;                                             /* 연민트 */
  --pastel-3: #FFF1EA;                                             /* 연살구 */

  --ink: #191F28;                /* 제목 */
  --body: #4E5968;               /* 본문 */
  --muted: #6B7684;              /* 보조 글씨 (흰 바탕 대비 4.6:1) */
  --line: #E5E8EB;               /* 구분선 */
  --bg: #F4F5F8;                 /* 회색 바탕 */
  --error: #F04452;

  --r-xl: 32px;                  /* 큰 카드 · 히어로 */
  --r-lg: 26px;                  /* 카드 */
  --r-md: 20px;                  /* 작은 카드 */
  --r-sm: 12px;                  /* 입력칸 */

  --wrap: 1280px;
  --narrow: 920px;               /* 가운데 좁은 목록 (질문) */
  --sec-pad: 120px;              /* 섹션 위아래 여백 */

  /* 체크 아이콘 (흰 선) */
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.highlight {font-weight: 700; color: var(--main-color);}

/* 광고 심의 빨간 문구 — 원래 디자인에 없던 상자·배경 없이 작은 빨간 글자만 */
.c_red {color: #D7261E !important;}
.red_notice {margin-top: 20px; font-size: 13.5px; line-height: 1.6; word-break: keep-all;}
.red_notice p + p {margin-top: 2px;}

/* 이미지 빈칸 — 그림이 들어갈 자리를 점선 상자로 잡아 둔다 */
.img_slot {display: flex; align-items: center; justify-content: center; box-sizing: border-box; border: 2px dashed color-mix(in srgb, var(--main-color) 35%, #fff); border-radius: 16px; background: rgba(255, 255, 255, 0.55);}
.img_slot::after {content: attr(data-img); padding: 4px; font-size: 11px; font-weight: 600; line-height: 1.3; color: var(--muted); text-align: center; word-break: break-all;}

/* 화면에는 안 보이고 스크린리더만 읽는다 */
.sr_only {position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;}

/* 아이콘 묶음 SVG — 자리 차지 없이 숨긴다 */
.ico_sprite {position: absolute; width: 0; height: 0; overflow: hidden;}


#section1 > .inner, #section_company > .inner,
#section2 > .inner,
#section3 > .inner, #section_point > .inner,
#section4 > .inner,
#section_process > .inner,
#section_qna > .inner, #section_guide > .inner {width: min(var(--wrap), calc(100% - 48px)); max-width: none; margin: 0 auto;}

/* 흰 섹션과 회색 섹션을 번갈아 둔다 */
/* 순서: hero(흰) → company(회) → section2(흰) → section3(회) → point(흰) → section4(회) → process(흰) → qna(회) → guide(흰) */
#section_company, #section2, #section3, #section_point, #section4, #section_process, #section_qna, #section_guide {padding: var(--sec-pad) 0;}
#section1, #section2, #section_point, #section_process, #section_guide {background: #fff;}
#section_company, #section3, #section4, #section_qna {background: var(--bg);}

/* 일러스트 아이콘 (assets/img/ico_*.png, 투명 배경 정사각형) — 크기는 섹션마다 아래에서 바꾼다 */
.ico3d {display: block; flex-shrink: 0; width: 96px; height: 96px; object-fit: contain;}

/* ── 공통: 긴 선 화살표 링크 (참고 사이트의 '01 / 04 ⟶' 선 화살표를 본문 링크에도 쓴다) ── */
.line_link {display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--ink); word-break: keep-all;}
.line_link svg {flex-shrink: 0; width: 40px; height: 12px; color: var(--main-color); transition: width 0.25s ease;}
.line_link:hover {color: var(--main-color);}
.line_link:hover svg {width: 56px;}
.line_link:focus-visible {outline: 3px solid var(--main-line); outline-offset: 4px; border-radius: 4px;}


/* ══════ #section1 — 왼쪽 [제목 + 큰 슬라이드 카드] / 오른쪽 [폼 카드 + 진행 순서·신뢰 지표 카드] ══════ */
/* 위 여백 — 헤더 높이(--hd-h)는 header.php 의 겹치기 규칙이 #section1 padding-top 으로 주고, 나머지는 .hero_wrap 이 준다 */
#section1 {position: relative;}
#section1 .hero_wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "head   form"
    "slider form"
    "slider info";
  gap: 16px 20px; padding: 20px 0 72px;
}
#section1 .hero_head {grid-area: head;}
#section1 .hero_slider {grid-area: slider;}
#section1 .form_wrap {grid-area: form;}
#section1 .hero_info {grid-area: info;}

/* ── 제목 + 슬라이드 컨트롤 ── */
/* 제목은 한 줄 전체, 그 아래 [설명 | 01 / 04 컨트롤] — .hero_head_txt 는 칸을 만들지 않고 안의 제목·설명을 바로 칸에 놓는다 */
#section1 .hero_head {display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 24px; padding: 8px 0 8px;}
#section1 .hero_head_txt {display: contents;}
#section1 .hero_head .hero_title {grid-column: 1 / -1;}
#section1 .hero_head .hero_ctrl {grid-column: 2; grid-row: 2;}
/* 제목 — <b>·<em> 은 메인컬러 + 연한 형광펜 밑줄 */
#section1 .hero_title {font-size: 42px; font-weight: 800; line-height: 1.3; letter-spacing: -1.6px; color: var(--ink); word-break: keep-all;}
#section1 .hero_title b,
#section1 .hero_title em {font-weight: 800; font-style: normal; color: var(--main-text); background: linear-gradient(transparent 64%, color-mix(in srgb, var(--main-color) 16%, #fff) 0); -webkit-box-decoration-break: clone; box-decoration-break: clone;}
#section1 .hero_desc {margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--body); word-break: keep-all;}

/* 01 / 04 + 긴 선 화살표 + 멈춤 */
#section1 .hero_ctrl {display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-bottom: 6px;}
#section1 .ctrl_num {margin-right: 6px; font-size: 16px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums;}
#section1 .ctrl_num b {font-weight: 800; color: var(--ink);}
#section1 .line_btn {display: flex; align-items: center; width: 64px; height: 32px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; transition: color 0.15s;}
#section1 .line_btn.is_prev {width: 44px; color: var(--muted);}
#section1 .line_btn svg {width: 100%; height: 16px;}
#section1 .line_btn:hover {color: var(--main-color);}
#section1 .line_btn:focus-visible {outline: 3px solid var(--main-line); outline-offset: 2px; border-radius: 4px;}
#section1 .ctrl_pause {display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-left: 4px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer;}
#section1 .ctrl_pause:focus-visible {outline: 3px solid var(--main-line); outline-offset: 2px;}
/* 멈춤 ⏸ / 재생 ▶ 아이콘 */
#section1 .ctrl_pause span {width: 9px; height: 11px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink);}
#section1 .ctrl_pause.is_paused span {width: 0; height: 0; margin-left: 3px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid var(--ink); border-right: 0;}

/* ── 큰 슬라이드 카드 — 장마다 다른 파스텔 바탕 + 오른쪽 아래 일러스트 ── */
#section1 .hero_slider {position: relative; display: grid; min-height: 440px; overflow: hidden; border-radius: var(--r-xl); background: var(--pastel-1);}
#section1 .hero_slide {grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; background: var(--slide-bg, var(--pastel-1)); opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s;}
#section1 .hero_slide.is_on {opacity: 1; visibility: visible;}
/* 오른쪽 위 은은한 빛 */
#section1 .slide_txt {position: relative; z-index: 1; max-width: 52%; padding: 44px 44px 76px;}
#section1 .slide_label {display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--main-text);}
#section1 .slide_title {margin-top: 16px; font-size: 32px; font-weight: 800; line-height: 1.36; letter-spacing: -1px; color: var(--ink); word-break: keep-all;}
#section1 .slide_desc {margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--body); word-break: keep-all;}
/* 배경 이미지 — 카드 전체를 채우고, 글자 쪽(왼쪽)은 슬라이드 바탕색으로 덮는다 */
#section1 .slide_img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center;}
#section1 .slide_img.img_slot {border-radius: inherit;}
#section1 .hero_slide::after {content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--slide-bg, var(--pastel-1)) 0%, color-mix(in srgb, var(--slide-bg, var(--pastel-1)) 88%, transparent) 34%, transparent 62%); pointer-events: none;}
/* 진행 막대 — 카드 왼쪽 아래 */
#section1 .slide_bar {position: absolute; left: 44px; bottom: 36px; z-index: 2; width: 160px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(25, 31, 40, 0.1);}
#section1 .slide_bar i {display: block; width: 0; height: 100%; background: var(--main-color);}
#section1 .slide_bar i.run {animation: slide_bar 5s linear forwards;}
#section1 .slide_bar i.paused {animation-play-state: paused;}
@keyframes slide_bar {to {width: 100%;}}

/* ── 폼 카드 — 흰 카드 + 얇은 선 + 은은한 그림자, 한 화면에 다섯 칸 ── */
#section1 .form_wrap {display: flex; flex-direction: column; padding: 28px 26px 22px; border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: 0 16px 40px -18px rgba(25, 31, 40, 0.18); scroll-margin-top: 100px;}
.form_wrap .form_head {display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px;}
.form_wrap .form_badge {display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--main-soft); font-size: 13px; font-weight: 700; color: var(--main-text);}
.form_wrap .form_badge::before {content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--main-color);}
.form_wrap .form_head h2 {margin-top: 10px; font-size: 24px; font-weight: 800; line-height: 1.35; letter-spacing: -0.8px; color: var(--ink); word-break: keep-all;}
.form_wrap .form_head h2 b {color: var(--main-text);}
.form_wrap .form_ico {flex-shrink: 0; width: 64px; height: 64px; object-fit: contain;}

.form_wrap .form_fields {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px;}
.form_wrap .field {min-width: 0;}
.form_wrap .field.is_full {grid-column: 1 / -1;}
.form_wrap .field > label,
.form_wrap .field_label {display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--body);}

/* 입력칸 — 흰 바탕 + 얇은 선, 포커스 때 메인컬러 테두리 + 링 */
.form_wrap input[type='text'],
.form_wrap .phone_select,
.form_wrap .region_select,
.form_wrap .select_btn {display: block; width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 16px; font-weight: 600; color: var(--ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s;}
.form_wrap input[type='text']::placeholder {font-weight: 500; color: #A9B0BA;}
.form_wrap input[type='text']:hover,
.form_wrap .phone_select:hover,
.form_wrap .select_btn:hover {border-color: #CDD2D8;}
.form_wrap input[type='text']:focus,
.form_wrap .phone_select:focus,
.form_wrap .region_select:focus,
.form_wrap .select_btn:focus-visible,
.form_wrap .select_wrap.open .select_btn {border-color: var(--main-color); box-shadow: 0 0 0 4px var(--main-tint);}

/* 선택칸 — 오른쪽 화살표 */
.form_wrap .phone_select,
.form_wrap .region_select,
.form_wrap .select_btn {padding-right: 36px; background: #fff url("../img/arrow_down.svg") no-repeat right 12px center / 16px; -webkit-appearance: none; appearance: none; cursor: pointer;}
.form_wrap .region_select:has(option[value='']:checked) {font-weight: 500; color: #A9B0BA;}
.form_wrap .region_select option {font-weight: 500; color: var(--ink);}

/* 성별 — 선 안 두 칸, 고르면 메인컬러로 채운다 */
.form_wrap .gender_wrap {display: grid; grid-template-columns: 1fr 1fr; height: 50px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;}
.form_wrap .gender_wrap input[type='radio'] {position: absolute; opacity: 0; pointer-events: none;}
.form_wrap .gender_wrap label {display: flex; align-items: center; justify-content: center; margin: 0; font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer; user-select: none; transition: background 0.15s, color 0.15s;}
.form_wrap .gender_wrap label + input + label {border-left: 1px solid var(--line);}
.form_wrap .gender_wrap input[type='radio']:checked + label {background: var(--main-color); color: var(--main-ink);}
.form_wrap .gender_wrap input[type='radio']:focus-visible + label {outline: 3px solid var(--main-line); outline-offset: -3px;}

/* 지역 목록 — PC(마우스)에서만 index.php 스크립트가 .is_custom 을 붙이고 직접 만든 목록을 보여 준다.
   기본 select 의 펼침 목록은 높이를 정할 수 없어서다. 모바일은 기본 선택창 그대로.
   값은 숨겨 둔 원래 select 에 들어가므로 공용 main.js 의 검사·전송은 그대로 동작한다. */
.form_wrap .select_wrap {position: relative;}
.form_wrap .select_wrap.is_custom .region_select {position: absolute; inset: 0; opacity: 0; pointer-events: none;}
.form_wrap .select_btn {text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.form_wrap .select_btn.is_placeholder {font-weight: 500; color: #A9B0BA;}
.form_wrap .select_list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  display: none;
  max-height: 228px;              /* 목록 최대 높이 — 넘치면 안에서 스크롤 */
  overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: var(--r-sm); background: #fff;
  box-shadow: 0 18px 40px -16px rgba(20, 20, 50, 0.35), 0 0 0 1px var(--line);
  scrollbar-width: thin; scrollbar-color: #D1D6DB transparent;
}
.form_wrap .select_list::-webkit-scrollbar {width: 6px;}
.form_wrap .select_list::-webkit-scrollbar-thumb {border-radius: 6px; background: #D1D6DB;}
.form_wrap .select_wrap.up .select_list {top: auto; bottom: calc(100% + 6px);}   /* 아래 공간이 모자라면 위로 연다 */
.form_wrap .select_wrap.open .select_list {display: block; animation: select_open 0.15s ease;}
@keyframes select_open {from {opacity: 0; transform: translateY(-4px);} to {opacity: 1; transform: none;}}
.form_wrap .select_list li {padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--body); cursor: pointer;}
.form_wrap .select_list li.is_active {background: var(--main-soft); color: var(--ink);}
.form_wrap .select_list li[aria-selected='true'] {color: var(--main-color); font-weight: 700;}

/* 연락처 — 국번 | 번호 */
.form_wrap .phone_input_wrap {display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px;}

/* 신청 버튼 — 페이지에서 가장 진한 메인컬러 */
.form_wrap .submit_btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 58px; margin-top: 18px; padding: 0 24px;
  border: 0; border-radius: 14px; background: var(--main-color); color: var(--main-ink);
  font-size: 18px; font-weight: 800; letter-spacing: -0.3px; cursor: pointer;
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--main-color) 85%, transparent);
  transition: background 0.15s, transform 0.1s;
}
.form_wrap .submit_btn svg {width: 18px; height: 18px; transition: transform 0.15s;}
.form_wrap .submit_btn:hover {background: var(--main-dark);}
.form_wrap .submit_btn:hover svg {transform: translateX(3px);}
.form_wrap .submit_btn:active {transform: scale(0.98);}
.form_wrap .submit_btn:focus-visible {outline: 3px solid var(--main-line); outline-offset: 3px;}

.form_wrap .form_privacy {margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; word-break: keep-all;}

/* ── 신청부터 가입까지 + 신뢰 지표 — 연한 그라데이션 카드 (진한 색은 마지막 단계 하나만) ── */
#section1 .hero_info {position: relative; overflow: hidden; padding: 20px 20px 16px; border-radius: var(--r-xl); background: var(--grad-soft);}
#section1 .hero_info::after {content: ''; position: absolute; top: -56px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); pointer-events: none;}
#section1 .hero_steps_label {position: relative; z-index: 1; margin-bottom: 12px; font-size: 14px; font-weight: 800; color: var(--main-text);}
#section1 .hero_steps {position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;}
#section1 .hero_steps li {position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.8); text-align: center;}
/* 단계 사이 작은 꺾쇠 */
#section1 .hero_steps li:not(:last-child)::after {content: ''; position: absolute; top: 50%; right: -7px; width: 6px; height: 6px; border-top: 1.5px solid var(--main-color); border-right: 1.5px solid var(--main-color); opacity: 0.6; transform: translateY(-50%) rotate(45deg);}
#section1 .hero_steps .num {font-size: 11px; font-weight: 700; color: var(--muted);}
#section1 .hero_steps .txt {font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); word-break: keep-all;}
#section1 .hero_steps li:last-child {background: var(--main-color);}
#section1 .hero_steps li:last-child .num {color: rgba(255, 255, 255, 0.8);}
#section1 .hero_steps li:last-child .txt {color: var(--main-ink);}

#section1 .hero_stats {position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--main-color) 14%, transparent);}
#section1 .hero_stats li {position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 4px; text-align: center;}
#section1 .hero_stats li + li::before {content: ''; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: color-mix(in srgb, var(--main-color) 14%, transparent);}
#section1 .hero_stats strong {font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; color: var(--main-text);}
#section1 .hero_stats strong small {margin-left: 1px; font-size: 15px; font-weight: 700;}
#section1 .hero_stats span {font-size: 13px; font-weight: 600; color: var(--body); word-break: keep-all;}


/* ══════ 섹션 머리 (왼쪽 정렬 · Q&A 만 가운데) — 라벨 앞 짧은 선 ══════ */
.title_wrap {max-width: 780px; margin: 0 0 52px;}
.title_wrap.is_center {margin: 0 auto 52px; text-align: center;}
.title_wrap .section_label {display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--main-text);}
.title_wrap .section_label::before {content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--main-color);}
.title_wrap h2 {margin-top: 14px; font-size: 42px; font-weight: 800; line-height: 1.3; letter-spacing: -1.5px; color: var(--ink); word-break: keep-all;}
.title_wrap h2 b {color: var(--main-text);}
.title_wrap p {margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--body); word-break: keep-all;}


/* ── section_company: 왼쪽 제목 / 오른쪽 보험사 타일 4×2 ── */
#section_company .company_wrap {display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center;}
#section_company .title_wrap {margin: 0;}
#section_company .company_foot {margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--muted);}
#section_company .company_grid {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;}
/* 흰 타일 — 위 동그란 표지(순서 기호, 연한 칸 색) + 아래 'A보험사' */
#section_company .company_grid li {display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: #fff;}
#section_company .co_mark {display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--co-color) 14%, #fff); font-size: 22px; font-weight: 900; color: var(--co-color);}
/* 보험사 표기 — 순서 기호(A·B…)만 칸마다 다른 색(--co-color), '보험사' 글자는 모두 같은 진한 색 */
#section_company .co_logo {display: flex; align-items: baseline; gap: 1px; font-size: 17px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; color: var(--ink); white-space: nowrap;}
#section_company .co_logo b {font-weight: 900; color: var(--co-color);}


/* ── section2: 비교가 필요한 이유 — 큰 카드 1 + 오른쪽 세로 2장 (히어로와 같은 갤러리 구성) ── */
#section2 .why_grid {display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 20px;}
#section2 .why_card {position: relative; display: flex; gap: 20px; padding: 32px; border-radius: var(--r-xl); background: var(--bg);}
#section2 .why_card.is_big {grid-row: 1 / span 2; flex-direction: column; min-height: 480px; padding: 44px; background: var(--grad-soft);}
#section2 .why_txt {display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0;}
#section2 .why_num {font-size: 14px; font-weight: 800; color: var(--main-text); font-variant-numeric: tabular-nums;}
#section2 h3 {margin: 10px 0 10px; font-size: 22px; font-weight: 800; line-height: 1.38; letter-spacing: -0.6px; color: var(--ink); word-break: keep-all;}
#section2 .is_big h3 {font-size: 30px; letter-spacing: -1px;}
#section2 h3 b {color: var(--main-text);}
#section2 p {font-size: 15.5px; line-height: 1.7; color: var(--body); word-break: keep-all;}
#section2 .is_big p {max-width: 420px; font-size: 17px;}
#section2 p b {font-weight: 700; color: var(--ink);}
#section2 .line_link {margin-top: auto; padding-top: 20px;}
#section2 .why_card .ico3d {align-self: flex-end; width: 96px; height: 96px;}
#section2 .why_card.is_big .ico3d {position: absolute; right: 40px; bottom: 36px; width: 180px; height: 180px;}


/* ── section3: 보장 구성 — 위 파스텔 그림 칸 + 아래 글 (상자 없는 갤러리 카드) ── */
#section3 .cov_group + .cov_group {margin-top: 72px;}
#section3 .cov_group_head {display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 4px 16px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 2px solid var(--ink);}
#section3 .cov_group_no {font-size: 15px; font-weight: 800; color: var(--main-text); font-variant-numeric: tabular-nums;}
#section3 .cov_group_head h3 {font-size: 26px; font-weight: 800; letter-spacing: -0.8px; color: var(--ink); white-space: nowrap;}
#section3 .cov_group_head p {justify-self: end; max-width: 520px; font-size: 15px; line-height: 1.6; color: var(--muted); text-align: right; word-break: keep-all;}
#section3 .cov_list {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px;}
#section3 .cov_img {position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; margin-bottom: 20px; border-radius: var(--r-lg); background: #fff;}
#section3 .cov_list li:nth-child(3n+1) .cov_img {background: var(--pastel-1);}
#section3 .cov_list li:nth-child(3n+2) .cov_img {background: var(--pastel-2);}
#section3 .cov_list li:nth-child(3n) .cov_img {background: var(--pastel-3);}
#section3 .cov_img .ico3d {width: 112px; height: 112px; transition: transform 0.3s ease;}
#section3 .cov_list li:hover .ico3d {transform: translateY(-6px);}
#section3 .tag {position: absolute; top: 18px; left: 18px; padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 800; color: var(--main-text);}
#section3 .is_main .tag {background: var(--main-color); color: var(--main-ink);}
#section3 .cov_list h4 {padding: 0 4px; font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: -0.5px; color: var(--ink); word-break: keep-all;}
#section3 .cov_list p {margin-top: 6px; padding: 0 4px; font-size: 15px; line-height: 1.7; color: var(--body); word-break: keep-all;}
#section3 .red_notice {margin-top: 32px;}


/* ── section_point: 비교 포인트 — 위 가로 배너 + 아래 4칸(01 / 04) ── */
#section_point .point_banner {position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; overflow: hidden; padding: 40px 48px; border-radius: var(--r-xl); background: var(--grad-soft);}
#section_point .point_banner::after {content: ''; position: absolute; right: 160px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); pointer-events: none;}
#section_point .point_banner_txt {position: relative; z-index: 1; max-width: 640px;}
#section_point .point_banner h3 {font-size: 28px; font-weight: 800; line-height: 1.38; letter-spacing: -0.8px; color: var(--ink); word-break: keep-all;}
#section_point .point_banner p {margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--body); word-break: keep-all;}
#section_point .point_banner .ico3d {position: relative; z-index: 1; width: 140px; height: 140px;}

#section_point .point_list {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px;}
#section_point .point_list li {display: flex; flex-direction: column; padding: 28px 26px 30px; border-radius: var(--r-lg); background: var(--bg);}
#section_point .point_top {display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line);}
#section_point .point_kicker {font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--main-text);}
#section_point .point_count {font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums;}
#section_point .point_count b {font-weight: 800; color: var(--ink);}
#section_point .point_list h3 {margin-bottom: 10px; font-size: 20px; font-weight: 800; line-height: 1.38; letter-spacing: -0.5px; color: var(--ink); word-break: keep-all;}
#section_point .point_list h3 b {color: var(--main-text);}
#section_point .point_list p {font-size: 15px; line-height: 1.7; color: var(--body); word-break: keep-all;}

/* 가입 조건 — 선 하나로 두른 상자 안에 3칸 (칸 사이 세로선) */
/* 보장이 시작되는 시점 — 면책(줄무늬) → 감액(연한 색) → 100%(메인컬러) 흐름 표 */
#section_point .period_wrap {margin-top: 72px; padding: 40px 44px 36px; border-radius: var(--r-xl); background: var(--bg);}
#section_point .period_wrap .join_head {border-bottom: 0; padding-bottom: 20px;}
#section_point .period_table {width: 100%; border-collapse: separate; border-spacing: 8px 8px; margin: 0 -8px; width: calc(100% + 16px); table-layout: fixed;}
#section_point .period_table th,
#section_point .period_table td {padding: 18px 20px; border-radius: 16px; text-align: left; vertical-align: middle; word-break: keep-all;}
#section_point .period_table .p_label {width: 210px; background: none; padding-left: 4px; font-size: 17px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink);}
#section_point .period_table .p_label small {display: block; margin-top: 3px; font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--muted);}
#section_point .period_table thead .p_label {font-size: 14px; color: var(--muted);}
#section_point .p_phase {font-size: 17px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink);}
#section_point .p_phase small {display: block; margin-top: 2px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--body);}
#section_point .p_step {display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; color: var(--muted);}
#section_point .p_phase.is_wait {background: repeating-linear-gradient(135deg, #E9ECF0 0 8px, #F1F3F6 8px 16px);}
#section_point .p_phase.is_half {background: var(--main-tint);}
#section_point .p_phase.is_full {background: var(--main-color); color: var(--main-ink);}
#section_point .p_phase.is_full small, #section_point .p_phase.is_full .p_step {color: rgba(255, 255, 255, 0.85);}
#section_point .period_table td {background: #fff; font-size: 15.5px; font-weight: 600; line-height: 1.55; color: var(--body);}
#section_point .period_table td:last-child {color: var(--main-text); font-weight: 800;}
#section_point .period_foot {margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--body); word-break: keep-all;}
#section_point .period_wrap .red_notice {margin-top: 12px;}

#section_point .join_wrap {margin-top: 24px; padding: 40px 44px 36px; border: 1px solid var(--line); border-radius: var(--r-xl);}
#section_point .join_head {display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line);}
#section_point .join_head h3 {font-size: 26px; font-weight: 800; line-height: 1.35; letter-spacing: -0.8px; color: var(--ink); word-break: keep-all;}
#section_point .join_head h3 b {color: var(--main-text);}
#section_point .join_head p {max-width: 480px; font-size: 14.5px; line-height: 1.6; color: var(--muted); text-align: right; word-break: keep-all;}

#section_point .join_table {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));}
#section_point .join_table > div {padding: 26px 28px 4px;}
#section_point .join_table > div:first-child {padding-left: 0;}
#section_point .join_table > div:last-child {padding-right: 0;}
#section_point .join_table > div + div {border-left: 1px solid var(--line);}
#section_point .join_table dt {display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink);}
#section_point .join_table dt::before {content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--main-color);}
#section_point .join_table dd {margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--body); word-break: keep-all;}

/* 가입 유형 (있는 보종만) — 가로 줄 목록: 왼쪽 이름·한 줄 요약 | 오른쪽 체크 항목 3칸 */
#section_point .join_sub {margin: 40px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); word-break: keep-all;}
#section_point .join_types > li {display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 32px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line);}
#section_point .join_types strong {display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink);}
#section_point .join_lead {display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--main-text);}
#section_point .join_types > li > :not(ul) {grid-column: 1;}
#section_point .join_types ul {grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;}
#section_point .join_types ul li {position: relative; padding-left: 28px; font-size: 15px; line-height: 1.6; color: var(--body); word-break: keep-all;}
#section_point .join_types ul li::before {content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--main-color) var(--ico-check) no-repeat center / 11px;}
#section_point .join_wrap .red_notice {margin-top: 24px;}


/* ── section4: 가입 전 확인사항 — 왼쪽 흰 줄 카드 + 오른쪽 그라데이션 CTA ── */
#section4 .check_wrap {display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; align-items: stretch;}
#section4 .checklist {display: flex; flex-direction: column; gap: 12px;}
#section4 .checklist li {display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; flex: 1; padding: 26px 28px; border-radius: var(--r-lg); background: #fff;}
/* CHECK 01 — 연한 메인컬러 둥근 네모 */
#section4 .num {display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--main-soft); font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--main-text);}
#section4 .num small {font-size: 9.5px; font-weight: 800; letter-spacing: 0.8px; color: var(--muted);}
#section4 h3 {margin: 4px 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); word-break: keep-all;}
#section4 .txt p {font-size: 15px; line-height: 1.7; color: var(--body); word-break: keep-all;}
#section4 .txt .line_link {margin-top: 12px; font-size: 14px;}

/* 중간 CTA — 연한 그라데이션 카드, 버튼만 진한 메인컬러 */
#section4 .cta_box {position: relative; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; min-height: 380px; padding: 44px 40px 40px; border-radius: var(--r-xl); background: var(--grad-soft);}
#section4 .cta_title {position: relative; z-index: 1; font-size: 30px; font-weight: 800; line-height: 1.4; letter-spacing: -1px; color: var(--ink); word-break: keep-all;}
#section4 .cta_title b {color: var(--main-text);}
/* 안심 문구 — 흰 알약 칩 3개, 앞에 메인컬러 체크 */
#section4 .cta_points {position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;}
#section4 .cta_points li {display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap;}
#section4 .cta_points li::before {content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--main-color) var(--ico-check) no-repeat center / 10px;}
#section4 .cta_btn {position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px; height: 58px; margin-top: auto; padding: 0 26px 0 30px; border: 0; border-radius: 999px; background: var(--main-color); color: var(--main-ink); font-size: 17px; font-weight: 800; letter-spacing: -0.3px; cursor: pointer; box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--main-color) 85%, transparent); transition: background 0.15s;}
#section4 .cta_btn svg {width: 36px; height: 12px; transition: width 0.25s ease;}
#section4 .cta_btn:hover {background: var(--main-dark);}
#section4 .cta_btn:hover svg {width: 48px;}
#section4 .cta_btn:focus-visible {outline: 3px solid var(--main-line); outline-offset: 3px;}
#section4 .cta_visual {position: absolute; right: -10px; bottom: -10px; width: 52%; max-width: 280px; height: auto; object-fit: contain; pointer-events: none;}


/* ── section_process: 진행 순서 — 계단형 (오른쪽으로 갈수록 한 칸씩 높아지고 마지막만 메인컬러) ── */
#section_process .process_list {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch;}
#section_process .process_list li {display: flex; flex-direction: column; min-height: 250px; padding: 28px 26px 30px; border-radius: var(--r-lg); background: var(--pastel-1);}
#section_process .process_list li:nth-child(1) {margin-top: 96px;}
#section_process .process_list li:nth-child(2) {margin-top: 64px; background: color-mix(in srgb, var(--main-color) 12%, #fff);}
#section_process .process_list li:nth-child(3) {margin-top: 32px; background: color-mix(in srgb, var(--main-color) 16%, #fff);}
#section_process .process_list li:last-child {background: var(--grad-strong); color: var(--main-ink);}
#section_process .step_no {font-size: 13px; font-weight: 800; letter-spacing: 0.8px; color: var(--main-text);}
#section_process .ico3d {width: 64px; height: 64px; margin: 18px 0 auto;}
#section_process h3 {margin-top: 24px; font-size: 21px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); word-break: keep-all;}
#section_process p {margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--body); word-break: keep-all;}
#section_process li:last-child .step_no {color: rgba(255, 255, 255, 0.8);}
#section_process li:last-child h3 {color: var(--main-ink);}
#section_process li:last-child p {color: rgba(255, 255, 255, 0.9);}


/* ── 자주 묻는 질문 — 흰 상자 하나 안에 줄로 나눈 목록, 열면 연한 메인컬러 ── */
#section_qna .qna_list {max-width: var(--narrow); margin: 0 auto; padding: 8px; border-radius: var(--r-xl); background: #fff;}
#section_qna .qna_item {border-radius: 20px; transition: background 0.2s;}
#section_qna .qna_item + .qna_item {margin-top: 2px;}
#section_qna .qna_item + .qna_item::before {content: ''; display: block; height: 1px; margin: 0 24px; background: var(--line);}
#section_qna .qna_item.active::before,
#section_qna .qna_item.active + .qna_item::before {opacity: 0;}
#section_qna .qna_question {display: flex; align-items: center; gap: 16px; width: 100%; padding: 22px 22px 22px 24px; border: 0; border-radius: 20px; background: none; text-align: left; cursor: pointer;}
#section_qna .qna_question:focus-visible {outline: 3px solid var(--main-line); outline-offset: -3px;}
#section_qna .qna_num {flex-shrink: 0; width: 28px; font-size: 15px; font-weight: 800; color: var(--main-text); font-variant-numeric: tabular-nums;}
#section_qna .qna_text {flex: 1; font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: -0.4px; color: var(--ink); word-break: keep-all;}

/* + → − (세로 막대가 눕는다) */
#section_qna .qna_icon {position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); transition: background 0.15s;}
#section_qna .qna_icon::before,
#section_qna .qna_icon::after {content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--ink); transition: transform 0.25s, background 0.15s;}
#section_qna .qna_icon::after {transform: rotate(90deg);}
#section_qna .qna_question:hover .qna_icon {background: var(--main-tint);}

#section_qna .qna_answer {display: none; padding: 0 70px 24px 68px;}
#section_qna .qna_answer p {font-size: 16px; line-height: 1.75; color: var(--body); word-break: keep-all;}
#section_qna .qna_answer .line_link {margin-top: 14px; font-size: 14.5px;}

#section_qna .qna_item.active {background: var(--main-soft);}
#section_qna .qna_item.active .qna_icon {background: var(--main-color);}
#section_qna .qna_item.active .qna_icon::before,
#section_qna .qna_item.active .qna_icon::after {background: #fff;}
#section_qna .qna_item.active .qna_icon::after {transform: rotate(0deg);}
#section_qna .qna_item.active .qna_answer {display: block; animation: qna_open 0.3s ease;}
@keyframes qna_open {from {opacity: 0; transform: translateY(-6px);} to {opacity: 1; transform: translateY(0);}}

/* 섹션 아래 '자세히 보기' 링크 */
.sec_more {margin-top: 32px; text-align: center;}


/* ── section_guide: 서브페이지로 가는 목차형 줄 링크 ── */
#section_guide .guide_list {border-top: 2px solid var(--ink);}
#section_guide .guide_list li {border-bottom: 1px solid var(--line);}
#section_guide .guide_row {display: grid; grid-template-columns: 88px minmax(0, 1fr) 72px; gap: 28px; align-items: center; padding: 24px 20px; border-radius: var(--r-md); color: inherit; text-decoration: none; transition: background 0.2s;}
#section_guide .guide_ico {display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 22px; background: var(--pastel-1);}
#section_guide li:nth-child(even) .guide_ico {background: var(--pastel-2);}
#section_guide .guide_ico .ico3d {width: 60px; height: 60px;}
#section_guide .guide_txt {display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 20px; align-items: baseline;}
#section_guide .guide_tag {grid-row: 1 / span 2; font-size: 14px; font-weight: 800; color: var(--main-text);}
#section_guide .guide_txt strong {font-size: 21px; font-weight: 800; line-height: 1.4; letter-spacing: -0.5px; color: var(--ink); word-break: keep-all;}
#section_guide .guide_desc {font-size: 15px; line-height: 1.6; color: var(--body); word-break: keep-all;}
#section_guide .guide_arrow {justify-self: end; display: flex; color: var(--ink);}
#section_guide .guide_arrow svg {width: 48px; height: 16px; transition: width 0.25s ease, color 0.15s;}
#section_guide .guide_row:hover {background: var(--main-soft);}
#section_guide .guide_row:hover .guide_arrow {color: var(--main-color);}
#section_guide .guide_row:hover .guide_arrow svg {width: 68px;}
#section_guide .guide_row:focus-visible {outline: 3px solid var(--main-line); outline-offset: 2px;}


/* ── 스크롤 등장 효과 — index.php 스크립트가 .reveal 을 붙이고, 화면에 들어오면 .is_in ── */
.reveal {opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease;}
.reveal.is_in {opacity: 1; transform: none;}


/* ══════════════════════════════════════════════════
   반응형
   ══════════════════════════════════════════════════ */

@media (max-width: 1300px) {
  .inner {width: 93%;}}

@media (max-width: 1200px) {
  :root {--sec-pad: 104px;}
  #section1 .hero_wrap {grid-template-columns: minmax(0, 1fr) 380px;}
  #section1 .hero_title {font-size: 36px;}
  #section1 .slide_txt {padding-left: 36px; padding-right: 32px;}
  #section1 .slide_title {font-size: 27px;}
  #section1 .slide_bar {left: 36px;}
  #section1 .form_wrap {padding: 26px 22px 20px;}
  #section1 .hero_steps .txt {font-size: 12.5px;}

  #section_company .company_wrap {gap: 40px;}
  #section_company .co_mark {width: 46px; height: 46px; font-size: 20px;}
  #section_company .co_logo {font-size: 15.5px;}
  #section_point .point_list {grid-template-columns: repeat(2, minmax(0, 1fr));}}

/* 한 단 — 제목 → 슬라이드 → 폼 → 진행 순서·신뢰 지표 */
@media (max-width: 1150px) {
  :root {--sec-pad: 92px;}
  #section1 > .inner, #section_company > .inner,
  #section2 > .inner,
  #section3 > .inner, #section_point > .inner,
  #section4 > .inner,
  #section_process > .inner,
  #section_qna > .inner, #section_guide > .inner {width: min(720px, calc(100% - 32px));}

  #section1 .hero_wrap {grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "head" "slider" "form" "info"; padding-bottom: 56px;}
  #section1 .hero_title {font-size: 36px;}
  #section1 .hero_slider {min-height: 400px;}
  #section1 .form_wrap {scroll-margin-top: 84px;}

  #section_company .company_wrap {grid-template-columns: minmax(0, 1fr); gap: 32px;}
  #section2 .why_grid {grid-template-columns: minmax(0, 1fr); grid-template-rows: auto;}
  #section2 .why_card.is_big {grid-row: auto; min-height: 380px;}
  #section3 .cov_list {grid-template-columns: repeat(2, minmax(0, 1fr));}
  #section3 .cov_group_head {grid-template-columns: auto minmax(0, 1fr);}
  #section3 .cov_group_head p {grid-column: 1 / -1; justify-self: start; text-align: left;}
  #section_point .join_head {display: block;}
  #section_point .period_table .p_label {width: 150px;}
  #section_point .period_table th, #section_point .period_table td {padding: 16px 14px;}
  #section_point .join_head p {margin-top: 8px; text-align: left;}
  #section_point .join_table > div {padding: 22px 18px 4px;}
  #section_point .join_types > li {grid-template-columns: minmax(0, 1fr); gap: 14px;}
  #section_point .join_types ul {grid-column: 1; grid-row: auto; grid-template-columns: minmax(0, 1fr); gap: 8px;}
  #section4 .check_wrap {grid-template-columns: minmax(0, 1fr);}
  #section4 .cta_box {min-height: 340px;}
  /* 계단은 2×2 에서 풀어 둔다 */
  #section_process .process_list {grid-template-columns: repeat(2, minmax(0, 1fr));}
  #section_process .process_list li:nth-child(n) {margin-top: 0;}
  #section_guide .guide_txt {grid-template-columns: minmax(0, 1fr);}
  #section_guide .guide_tag {grid-row: auto;}}

@media (max-width: 768px) {
  :root {--sec-pad: 80px;}
  #section1 .hero_wrap {gap: 14px; padding: 6px 0 40px;}

  /* 제목 아래 컨트롤은 오른쪽 끝으로 */
  #section1 .hero_head {grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0;}
  #section1 .hero_head .hero_ctrl {grid-column: 1; grid-row: auto; margin-top: 12px;}
  #section1 .hero_title {font-size: 28px; letter-spacing: -1px;}
  #section1 .hero_desc {margin-top: 8px; font-size: 15px;}
  #section1 .hero_desc br {display: none;}
  #section1 .hero_ctrl {justify-content: flex-end; gap: 6px; padding: 0;}
  #section1 .ctrl_num {font-size: 14px;}
  #section1 .line_btn {width: 48px; height: 28px;}
  #section1 .line_btn.is_prev {width: 34px;}
  #section1 .ctrl_pause {width: 30px; height: 30px;}

  /* 슬라이드를 낮게 — 첫 화면에 폼이 바로 걸치게 */
  #section1 .hero_slider {min-height: 230px; border-radius: 24px;}
  #section1 .slide_txt {max-width: 62%; padding: 22px 20px 46px;}
  #section1 .slide_label {padding: 5px 10px; font-size: 12px;}
  #section1 .slide_title {margin-top: 10px; font-size: 20px; letter-spacing: -0.6px;}
  #section1 .slide_desc {display: none;}
  #section1 .slide_img {object-position: 72% center;}
  #section1 .hero_slide::after {background: linear-gradient(90deg, var(--slide-bg, var(--pastel-1)) 0%, color-mix(in srgb, var(--slide-bg, var(--pastel-1)) 85%, transparent) 45%, transparent 72%);}
  #section1 .slide_bar {left: 20px; bottom: 22px; width: 90px;}

  #section1 .form_wrap {padding: 24px 18px 20px; border-radius: 24px;}
  .form_wrap .form_head {margin-bottom: 16px;}
  .form_wrap .form_head h2 {font-size: 21px;}
  .form_wrap .form_ico {width: 52px; height: 52px;}
  #section1 .hero_info {padding: 16px 14px 14px; border-radius: 24px;}

  .title_wrap {margin-bottom: 36px;}
  .title_wrap h2 {font-size: 30px; letter-spacing: -1px;}
  .title_wrap p {font-size: 16px;}

  #section_company .company_grid {gap: 8px;}
  #section_company .company_grid li {gap: 8px; border-radius: var(--r-md);}
  #section_company .co_mark {width: 40px; height: 40px; font-size: 18px;}
  #section_company .co_logo {font-size: 14px;}

  #section2 .why_card {padding: 26px 24px;}
  #section2 .why_card.is_big {min-height: 0; padding: 30px 26px 26px;}
  #section2 .is_big h3 {font-size: 24px;}
  #section2 .is_big p {font-size: 16px;}
  #section2 .why_card.is_big .ico3d {position: static; width: 120px; height: 120px; margin-top: 8px;}
  #section2 .why_card .ico3d {width: 72px; height: 72px;}

  #section_point .point_banner {padding: 30px 28px;}
  #section_point .point_banner h3 {font-size: 23px;}
  #section_point .point_banner .ico3d {width: 96px; height: 96px;}
  #section_point .period_wrap {margin-top: 56px; padding: 30px 26px 28px; border-radius: var(--r-lg);}
  /* 표 → 치료 구분마다 카드 한 장 */
  #section_point .period_table, #section_point .period_table tbody, #section_point .period_table tr {display: block; width: 100%; margin: 0;}
  #section_point .period_table thead {display: block; margin-bottom: 12px;}
  #section_point .period_table thead tr {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;}
  #section_point .period_table thead .p_label {display: none;}
  #section_point .p_phase {padding: 12px 10px !important; font-size: 14.5px; border-radius: 12px !important;}
  #section_point .p_phase small {font-size: 11.5px;}
  #section_point .p_step {margin-bottom: 3px;}
  #section_point .period_table tbody tr {padding: 18px 18px 8px; border-radius: 18px; background: #fff;}
  #section_point .period_table tbody tr + tr {margin-top: 10px;}
  #section_point .period_table tbody .p_label {display: block; width: auto; padding: 0 0 10px; border-bottom: 1px solid var(--line);}
  #section_point .period_table td {display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-radius: 0; font-size: 14.5px; text-align: right;}
  #section_point .period_table td + td {border-top: 1px dashed var(--line);}
  #section_point .period_table td::before {content: attr(data-label); flex-shrink: 0; font-weight: 700; color: var(--ink); text-align: left;}
  #section_point .join_wrap {margin-top: 24px; padding: 30px 26px 28px; border-radius: var(--r-lg);}
  #section_point .join_head h3 {font-size: 22px;}

  #section4 .checklist li {grid-template-columns: 54px minmax(0, 1fr); gap: 16px; padding: 22px;}
  #section4 .num {width: 54px; height: 54px; border-radius: 16px; font-size: 18px;}
  #section4 .cta_box {min-height: 0; padding: 32px 26px 30px; border-radius: var(--r-lg);}
  #section4 .cta_title {font-size: 24px;}
  #section4 .cta_btn {margin-top: 28px;}
  #section4 .cta_visual {width: 40%; max-width: 200px; opacity: 0.9;}

  #section_qna .qna_question {gap: 12px; padding: 18px 16px 18px 18px;}
  #section_qna .qna_num {width: 24px; font-size: 14px;}
  #section_qna .qna_text {font-size: 16px;}
  #section_qna .qna_answer {padding: 0 18px 22px 54px;}
  #section_qna .qna_answer p {font-size: 15px;}

  #section_guide .guide_row {grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 16px; padding: 20px 8px;}
  #section_guide .guide_ico {width: 64px; height: 64px; border-radius: 18px;}
  #section_guide .guide_ico .ico3d {width: 44px; height: 44px;}
  #section_guide .guide_txt strong {font-size: 18px;}
  #section_guide .guide_desc {font-size: 14.5px;}
  #section_guide .guide_arrow svg {width: 36px;}
  #section_guide .guide_row:hover .guide_arrow svg {width: 36px;}}

@media (max-width: 550px) {
  :root {--sec-pad: 64px;}
  #section1 > .inner, #section_company > .inner,
  #section2 > .inner,
  #section3 > .inner, #section_point > .inner,
  #section4 > .inner,
  #section_process > .inner,
  #section_qna > .inner, #section_guide > .inner {width: calc(100% - 28px);}

  .red_notice {margin-top: 16px; font-size: 13px;}

  #section1 .hero_title {font-size: 25px;}
  #section1 .hero_slider {min-height: 210px; border-radius: 20px;}
  #section1 .slide_title {font-size: 18px;}

  .form_wrap .form_fields {gap: 12px 8px;}
  .form_wrap .field > label, .form_wrap .field_label {margin-bottom: 5px; font-size: 13.5px;}
  .form_wrap input[type='text'], .form_wrap .phone_select, .form_wrap .region_select, .form_wrap .select_btn {padding: 0 12px;}
  .form_wrap .phone_select, .form_wrap .region_select {padding-right: 30px; background-position: right 10px center;}
  .form_wrap .phone_input_wrap {grid-template-columns: 88px minmax(0, 1fr);}
  .form_wrap .submit_btn {height: 56px; margin-top: 16px; font-size: 17px;}
  .form_wrap .form_privacy {font-size: 12.5px;}
  #section1 .hero_steps {gap: 6px;}
  #section1 .hero_steps li {min-height: 54px; padding: 7px 2px;}
  #section1 .hero_steps .txt {font-size: 12px;}
  #section1 .hero_stats strong {font-size: 20px;}
  #section1 .hero_stats span {font-size: 12px;}

  .title_wrap {margin-bottom: 28px;}
  .title_wrap .section_label {font-size: 12.5px;}
  .title_wrap h2 {margin-top: 10px; font-size: 26px; letter-spacing: -0.8px;}
  .title_wrap p {margin-top: 12px; font-size: 15px;}
  .title_wrap h2 br {display: none;}

  #section_company .company_grid {grid-template-columns: repeat(4, minmax(0, 1fr));}
  #section_company .company_grid li {aspect-ratio: auto; padding: 14px 2px; border-radius: 16px;}
  #section_company .co_mark {width: 34px; height: 34px; font-size: 16px;}
  #section_company .co_logo {font-size: 12.5px; letter-spacing: -0.6px;}
  #section_company .company_foot {font-size: 13px;}

  #section2 .why_grid {gap: 12px;}
  #section2 .why_card {flex-direction: column; gap: 4px; padding: 24px 22px; border-radius: var(--r-lg);}
  #section2 h3 {font-size: 20px;}
  #section2 p {font-size: 15px;}
  /* 그림은 글 위로 올려 제목과 겹치지 않게 */
  #section2 .why_card .ico3d,
  #section2 .why_card.is_big .ico3d {position: static; order: -1; align-self: flex-start; width: 56px; height: 56px; margin: 0 0 10px;}

  #section3 .cov_list {grid-template-columns: minmax(0, 1fr); gap: 28px;}
  #section3 .cov_img {aspect-ratio: 2 / 1; margin-bottom: 14px;}
  #section3 .cov_img .ico3d {width: 88px; height: 88px;}
  #section3 .cov_list h4 {font-size: 18px;}
  #section3 .cov_group + .cov_group {margin-top: 48px;}
  #section3 .cov_group_head {grid-template-columns: auto minmax(0, 1fr); margin-bottom: 20px; padding-bottom: 14px;}
  #section3 .cov_group_head h3 {font-size: 21px;}
  #section3 .cov_group_head p {grid-column: 1 / -1; justify-self: start; font-size: 14px; text-align: left;}
  #section3 .cov_list p {font-size: 14.5px;}

  #section_point .point_banner {flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 22px; border-radius: var(--r-lg);}
  #section_point .point_banner h3 {font-size: 21px;}
  #section_point .point_banner p {font-size: 15px;}
  #section_point .point_banner .ico3d {align-self: flex-end; width: 80px; height: 80px; margin-top: -40px;}
  #section_point .point_list {grid-template-columns: minmax(0, 1fr); gap: 12px;}
  #section_point .point_list li {padding: 22px 20px; border-radius: var(--r-md);}
  #section_point .point_top {margin-bottom: 16px;}
  #section_point .point_list h3 {font-size: 18px;}
  #section_point .point_list p {font-size: 14.5px;}
  #section_point .join_wrap {padding: 24px 20px 22px;}
  #section_point .join_head {padding-bottom: 18px;}
  #section_point .join_head p {font-size: 13.5px;}
  #section_point .join_table {grid-template-columns: minmax(0, 1fr);}
  #section_point .join_table > div {padding: 18px 0 14px !important; border-left: 0 !important;}
  #section_point .join_table > div + div {border-top: 1px solid var(--line);}
  #section_point .join_table dt {font-size: 16px;}
  #section_point .join_table dd {margin-top: 6px; font-size: 14.5px;}
  #section_point .join_sub {margin-top: 32px; font-size: 18px;}
  #section_point .join_types strong {font-size: 17px;}
  #section_point .join_types ul li {font-size: 14.5px;}
  #section_point .join_wrap .red_notice {margin-top: 18px;}
  #section_point .period_wrap {padding: 24px 16px 22px;}
  #section_point .period_table thead tr {gap: 4px;}
  #section_point .p_phase {padding: 10px 8px !important; font-size: 13.5px;}
  #section_point .p_phase small {display: none;}
  #section_point .period_table tbody tr {padding: 16px 16px 6px;}
  #section_point .period_table td {font-size: 14px;}
  #section_point .period_foot {font-size: 13.5px;}

  #section4 .checklist {gap: 10px;}
  #section4 .checklist li {grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 20px 18px; border-radius: var(--r-md);}
  #section4 .num {width: 46px; height: 46px; border-radius: 14px; font-size: 16px;}
  #section4 .num small {font-size: 8px;}
  #section4 h3 {font-size: 17px;}
  #section4 .txt p {font-size: 14.5px;}
  #section4 .cta_title {font-size: 22px;}
  #section4 .cta_points li {padding: 7px 12px 7px 8px; font-size: 13px;}
  #section4 .cta_btn {width: 100%; justify-content: center; height: 56px;}
  #section4 .cta_visual {display: none;}

  #section_process .process_list {grid-template-columns: minmax(0, 1fr); gap: 10px;}
  #section_process .process_list li {display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "ico no" "ico tit" "ico txt"; column-gap: 16px; min-height: 0; padding: 22px 20px; border-radius: var(--r-md);}
  #section_process .step_no {grid-area: no; font-size: 12px;}
  #section_process .ico3d {grid-area: ico; align-self: center; width: 56px; height: 56px; margin: 0;}
  #section_process h3 {grid-area: tit; margin-top: 4px; font-size: 18px;}
  #section_process p {grid-area: txt; margin-top: 4px; font-size: 14.5px;}

  #section_qna .qna_list {padding: 4px; border-radius: var(--r-lg);}
  #section_qna .qna_item + .qna_item::before {margin: 0 16px;}
  #section_qna .qna_question {padding: 16px 12px 16px 14px;}
  #section_qna .qna_text {font-size: 15.5px;}
  #section_qna .qna_icon {width: 32px; height: 32px;}
  #section_qna .qna_answer {padding: 0 14px 20px 50px;}

  #section_guide .guide_row {grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 18px 4px;}
  #section_guide .guide_ico {width: 56px; height: 56px; border-radius: 16px;}
  #section_guide .guide_ico .ico3d {width: 38px; height: 38px;}
  #section_guide .guide_arrow {display: none;}
  #section_guide .guide_txt strong {font-size: 17px;}
  #section_guide .guide_desc {font-size: 14px;}}

/* 아주 좁을 때 — 폼 한 줄에 한 칸 */
@media (max-width: 360px) {
  .form_wrap .form_fields {grid-template-columns: minmax(0, 1fr);}
  .form_wrap .phone_input_wrap {grid-template-columns: 82px minmax(0, 1fr);}
  #section1 .hero_title {font-size: 23px;}
  #section1 .slide_title {font-size: 17px;}
  #section1 .hero_steps .txt {font-size: 11.5px;}
  #section1 .hero_stats strong {font-size: 18px;}
  #section1 .hero_stats span {font-size: 11.5px;}
  #section_company .co_logo {font-size: 11.5px;}}

@media (hover: none) {
  .line_link:hover svg {width: 40px;}
  .form_wrap .submit_btn:hover {background: var(--main-color);}
  .form_wrap .submit_btn:hover svg {transform: none;}
  #section4 .cta_btn:hover {background: var(--main-color);}
  #section4 .cta_btn:hover svg {width: 36px;}
  #section3 .cov_list li:hover .ico3d {transform: none;}
  #section_qna .qna_question:hover .qna_icon {background: var(--bg);}
  #section_qna .qna_item.active .qna_question:hover .qna_icon {background: var(--main-color);}
  #section_guide .guide_row:hover {background: none;}
  #section_guide .guide_row:hover .guide_arrow svg {width: 48px;}}

@media (prefers-reduced-motion: reduce) {
  #section1 .hero_slide {transition: none;}
  #section1 .slide_bar i.run {animation: none;}
  .line_link svg, #section4 .cta_btn svg, #section_guide .guide_arrow svg, #section3 .cov_img .ico3d,
  .form_wrap .submit_btn, .form_wrap .submit_btn svg, .form_wrap .gender_wrap label,
  .form_wrap input[type='text'], .form_wrap .phone_select, .form_wrap .region_select, .form_wrap .select_btn {transition: none;}
  .form_wrap .select_wrap.open .select_list {animation: none;}
  #section_qna .qna_item.active .qna_answer {animation: none;}
  #section_qna .qna_icon::before, #section_qna .qna_icon::after {transition: none;}
  .reveal {opacity: 1; transform: none; transition: none;}}


/* ── 신청 유도 플로팅 버튼 (모바일 전용) ── */
.to_top {
  position: fixed; left: 50%; bottom: 24px; z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 30px;
  border: 0; border-radius: 999px;
  background: var(--main-color); color: var(--main-ink);
  font-size: 17px; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--main-color) 35%, transparent);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 24px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.3s ease, background 0.15s;
}
.to_top.show {opacity: 1; visibility: visible; transform: translate(-50%, 0);}
.to_top:hover {background: var(--main-dark);}
.to_top svg {width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;}

/* 어두운 푸터 위에 올라오면 색을 뒤집는다 */
.to_top.on_dark {background: #fff; color: var(--main-color); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);}

/* 신청 유도 플로팅 버튼 — 모바일(768px 이하)에서만 보인다. PC는 헤더의 '무료 상담' 버튼이 같은 역할을 한다 */
@media (min-width: 769px) {
  .to_top {display: none;}}

@media (max-width: 550px) {
  .to_top {left: 16px; right: 16px; bottom: 12px; height: 56px; transform: translateY(24px);}
  .to_top.show {transform: translateY(0);}}
@media (hover: none) {
  .to_top:hover {background: var(--main-color);}
  .to_top.on_dark:hover {background: #fff;}}
@media (prefers-reduced-motion: reduce) {
  .to_top {transition: none;}}

@media (max-width: 768px) {
  .m_header_bar .logo {width: 120px;}
  .m_header_bar .m_header_date {font-size: 14px;}}


/* ══════ 약관 문서 페이지 (개인정보처리방침 · 이용약관) ══════ */
.doc_page {padding: 70px 0 90px;}
.doc_page .inner {max-width: 860px;}

.doc_back {display: inline-block; margin-bottom: 20px; color: #888; font-size: 14px; transition: color 0.15s ease;}
.doc_back:hover {color: var(--main-color);}

.doc_page h1 {padding-bottom: 24px; border-bottom: 2px solid #222; font-size: 32px; font-weight: 800; letter-spacing: -0.5px;}

.doc_body {padding-top: 34px; color: #555; font-size: 16px; line-height: 1.8; word-break: keep-all;}
.doc_body h3 {margin: 40px 0 14px; color: #222; font-size: 19px; font-weight: 700;}
.doc_body h3:first-child {margin-top: 0;}
.doc_body p {margin-bottom: 14px;}
.doc_body a {color: var(--main-color); font-weight: 600; text-decoration: underline;}

.doc_body ul {margin: 0 0 14px; padding-left: 4px; list-style: none;}
.doc_body ul li {position: relative; padding-left: 15px; margin-bottom: 7px;}
.doc_body ul li::before {content: ''; position: absolute; left: 0; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: #bbb;}

.doc_body table {width: 100%; margin: 0 0 18px; border-top: 2px solid var(--main-color); border-collapse: collapse;}
.doc_body table th,
.doc_body table td {padding: 14px 16px; border-bottom: 1px solid #e8ecf1; font-size: 15px; line-height: 1.7; text-align: left; vertical-align: top;}
.doc_body table th {width: 150px; background: #f7f9fc; color: #333; font-weight: 700;}

.doc_body .note {padding: 16px 18px; border-radius: 12px; background: #f5f7fa; color: #666; font-size: 14.5px; line-height: 1.75;}

@media (max-width: 768px) {
  .doc_page {padding: 40px 0 70px;}
  .doc_page h1 {padding-bottom: 18px; font-size: 24px;}
  .doc_body {padding-top: 26px; font-size: 15px;}
  .doc_body h3 {margin: 32px 0 12px; font-size: 17px;}

  .doc_body table,
  .doc_body table tbody,
  .doc_body table tr,
  .doc_body table th,
  .doc_body table td {display: block; width: 100%;}
  .doc_body table tr:first-child {display: none;}
  .doc_body table tr {padding: 13px 0; border-bottom: 1px solid #e8ecf1;}
  .doc_body table tr:last-child {border-bottom: 0;}
  .doc_body table th,
  .doc_body table td {padding: 0; border: 0;}
  .doc_body table th {margin-bottom: 4px; background: none; color: #888; font-size: 13.5px; font-weight: 600;}
  .doc_body table td {font-size: 14.5px; color: #555;}
  .doc_body .note {font-size: 13.5px;}}