.m3b-m {
  display: none;
}

@media all and (max-width: 767px) {
  html body .m3b-pc {
    display: none !important;
  }
  html body .m3b-m {
    display: block;
  }

  /* 수면 — 진행순서 8칸을 두 줄씩 */
  html body #sleep #section04 .m3b-sleep-steps {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
  }
  html body #sleep #section04 .m3b-sleep-steps li {
    display: flex;
    flex-direction: column;
    margin: 0;
  }
  html body #sleep #section04 .m3b-sleep-steps img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 334 / 168;
    object-fit: cover;
    margin: 0 !important;
  }
  html body #sleep #section04 .m3b-sleep-steps span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 40px;
    padding: 8px 6px;
    background: #558ed5;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-align: center;
    word-break: keep-all;
  }

  /* 수면 — 적용 치료 원형 5개를 세 개씩 */
  html body #sleep #section05 .container ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px 10px !important;
    max-width: 340px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body #sleep #section05 .container ul li {
    width: calc((100% - 20px) / 3) !important;
    max-width: 104px !important;
  }

  /* 수면 — 사용의 한계 · 효과 대상자 머리 표시 */
  html body #sleep #section07 .mfc.mfc .mfc-box h4::before {
    content: "\f00d";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -42px auto 12px;
    border-radius: 50%;
    background: #a6a6a6;
    color: #fff;
    font-family: FontAwesome;
    font-size: 22px;
    font-weight: 400;
  }
  html body #sleep #section07 .mfc.mfc .mfc-box.mfc-ok h4::before {
    content: "\f00c";
    background: #558ed5;
    font-size: 20px;
  }
  html body #sleep #section07 .mfc.mfc .mfc-box {
    margin-top: 24px;
    padding-top: 28px;
  }

  /* 임플란트 — 공포 그래프 뒤에 PC 와 같은 구강 사진 */
  html body #digital #section01 .step01 .container > .d-flex > div:last-child {
    width: 100%;
    margin-top: 24px;
    padding: 24px 0 8px;
    background-image: url(/img/digitalSect01BG.webp);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: 80% center;
  }
  html body #digital #section01 .step01 .container > .d-flex > div:last-child img {
    margin-right: 0 !important;
  }

  /* 임플란트 — 원데이 가능 이유: 탭 바로 아래로 붙이고 사진·설명을 한 묶음으로 */
  html body #digital #section02 .tab-contents > .container:has(> #oneReason.active) {
    padding-top: 32px !important;
  }
  html body #digital #section02 #oneReason .boxes {
    gap: 44px !important;
  }
  html body #digital #section02 #oneReason .box img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 684 / 674;
  }

  /* 임플란트 — 사진 카드 묶음 */
  html body #digital .m3b-navi .m3b-navi-main,
  html body #digital .ss-m .m3b-side {
    display: block;
    width: 100% !important;
    max-width: 343px;
    height: auto !important;
    margin: 0 auto 20px !important;
  }
  html body #digital .ss-m .m3b-side.m3b-side-sm {
    max-width: 260px !important;
  }
  html body #digital .m3b-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
  }
  html body #digital .m3b-cards li {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: #fff;
  }
  html body #digital .m3b-cards li::before {
    content: none !important;
  }
  html body #digital .m3b-cards img {
    display: block;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }
  html body #digital .m3b-cards span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 44px;
    padding: 8px 6px;
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-align: center;
    word-break: keep-all;
  }
  html body #digital .m3b-cards.m3b-plain li {
    background: transparent;
  }
  html body #digital .m3b-cards.m3b-band li {
    border: 1px solid #e3e3e3;
  }
  html body #digital .m3b-cards.m3b-band span {
    background: #ececec;
  }
  html body #digital .ss-m .m3b-cards.m3b-white {
    margin-top: 4px;
  }

  /* 임플란트 — 브랜드별 픽스처 */
  html body #digital .ss-m .m3b-brands {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
  }
  html body #digital .ss-m .m3b-brands li {
    width: calc((100% - 16px) / 3);
    margin: 0;
    padding: 0;
  }
  html body #digital .ss-m .m3b-brands li::before {
    content: none !important;
  }
  html body #digital .ss-m .m3b-brands img {
    display: block;
    width: 100% !important;
    height: auto !important;
  }

  /* 임플란트 — 치료 뒤 관리 4칸: 글이 칸 밖으로 넘치지 않게 */
  html body #digital #section09 .container .boxes .box {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 24px 20px !important;
    gap: 18px !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  html body #digital #section09 .container .boxes .box > div:first-child {
    flex: 0 0 64px;
  }
  html body #digital #section09 .container .boxes .box img {
    width: 64px !important;
    min-width: 0 !important;
    height: 64px !important;
  }
  html body #digital #section09 .container .boxes .box .text {
    flex: 1 1 auto;
    min-width: 0;
  }
  html body #digital #section09 .container .boxes .box h4 {
    font-size: 17px !important;
    line-height: 1.45 !important;
  }
  html body #digital #section09 .container .boxes .box em {
    width: 100% !important;
    margin: 12px 0 !important;
  }
  html body #digital #section09 .container .boxes .box p {
    min-width: 0 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    color: rgba(51, 51, 51, 0.85) !important;
  }
}
