@charset "utf-8";
/* ==================================================================
   10대 청소년 턱관절 페이지 전용 CSS
   - 대상 : /html/sub/chin_teen.html
   - 기존 공통 컴포넌트(.sub_hero / .sub_top_tit / .sub_section /
     .section_tit / .symptom_list / .cert_list / .appliance /
     .circle_list / .top_num / .step_list_lg / .faq_wrap / .faq_list)는
     common.css · style.css 를 그대로 사용하고,
     이 파일에는 이 페이지에서 새로 쓰는 것만 담는다.
   - 페이지 본문의 <main> 은 class="wrap chin chin_teen" 이다.
     chin 을 함께 붙이는 이유는 style.css 의 .chin 스코프 안에 있는
     .appl_main / .circle_list 모바일 보정을 그대로 받기 위해서다.
   - 단위는 사이트 규칙에 맞춰 rem (html font-size 62.5% / 모바일 55%)
===================================================================== */

.chin_teen {
  --ct-orange: #f7941d;
  /* 제목 강조 */
  --ct-vermilion: #f24822;
  /* 포인트·CTA */
  --ct-text: #333;
  --ct-line: #eaeaea;
  --ct-dark: #2a2724;

  /* 장식용 영문(TEEN / NIGHT / CHOICE / FAQ)은 공통 CSS 의 .en 규칙을 그대로 쓴다.
     제목이 아니라 그림 글자라 h 태그를 쓰지 않고 span 으로 둔다 */

  /* ------------------------------------------------------------------
     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 로 쓰면 위에 한 줄이 뜬다.
     chin.html 의 h1 과 같은 위치가 되도록 맞춘다.
  ------------------------------------------------------------------ */
  .page_head .page_title {
    margin: 0;
    line-height: 1.4;
  }

  /* ------------------------------------------------------------------

     인트로 이미지
     턱관절 페이지(chin.html)와 같은 규칙 - 원본 크기 그대로 가운데 배치.
     폭을 늘리면 원본보다 커져 흐려진다.
  ------------------------------------------------------------------ */
  .sub_hero>img {
    display: block;
    /* 파일은 2배 해상도(1132px). 표시 폭은 chin.html 히어로와 같은 566px 로 고정 */
    width: 56.6rem;
    max-width: 100%;
    margin: 0 auto;
  }

  /* ------------------------------------------------------------------
     원인 카드 3장
     공통 .cert_list 는 .img 에 높이를 주지 않아, 원본 비율이 다른 사진을
     섞으면 카드마다 그림 높이가 달라지고 아래 글줄이 어긋난다.
     이 페이지는 비율이 제각각인 기존 사진을 재사용하므로 chin.html 의
     사진 비율(310x293)로 틀을 고정한다.
  ------------------------------------------------------------------ */
  .cert_list>li .img {
    aspect-ratio: 310 / 293;
  }

  /* ---------------------- 더 보기 링크 ---------------------- */
  /* 더 보기 링크 - 글이 아니라 버튼으로 읽히게 둔다
     (코골이 방지장치·양압기·교정 페이지의 같은 자리와 같은 꼴) */
  .ct_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(--ct-vermilion);
        color: var(--ct-vermilion);
      }
    }
  }

  /* ---------------------- 진료 과정 사진 틀 ----------------------
     공통 .step_list_lg 의 .thumb 는 너비를 주지 않아 사진 원본 크기가
     그대로 칸 너비가 된다. 큰 사진으로 바꾸면 줄이 통째로 밀린다.
  ------------------------------------------------------------------ */
  .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;
    }
  }

  /* ------------------------------------------------------------------
     원장님 상담 톤 박스 (CHOICE)
     진료실에서 하는 말을 그대로 옮긴 자리.
     페이지 전체가 가운데정렬이라 이 블록도 가운데로 맞추고,
     가운데정렬 글은 줄이 길면 읽기 어려워 본문 폭만 따로 좁힌다.
  ------------------------------------------------------------------ */
  .ct_quote {
    position: relative;
    max-width: 96rem;
    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(--ct-orange);
      opacity: .45;
    }

    .q_lead {
      font-size: 2.6rem;
      font-weight: 700;
      line-height: 1.55;
      color: #000;
      margin: 0;
      letter-spacing: -.03em;

      em {
        font-style: normal;
        color: var(--ct-orange);
      }

      /* 리드와 본문을 끊어 주는 짧은 선 */
      &:after {
        content: '';
        display: block;
        width: 4rem;
        height: 2px;
        background: var(--ct-orange);
        margin: 3rem auto 0;
        opacity: .8;
      }
    }

    .q_body {
      /* max-width: 58rem; */
      margin: 3rem auto 0;
    }

    .q_body p {
      font-size: 1.8rem;
      line-height: 1.9;
      color: var(--ct-text);
      margin: 0 0 1.8rem;
      letter-spacing: -.02em;
      /* 가운데정렬은 줄 길이가 들쭉날쭉하면 지저분해 보인다.
         브라우저가 줄 길이를 고르게 나누도록 맡기고,
         어절이 줄 끝에서 쪼개지지 않게 막는다. */
      /* text-wrap: balance; */
      /* word-break: keep-all; */
    }

    .q_body p:last-child {
      margin-bottom: 0;
    }

    .q_tags {
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1rem;
      padding: 0;
      margin: 4.4rem 0 0;

      >li {
        display: inline-flex;
        align-items: center;
        font-size: 1.6rem;
        font-weight: 700;
        color: #a35f0d;
        background: #fff;
        border: 1px solid #f0c483;
        border-radius: 10rem;
        padding: 1.1rem 2.2rem;
        letter-spacing: -.02em;

        /* 앞의 점 하나로 '이렇게 합니다' 목록임을 드러낸다 */
        &:before {
          content: '';
          width: .6rem;
          height: .6rem;
          border-radius: 50%;
          background: var(--ct-orange);
          margin-right: .9rem;
          flex-shrink: 0;
        }
      }
    }
  }

  /* ---------------------- 교정 전 검사 · 비용 2박스 ---------------------- */
  .ct_box2 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;

    >li {
      border: 1px solid var(--ct-line);
      padding: 4rem 3.6rem;
      background: #fff;

      h3 {
        font-size: 2.4rem;
        font-weight: 700;
        color: var(--000);
        margin: 0 0 1.6rem;
        letter-spacing: -.03em;
      }

      p {
        font-size: 1.8rem;
        line-height: 1.6;
        color: var(--666);
        margin: 0;
        letter-spacing: -.02em;
      }

      .ct_more {
        margin-top: 2.4rem;
      }

      /* 모바일에서 단계 줄은 세로 flex 라 flex-basis 가 '높이'가 된다 */
      .step_list_lg>li .thumb {
        flex: none;
        width: 100%;
        aspect-ratio: 291 / 100;
      }
    }
  }

  /* ---------------------- 하단 CTA ---------------------- */
  .ct_cta {
    background: var(--ct-dark);
    color: #fff;
    text-align: center;
    padding: 5.6rem 3rem;
    margin: 12rem 0 0;

    h4 {
      color: #fff;
      font-size: 2.7rem;
      margin: 0 0 1.2rem;
      line-height: 1.5;

      b {
        color: var(--ct-orange);
      }
    }

    p {
      color: #c8c2bb;
      font-size: 1.8rem;
      margin: 0 0 2.6rem;
    }

    a.btn {
      display: inline-block;
      background: var(--ct-vermilion);
      color: #fff;
      text-decoration: none;
      font-size: 1.8rem;
      font-weight: 700;
      padding: 1.6rem 4.6rem;
      letter-spacing: -.03em;
    }

    .tel {
      display: block;
      font-family: 'Barlow', sans-serif;
      font-size: 3.8rem;
      font-weight: 600;
      color: #fff;
      letter-spacing: .02em;
      margin-top: 2.6rem;
      text-decoration: none;
    }

    .addr {
      font-size: 1.5rem;
      color: #9b948d;
      margin: .8rem 0 0;
    }
  }

  /* ---------------------- 관련 글 ---------------------- */
  .ct_rel {
    margin: 7rem auto 0;
    border-top: 1px solid var(--ct-line);
    padding-top: 2.8rem;
    text-align: left;

    strong {
      display: block;
      font-size: 2.4rem;
      color: #333;
      margin-bottom: 1.8rem;
    }

    a {
      display: block;
      font-size: 1.8rem;
      line-height: 1.6;
      color: #555;
      text-decoration: none;
      padding: 1.6rem 0;
      border-bottom: 1px solid #f2f2f2;

      &:hover {
        color: var(--ct-vermilion);
      }

      &:before {
        content: "\203A";
        color: var(--ct-orange);
        margin-right: .9rem;
      }
    }
  }

  /* ---------------------- 작성·감수 바이라인 ---------------------- */
  .ct_byline {
    font-size: 1.5rem;
    color: #8b8b8b;
    letter-spacing: -.02em;
    margin: 4rem 0 0;
    text-align: center;

    b {
      color: #333;
      font-weight: 600;
    }
  }

  /* ---------------------- 하단 고지문 ---------------------- */
  .ct_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_teen {

    /* 신호 4개 - 공통 CSS 가 가운데 정렬이라 글 길이에 따라 줄마다 왼쪽 끝이 달라 보인다.
       왼쪽 기준으로 맞춰 네 줄의 동그라미·글머리를 한 선에 세운다 */
    .symptom_list {
      /* 가장 긴 줄의 너비에 맞춰 목록 전체를 한 덩어리로 만들고(fit-content)
         그 덩어리를 가운데에 둔다. 줄끼리는 왼쪽이 맞고, 묶음은 화면 가운데에 온다 */
      align-items: stretch;
      width: fit-content;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;

      >li {
        justify-content: flex-start;
      }
    }

    .sub_top_tit h1,
    .sub_top_tit h2,
    .section_tit h2 {
      font-size: 2.7rem;
    }

    .ct_quote {
      padding: 7rem 2.2rem 3.6rem;

      &:before {
        font-size: 7rem;
        top: 1.8rem;
      }

      .q_lead {
        font-size: 2rem;

        &:after {
          margin-top: 2.2rem;
        }
      }

      .q_body {
        margin-top: 2.2rem;
      }

      .q_body p {
        font-size: 1.7rem;
        line-height: 1.8;
      }

      .q_tags {
        margin-top: 3rem;

        >li {
          font-size: 1.4rem;
          padding: .8rem 1.8rem;
        }
      }
    }

    .ct_box2 {
      grid-template-columns: 1fr;
      gap: 1.5rem;

      >li {
        padding: 3rem 2.2rem;

        h3 {
          font-size: 2.1rem;
        }
      }
    }

    .ct_cta {
      margin-top: 6rem;
      padding: 4rem 2rem;

      h4 {
        font-size: 2.1rem;
      }

      .tel {
        font-size: 3rem;
      }
    }

    .ct_rel {
      margin-top: 4rem;
    }

    .ct_disc {
      padding: 2rem 1.8rem;
    }
  }
}
