@charset "utf-8";
/* ==================================================================
   양압기가 불편하다면 페이지 전용 CSS
   - 대상 : /html/sub/snoring_cpap.html
   - 기존 공통 컴포넌트(.sub_hero / .sub_top_tit / .sub_section /
     .section_tit / .symptom_list / .step_list_lg / .faq_wrap /
     .faq_list)는 common.css · style.css 를 그대로 쓰고,
     이 파일에는 이 페이지에서 새로 쓰는 것만 담는다.
   - 페이지 본문의 <main> 은 class="wrap snoring_cpap" 이다.
   - 단위는 사이트 규칙에 맞춰 rem (html font-size 62.5% / 모바일 55%)
   - 일러스트는 목업에 그려 둔 그림을 본문에 직접 넣었다.
     사진이 아니라 그림이라 확대해도 흐려지지 않는다.
   - 코골이 방지장치 페이지(snoring_device.css)와 같은 계열이므로
     색·여백 규칙을 맞춰 두 페이지가 한 사이트로 보이게 한다.
===================================================================== */

.snoring_cpap {
  --sc-orange: #f7941d;
  /* 제목 강조 */
  --sc-vermilion: #f24822;
  /* 포인트·CTA */
  --sc-deep: #c43a17;
  /* 본문 안 강조 글자 (주황은 흰 바탕에서 흐려 읽기 어렵다) */
  --sc-text: #333;
  --sc-line: #eaeaea;
  --sc-dark: #2a2724;
  --sc-fig: #f5f0e9;
  /* 일러스트 바탕 - 그림이 자기 바탕으로 칠하는 색과 같은 값이어야 한다.
     그림은 비율을 지키며 칸 안에 들어가므로 남는 양옆이 칸 색으로 보인다.
     색이 다르면 그 자리가 띠처럼 드러난다 */

  /* ------------------------------------------------------------------
     장식용 영문 (CPAP / NUMBER / OPTION / SLEEP DENTISTRY / FAQ)
     모양과 굵기(400)는 공통 CSS 의 .en 규칙을 그대로 쓴다.
     이 페이지에서는 길이 때문에 줄여야 하는 자리만 따로 잡는다.
  ------------------------------------------------------------------ */
  /* SLEEP DENTISTRY 는 글자가 길어 18rem 이면 본문 폭을 넘는다 */
  .section_tit .en.long {
    font-size: 9rem;
  }

  /* 큰 영문은 줄간격이 1 이라 바로 아래 한글 제목과 붙어 보인다 */
  .section_tit .en {
    margin-bottom: 2rem;
  }

  /* ------------------------------------------------------------------
     h1 / h2 로 올라간 제목
     공통 CSS 는 .sub_top_tit h3 · .section_tit h3 에만 제목 스타일을 준다.
     이 페이지는 문서 구조를 h1 > h2 로 잡았으므로 같은 모양을 넘겨준다.
  ------------------------------------------------------------------ */
  .sub_top_tit h1,
  .sub_top_tit h2 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--000);
    margin: 0 0 3rem;
    line-height: 132.5%;
  }

  .sub_top_tit h1 em,
  .sub_top_tit h2 em,
  .sub_top_tit h1 b,
  .sub_top_tit h2 b {
    color: var(--point-soft);
    font-style: normal;
    font-weight: 700;
  }

  .section_tit h2 {
    font-size: 4rem;
    line-height: 132.5%;
    color: var(--000);
    margin: 0 0 3rem;
    font-weight: 700;
  }

  .section_tit h2 b,
  .section_tit h2 span {
    font-weight: 700;
    color: var(--point-soft);
  }

  /* 페이지 타이틀 줄 - 이 페이지의 h1 은 인트로 문장이라 타이틀은 p 로 두었다.
     공통 CSS 가 h1 에만 여백을 지워 두어 p 로 쓰면 위에 한 줄이 뜬다. */
  .page_head .page_title {
    margin: 0;
    line-height: 1.4;
  }

  /* 본문 칸이 '내용 너비'로 잡혀 모바일에서 가로로 밀리는 것을 막는다 */
  .sp_main {
    min-width: 0;
    align-self: stretch;
    width: 100%;
  }

  /* ---------------------- 일러스트 틀 ---------------------- */
  .sc_fig {
    background: var(--sc-fig);
    border-radius: .4rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    >svg {
      width: 100%;
      height: 100%;
    }
  }

  /* 인트로 일러스트 - 높이를 고정하지 않고 비율(560:340)로 잡아
     본문 폭에 맞춰 늘어나게 둔다 */
  .sc_fig.hero {
    width: 100%;
    max-width: 72rem;
    aspect-ratio: 560 / 340;
    margin: 4.8rem auto 0;
  }

  /* ---------------------- 순응 탈락률 숫자 ---------------------- */
  .sc_stat {
    text-align: center;
    margin: 0 auto;
    max-width: 76rem;

    /* 20% - 이 페이지에서 가장 먼저 눈에 들어와야 하는 숫자다.
       크기는 사이트 큰 숫자 컴포넌트(.top_num .num 18rem / em 5rem)에 맞춘다 */
    .fig {
      display: block;
      font-family: 'Barlow', sans-serif;
      font-size: 18rem;
      font-weight: 700;
      line-height: 1;
      color: var(--sc-vermilion);
      letter-spacing: -.05em;

      >span {
        font-size: 5rem;
        margin-left: .6rem;
      }
    }

    .lead {
      font-size: 2rem;
      font-weight: 700;
      line-height: 1.6;
      color: var(--000);
      margin: 1.6rem 0 0;
      letter-spacing: -.03em;
    }

    /* 출처 표기는 반드시 남긴다 - 공단 자료를 인용한 숫자다.
       크기·줄간격은 사이트 작은 주석 규격(.sd_disc 1.4rem / 1.85) */
    .src {
      font-size: 1.4rem;
      line-height: 1.85;
      color: #8a8a8a;
      margin: 1rem 0 0;
      letter-spacing: -.02em;
    }
  }

  /* ---------------------- 순응 기준 3박스 ---------------------- */
  .sc_rule {
    list-style: none;
    padding: 0;
    margin: 4.8rem auto 0;
    max-width: 76rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;

    >li {
      border: 1px solid #e5e5e5;
      border-radius: .4rem;
      padding: 2.8rem;
      background: #fff;

      .tag {
        display: block;
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--sc-deep);
        letter-spacing: -.02em;
      }

      /* 제목 칸 높이를 두 줄로 고정한다. 세 칸 중 '30일 중 21일, 하루 4시간'만
         두 줄이라, 안 잡으면 그 칸만 본문 시작 위치가 한 줄 아래로 밀린다.
         '하루 4시간' 처럼 한 낱말이 줄 끝에서 쪼개지지 않게 어절 단위로 끊는다 */
      h3 {
        font-size: 2.4rem;
        font-weight: 700;
        color: var(--000);
        margin: .6rem 0 0;
        line-height: 1.4;
        min-height: 2.8em;
        letter-spacing: -.03em;
        word-break: keep-all;
      }

      p {
        font-size: 1.8rem;
        line-height: 1.6;
        color: var(--666);
        margin: 1rem 0 0;
        letter-spacing: -.02em;
        word-break: keep-all;
      }

      /* 탈락 뒤 180일 공백이 이 페이지가 말하려는 지점이라 테두리로 드러낸다 */
      &.is_point {
        border: 2px solid var(--sc-vermilion);
        padding: 2.7rem;
      }
    }
  }

  /* 급여 기준 변동 안내 - 위의 통계·기준 묶음에 딸린 주석이라 가운데로 맞춘다.
     크기·줄간격은 사이트 작은 주석 규격(.sd_disc 1.4rem / 1.85) */
  .sc_note {
    max-width: 76rem;
    margin: 1.6rem auto 0;
    font-size: 1.4rem;
    line-height: 1.85;
    color: #8a8a8a;
    letter-spacing: -.02em;
    text-align: center;
    word-break: keep-all;
  }

  /* ---------------------- 왜 불편한가 카드 3장 ----------------------
     테두리 카드 꾸밈·간격은 기존 카드(.sd_cause)와 같은 값으로 맞춘다.
     다른 점은 그림이 글 위에 온다는 것뿐이다.
  ------------------------------------------------------------------ */
  .sc_why {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 76rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;

    >li {
      border: 1px solid #e5e5e5;
      border-radius: .4rem;
      /* 그림은 카드 위쪽을 꽉 채운다. 위 패딩을 빼고 글에만 여백을 준다 */
      padding: 0 2.8rem 2.8rem;
      background: #fff;
      /* 그림이 카드 둥근 모서리 밖으로 삐져나가지 않게 잘라 낸다 */
      overflow: hidden;

      .img {
        /* 칸 비율을 그림 비율(260:200)과 같게 잡는다. 높이를 고정하면
           남는 양옆이 띠처럼 드러나고 그림도 그만큼 작아진다 */
        aspect-ratio: 260 / 200;
        /* 좌우 패딩만큼 밖으로 빼 카드 너비를 가득 채운다 */
        margin: 0 -2.8rem;
        background: var(--sc-fig);
        display: flex;
        align-items: center;
        justify-content: center;

        >svg {
          width: 100%;
          height: 100%;
        }
      }

      h3 {
        font-size: 2.4rem;
        font-weight: 700;
        color: var(--000);
        margin: 2.4rem 0 0;
        letter-spacing: -.03em;
        word-break: keep-all;
      }

      p {
        font-size: 1.8rem;
        line-height: 1.6;
        color: var(--666);
        margin: .8rem 0 0;
        letter-spacing: -.02em;
        word-break: keep-all;
      }
    }
  }

  /* ---------------------- 선택지 A · B · C ---------------------- */
  .sc_option {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 76rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;

    >li {
      border: 1px solid #e5e5e5;
      border-radius: .4rem;
      padding: 3rem 2.8rem;
      background: #fff;

      .mark {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 5.6rem;
        height: 5.6rem;
        border-radius: 50%;
        background: #555;
        color: #fff;
        font-family: 'Barlow', sans-serif;
        font-size: 2.2rem;
        font-weight: 700;
      }

      h3 {
        font-size: 2.4rem;
        font-weight: 700;
        color: var(--000);
        margin: 1.8rem 0 0;
        line-height: 1.4;
        letter-spacing: -.03em;
      }

      p {
        font-size: 1.8rem;
        line-height: 1.6;
        color: var(--666);
        margin: 1.2rem 0 0;
        letter-spacing: -.02em;

        b {
          color: var(--sc-deep);
          font-weight: 700;
        }
      }

      /* 구강장치 전환이 이 페이지의 본론이라 테두리로 드러낸다.
         다만 '양압기를 그만두라'로 읽히지 않도록 A 를 먼저 두었다 */
      &.is_point {
        border: 2px solid var(--sc-vermilion);
        padding: 2.9rem 2.7rem;

        .mark {
          background: var(--sc-vermilion);
        }
      }
    }
  }

  /* 참고 가이드라인 - 근거 문장이라 본문과 톤을 갈라 둔다.
     꾸밈·크기는 사이트 회색 정리 박스(.sd_note) 규격을 그대로 쓴다 */
  .sc_guide {
    max-width: 72rem;
    margin: 3.2rem auto 0;
    background: #f5f5f5;
    padding: 2.2rem 2.8rem;
    font-size: 1.6rem;
    line-height: 1.8;
    color: #444;
    letter-spacing: -.02em;
    text-align: left;

    >b {
      color: var(--sc-deep);
      font-weight: 700;
    }
  }

  /* ---------------------- 진료 과정 4단계 사진 틀 ----------------------
     공통 .step_list_lg 의 .thumb 는 너비를 주지 않아 사진 원본 크기가
     그대로 칸 너비가 된다. 이 페이지가 쓰는 사진은 582x100 이라 칸이
     582px 로 벌어지고, 그만큼 글 칸이 눌려 낱말이 줄 끝에서 쪼개진다.
     틀을 고정하고 사진을 그 안에 맞춰 채운다.
  ------------------------------------------------------------------ */
  .step_list_lg>li .thumb {
    flex: 0 0 29rem;
    width: 29rem;
    aspect-ratio: 291 / 100;

    img {
      object-fit: cover;
    }
  }

  /* 글 칸에서도 '양압기' 같은 한 낱말이 쪼개지지 않게 어절 단위로 끊는다 */
  .step_list_lg>li .txt {

    h5,
    p {
      word-break: keep-all;
    }
  }

  /* ---------------------- 원장님 박스 ---------------------- */
  .sc_quote {
    position: relative;
    box-sizing: border-box;
    max-width: 76rem;
    margin: 0 auto;
    padding: 9rem 6rem 5.6rem;
    border: 1px solid #ece4d8;
    background: linear-gradient(180deg, #fffdf9 0%, #faf5ec 100%);
    text-align: center;

    /* 여는 따옴표 - 글이 아니라 장식이라 가운데 위에 띄운다 */
    &:before {
      content: "“";
      position: absolute;
      top: 2.6rem;
      left: 50%;
      transform: translateX(-50%);
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 9rem;
      line-height: 1;
      color: var(--sc-orange);
      opacity: .45;
    }

    .q_lead {
      margin: 0;
      font-size: 2.6rem;
      font-weight: 700;
      line-height: 1.55;
      color: #000;
      letter-spacing: -.03em;

      /* 리드와 본문을 끊어 주는 짧은 선 */
      &:after {
        content: '';
        display: block;
        width: 4rem;
        height: 2px;
        background: var(--sc-orange);
        margin: 3rem auto 0;
        opacity: .8;
      }
    }

    .q_body {
      margin: 3rem auto 0;
    }

    .q_body p {
      margin: 0 0 1.8rem;
      font-size: 1.8rem;
      line-height: 1.9;
      color: var(--sc-text);
      letter-spacing: -.02em;

      &:last-child {
        margin-bottom: 0;
      }

      b {
        color: var(--sc-deep);
        font-weight: 700;
      }
    }

    /* 자격 표시 4개 - 색을 갈라 둔다 (전문 자격 / 인증 / 진료 방식 / 협진) */
    .q_tags {
      list-style: none;
      padding: 0;
      margin: 4.4rem 0 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1rem;

      >li {
        background: #fff;
        border: 1px solid #888;
        color: #444;
        border-radius: 10rem;
        padding: 1.1rem 2.2rem;
        font-size: 1.6rem;
        font-weight: 700;
        letter-spacing: -.02em;

        &:nth-child(1),
        &:nth-child(4) {
          border-color: var(--sc-vermilion);
          color: var(--sc-deep);
        }

        &:nth-child(3) {
          border-color: var(--sc-orange);
          color: #b06100;
        }
      }
    }
  }

  /* ---------------------- 결론 띠 (CONCLUSION) ---------------------- */
  .sc_cta {
    background: var(--sc-dark);
    color: #fff;
    text-align: center;
    padding: 6.4rem 3rem;
    margin: 12rem 0 0;

    .label {
      display: block;
      font-size: 1.4rem;
      font-weight: 700;
      letter-spacing: .3em;
      color: var(--sc-orange);
      font-family: 'Barlow', sans-serif;
      margin-bottom: 2.4rem;
    }

    h3 {
      color: #fff;
      font-size: 3rem;
      font-weight: 400;
      line-height: 1.5;
      margin: 0;
      letter-spacing: -.03em;

      b {
        color: #fff;
        font-weight: 700;
      }

      b.point {
        color: var(--sc-orange);
      }
    }

    p {
      color: #c8c2bb;
      font-size: 1.8rem;
      line-height: 1.6;
      margin: 3.2rem 0 0;
      position: relative;
      padding-top: 3.2rem;

      /* 결론과 안내 사이를 끊어 주는 짧은 선 */
      &:before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 4rem;
        height: 2px;
        background: var(--sc-orange);
        opacity: .8;
      }
    }

    .btns {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.2rem;
      margin-top: 3.2rem;
    }

    a.btn {
      display: inline-block;
      background: var(--sc-vermilion);
      color: #fff;
      text-decoration: none;
      font-size: 1.8rem;
      font-weight: 700;
      padding: 1.6rem 4.6rem;
      border-radius: 999px;
      letter-spacing: -.03em;
    }

    a.tel {
      display: inline-block;
      border: 1px solid #6c6761;
      color: #fff;
      text-decoration: none;
      font-family: 'Barlow', sans-serif;
      font-size: 2rem;
      font-weight: 600;
      letter-spacing: .02em;
      padding: 1.4rem 3.4rem;
      border-radius: 999px;
    }
  }

  /* ---------------------- 하단 안내 · 링크 ---------------------- */
  .sc_foot {
    margin: 10rem 0 0;
    text-align: center;

    >p {
      font-size: 1.8rem;
      line-height: 1.6;
      color: var(--666);
      margin: 0;
      letter-spacing: -.02em;

      b {
        color: #333;
        font-weight: 700;
      }
    }

    .links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 1rem 3rem;
      margin-top: 2.4rem;

      a {
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        border: 1px solid #ddd;
        border-radius: 999px;
        padding: 1.1rem 2.6rem;
        font-size: 1.6rem;
        font-weight: 700;
        color: #555;
        text-decoration: none;
        letter-spacing: -.02em;
        transition: border-color .15s, color .15s;

        &:hover {
          border-color: var(--sc-vermilion);
          color: var(--sc-vermilion);
        }
      }
    }
  }

  /* ---------------------- 작성·감수 바이라인 ---------------------- */
  .sc_byline {
    font-size: 1.5rem;
    color: #8b8b8b;
    letter-spacing: -.02em;
    margin: 6rem 0 0;
    text-align: center;

    b {
      color: #333;
      font-weight: 600;
    }
  }

  /* ---------------------- 하단 고지문 ---------------------- */
  .sc_disc {
    background: #f7f7f7;
    padding: 2.6rem 3rem;
    margin: 2rem auto 0;
    font-size: 1.4rem;
    line-height: 1.85;
    color: #8a8a8a;
    letter-spacing: -.02em;
    text-align: left;
  }
}

/* ==================== 모바일 (사이트 공통 768px 기준) ==================== */
@media (max-width: 768px) {
  .snoring_cpap {

    .sub_top_tit h1,
    .sub_top_tit h2,
    .section_tit h2 {
      font-size: 2.7rem;
    }

    .section_tit .en.long {
      font-size: 4rem;
    }

    .section_tit .en {
      margin-bottom: 1rem;
    }

    .sc_fig.hero {
      height: auto;
      aspect-ratio: 560 / 340;
      margin-top: 3rem;
    }

    .sc_stat .fig {
      font-size: 10rem;

      >span {
        font-size: 4rem;
      }
    }

    .sc_stat .lead {
      font-size: 1.8rem;
    }

    /* 모바일에서 단계 줄은 세로 flex 로 바뀐다. 그러면 flex-basis 가 '높이'가 되어
       PC 용 29rem 이 사진 높이로 들어간다. 가로폭을 꽉 채우고 비율만 지킨다 */
    .step_list_lg>li .thumb {
      flex: none;
      width: 100%;
      aspect-ratio: 291 / 100;
    }

    /* 3열은 모바일에서 글자가 뭉개진다. 한 줄에 하나씩 쌓는다 */
    .sc_rule,
    .sc_why,
    .sc_option {
      grid-template-columns: 1fr;
      gap: 1.6rem;
      margin-top: 3rem;
    }

    .sc_why>li {
      padding: 0 2.4rem 2.4rem;

      .img {
        margin: 0 -2.4rem;
      }
    }

    .sc_rule>li {
      padding: 2.4rem;

      &.is_point {
        padding: 2.3rem;
      }
    }

    .sc_option>li {
      padding: 2.4rem;

      &.is_point {
        padding: 2.3rem;
      }
    }

    .sc_guide {
      padding: 1.8rem 2rem;
      margin-top: 2.4rem;
    }

    .sc_quote {
      padding: 7rem 2.4rem 4rem;

      .q_lead {
        font-size: 2.1rem;
      }

      .q_body p {
        font-size: 1.6rem;
      }

      .q_tags {
        margin-top: 3rem;

        >li {
          padding: .9rem 1.6rem;
          font-size: 1.4rem;
        }
      }
    }

    .sc_cta {
      padding: 4.8rem 2rem;
      margin-top: 8rem;

      h3 {
        font-size: 2.3rem;
      }

      p {
        font-size: 1.6rem;
      }

      a.btn,
      a.tel {
        padding: 1.4rem 3rem;
        font-size: 1.6rem;
      }
    }

    .sc_foot {
      margin-top: 7rem;

      >p {
        font-size: 1.6rem;
      }
    }

    .sc_byline {
      margin-top: 4rem;
    }

    .sc_disc {
      padding: 2rem 1.8rem;
    }
  }
}
