@charset "utf-8";
/* ==================================================================
   교정 환자들의 턱관절 페이지 전용 CSS
   - 대상 : /html/sub/chin_ortho.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 chin_ortho" 이다.
   - 단위는 사이트 규칙에 맞춰 rem (html font-size 62.5% / 모바일 55%)
   - 턱관절 계열(chin_teen) · 코골이 계열(snoring_device / snoring_cpap)과
     색·여백 규칙을 맞춰 한 사이트로 보이게 한다.
===================================================================== */

.chin_ortho {
  --co-orange: #f7941d;
  /* 제목 강조 */
  --co-vermilion: #f24822;
  /* 포인트·CTA */
  --co-deep: #c43a17;
  /* 본문 안 강조 글자 (주황은 흰 바탕에서 흐려 읽기 어렵다) */
  --co-text: #333;
  --co-line: #eaeaea;
  --co-dark: #2a2724;
  --co-fig: #f5f0e9;
  /* 일러스트 바탕 - 그림이 자기 바탕으로 칠하는 색과 같은 값이어야 한다.
     그림은 비율을 지키며 칸 안에 들어가므로 남는 양옆이 칸 색으로 보인다.
     색이 다르면 그 자리가 띠처럼 드러난다 */

  /* ------------------------------------------------------------------
     장식용 영문 (ORTHO / 3stage / TOGETHER / 4step / FAQ)
     모양과 굵기(400)는 공통 CSS 의 .en 규칙을 그대로 쓴다.
  ------------------------------------------------------------------ */
  .section_tit .en.long {
    font-size: 11rem;
  }

  /* 큰 영문은 줄간격이 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%;
  }

  /* ---------------------- 일러스트 틀 ---------------------- */
  .co_fig {
    background: var(--co-fig);
    border-radius: .4rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    >svg {
      width: 100%;
      height: 100%;
    }
  }

  /* 인트로 일러스트 - 높이를 고정하지 않고 비율(560:340)로 잡아
     본문 폭에 맞춰 늘어나게 둔다 */
  .co_fig.hero {
    width: 100%;
    max-width: 72rem;
    aspect-ratio: 560 / 340;
    margin: 4.8rem auto 0;
  }

  /* ---------------------- 원인 카드 3장 ---------------------- */
  .co_cause {
    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(--co-fig);
        display: flex;
        align-items: center;
        justify-content: center;

        >svg {
          width: 100%;
          height: 100%;
        }
      }

      /* 사진 칸 - 원본 비율이 제각각이라 칸을 채우고 넘는 부분만 잘라 낸다.
         그렇게 해야 세 칸 높이가 어긋나지 않는다 */
      .img.photo>img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      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;
      }
    }
  }

  /* 더 보기 링크 - 글이 아니라 버튼으로 읽히게 둔다 */
  .co_more {
    text-align: center;
    margin: 3.2rem 0 0;

    >a {
      display: inline-flex;
      align-items: center;
      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(--co-vermilion);
        color: var(--co-vermilion);
      }
    }
  }

  /* ---------------------- 교정 단계별 확인 (3 stage) ---------------------- */
  .co_stage {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 76rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;

    >li {
      display: grid;
      /* 사진 칸 너비는 바로 아래 4step 블록(공통 .step_list_lg 29rem)과 맞춘다.
         두 블록이 같은 꼴이라 어긋나면 한 페이지에서 눈에 띈다 */
      grid-template-columns: 29rem 9rem 1fr;
      gap: 2rem;
      align-items: center;
      text-align: left;

      .thumb {
        aspect-ratio: 291 / 100;
        border-radius: .4rem;
        overflow: hidden;
        background: var(--co-fig);

        >img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
        }
      }

      /* 단계 표시 - 숫자가 아니라 시기(교정 전·중·후)라 원 안에 글자를 넣는다 */
      .badge {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 7.6rem;
        height: 7.6rem;
        border-radius: 50%;
        background: #444;
        color: #fff;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: -.03em;
      }

      /* 바로 아래 4step 블록과 같은 꼴(사진 + 뱃지 + 제목·설명)이라
         공통 .step_list_lg 의 제목 크기(2.5rem/600)에 맞춘다 */
      .txt h3 {
        font-size: 2.5rem;
        font-weight: 600;
        color: var(--000);
        margin: 0;
        letter-spacing: -.03em;
        word-break: keep-all;
      }

      .txt p {
        font-size: 1.8rem;
        line-height: 1.6;
        color: var(--666);
        margin: .6rem 0 0;
        letter-spacing: -.02em;
        word-break: keep-all;
      }

      /* 교정 중이 이 페이지로 들어오는 분이 가장 많은 시기다 */
      &.is_point .badge {
        background: var(--co-vermilion);
      }
    }
  }

  /* ---------------------- 진료 과정 4단계 사진 틀 ----------------------
     공통 .step_list_lg 의 .thumb 는 너비를 주지 않아 사진 원본 크기가
     그대로 칸 너비가 된다. 지금 쓰는 사진은 291x100 이라 드러나지 않지만,
     나중에 큰 사진으로 바꾸면 줄이 통째로 밀린다. 틀을 고정해 둔다.
  ------------------------------------------------------------------ */
  .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;
    }
  }

  /* ---------------------- 원장님 박스 ---------------------- */
  .co_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(--co-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(--co-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(--co-text);
      letter-spacing: -.02em;

      &:last-child {
        margin-bottom: 0;
      }

      b {
        color: var(--co-deep);
        font-weight: 700;
      }
    }

    /* 협진 방식 3가지를 색으로 갈라 둔다 */
    .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;

        &:first-child {
          border-color: var(--co-vermilion);
          color: var(--co-deep);
        }

        &:last-child {
          border-color: var(--co-orange);
          color: #b06100;
        }
      }
    }
  }

  /* ---------------------- 교정치과 원장님께 (의뢰·진단·회신) ---------------------- */
  .co_refer {
    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: 2.8rem;
      background: #fff;

      .no {
        display: block;
        font-family: 'Barlow', sans-serif;
        font-size: 1.3rem;
        font-weight: 700;
        letter-spacing: .2em;
        color: var(--co-deep);
      }

      /* 크기는 기존 카드(.sd_cause) 계열. 2열이 2.2rem, 3열이라 2rem */
      h3 {
        font-size: 2.4rem;
        font-weight: 700;
        color: var(--000);
        margin: .6rem 0 0;
        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;
      }
    }
  }

  /* 의뢰 문의 전화 - 환자가 아니라 교정치과를 향한 줄이라 톤을 낮춰 둔다 */
  .co_refer_tel {
    max-width: 76rem;
    margin: 2.4rem auto 0;
    font-size: 1.6rem;
    color: #555;
    letter-spacing: -.02em;
    text-align: center;

    b {
      font-family: 'Barlow', sans-serif;
      font-size: 1.9rem;
      font-weight: 700;
      color: #333;
      letter-spacing: .02em;
    }
  }

  /* ---------------------- 결론 띠 (CONCLUSION) ---------------------- */
  .co_cta {
    background: var(--co-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(--co-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(--co-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(--co-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(--co-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;
    }
  }

  /* ---------------------- 하단 안내 · 링크 ---------------------- */
  .co_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;
    }

    .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(--co-vermilion);
          color: var(--co-vermilion);
        }
      }
    }
  }

  /* ---------------------- 작성·감수 바이라인 ---------------------- */
  .co_byline {
    font-size: 1.5rem;
    color: #8b8b8b;
    letter-spacing: -.02em;
    margin: 6rem 0 0;
    text-align: center;

    b {
      color: #333;
      font-weight: 600;
    }
  }

  /* ---------------------- 하단 고지문 ---------------------- */
  .co_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) {
  .chin_ortho {

    .sub_top_tit h1,
    .sub_top_tit h2,
    .section_tit h2 {
      font-size: 2.7rem;
    }

    .section_tit .en.long {
      font-size: 5rem;
    }

    .section_tit .en {
      margin-bottom: 1rem;
    }

    .co_fig.hero {
      height: auto;
      aspect-ratio: 560 / 340;
      margin-top: 3rem;
    }

    /* 모바일에서 단계 줄은 세로 flex 로 바뀐다. flex-basis 가 '높이'가 되어
       PC 용 29rem 이 사진 높이로 들어간다. 가로폭을 꽉 채우고 비율만 지킨다 */
    .step_list_lg>li .thumb {
      flex: none;
      width: 100%;
      aspect-ratio: 291 / 100;
    }

    /* 3열은 모바일에서 글자가 뭉개진다. 한 줄에 하나씩 쌓는다 */
    .co_cause,
    .co_refer {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    .co_refer>li {
      padding: 2.4rem;
    }

    /* 가로 3칸(사진·시기·설명)은 모바일 폭에서 설명이 한 글자씩 끊긴다.
       사진을 위로 올리고 시기와 설명을 아래 한 줄로 둔다 */
    .co_stage>li {
      grid-template-columns: 7rem 1fr;
      grid-template-areas:
        "thumb thumb"
        "badge txt";
      gap: 1.2rem 1.6rem;

      .thumb {
        grid-area: thumb;
        width: 100%;
        height: auto;
        aspect-ratio: 291 / 100;
      }

      .badge {
        grid-area: badge;
        width: 7rem;
        height: 7rem;
        font-size: 1.4rem;
      }

      .txt {
        grid-area: txt;
      }
    }

    .co_more {
      margin-top: 2.4rem;
    }

    .co_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;
        }
      }
    }

    .co_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;
      }
    }

    .co_foot {
      margin-top: 7rem;

      >p {
        font-size: 1.6rem;
      }
    }

    .co_byline {
      margin-top: 4rem;
    }

    .co_disc {
      padding: 2rem 1.8rem;
    }
  }
}
